Wednesday, March 16, 2011

dell latitude x300 ubuntu karmic and lid problem

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: 

[ -x /etc/acpi/local/ ] && /etc/acpi/local/
[ -x /etc/acpi/local/ ] && /etc/acpi/local/
while using the following as /etc/acpi/local/
if grep -q open /proc/acpi/button/lid/LID0/state
  then /usr/sbin/vbetool dpms on
  else /usr/sbin/vbetool dpms off

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 :
Section "Device" Option "HWCursor" "False"

ciao alex 

No comments:

Post a Comment