Tuesday, June 04, 2013

[Linux][Mint][13][Lisa] Fix screen going blank when Laptop lid is closed

In my workplace they have Linux Mint 13 setup for the machines. I personally hate it and my employer too, so we will be shifting to some other Distro very soon, but in the mean time I had to make do with it. We have an extra display attached to every laptop. One of the things that bugs me the most is the "Power management" doesn't have any "Do nothing" option. And if you somehow (yes, there's a way) make it appear, it does the exact same thing as "Blank screen", so yeah, "Aw snap!!". It didn't take much of googling to find Mint forum page that solved the problem though [ http://forum.linuxmint.com/viewtopic.php?t=106532&f=208 ]
Basically the problem is caused by a faulty assumption in design. It always executes and Screen Blank instruction set, when you close the laptop lid. What you have to do is just comment out one line in the event handler script.
1. First open the file, you might need root rights to edit this, so use sudo if you need
/etc/acpi/lid.sh
2. The find the line
. /usr/share/acpi-support/screenblank
3. Comment that line out with
#
It should be fixed immediately.

No comments:

Post a Comment

Post your comment here. If you want to say something about programming problems, scripts, software etc, please try to be as descriptive as possible.

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...