Quote:
Originally Posted by David Batson
Now if I can just figure out how to turn off the display backlight using Fn+F3 and radeontool - I will be all set.
|
Well, I finally cracked this nut.
I created the following file as root:
/etc/acpi/events/blank
Code:
event=ibm/hotkey HKEY 00000080 00001001
action=/etc/acpi/actions/blank.sh
I additionally created the this file as root:
/etc/acpi/actions/blank.sh
[Note that radeontool needs to be installed.]
Code:
#!/bin/bash
RADEONTOOL='/usr/sbin/radeontool'
STATUS=`$RADEONTOOL light|awk '/The radeon backlight looks / {print $5}'`;
if [ $STATUS == "on" ] ; then
$RADEONTOOL light off
elif [ $STATUS == "off" ] ; then
$RADEONTOOL light on
fi
Next I ran the command as root:
chmod +x /etc/acpi/actions/blank.sh
Then I ran the command as root:
chmod u+s /usr/sbin/radeontool
Finally, I found I needed to run this command as root for the hokey sequence to work:
/etc/rc.d/init.d/acpid restart
Now the hotkey combo Fn+F1 will turn off (and back on) the display backlight. Normally the hotkey combo Fn+F3 is used for this, but since Fedora invokes the screensaver and lock with Fn+F3, I decided to use the unused Fn+F1 combo. FYI, you can find out what keys are used for what in the file:
/usr/share/hal/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi
FWIW: A different option than using radeontool would be to use DPMS. See following for more info.
http://www.thinkwiki.org/wiki/How_to..._.28Standby.29
One difference I notice using DPMS is that the display backlight is turned back on by moving the mouse (TrackPoint). When using radeontool, the hotkey sequence Fn+F3 is needed to turn the display backlight back on (or off).
I also discovered an optional way for using a hotkey such as the "Access IBM" or "ThinkVantage" button to accomplish the same thing. Go to System > Preferences > Keyboard Shortcuts. Click on Add then for "Name" type a description such as Blank Screen in the top box, and for "Command" a command such as
/etc/acpi/actions/blank.sh in the bottom box and click on Apply. Next click on the right side for the Shortcut and press the applicable hotkey such as "Access IBM". It should now work.
FWIW, I notice the followiing webpage says radeontool should no longer be used, and instead "Backlight can be modified through sysfs". Great! But I have no idea how, and did not run across the necessary information in my searches on how to modify sysfs. Anyway, radeontool works fine for me. Radeontool is in Fedora 11's repos.
http://www.thinkwiki.org/wiki/Radeontool