I had a problem with my lid events which freezed my dell latitude x300, it's a problem of the video driver used by karmic and it could be solved by adding nomodeset as a kernel option.
grep nomode /boot/grub/menu.lst
kernel /boot/vmlinuz-2.6.31-22-generic root=/dev/sda6 ro nomodeset #init=/bin/bash
and shrinking the script used when lid is closed:
/etc/acpi/lid.sh #!/bin/bash
[ -x /etc/acpi/local/lid.sh.pre ] && /etc/acpi/local/lid.sh.pre
[ -x /etc/acpi/local/lid.sh.post ] && /etc/acpi/local/lid.sh.post
~
while using the following as /etc/acpi/local/lid.sh.pre
#!/bin/sh
if grep -q open /proc/acpi/button/lid/LID0/state
then /usr/sbin/vbetool dpms on
else /usr/sbin/vbetool dpms off
fi
Moreover you'll notice that your mouse is not visible when opening the lid back
To get rid of this last problem you can:
- wether switch between desktops
- or add the following to the /etc/X11/xorg.conf :
[...]
ciao alex
No comments:
Post a Comment