James has a good point that desktops don't get lid closed events.  The
patch in comment #1 is an interesting way to use that fact.  Does the
code in question only occur within the context of a lid close event?  If
so, then it might be a contender to work around the problem.

The patch in comment  #11 is simpler; it simply treats all "default"
(unknown) monitors as laptops.  I'm not sure that's reliably true in all
cases (I suspect monitors with corrupt or missing edid might show up as
default).  The patch would be better if it only tested for "default" if
the RANDR level was <1.2 (which is the case for -nvidia; all other
common X drivers provide 1.2 or 1.3 support).

Ideally upstream would provide a fix for this, but it is a serious
regression so think we need to consider working around it in the distro
for the release.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/949296

Title:
  gnome-settings-daemon always prevents suspend when proprietary nvidia
  drivers are used.

Status in Gnome Settings Daemon:
  Unknown
Status in OEM Priority Project:
  Confirmed
Status in OEM Priority Project precise series:
  Confirmed
Status in “gnome-settings-daemon” package in Ubuntu:
  Triaged

Bug description:
  1. Ubuntu precise (development branch) 12.04
  2.   Installed: 3.3.91-0ubuntu2
    Candidate: 3.3.91-0ubuntu2
    Version table:
   *** 3.3.91-0ubuntu2 0
          500 http://ro.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  3. 

  When closing the lid, the machine (MacbookPro 5,3) doesn't suspend.
  Using suspend from the power menu, or using pm-suspend works fine. The
  lid action is detected fine, and upower reports lid close correctly.

  Running gnome-settings-daemon --debug gives me the following output:

  --

  ** DEBUG: Syncdaemon not running, waiting for it to start in NameOwnerChanged
  === Applying Configuration Configuration ===
    Clone: false
    Output: Unknown attached to default
       status: on
       width: 1440
       height: 900
       rate: 50
       primary: true
       position: 0 0
  power-plugin-DEBUG: keyboard toggle on
  power-plugin-DEBUG: lid is closed; not suspending nor hibernating since some 
external monitor outputs are still active
  ** DEBUG: Updating client: index=43 name='gnome-settings-daemon'
  ** DEBUG: Updating client: index=43 name='gnome-settings-daemon'
  ** DEBUG: Updating sink: index=0 
name='alsa_output.pci-0000_00_08.0.analog-stereo' description='Built-in Audio 
Analog Stereo' map='front-left,front-right'

  --

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/949296/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to