#!/bin/bash
if [ ! "$(cat /proc/acpi/button/lid/LID/state | grep open)" = "" ]; then
vbetool dpms on
fi
5. ln -s lid.sh.new lid.sh
In nutshell, replace the current lid.sh with the snippet above (it comes from gentoo as far as I remember). Note that this step may harm your computer; if a new ubuntu supported lid.sh is installed by system manager, some unseen problem can occur
I have a workaround, use it with precaution:
1. sudo bash
1.1 apt-get install vbetool
2. cd /etc/acpi
3. mv lid.sh lid.sh.orig
4. cat > lid.sh.new
#!/bin/bash button/ lid/LID/ state | grep open)" = "" ]; then
if [ ! "$(cat /proc/acpi/
vbetool dpms on
fi
5. ln -s lid.sh.new lid.sh
In nutshell, replace the current lid.sh with the snippet above (it comes from gentoo as far as I remember). Note that this step may harm your computer; if a new ubuntu supported lid.sh is installed by system manager, some unseen problem can occur