Alexandre Rossi wrote:
> 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 $?It would probably be best, if the tuxonice-userui package installed such a hook (into /usr/lib/pm-utils/sleep.d). Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

