You are not logged in.

#1 2010-09-06 17:33:54

badfrog88
Member
Registered: 2010-08-13
Posts: 43

Confused about Extra Keyboard Keys *

I've been reading the wikis "Extra Keyboard Keys" and "Map scancodes to keycodes" and something is just not clicking for me.  I am trying to get my functions keys working on my ASUS EeePC 1018 series netbook. I have run the programs 'showkey', 'xev' and 'dmesg' as outlined in the wikis with the following results:

Key(s)     dmesg     showkey     xev
B1           5c
B2(wifi)    88
B3(Pwr)                   116             1 XF86PowerOff    (Works)
Fn+F1                     142             1 XF86Sleep
Fn+F2     88
Fn+F3     6b
Fn+F4     e1
Fn+F5                      224            2 XF86MonBrightnessDown (Works)
Fn+F6                      225            2 XF86MonBrightnessUp (works)
Fn+F7     e9
Fn+F8                      227            1 XF86Display
Fn+F9     e0
Fn+F10                     112           1 XF86AudioMute
Fn+F11                     113           1 XF86AudioLowerVolume
Fn+F12                     114           1 XF86AudioRaiseVolume
Fn+SPACE 5c
Fn+Insert                     69          7 Num_Lock (works)
Fn+Delete                    70          7 Scroll_lock (works)
Fn+PgUp                   104           1 Prior (works)
Fn+PgDn                   109            1 Next (works)
Fn+Home                   102           1 Home (works)
Fn+End                      107            1 End  (works)
Windows                     125             1 Super_L (?)
Menu                          127             1 Menu (?)

I'm not really sure what to do next.

Thanks.

Moderator edit: No useless tags please, if your topic isn't solved (anymore), just take out the [Solved] tag.

Last edited by .:B:. (2010-09-11 07:56:08)

Offline

#2 2010-09-06 17:48:44

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Confused about Extra Keyboard Keys *

What exactly are you trying to do? You do not need to press Fn to use the function keys.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-09-06 18:00:09

badfrog88
Member
Registered: 2010-08-13
Posts: 43

Re: Confused about Extra Keyboard Keys *

I'm trying to make use of the "special function keys". For example, Fn+F3 would toggle my touchpad on/off in windows. Fn+F5 and Fn+F6 both work to dim or brighten my display. I would like to map the others for other functions and get the Fn+F10, 11, 12 working to adjust my audio.

Offline

#4 2010-09-06 18:03:34

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Confused about Extra Keyboard Keys *

Offline

#5 2010-09-06 18:05:27

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Confused about Extra Keyboard Keys *

Also read the 1001 / 1005 / 1201 pages here
http://wiki.archlinux.org/index.php/Eee

Offline

#6 2010-09-07 15:11:58

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Confused about Extra Keyboard Keys *

if you are using gnome define your actions in the key-board shortcuts or in openbox define them in rc.xml.

Offline

#7 2010-09-09 00:01:27

ldvx
Member
Registered: 2007-01-02
Posts: 33

Re: Confused about Extra Keyboard Keys *

Since most of your keys are recognized by xev, then the next step is easy; configuring them in your DE/WM. However, if you wanted to make the other keys -the ones not recognized by xev- work, then things would be a little more complicated. Since the kernel recognized those keys you should, in theory, be able to make use of them.

So if you wanted to make use of the keys not showing in xev how should you go about doing it?
- First find your keyboard by running /lib/udev/./findkeyboards. In my case these gives me the output: USB keyboard: input/event3.
- The next step is to run: sudo /lib/udev/./keymap -i input/event3 and see if Fn+F{2,3,4,7,9}, B1 and B2 and see if you can get an output similar to:
     scan code: 0x70029   key code: B1
     scan code: 0x70007   key code: B2
     and so on.
   
If you don't get an output, then try running sudo /lib/udev/./keymap -i input/event4 (I had to do these). If you had to run an event one number greater than what findkeyboards gave you, then create a file ~/ExtraKeysTesting and write the output of Fn+F{2,3,4,7,9}, B1 and B2 on it. The file should have the following format:
0x70029 B1 (i.e. you will have to remove the words scan code: and key code:).
After you finish making your file you are then ready to run sudo /lib/udev/./keymap input/event4 ~/ExtraKeysTesting and now you should not be able to see those keys with xev.
Why? You will probably need to change the keycode on the given keys. Try picking something you know you are not using (like F20 perhaps). Only then you should be able to see them with xev. Once you are capable of seeing those keys the following step is maybe creating a ~/.xmodmap (it depends on what xev gives you as output).

What happens if sudo /lib/udev/./keymap -i input/event3 does find the keys not shown by xev? Then creating ~/ExtraKeysTesting will be more tedious since you will have to add all of your keyboards keys on the file. Like the following, but with the proper format (i.e. without the strings scan code and key code):
scan code: 0x70028   key code: enter
scan code: 0x70004   key code: a
scan code: 0x70007   key code: d
scan code: 0x70016   key code: s

Hope this helps if you want to go one step further and do the tedious work of setting up your keys not shown by xev.

note: this is a temporary solution, *I guess* a bug report should be used if those keys aren't working with xev.

Last edited by ldvx (2010-09-09 00:08:10)

Offline

#8 2010-09-09 13:57:06

badfrog88
Member
Registered: 2010-08-13
Posts: 43

Re: Confused about Extra Keyboard Keys *

Thanks ldvx this is the information I was looking for.  I'm currently working on getting my window manager configured. I'll revisit this later. I'm going to mark is solved for now.

Offline

#9 2010-09-11 07:00:46

badfrog88
Member
Registered: 2010-08-13
Posts: 43

Re: Confused about Extra Keyboard Keys *

Running /lib/udev/findkeyboards produced:

AT keyboard: input/event0
module: input/event6

Running sudo /lib/udev/keymap -i input/event0 (or input/event1) produced no results. Running with input/event6 produced (key pressed in ())

(button2) 0x00 wlan
(Fn+F2)   0x00 wlan
(Fn+F3)   0x00 f13
(Fn+F4)   0x00 f14
(Fn+F7)   0x00 display_off
(Fn+F9)   0x00 prog1
(Fn+F10) 0x00 mute
(Fn+F11) 0x00 volumedown
(Fn+F12) 0x00 volumeup

None of my scancodes were in a 0x00000 format.

Offline

#10 2010-09-11 07:51:29

badfrog88
Member
Registered: 2010-08-13
Posts: 43

Re: Confused about Extra Keyboard Keys *

skunktrader wrote:

Also read the 1001 / 1005 / 1201 pages here
http://wiki.archlinux.org/index.php/Eee

I revisited the above and managed to get my wifi toggle (Fn+F2) to work following the instructions for the 1005HA. I still cannot get my touchpad toggle (Fn+F3) or the mute (Fn+F10 and volulme (Fn+F11, F12) to work.

Offline

Board footer

Powered by FluxBB