[ltp] Suspend
Arian Kuschki
linux-thinkpad@linux-thinkpad.org
Sat, 15 Jan 2011 15:25:51 +0100
When investigated this for my T42, the best solution I could come up
with was to set the attributes afresh everytime after resume:
a ~$ cat /etc/pm/sleep.d/trackpoint
#!/bin/bash
case $1 in
hibernate)
;;
suspend)
;;
thaw)
;;
resume)
dir=$(basename $(find /sys/devices/platform/i8042/serio1/ -mindepth 1 -name "serio*"))
echo -n 255 > /sys/devices/platform/i8042/serio1/${dir}/sensitivity
echo -n 255 > /sys/devices/platform/i8042/serio1/${dir}/speed
;;
*)
;;
esac
I use "find" here because the directory name changes after every resume
on my system..
On Sat, 15 Jan 2011 12:23:33 +0100, "Johannes.Lichtenberger" <Johannes.Lichtenberger@uni-konstanz.de> wrote:
> Hello,
>
> after my notebook suspends and wakes up the settings for my trackpoint
> etc.pp. are gone and sysfsutils thinks the attributes are unknown:
>
> johannes@luna:~$ sudo /etc/init.d/sysfsutils start
> [sudo] password for johannes:
> * Setting sysfs variables...
> * unknown attribute
> devices/platform/i8042/serio1/serio2/press_to_select
> * unknown attribute devices/platform/i8042/serio1/serio2/speed
> * unknown attribute devices/platform/i8042/serio1/serio2/sensitivity
>
> [ OK ]
>
> After rebooting everything works again, but that makes suspend useless ;-)
>
> regards,
> Johannes
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
--