From: David <li...@ed...> - 2007-03-14 14:36:21
|
I've just spent an hour or so trying to get definitions for my Samsung =20 X60 working. It has 5 media buttons on the keyboard and an IR remote =20 control that sends keyboard events. Below is the config which contains notes on the scancodes. Nearly all =20 of them (except the volume) need to be set using setkeycodes. Additionally, I cannot seem to get the camera/media (e01f/e023) =20 buttons working. The sound button (e01e) seems to work if setkeycodes =20 is called first, but the other two do not. So some questions, if =20 anybody can help I would be very happy/ - if using RAWCOMMAND like below, do I need to create a script that =20 runs at boot to setkeycodes or does lineak do it for me? - is there any reason one button would work and two wouldn't? Perhaps =20 I need to check that I'm not assigning duplicate keys or similar? - are my values in [KEYS] correct? It took a lot of trial and error =20 but I think I have figured it out. Is this a problem with my RAWCOMMAND, could it be a problem with the =20 kernel or a bug elsewhere? There are two buttons I couldn't get to work, so I am unsure if they =20 will be supported or not. Ideas would be good, the notes are inline =20 below. David [SSX60] brandname =3D "Samsung" modelname =3D "Samsung X60" # Keycodes: # (Check /usr/include/linux/input.h for the origin of columns 2 & 3) # # e01e 213 KEY_SOUND sound button (right side) # e01f 212 KEY_CAMERA camera button (right side) # e023 226 KEY_MEDIA film strip icon (right side) # e01a 202 KEY_PROG3 avs button (remote control) # e01c (*) # e010 165 KEY_PREVIOUSSONG previous button (remote control) # e022 164 KEY_PLAYPAUSE play button (remote control) # e019 163 KEY_NEXTSONG next button (remote control) # e05f 116 KEY_POWER on/off button (remote control) # # * unsure about this one, I think I triggered it in testing # # Additionally I could not seem to find a keycode for the "lock" =20 and "unlock" # buttons that are on the bottom left of the IR remote control. The 4 ar= row # keys on the IR remote send normal arrow keys, "Enter" sends enter =20 and "Back" # sends backspace. # RAWCOMMAND[SETKEYCODES] =3D "e01e 213 e01f 212 e023 226 e010 165 e022 =20 164 e019 163 e05f 116 e01a 0x189" [KEYS] Play|Pause =3D 162 Previous =3D 144 Next =3D 153 VolumeDown =3D 174 VolumeUp =3D 176 Power =3D 223 Music =3D 118 Movie =3D 163 Camera =3D 159 AVS =3D 154 [END KEYS] [END SSX60] |