Skip to contentSkip to conversation

S3 Suspend input devices problem with 2.6.12

DISCUSSION John O'Hagan 2 participants 3 messages Sep 26, 2005 – Sep 30, 2005 2 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm running Debian testing on a "whitebox" (unbranded) Centrino laptop with a 855GM chipset. Since kernel 2.6.12, suspend-to-disk (S4) has worked well, simply using the KDE klaptop applet.

However, suspend-to-ram (S3), which I think most laptop users find very useful, has proved more difficult. If I simply use the KDE applet or the regular command, the system resumes with a blank screen - a common problem with this chipset. I can get around it using vbetool, which reinitialises the graphics device (there is a handy packaged script called hibernate which walks you through this); however, the touchpad does not work on resume. Sometimes, depending on the hibernate settings, neither does the keyboard.

Some digging has revealed that somehow the entries in /proc/bus/input have been shuffled around on resuming, so that the device node once used by the touchpad (/dev/input/event1) is now handled by the pc-speaker, or the (non-existent) joystick, or is absent altogether! Leaving the touchpad out in the cold...regardless of which touchpad driver I use. Reloading the relevant modules - or even all modules - has no effect.

So, my questions are: why does S3 suspend (and not S4) shuffle the devices around, and how can it be prevented? I notice that the keyboard and touchpad are initialized early in the boot process. Can they somehow be reinitialized after suspend? Is udev involved? Or is there a
better solution?

Thanks,

John O'Hagan

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

A message that is not in the archive (sent off-list or not yet received): 200509270001.58875.johnohagan-q6EoVN9bke7vnOemgxGiVw@public.gmane.org

#2 lore raw
Quoted 1 line · John O'Hagan

So, my questions are: why does S3 suspend (and not S4) shuffle the devices

It is probably luck that it does not happen with S4.

Quoted 4 lines

around, and how can it be prevented? I notice that the keyboard and touchpad are initialized early in the boot process. Can they somehow be reinitialized after suspend? Is udev involved? Or is there a
better solution?

I had something similar on a sony vaio, the touchpad would get a mux error on resume, disconnect and reconnect itself and then get a different device node. It didn't bother me much, since the newer X versions can cope with changing device nodes. Anyway, Vojtech diagnosed this and added a DMI match for this machine to disable mux mode.

You can try if it also happens with "i8042.nomux" parameter.

Signature · 9 lines
Stefan Seyfried



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

A message that is not in the archive (sent off-list or not yet received): 20050927070427.GA4676-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org

#4 lore raw
Quoted 3 lines · Stefan Seyfried
Quoted 2 lines · John O'Hagan

So, my questions are: why does S3 suspend (and not S4) shuffle the devices

[...]

Quoted 5 lines
Quoted 4 lines

? I notice that the keyboard and
touchpad are initialized early in the boot process. Can they somehow be reinitialized after suspend? Is udev involved? Or is there a better solution?

Quoted 7 lines

I had something similar on a sony vaio, the touchpad would get a mux error on resume, disconnect and reconnect itself and then get a different device node. It didn't bother me much, since the newer X versions can cope with changing device nodes. Anyway, Vojtech diagnosed this and added a DMI match for this machine to disable mux mode.

You can try if it also happens with "i8042.nomux" parameter.

Thanks for your reply, Stefan. I tried the option you suggest, but for me it disables the touchpad completely. I tried again using the generic mouse driver - instead of synaptic - and this time S3 worked! Maybe because of my recent kernel upgrade. I then worked out how to switch off the stuck-on fan using echo 3 > /proc/acpi/fan/FAN/state.

All was well...but alas, this story has a tragic end! I soon started getting error messages to the effect that my file system had been remounted read-only. A reboot failed, and it was only after a long session with a rescue disk and a manual fsck, that I was able to boot again. There had been widespread filesystem corruption on / ; no data lost, but a lot of reconfiguring was required.

Just to be sure, I backed everything up carefully and tried again. This time, not only did resume fail (locked mouse and scrambled screen) , but the filesystem corruption occurred again, this time on my /home.

I don't think I will risk trying S3 again on my hardware until I can find some advice on how to protect against this kind of problem. Does anyone have any?

Thanks,

John

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl