I had this same issue with Karmic. It seems gnome-power-manager gets
confused when the laptop lid is closed and an external monitor is used
instead as the primary display. I wrote a script to set the monitor to
standby and I run it in System,Preferences,Startup Applications.
$ cat poweroffexternalmonitor.pl
#!/usr/bin/perl
#
# Workaround to put external monitor to standby.
# gnome-power-manager seems to get confused when the laptop lid is closed
# and an external monitor is used instead as the primary display
#
# Works with Ubuntu Karmic Koala 9.10 and later
# Change 'ActiveChanged' to 'SessionIdleChanged' for earlier Ubuntu versions
#
# @author pchung
#
my $cmd = "dbus-monitor --session
\"type='signal',interface='org.gnome.ScreenSaver', member='ActiveChanged'\"";
open (IN, "$cmd |");
while (<IN>) {
if (m/^\s+boolean true/) {
system("xset dpms force standby");
}
}
--
Power Manager Not putting Monitor to Sleep
https://bugs.launchpad.net/bugs/550054
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs