On Wed, Nov 14, 2012 at 10:03:55PM +1000, adam wolter wrote: > Release 6.0.6 (squeeze) > i have the PowerPC version installed on a lampShade iMac G4. > LCD monitor brightness is controlled by function keys F1 and F2 which have > brightness markings. > it all works well. > i just want to know HOW so i can make similar support in ubuntu. > Volume controls work well also and i can find XF86 Keyboard Shortcuts. > "xdotool key XF86MonBrightnessDown" works also but there is no Keyboard > Shortcut for it ! > Can someone tell me how the F1 key is bound to XF86MonBrightnessDown ???? > please. Run the following: $ xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' (all one line. The initial $ is to show it's to be run as an ordinary user). That should pop up a little window, press Fn+F1 and then FN+F2 and see what codes you get out. You should get a pair of "Number Function" for each key. Next, add the following lines to "~/.Xmodmap": keycode 123 = XF86MonBrightnessUp keycode 124 = XF86MonBrightnessDown (replacing 123 and 124 with the appropriate numbers obtained above). Log out and restart X (or just reboot) and see if that works.
Attachment:
signature.asc
Description: Digital signature