Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My autistic son uses an Ubuntu computer to surf the web, watch videos and listen to music. He watches some videos and turns them too loud all night. I wrote a script which turns down the volume periodically using the amixer command.

I then added this to the Start-up Applications, but he found that and disabled the scripts and reboot the machine. Then I tried calling it in rc.local but cannot get this script which should run forever to work there.

Also I could not get it to work in /etc/rc3.d either. Maybe it is the script, but I cannot seem to get this to work, and there does not seem to be a way to lower the maximum sound output limit. Unless there is a way to remove the "Start-up Applications" from the gear menu, I have to go the hidden script route.

Any help would be greatly appreciated.

share|improve this question
4  
What about using headphones? Physically disconnecting the speakers and using headphones would solve the problem. –  Sergey Aug 8 '12 at 4:54

1 Answer 1

Try adding your command to the root crontab

# sudo crontab -e

# # edit the file and add this line
@hourly /usr/bin/amixer set Master 20

# Or whatever - this sets the volume every hour, on the hour,
# see `man crontab` and `man 5 crontab` for more detail
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.