g-p-m postinst should use 'pmi capabilities' to seed can_suspend

Bug #47303 reported by Philipp Kern
12
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/acpi-support due to acpi-support being !powerpc, it remains very unclear how to proceed.

Pitti suggested on IRC that a recent g-p-m upload broke it for new installs.

Revision history for this message
Paul Sladen (sladen) wrote :

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
    configure)
        if [ -r /usr/share/acpi-support/device-funcs ]; then
           . /usr/share/acpi-support/device-funcs
           DeviceConfig
        fi
        if [ "x$ACPI_SLEEP" = "xtrue" ]; then
            gconftool-2 --direct \
                        --config-source xml:readwrite:/var/lib/gconf/defaults \
                        --set --type bool \
                        /apps/gnome-power-manager/can_suspend true

...otherwise, it sets it as false. g-p-m doesn't even call 'pmi capabilities' to enquiry...

Changed in gnome-power-manager:
status: Unconfirmed → Needs Info
status: Needs Info → Confirmed
Revision history for this message
Philipp Kern (pkern) wrote :

I did a manual edit of the can_suspend gconf key yesterday after I reported the bug. The machine did suspend and wake just fine, still a bubble is shown that "the machine failed to suspend correctly".

Revision history for this message
Philipp Kern (pkern) wrote :

Changing the Sleep Button Action shows the same "Do you really want to enable Suspend" dialog like when I toggle can_suspend in gconf-editor. I do not have a sleep button, though and the power button just toggles the generic Quit dialog. Suspend on lid close doesn't yet work neither.

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.