You are not logged in.

#1 2008-02-03 22:05:14

miggols99
Member
Registered: 2007-06-10
Posts: 424

I'm confused with extra laptop keys

When I go onto the Kubuntu live cd, the extra keyboard keys work flawlessly, even the email button launches KMail. I just don't know how they do it! At the moment I'm running KDE4 on Arch Linux..is there any way to transfer the settings?

Offline

#2 2008-02-04 00:26:41

drewbie
Member
From: England
Registered: 2006-02-12
Posts: 12

Re: I'm confused with extra laptop keys

you need to write an .Xmodmap file in your home directory.

mine looks like

$ cat ~/.Xmodmap
keycode 178  = XF86HomePage
keycode 236  = XF86Mail
keycode 234  = XF86Back
keycode 233  = XF86Forward
keycode 229  = XF86Search
keycode 231  = XF86Refresh

you fine your keycode by running xev and then pushing your function button, in the output there should be a keycode you then need to link it to a name listed in the /usr/share/X11/XKeysymDB file, this will link the key, the name can be any from that file. you can assign actions to your keys from the kcontrol center.


X should automatically load the keycodes when it starts, you can also test them by running

$ xmodmap ~/.Xmodmap

Last edited by drewbie (2008-02-04 00:28:59)

Offline

#3 2008-02-04 04:43:10

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: I'm confused with extra laptop keys

You don't always need that, if your DE has a configuration utility to select a keyboard layout/mapping. For KDE 3, it's KControl > Regional blah blah > Keyboard Layout. Your laptop/keyboard model may not be there, but there are close matches of the same brand. For my Compaq V3000 the Armada works, except for the Quick Play button and 3-4 function buttons (www, sleep, and two more i don't know what they're for). I used showkey to map the first during startup, and have it launch my favourite video player. The function buttons don't work, but I don't worry about those as I can bind them with some other button, like the super/win key and launch different browsers, initiate suspend etc.

Last edited by schivmeister (2008-02-04 04:43:37)


I need real, proper pen and paper for this.

Offline

#4 2008-02-05 01:07:44

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: I'm confused with extra laptop keys

what about openbox? sad


Archlinux on Compaq Presario v5000 laptop smile

Offline

#5 2008-02-05 01:22:13

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: I'm confused with extra laptop keys

The hotkeys article in the wiki adopts a very low level approach which might be difficult, but works everywhere


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB