"suspend" keyboard shortcut does not work

Bug #490704 reported by Alexey Spiridonov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Fix Released
Medium
gnome-settings-daemon (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: compiz

To reproduce:
1) Go to System -> Preferences -> Keyboard Shortcuts
2) Find the entry for suspend, and choose some shortcut.
3) Press the shortcut.

What I see: The screen briefly goes blank, and then returns within a second. There is no report of any attempt to suspend in .xsession-errors or in dmesg, or dbus-monitor. I don't think the suspend command is being run correctly by the shortcut, because when I choose Suspend from the panel menu (fast user switching applet, aka indicator-applet-session), it works.

A workaround:
1) Install compizconfig-settings-manager
2) Open the "Commands" preference panel.
3) Enter, e.g., for command line 0:
dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock ; dbus-send --print-reply --system --dest=org.freedesktop.DeviceKit.Power /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
(you may omit the first command if you don't want the screen to lock)
4) Switch to the Key Bindings tab, and define a key binding for the corresponding command.

ProblemType: Bug
Architecture: amd64
CompizPlugins: [core,move,resize,place,decoration,animation,ccp,dbus,mousepoll,gnomecompat,png,svg,imgjpeg,text,commands,neg,video,wall,snap,scale,scaleaddon,expo,staticswitcher,regex,resizeinfo,workarounds,ezoom,vpswitch,extrawm,fade,session]
Date: Mon Nov 30 23:00:28 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: Apple Inc. MacBookPro5,1
NonfreeKernelModules: wl nvidia
Package: compiz 1:0.8.4-0ubuntu2
PackageArchitecture: all
PciDisplay: 02:00.0 VGA compatible controller [0300]: nVidia Corporation G96 [GeForce 9600M GT] [10de:0647] (rev a1)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-15-generic root=UUID=cbb3b5a0-7470-40a4-977b-fc110c9d4919 ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu7
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel 2:2.9.0-1ubuntu2
 xserver-xorg-video-ati 1:6.12.99+git20090929.7968e1fb-0ubuntu1
SourcePackage: compiz
Uname: Linux 2.6.31-15-generic x86_64
dmi.bios.date: 02/03/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP51.88Z.007E.B00.0902031928
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F42D86A9
dmi.board.vendor: Apple Inc.
dmi.board.version: Proto
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 8
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F42D86A9
dmi.modalias: dmi:bvnAppleInc.:bvrMBP51.88Z.007E.B00.0902031928:bd02/03/09:svnAppleInc.:pnMacBookPro5,1:pvr1.0:rvnAppleInc.:rnMac-F42D86A9:rvrProto:cvnAppleInc.:ct8:cvrMac-F42D86A9:
dmi.product.name: MacBookPro5,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
system: distro = Ubuntu, architecture = x86_64, kernel = 2.6.31-15-generic

Revision history for this message
Alexey Spiridonov (snarkmaster) wrote :
Revision history for this message
Travis Watkins (amaranth) wrote :

Does running this command from a terminal successfully suspend your computer? Does putting `sh -c "dbus-send --print-reply --system --dest=org.freedesktop.DeviceKit.Power /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend"` in compiz (strip the backticks) work?

Changed in compiz (Ubuntu):
status: New → Incomplete
Revision history for this message
Alexey Spiridonov (snarkmaster) wrote :

Travis, that's exactly the same command, modulo "sh -c", as what I listed in my "Workaround" section. Of course it works from the command line! (Yes, I tested) There is no need to wrap it in "sh -c" for compiz, because it already executes its commands through a shell.

I don't understand what you were getting at, but the answer is yes.

Revision history for this message
Travis Watkins (amaranth) wrote :

Ah, I misunderstood. In that case, does it work when you use metacity instead of compiz? I'm pretty sure gnome-settings-daemon handles that shortcut so it should be WM independent.

Revision history for this message
Alexey Spiridonov (snarkmaster) wrote :

You're right. I see exactly the same behavior when running metacity -- screen blanks momentarily (something like DPMS force off), and everything comes back.

affects: compiz (Ubuntu) → gnome-settings-daemon (Ubuntu)
Revision history for this message
Victor Vargas (kamus) wrote :

