unable to disable suspend without gconf-editor

Bug #46679 reported by Sean Kennedy
14
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: gnome-power-manager

I wanted to see if suspend worked on my computer, and so I turned it on via System > Preferences > Power Management. It turned out it doesn't work, so I wanted to remove it from the "Quit ..." dialog, but I couldn't find a way to do this without finding the appropriate settings using gconf-editor (something many users might not know to do).

If you can enable suspend from System > Preferences > Power Management, you should be able to disable it from there as well.

Revision history for this message
Richard Hughes (richard-hughes) wrote :

This is an ubuntu specific modification and so upstream does not have this problem. You'll have to get one of the ubuntu devs to look at this.

Revision history for this message
Caroline Ford (secretlondon) wrote :

new -> confirmed
medium ->wishlist

Changed in gnome-power-manager:
importance: Medium → Wishlist
status: New → Confirmed
Changed in gnome-power-manager:
assignee: nobody → ted-gould
Revision history for this message
Victor Pablos Ceruelo (vpablos) wrote :

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).

vpablos@****:/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

Ted Gould (ted)
Changed in gnome-power-manager (Ubuntu):
assignee: Ted Gould (ted) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.