I've read somewhere the following hack to disable gnome-power-manager suspend and hibernate:
chmod -x /usr/share/acpi-support/suspendorhibernate Is it a correct hack or there is any other way of doing it? I just want to disable it because it works for me from acpi (using the following script) but not from gnome-power-manager. This means that it loads once and I can see the screen but for the second time the screen blanks and I can not use it until I reboot or hibernate. I've a lenovo W500 using intel (via VESA X11 driver). vpab...@****:/etc$ cat acpi/sleep.sh #!/bin/sh chmod -x /usr/share/acpi-support/suspendorhibernate # This script HANDLES the sleep button (does not TRANSLATE it). It is part # of the *suspend* side of acpi-support, not the special keys translation # side. If this script is called, it is assumed to be the result of a suspend # key press that can also be heard by other parts of the system. The only time # that it actually does something is when it is determined that no other parts # of the system are listening (this is what the CheckPolicy call does). test -f /usr/share/acpi-support/key-constants || exit 0 . /usr/share/acpi-support/policy-funcs # if [ `CheckPolicy` != 0 ]; then # # No power management daemons are running. Divert to our own implementation. # /usr/share/acpi-support/suspendorhibernate suspend # fi # /etc/acpi/displayonoff.sh ######!/bin/bash # FGCONSOLE=`fgconsole` chvt 8 sync hwclock --systohc echo -n "mem" > /sys/power/state hwclock --hctosys vbetool post if [ "$FGCONSOLE" -ge "7" ] ; then chvt $FGCONSOLE else chvt 7 chvt $FGCONSOLE fi Thanks, Victor -- unable to disable suspend without gconf-editor https://bugs.launchpad.net/bugs/46679 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
