Deactivating LVDS display when laptop lid is closed

Orion Poplawski orion at cora.nwra.com
Tue Jul 6 23:03:53 UTC 2010


Apparently[1] it is up to the desktop environment now to deactivate the LVDS 
display if the laptop lid is closed at boot (or whenever?).  I now have 
several F13 laptops in docks with external monitors that boot with the lid 
closed, but kdm_greet puts the login panel on the closed LVDS display (see 
bug[2]).  I've also filed a Fedora bug for similar stuff here [3].  I don't 
know how gdm behaves.

Any other comments/help?  I tried doing:

# Disable LVDS if another output is up
if xrandr --current | grep -qE '^(DVI|VGA).* connected'
then
    lvds=$(xrandr --current | awk '$1 ~ /LVDS/ { print $1 }')
    xrandr --output $lvds --off
fi

in /etc/kde/kdm/Xsetup, but kdm_greet appears to get stuck in an infinite loop 
and I only see the small round black spinner cursor, never the login panel.

I thought about posting to the Fedora KDE list, but I'd like to get some wider 
input.

1 - https://bugs.freedesktop.org/show_bug.cgi?id=28936
2 - https://bugs.kde.org/show_bug.cgi?id=243807
3 - https://bugzilla.redhat.com/show_bug.cgi?id=539180

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the devel mailing list