Laptop suspend fix for Beryl (KDE-3D)
I've tried a lot of Linux distributions over the past years but have stuck with Mepis because it not only provides a stable platform, but allows experimenters like me to try new kernels and new software without breaking they system.
I'm currently running Mepis 6.0rc1, updated via Synaptic to Mepis 6.5 with the 2.6.20 kernel, which I've found to be very stable. I was pleased to see I could add Beryl and get all the neat 3-D features, which I've found actually do help me keep my desktop organized!
However, I was dismayed to see that suspend-to-ram didn't work on my Lenovo T-43 when running KDE-3D and Beryl, even though it worked fine on plain KDE. Often the computer would come up with either a black screen, requiring a hard reset, or it started with the KDE login prompt after destroying my last session, defeating the whole purpose of suspending!
If you are experiencing the same problem, visit:
http://ubuntuforums.org/showthread.php?t=350265
This solution works for Mepis with one small change:
On my system, the /etc/acpi/suspend.d/ didn't exist. Use mkdir or right-click in Konqueror to create this directory (folder) in /etc/apci/
Use Kate, Zile or your favorite text editor to create the file
25-beryl-suspend.sh in the suspend.d director.
Copy and paste the script from the web page into this file. The last line should be:
export BERYLMGRPIDS="$pids"
Before closing the editor, change the line:
for pid in `pidof /usr/bin/beryl-manager`
to
for pid in `pidof /usr/bin/beryl`
Change to the /etc/acpi/resume.d directory, which should already exist, and create the text file
99-beryl-resume.sh
Copy and paste the script starting with:
#!/bin/bash
# /etc/acpi/resume.d/99-beryl-resume.sh
...through...
done
and paste it into the file (/etc/acpi/resume.d/99-beryl-resume.sh)
This worked fine on my laptop. If you get a black screen after resuming, it may be necessary to tap a key to get the password prompt to appear if you've configured X to require a password on resume.
Many thanks to "BoyBlunder" for this fix!!
...dl



