Suspend/Resume issues - Custom scripts not running? Mouse frozen?
Hi. I recently installed Debian Lenny onto my Dell Studio XPS 16
laptop. I'm having issues getting resume to work properly. I can suspend, but when I resume and compiz was running, my screen shows up with only my cursor and some corrupted textures. I attempted to solve this by writing a script /etc/acpi/suspend.d/00-compiz.sh that executes the following: Code: #!/bin/sh killall compiz killall compiz.real xfwm4 and /etc/acpi/resume.d/99-compiz.sh Code: #!/bin/sh killall xfwm4 compiz --replace These scripts don't appear to be working, however. Manually killing compiz before suspending will show my screen as normal upon resume, but simply running pm-suspend, gnome-power-cmd, or /usr/share/acpi-support/suspendorhibernate won't. In both cases, my touchpad becomes completely unusable on resume. I tried to solve this by using another script: Code: #!/bin/sh modprobe -r psmouse echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind modprobe psmouse It doesn't work and I'm not sure what else to try. I'm not even sure if the scripts are running (how can I check?). Can anyone help? This issue is really the only one keeping me from using Linux permanently on my laptop. |
Suspend/Resume issues - Custom scripts not running? Mouse frozen?
On Thursday 19 February 2009 20:24:12 Alex Riebs wrote:
> It doesn't work and I'm not sure what else to try. I'm not even sure if the > scripts are running (how can I check?). You can check whether a script has run by adding a line similar to the following into each script: echo "This script has run" >/tmp/script.log If it runs, the file /tmp/script.log will show the evidence. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
Suspend/Resume issues - Custom scripts not running? Mouse frozen?
Alex Riebs wrote:
> Hi. I recently installed Debian Lenny onto my Dell Studio XPS 16 laptop. I'm > having issues getting resume to work properly. I can suspend, but when I > resume and compiz was running, my screen shows up with only my cursor and > some corrupted textures. I attempted to solve this by writing a script > /etc/acpi/suspend.d/00-compiz.sh that executes the following: > Code: pm-utils is the "default" power management suite when you are using HAL (via gnome-power-manager or kpowersave). You should write a script for pm-utils, not acpid. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? |
Suspend/Resume issues - Custom scripts not running? Mouse frozen?
Alex Riebs escribió:
> Hi. I recently installed Debian Lenny onto my Dell Studio XPS 16 laptop. I'm > having issues getting resume to work properly. I can suspend, but when I > resume and compiz was running, my screen shows up with only my cursor and > some corrupted textures. I attempted to solve this by writing a script > /etc/acpi/suspend.d/00-compiz.sh that executes the following: > Code: > > #!/bin/sh > killall compiz > killall compiz.real > xfwm4 > > and /etc/acpi/resume.d/99-compiz.sh > Code: > > #!/bin/sh > killall xfwm4 > compiz --replace > > These scripts don't appear to be working, however. Manually killing compiz > before suspending will show my screen as normal upon resume, but simply > running pm-suspend, gnome-power-cmd, or > /usr/share/acpi-support/suspendorhibernate won't. > > In both cases, my touchpad becomes completely unusable on resume. I tried to > solve this by using another script: > Code: > > #!/bin/sh > modprobe -r psmouse > echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind > echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind > modprobe psmouse > > It doesn't work and I'm not sure what else to try. I'm not even sure if the > scripts are running (how can I check?). > > Can anyone help? This issue is really the only one keeping me from using > Linux permanently on my laptop. > You should use /etc/pm/sleep.d for these purposes. For example, create a new file in /etc/pm/sleep.d/10key_issue with this content: #!/bin/sh case "$1" in hibernate|suspend) echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind ;; thaw|resume) echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind ;; *) exit $NA ;; esac Of course, you can replace the content with your needs. Don't forget to chmod +x once saved. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
| All times are GMT. The time now is 09:30 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.