I can confirm this issue using a fully updated version of karmic. Additionally I will attach the link to upstream in that way we can follow status for this problem.

Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for sent it upstream, the upstream bug was marked as duplicate of bug https://bugzilla.gnome.org/show_bug.cgi?id=170175 ; which I'm linking right now, thanks all.

Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This is fixed upstream now.

Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package gnome-settings-daemon - 2.29.5-0ubuntu1

---------------
gnome-settings-daemon (2.29.5-0ubuntu1) lucid; urgency=low

  * New upstream version (LP: #508216)
    - Fix variant handling in $GDM_KEYBOARD_LAYOUT (Martin Pitt) (#596897)
    - Tighten check for XInput (Jens Granseuer)
    - Fix bluriness in level bar, and popup (Bastien Nocera) (#567249)
    - Remove unused variable (Bastien Nocera) (#599904)
    - Honour libexecdir when spawning gsd-locate-pointer (Jens Granseuer)
      (#599209)
    - Allow left-handed setting for touchpads (Peter Hutterer) (LP: #479968)
    - Use a rounded instead of curved rectangle (William Jon McCann)
    - Improve the media keys overlay design (William Jon McCann) (#596136)
    - Add brightness to the media-keys popup (Bastien Nocera) (#599677)
    - Fix for GSEAL goal (Bastien Nocera) (#599861)
    - Avoid volumes going over 100% (Bastien Nocera) (#600770)
    - Make OSD display more generic (Bastien Nocera) (#600951)
    - Support loading -rtl and -ltr variants of icons (Bastien Nocera)
      (#600984)
    - Relicense gsd-media-keys-window.[ch] to LGPL (Bastien Nocera) (#600986)
    - Hide the status icon before unreffing it (Matthias Clasen) (#601696)
    - Make eject behave better on OpenBSD (Jasper Lievisse Adriaanse)
      (#598573)
    - Export libexecdir in .pc file (DJ Lucas) (#596388)
    - Run gnome-color-manager apply program when the outputs change
      (Richard Hughes)
    - Factor out function to get keycodes from keysym names (Federico Mena
      Quintero)
    - Handle the XF86RotateWindows hotkey by rotating a laptop's display
      (Federico Mena Quintero)
    - Respond to monitor configuration changes when in charge (Matthias
      Clasen) (#601203)
    - Filter invalid layouts before looking for the index of one passed by
      gdm (Vincent Untz) (#585868)
    - Add linsysfs to list of virtual filesystems (Coleman Kane) (#604396)
    - Remove sleep keybindings (Bastien Nocera) (LP: #490704, GNOME: #170175)
    - Start an on-screen-display window (OSD) (Federico Mena Quintero)
    - Split the composited and non-composited code for the expose-event
      handler (Federico Mena Quintero)
    - Use a hand-drawn frame instead of a GtkBuilder frame (Federico Mena
      Quintero)
    - Using GkbdStatus for the automatic notification icon (Sergey V.
      Udaltsov) (LP: #498839)
    - Implement popup menu for the notification icon (Sergey V. Udaltsov)
    - Add extra API required by GsdMediaKeysWindow (Federico Mena Quintero)
    - Add timed exit option (William Jon McCann)
    - Fixes for new libxklavier (Sergey V. Udaltsov)
  * debian/control:
    - Bump libxklavier-dev build-dep to >= 5.0
    - Bump libgnomekbd-dev build-dep to >= 2.29.5
  * Refreshed patches:
    - 02_fix_randr.patch
    - 02_missing_libs.patch
    - 30_pkgconfig-path.patch
    - 70_migrate_touchpad_config.patch
    - 90_autoreconf.patch
  * Dropped patches merged upstream:
    - 03_gdm_keyboard_variant_handling.patch
    - 91_gsd_locate_pointer_path_fix.patch
  * Re-written 16_use_synchronous_notifications.patch - the patch now has
    the more generic parts split in to plugins/common, as th...

Read more...

Changed in gnome-settings-daemon (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnome-settings-daemon:
importance: Unknown → Medium
status: Unknown → Fix Released
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.