Announcement Banner
UNSOLVED

devilkin

updated

21 years ago

D

devilkin

1 Message

0

28346

January 16th, 2006 07:00

Fixing the lid-switch problem (blank screen)

Hello all,

I've recently gotten a Dell D610 from work. When closing the lid, and opening again the screen remained blank.

After some digging, I came up with this script which restores the LCD when you open the lid.

It requires the ACPI VIDEO module loaded.

Create the file /etc/acpi/lidswitch.sh, with content:

#!/bin/sh
# /etc/acpi/lidswitch.sh
# Re-activates the screen when the lid is opened again

LID_STATE="/proc/acpi/button/lid/LID/state"
LCD_STATE="/proc/acpi/video/VID/LCD/state"

grep -q open $LID_STATE

if [ $? -eq 0 ]; then
echo 0x80000001 > $LCD_STATE
fi
[/code]

Put this in /etc/acpi/events/lidswitch:
# /etc/acpi/events/lidswitch
# This is called when the lid is closed or opened and calls
# /etc/acpi/lidswitch.sh for further processing.

event=button[ /]lid
action=/etc/acpi/lidswitch.sh


This effectively makes my LCD come back to life.

Jan