Comment 39 for bug 41994

Revision history for this message
rmt (ubuntu-corporatism) wrote :

The xrandr method mentioned above isn't working for me .. so a little bit of a brute force method is a custom daemon to turn off the screen if the laptop lid is closed.. compile with "gcc -o lidcheck lidcheck.c". I wanted it in C to reduce the memory footprint, but of course a simple shell script does the job just as well. It simple checks if the lid is closed, and if it is, it calls "xset dpms force off" .. this will probably cause adverse effects if you're using an external monitor.

http://rmt.pastebin.com/f41781d13