0. UPDATES
Added "" around the parameter $1 for compatibility as pointed out by mikkle.
1. WHO IS THIS FOR
This HOWTO applies to laptops based on Intel chipset which have their keyboard and/or touchpad connected to i8042 controller. You could find if you have one of those by running:
If this spits anything then you do have an i8042 controller.Code:sudo lshal | grep i8042
USE IF:
This HOWTO will most probably help you IF:
Your laptop resumes/thaws with frozen keyboard and/or touchpad AND a newly connected USB mouse/keyboard works AND your laptop has an i8042 controller.
This HOWTO MAY help you IF:
You don't know if you have i8042 controller and your laptop exhibits the aforementioned behaviour. You can try and see if it fixes your problem. Report back if it did.
DO NOT USE IF:
This HOWTO will NOT help you IF:
Your laptop resumes AND newly connected USB keyboard/mouse DO NOT work.
In this case you probably suffer from a resume failure which causes your whole system to be frozen.
This HOWTO will NOT help you IF:
Your touchpad and/or keyboard do not work at all after a fresh boot.
In this case you probably have a problem related to i8042 but NOT this one. There are people around who have ideas on workarounding that. Use the amazing Search button of these forums. You might find a miracle!
2. WHAT THE PROBLEM CONSISTS OF
This is a bug somehow related with the i8042 controller found in many Intel based laptops on the market. I do not know why it happens and how exactly the bug works but I know how to workaround it.
This bug appeared in Intrepid Ibex for me and this workaround circulated in the forum at that time in one form or another. Later it disappeared in Jaunty for me so I have completely forgotten about it until now. In Karmic it presents itself in exactly the same way as in Intrepid which is as follows:
2.1. Suspend/Hibernate the laptop
2.2. Resume/Thaw the laptop
2.3. Repeat until the keyboard and/or touchpad is frozen
3. HOW TO FIX IT
In order to fix this we need to unbind the controller on suspend/hibernate and later re-bind it on resume/thaw. Pm-utils provides us with a framework which can execute shell scripts on suspend/hibernate/resume/thaw. Our solution is in the form of one such script and all we need to do is - put it in the right place for Pm-utils to execute. We do that following these steps:
3.1. Download the script:
>>Download<< Save it to your home folder. The following instructions assume that.
3.2. Open a Terminal (GNOME: Alt+F2 > gnome-terminal) and go to your home directory:
3.3. Make the script executable:Code:cd ~
3.4. Move it to the Pm-utils user hooks folder:Code:chmod +x 01i8042
DONECode:sudo mv 01i8042 /etc/pm/sleep.d/
4. EXPECTED RESULTS
Your laptop should no more resume/thaw with frozen keyboard and/or touchpad.



Adv Reply



Bookmarks