A simple way to do the job is to drop the following script in /etc/pm/sleep.d :
#!/bin/bash
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
SYSFS_USERUI_PATH=/sys/power/tuxonice/user_interface/program
if [ ! -e $SYSFS_USERUI_PATH ]; then
exit 0;
fi
tell_userui_path() {
echo /usr/lib/tuxonice-userui/tuxoniceui_text > $SYSFS_USERUI_PATH
}
case "$1" in
hibernate)
tell_userui_path
;;
esac
exit $?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]