You are not logged in.

#1 2009-03-23 09:44:29

kaola_linux
Member
From: Bacolod City/Philippines
Registered: 2008-09-23
Posts: 513

How to use fn keys for shortcuts on kde 4.2.1

I have a netbook and I'm using kdemod 4.2.1...I want to use the fn keys for specific commands that it supposed to do (volume,brightness,muting/unmuting)..When I press fn key with another combination for a shortcut, it isn't being recognize...Nothing just happens, other keys are working fine..Any ideas? Thanks


Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"

Offline

#2 2009-03-26 03:09:11

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 379

Re: How to use fn keys for shortcuts on kde 4.2.1

Check this http://www.linux.com/feature/118179

Basically, you shall open xev and test if your Fn keys are detected as supposed.


All your base are belong to us

Offline

#3 2009-03-26 09:01:03

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: How to use fn keys for shortcuts on kde 4.2.1

most (if not all) Fn+KEY combinations produce acpi events and are NOT recognized by Xorg. the same goes for lid switch and power button
if you own a lenovo netbook, check out tpb for an OSD when you change volume/brightness.

as for "Media Keys", they produce a normal key event and get recognized by Xorg (check post above)

to get your Fn keys working the way you want:

install and start acpid,
use acpi_listen to get the events they produce and adjust /etc/acpi/handler.sh accordingly

OR use my python script (it prompts you to produce an acpi event and afterwards enter a command and description)

http://rob.kingofnerds.net/arch/acpy-03-04-2009.tar
(extract and run ./acpy as root)

if you want to configure your keys through your DE, use acpi_fakekey either with handler.sh or my python script


be warned that all commands you use through acpi are run as the same user as acpid (root)


☃ Snowman ☃

Offline

#4 2009-03-26 12:54:45

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: How to use fn keys for shortcuts on kde 4.2.1

Personally I'd recommend (unless you really need them) not to bind any keys.  There really isn't any generic architecture defining keybindings in linux and binding a key may produce a conflict with an application that has already done so.  There are applets that can be used for alot of things and if you need multimedia keys, I'd recommend getting a multimedia keyboard.  I picked a cheap low-profile keyboard up at newegg for a $20 and it does just fine for me.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-03-26 15:06:49

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: How to use fn keys for shortcuts on kde 4.2.1

Gen2ly wrote:

Personally I'd recommend (unless you really need them) not to bind any keys.  There really isn't any generic architecture defining keybindings in linux and binding a key may produce a conflict with an application that has already done so.  There are applets that can be used for alot of things and if you need multimedia keys, I'd recommend getting a multimedia keyboard.  I picked a cheap low-profile keyboard up at newegg for a $20 and it does just fine for me.

carrying around a keyboard that is actually larger than the whole netbook itself?

big_smile

and, wtf no keybindings? you just should pick the right ones.
binding ctrl+ANYTHING is obviously very stupid.
alt+ANYTHING might get you in trouble with your window manager, or menu shortcuts
but which application uses i.e. Super+x or Ctrl+Alt+x? i never heard of one


☃ Snowman ☃

Offline

#6 2009-03-26 15:58:31

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: How to use fn keys for shortcuts on kde 4.2.1

Oop, missed the netbook part.  hmm


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#7 2009-04-03 02:42:48

kaola_linux
Member
From: Bacolod City/Philippines
Registered: 2008-09-23
Posts: 513

Re: How to use fn keys for shortcuts on kde 4.2.1

I'm just jealous with gnome since it can detect all my fn key combination out of the box...I wish that in kde 4 it does also detect the fn key...:( I already tried xev but pressing fn key shows nothing even if I combined it with a key.  The key right after pressing fn is the one only showing...:(


Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"

Offline

#8 2009-04-03 03:06:32

Cypher
Member
From: Coquimbo, Chile
Registered: 2007-04-14
Posts: 67

Re: How to use fn keys for shortcuts on kde 4.2.1

i have a vostro1400, so not have to many fn/keys, but im using xorg+hotplug with evdev-managed-keyborad and the volume up/down shows a nice OSD, the same with the fn math keys big_smile

Offline

#9 2009-04-03 15:34:09

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: How to use fn keys for shortcuts on kde 4.2.1

I worked my ass off some time ago to re-write the wiki's Extra Keyboard Keys page so read it ...
If GNOME sees your key and KDE doesn't it is because KDE uses Qt for key detection and Qt uses Xorg. GNOME directly uses the kernel API.

Last edited by Changaco (2009-04-03 15:43:22)

Offline

#10 2009-04-03 16:52:45

ichbinesderelch
Member
Registered: 2008-01-17
Posts: 203

Re: How to use fn keys for shortcuts on kde 4.2.1

i also have the aa1, and keys work with a proper Xmodmap, don't have any problems with them at all, using kde4.2 as well, so just go for the Xmodmap wink and i guess you already set the keycodes in rc.local?

Last edited by ichbinesderelch (2009-04-03 16:54:42)

Offline

Board footer

Powered by FluxBB