I partially solved "the beep issue" with putting the line 'xset -b' (equivalent of 'xset b off') into my .xsession file.
But when the machine resumed from hibernation or suspend, the beep has been back… how annoying.
I finally managed to solve it with the following a wake-up script.
- Code: Select all
#!/bin/bash
case $1 in
hibernate)
;;
suspend)
;;
thaw|resume)
export DISPLAY=:0.0
/bin/su USER -c "sleep 3; /usr/bin/xset -b"
;;
*) echo "ERROR: Couldn't run my_wakeup_script."
;;
esac
You need to name it
00-something, replace USER with your username and put it into
/etc/pm/sleep.d/.
The 00 at the beginning are important - it means the script should be executed at the and of the queue (see /usr/lib/pm-utils/sleep.d) after modules has been loaded and services started.
The script should probably be "smarter", as stated in the
pm-utils mailinglist, but it works for me well as it is.
By all means, consider it to be just a dirty workaround.