Hey all,
I got suspend2 to work on my very old laptop; and I'm so amazed and happy you cannot believe.
Now I can do 'hibernate' gnu/linux style and not rely on my motherboards hibernate feature...which is awesome, cuz I get back 600 meg of hard drive space that compaq makes you designate for hibernate.
I'd post what I did, but, I want to dump my pc and do it again to be sure
In time I may, but my pc uses "APM" and "ACPI" so I'm not sure how I'd write the tutorial.
I only have two minor issues as a result of suspend2:
One is my sound volume is muted...which is fine, I just put on my flux menu a command to /etc/rc.d/rc.alsa restart and I'm fine. It must be that suspend2 does not check asound.state on resume. No big deal.
The only other issue, which is a minor annoyance really, but I'd like to see if I can fix it is the following:
Would I need to recompile a kernel to do the following for my touchpad?
According to the touchpad driver's documentation,
Quote:
* The driver says "reset failed" and the touchpad doesn't work. What
can I do?
This problem has been reported for some Compaq models. It's
currently not known why it happens, but removing the reset command
from the driver appears to make it work. If you use a 2.4 linux
kernel, replace the contents of the ps2_synaptics_reset() function
in ps2comm.c with a "return TRUE;" statement. If you use a 2.6
linux kernel, remove the while loop in synaptics_query_hardware()
in the file drivers/input/mouse/synaptics.c in the linux kernel
source code.
|
This issue doesn't happen if I use compaq's hibernate feature, but it's the only flaw I have with suspend2. I don't lose my touchpad, but I do lose tap and drag, and the bottom right of the touchpad being a right click. Not really a big deal, as the laptop has mouse buttons.
So when this happens to me after every hibernate/suspend, and since I run fluxbox, I can just (ctrl alt bckspce) and be back into flux in under 30 seconds; then all of my touchpad features are back.
And believe me 30 seconds to restart "X" and 10 seconds to resume from hibernate is much better than the 6 minutes it takes for my laptop to come into "X" from being powered off
And my laptop takes 4 minutes to power off LOL so you can see why I'm interested in hibernate mode
If I want to do this fix as described in the readme file of the touchpad driver, do I simply edit that file in a text editor, hit save and I'm done? Or do I need to edit the file and recompile my kernel. Or do I need a fancy program to edit a 'c' file.
I believe that this section here is the part of the file that the readme want's me to modify.
Quote:
static int synaptics_query_hardware(struct psmouse *psmouse)
{
int retries = 0;
while ((retries++ < 3) && psmouse_reset(psmouse))
printk(KERN_ERR "synaptics reset failed\n");
if (synaptics_identify(psmouse))
return -1;
if (synaptics_model_id(psmouse))
return -1;
if (synaptics_capability(psmouse))
return -1;
return 0;
}
|
Do I just put # signs and comment out that whole line? And save.
Any feedback greatly appreciated.