APM & device_power_up/down
Hi all!
I've tried to contact Pavel Machek directly, but got no response from him, so I'm forwarding the letter to the list.
The problem is:
the patch, that was provided here: http://marc.theaimsgroup.com/?l=linux-kernel&m=107540713415651&w=2, prevents my laptop from suspending. Laptop is: Compaq Armada M700 and I'm using APM.
Tailing /var/log/messages I can see only 'User Suspend' and no error messages.
After pushing the suspend button my laptop turns off the screen and just freezes instead of suspending (the power is still on). The only thing I can do after that is to turn the power down.
This behaviuor was firstly noticed after upgrade from 2.6.1 to 2.6.2 (and 2.6.3 doesn't fix it).
So I decided to do a small investigation and discovered that when I remove calls to device_power_*() from apm.c, it works well. Of course, the problem can be in my laptop's BIOS or wherever, but, I repeat, it works well with 2.4.x & 2.6.1 and it doesn't with 2.6.2 & 2.6.3.
At this moment I can hardly understand why there is need to power down devices after suspend (shouldn't they be powered down in the suspend process?), but I'm not a kernel hacker. So, any help is appreciated.
---
WBR,
Antony Dovgal aka tony2001
[email protected] || [email protected]