[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-17 Thread Torsten Spindler
The attached source checks via xrandr if an external display is connected (named VGA or DVI). It does not work with drivers that don't provide xrandr interface, e.g. the binary driver from nvidia. ** Attachment added: detect-external-display.c

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-17 Thread Torsten Spindler
Attached is the Makefile. Please let me know if this is the right direction for resolving the issue. ** Attachment added: Makefile http://launchpadlibrarian.net/41102756/Makefile -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-17 Thread Martin Pitt
This worked fine in Karmic, and I can perfectly reproduce this on my workstation on current lucid. I'll take a look at it. I already fixed a bug with similar symptoms back in karmic, seems this broke again in a slightly different way. ** Also affects: gnome-power-manager (Ubuntu Lucid)

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-12 Thread Torsten Spindler
It is not completely clear to me how to use xrandr to detect multiple displays. On the command line it looks like the following will see if an external display is connected: $ xrandr | grep connected | grep -v disconnected | egrep VGA|DVI -- g-p-m acts when switching to console and back to x

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-11 Thread Torsten Spindler
The attached patch prevents a system from going to sleep when lid is closed and it is docked. It contains a lot of debug output, just in case. ** Patch added: 19-fix-docking.patch http://launchpadlibrarian.net/40808957/19-fix-docking.patch -- g-p-m acts when switching to console and back to

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-11 Thread Chris Coulson
Thanks, but the patch seems quite a hacky solution, and very specific to your hardware too (eg, I don't even have a /sys/devices/platform/dock.0/docked when my laptop is docked). A more robust check would be to see if there are any external monitors connected. -- g-p-m acts when switching to

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-11 Thread Brian Murray
** Tags added: patch -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list

Re: [Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-03-11 Thread Torsten Spindler
Checking for a display could be done with xrandr. I'll have a look at it. -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee.

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-02-18 Thread Hans-Gerd van Schelve
Attached the requested debug output. ** Attachment added: gpm.log http://launchpadlibrarian.net/39354424/gpm.log -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465 You received this bug notification because you are a member of

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-02-17 Thread Torsten Spindler
Setting the bug to confirmed after seeing it on two different systems. ** Summary changed: - g-p-m acts when switching to console and back to x + g-p-m acts when switching to console and back to x when lid is closed ** Changed in: gnome-power-manager (Ubuntu) Status: Incomplete =

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-02-17 Thread Torsten Spindler
After killing gnome-power-manager the problem disappears. -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager

[Bug 515465] Re: g-p-m acts when switching to console and back to x when lid is closed

2010-02-17 Thread Chris Coulson
Thank you for your bug report. Please run killall gnome-power-manager gnome-power-manager --verbose 21 | tee ~/gpm.log, then trigger the issue and attach the resulting log file here. Thanks ** Changed in: gnome-power-manager (Ubuntu) Importance: Undecided = Medium ** Changed in: