[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
   http://launchpadlibrarian.net/41102727/detect-external-display.c

-- 
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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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)
   Importance: Medium
 Assignee: Ubuntu Desktop Bugs (desktop-bugs)
   Status: Incomplete

** Changed in: gnome-power-manager (Ubuntu Lucid)
   Status: Incomplete = In Progress

** Changed in: gnome-power-manager (Ubuntu Lucid)
 Assignee: Ubuntu Desktop Bugs (desktop-bugs) = Martin Pitt (pitti)

** Tags added: regression-potential
** Tags removed: patch

** Summary changed:

- g-p-m acts when switching to console and back to x when lid is closed
+ suspends when switching to console and back to X when lid is closed

** Summary changed:

- suspends when switching to console and back to X when lid is closed
+ suspends when switching VTs when lid is closed

-- 
suspends when switching VTs 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 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


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.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 = Confirmed

-- 
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 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[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: gnome-power-manager (Ubuntu)
   Status: Confirmed = Incomplete

** Changed in: gnome-power-manager (Ubuntu)
 Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs)

-- 
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
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs