Thinkpad X21 & Debian - how to turn off LCD backlight?
Thinkpad X21 & Debian - how to turn off LCD backlight?
I'm using a Thinkpad X21 with Debian Squeeze as a server (irc bouncer etc.). I'd like to turn the display backlight off to save power and the backlight CCFL tubes itself but I haven't found a way to do so.
The screen goes blank automatically after some time but the backlight still stays on.
DPMS via xset does not work because X is not installed.
Fn+F3 should turn the LCD off but it doesn't work. I think I saw some bug reports for thinkpad-acpi about this problem.
The commands:
setterm -powersave powerdown
and
setterm -powerdown 5 (note: 5 minute timeout)
...don't seem to work either.
Is there a way to do it at all? Or do I just have to keep it on, brightness at minimum? What should the BIOS setting "Screen Blanking" (enabled/disabled) do? I think changing it didn't have any effect.
The screen goes blank automatically after some time but the backlight still stays on.
DPMS via xset does not work because X is not installed.
Fn+F3 should turn the LCD off but it doesn't work. I think I saw some bug reports for thinkpad-acpi about this problem.
The commands:
setterm -powersave powerdown
and
setterm -powerdown 5 (note: 5 minute timeout)
...don't seem to work either.
Is there a way to do it at all? Or do I just have to keep it on, brightness at minimum? What should the BIOS setting "Screen Blanking" (enabled/disabled) do? I think changing it didn't have any effect.
Re: Thinkpad X21 & Debian - how to turn off LCD backlight?
You are correct about Fn + F3 being the key combo to blank the LCD. But since it's an ACPI event it doesn't seem to work with newer kernels. At least it doesn't for me running Xubuntu 12.04 on a T43.
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
Re: Thinkpad X21 & Debian - how to turn off LCD backlight?
Here is how I do it in Arch XFCE with xset...
Using xev, I saw that Fn+F3 is mapped to XF86Battery.
I created the following file /etc/acpi/actions/blank.sh as root and made it executable.
I created a keyboard shortcut (an option in XFCE: Applications Menu > Settings > Keyboard > Application Shortcuts).
Command: /etc/acpi/actions/blank.sh
Shortcut: XF86Battery
Fn+F3 now turns off the backlight. Moving the trackpoint or pressing a keyboard key turns the backlight back on.
FWIW, for other Fn+F* keys that aren't already mapped and create only an acpi event, I have a corresponding file in /etc/acpi/events/
ACPI events can be seen by running acpi_listen from terminal.
One example is how I turn on and off bluetooth with Fn+F9.
/etc/acpi/events/bluetoothconf
/etc/acpi/actions/bluetooth.sh
Another example is how I connect and disconnect my home WiFi profile with Fn+F11.
/etc/acpi/events/netcfg_home-wirelessconf
/etc/acpi/actions/netcfg_home-wireless.sh
Using xev, I saw that Fn+F3 is mapped to XF86Battery.
Code: Select all
KeyPress event, serial 41, synthetic NO, window 0x2e00001,
root 0xb0, subw 0x0, time 382189, (797,429), root:(803,503),
state 0x10, keycode 244 (keysym 0x1008ff93, XF86Battery), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x2e00001,
root 0xb0, subw 0x0, time 382189, (797,429), root:(803,503),
state 0x10, keycode 244 (keysym 0x1008ff93, XF86Battery), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseCode: Select all
#! /bin/sh
/usr/bin/xset dpms force offCommand: /etc/acpi/actions/blank.sh
Shortcut: XF86Battery
Fn+F3 now turns off the backlight. Moving the trackpoint or pressing a keyboard key turns the backlight back on.
FWIW, for other Fn+F* keys that aren't already mapped and create only an acpi event, I have a corresponding file in /etc/acpi/events/
ACPI events can be seen by running acpi_listen from terminal.
Code: Select all
$ acpi_listen
button/f24 F24 00000080 00000000 K
button/fnf11 FF11 00000080 00000000 K/etc/acpi/events/bluetoothconf
Code: Select all
event=button/f24.*
action=/etc/acpi/actions/bluetooth.shCode: Select all
#!/bin/bash
BT_RFKILL=$(rfkill list | grep tpacpi_bluetooth_sw | sed 's/\([0-9]\+\):.*/\1/')
BT_STATE=$(/usr/sbin/rfkill list $BT_RFKILL | grep "Soft blocked: yes")
if [ "x" == "x$BT_STATE" ]; then
/usr/sbin/rfkill block $BT_RFKILL
else
/usr/sbin/rfkill unblock $BT_RFKILL
fi
exit 0/etc/acpi/events/netcfg_home-wirelessconf
Code: Select all
event=button/fnf11.*
action=/etc/acpi/actions/netcfg_home-wireless.shCode: Select all
#!/bin/bash
WLAN_STATE=$(netcfg current)
if [ "x" == "x$WLAN_STATE" ]; then
/usr/bin/netcfg home-wireless
else
/usr/bin/netcfg -a
fi
exit 0DKB
Re: Thinkpad X21 & Debian - how to turn off LCD backlight?
Some very useful info here, DKB! 
Collection = T500 - R400 - X300 - X200 - T61 (14" WXGA+) - T61 (14.1" SXGA+) - T60 (15" SXGA+) - X40 - T43p - T43 - T42p - A30P - 600E
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 394 Views
-
Last post by Omineca
Tue May 16, 2017 8:06 am
-
-
T420s i7 with backlight but no image - bad cable or LCD?
by ji2o0k » Wed Feb 15, 2017 11:56 am » in ThinkPad T400/410/420 and T500/510/520 Series - 3 Replies
- 872 Views
-
Last post by ji2o0k
Tue Feb 21, 2017 10:15 am
-
-
-
ThinkPad T43/p in T41p casing - cannot turn back on after shutdown with charger left plugged
by kfzhu1229 » Wed Feb 01, 2017 1:38 am » in ThinkPad T4x Series - 2 Replies
- 1298 Views
-
Last post by kfzhu1229
Wed Feb 01, 2017 8:20 am
-
-
-
ThinkPad X1 Carbon 1st gen wont turn on
by servis_null » Tue May 30, 2017 3:51 pm » in ThinkPad X1/X1C - 7 Replies
- 320 Views
-
Last post by Thinkpad4by3
Mon Jun 05, 2017 9:41 pm
-
Who is online
Users browsing this forum: No registered users and 1 guest





