brightness keys
Oguz Yarimtepe
comp.ogz at gmail.com
Thu Jun 26 05:56:39 UTC 2008
Hi,
I was trying to set up my brightness keys on my laptop. They are fn+f5
for brightness up and fn+f4 for down. When i press them i can see the
bar that shows the increase and decrease of birghtness but there is n
change at the backlight of my screen. Then i checked the xev output
for those keys and saw the NoSymbol info so i added keysym info to the
xmodmap.conf file. Now i can see that the keycode is attached to
keysym also to an action.
# tail -f /var/log/acpid
[Thu Jun 26 08:47:19 2008] received event "video DD03 00000086 00000000"
[Thu Jun 26 08:47:19 2008] notifying client 5561[0:0]
[Thu Jun 26 08:47:19 2008] notifying client 5421[110:122]
[Thu Jun 26 08:47:19 2008] notifying client 5623[0:0]
[Thu Jun 26 08:47:19 2008] executing action "/etc/acpi/video_brightnessup.sh"
[Thu Jun 26 08:47:19 2008] BEGIN HANDLER MESSAGES
[Thu Jun 26 08:47:19 2008] END HANDLER MESSAGES
[Thu Jun 26 08:47:19 2008] action exited with status 0
[Thu Jun 26 08:47:19 2008] completed event "video DD03 00000086 00000000"
[Thu Jun 26 08:47:19 2008] received event "video DD03 00000087 00000000"
[Thu Jun 26 08:47:19 2008] notifying client 5561[0:0]
[Thu Jun 26 08:47:19 2008] notifying client 5421[110:122]
[Thu Jun 26 08:47:19 2008] notifying client 5623[0:0]
[Thu Jun 26 08:47:19 2008] executing action "/etc/acpi/video_brightnessdown.sh"
[Thu Jun 26 08:47:19 2008] BEGIN HANDLER MESSAGES
[Thu Jun 26 08:47:19 2008] END HANDLER MESSAGES
[Thu Jun 26 08:47:19 2008] action exited with status 0
[Thu Jun 26 08:47:19 2008] completed event "video DD03 00000087 00000000"
# xev
KeyPress event, serial 27, synthetic NO, window 0x4a00001,
root 0x4a, subw 0x0, time 3230706, (453,438), root:(457,487),
state 0x0, keycode 212 (keysym 0x1008ff4f, XF86LaunchF), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 27, synthetic NO, window 0x4a00001,
root 0x4a, subw 0x0, time 3230706, (453,438), root:(457,487),
state 0x0, keycode 212 (keysym 0x1008ff4f, XF86LaunchF), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 30, synthetic NO, window 0x4a00001,
root 0x4a, subw 0x0, time 3230924, (453,438), root:(457,487),
state 0x0, keycode 101 (keysym 0x1008ff4d, XF86LaunchD), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x4a00001,
root 0x4a, subw 0x0, time 3230924, (453,438), root:(457,487),
state 0x0, keycode 101 (keysym 0x1008ff4d, XF86LaunchD), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
But when i check the syslog here what i see
# tail /var/log/syslogd
Jun 26 08:49:18 vestel-laptop kernel: [ 543.570766] atkbd.c: Unknown
key pressed (translated set 2, code 0xd6 on isa0060/serio0).
Jun 26 08:49:18 vestel-laptop kernel: [ 543.570773] atkbd.c: Use
'setkeycodes e056 <keycode>' to make it known.
Jun 26 08:49:18 vestel-laptop powersave-hotkey_handler[9831]: WARNING:
EV_ID: 153, unclean exit or unconverted script, please read the
powersaved manual (chapter 11) if this is a customized event script
Jun 26 08:49:18 vestel-laptop kernel: [ 543.613033] atkbd.c: Unknown
key pressed (translated set 2, code 0xd6 on isa0060/serio0).
Jun 26 08:49:18 vestel-laptop kernel: [ 543.613040] atkbd.c: Use
'setkeycodes e056 <keycode>' to make it known.
Jun 26 08:49:18 vestel-laptop powersave-hotkey_handler[9847]: WARNING:
EV_ID: 154, unclean exit or unconverted script, please read the
powersaved manual (chapter 11) if this is a customized event script
Ok, i can see that i need to set the scancodes with keycodes. I
checked the showkey -u for the brightness up and down keys.
up: 0xe0 0x54 0xe0 0xd4
down: 0xe0 0x4c 0xe0 0xcc
Non of the press and release events have the hexadecimal info of e056.
And why do i see the same scancode at the syslogd although i press up
and down. Should'nt i see different scancodes for each of them.
So i am a little confused. Need some help.
--
Oğuz Yarımtepe
More information about the ubuntu-users
mailing list