You are not logged in.

#1 2007-03-07 18:56:58

From: Stuttgart - Germany
Registered: 2006-08-11
Posts: 74

IBM Thinkpad X20 acpi problem

Hi everybody,
i want to set up my acpi right on my X20. What i want is that my IBM X20 goes to sleep when i close
the lid but thats never happend its running with full power after close the lid :-(. No acpi event
in the log. What can i do to get it working.
I got default configs for acpi (
Maybe someone got a hint or a link for me.



#2 2007-03-08 08:14:13

From: Stuttgart - Germany
Registered: 2006-08-11
Posts: 74

Re: IBM Thinkpad X20 acpi problem

i can answere the question by my one now wink. After google a lot and do a lot of experimatels, i have sleep mode now wink.

What i have done (maybe someone else can use it) is the following

nano /etc/acpi/evends/lm_lid

there i changed the line

actions to
action=/etc/acpi/actions/ %e

after this i created the file /etc/acpi/actions/ with the following context


# if launched through a lid event and lid is open, do nothing
echo "$1" | grep "button/lid" && grep -q open /proc/acpi/button/lid/LID/state && exit 0

# remove USB 1.1 driver
rmmod uhci_hcd

# sync filesystem and clock
/sbin/hwclock --systohc

# switch to console
chvt 6
/usr/sbin/radeontool light off

# go to sleep
sleep 5 && echo -n "mem" > /sys/power/state

# readjust the clock (it might be off a bit after suspend)
/sbin/hwclock --adjust
/sbin/hwclock --hctosys

# reload USB 1.1 driver
modprobe uhci_hcd

# turn on the backlight and switch back to X
radeontool light on

the script i found on the thinkpad wiki.

After this restart acpid and happy it works wink. One thing i added also is when i press the Power Button my ibm is going to hibernate with the following code

find there this part and chenge it to this:

nano /etc/acpi/

                #echo "PowerButton pressed!">/dev/tty5
                case "$2" in
                        PWRF)   sudo hibernate;;
                        *)    logger "ACPI action undefined: $2" ;;


Last edited by espo (2007-03-08 08:16:04)


Board footer

Powered by FluxBB