g-p-m postinst should use 'pmi capabilities' to seed can_suspend
Bug #47303 reported by
Philipp Kern
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I just installed Dapper from scratch on an iBook through its installer. There are no menu items regarding suspend-to-RAM shown in the Gnome logout dialog. As I cannot just modify /etc/default/
Pitti suggested on IRC that a recent g-p-m upload broke it for new installs.
To post a comment you must log in.
What happens if you go:
System- >Preferences- >Power Management
General->Sleep Button Action = Suspend.
gnome-power-manager is utterly, utterly broken in this respect:
/var/ lib/dpkg/ info/gnome- power-manager. postinst
case "$1" in acpi-support/ device- funcs ]; then acpi-support/ device- funcs
DeviceConfi g
gconftool- 2 --direct \
--config- source xml:readwrite: /var/lib/ gconf/defaults \
--set --type bool \
/apps/ gnome-power- manager/ can_suspend true
configure)
if [ -r /usr/share/
. /usr/share/
fi
if [ "x$ACPI_SLEEP" = "xtrue" ]; then
...otherwise, it sets it as false. g-p-m doesn't even call 'pmi capabilities' to enquiry...