You are not logged in.

#1 2013-09-19 00:27:06

PogMat
Member
Registered: 2013-09-19
Posts: 42

Remove "media keys"

Hi. I bought new logitech K290 keyboard and I'm having a big trouble with it. In fact I found "media keys" in stead of ordinary F!, F2... F12 keys,obviously I can get achieve the desired effect by pressing "fn" key and one of that multimedia keys simultaneously. Now, I use yakuake so that I need to press F12 key quite often (and I don't want to practice organ every time I need my F12!) So, my question is:

"Is it possible to use multimedia keys as them were ordinary F1, F2,... F12, as in good old keyoards?"

P.S. I also noticed, using showkeys that "fn" is a hard modifier, in the sense that its pressure is not caught by the kernel; it works only when it's pressed together with another key

Offline

#2 2013-09-19 00:32:58

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Remove "media keys"

Check out this wiki topic: https://wiki.archlinux.org/index.php/Ex … board_Keys

You should be able to find the keycodes for the media keys using xev, and then remap them using xmodmap.

https://wiki.archlinux.org/index.php/Ex … ys_in_Xorg
https://wiki.archlinux.org/index.php/Ex … in_Console

And welcome to Arch.

Last edited by 2ManyDogs (2013-09-19 00:35:07)

Offline

#3 2013-09-19 00:37:44

PogMat
Member
Registered: 2013-09-19
Posts: 42

Re: Remove "media keys"

Thank you, I had already noticed Xmodmap, but I think that I need xserver run to achieve the effect... that could not be the case... I would like to have the same functionality even in console mode

Offline

#4 2013-09-19 00:38:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Remove "media keys"

PogMat wrote:

Thank you, I had already noticed Xmodmap, but I think that I need xserver run to achieve the effect... that could not be the case... I would like to have the same functionality even in console mode

See the last topic I linked: https://wiki.archlinux.org/index.php/Ex … in_Console
(you run yakuake in the console?) ?

Last edited by 2ManyDogs (2013-09-19 00:40:15)

Offline

#5 2013-09-19 02:11:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Remove "media keys"

Is there a module option for this?  Logitech's have some pretty spotty linux compatibility, so you may be SOL. But you might want to check the kernel's docs on the matter.  I am sure you're not the only person in the world who has been frusturated by this.

Offline

#6 2013-09-19 09:19:19

PogMat
Member
Registered: 2013-09-19
Posts: 42

Re: Remove "media keys"

I used xev, pressing F2-media key i get

KeyPress event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355845, (164,-13), root:(164,741),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355845, (164,-13), root:(164,741),
    state 0x8, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355845, (164,-13), root:(164,741),
    state 0x48, keycode 199 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355853, (164,-13), root:(164,741),
    state 0x48, keycode 199 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355861, (164,-13), root:(164,741),
    state 0x48, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 355861, (164,-13), root:(164,741),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

while pressing F2 I get

KeyPress event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 358949, (164,-13), root:(164,741),
    state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
    root 0x1e5, subw 0x0, time 359069, (164,-13), root:(164,741),
    state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

So I create this xmodmap file

keycode 64 = F2
keycode 133 =
keycode 199 =

I hoped it just disable keycode 133 and 199 but I were not true... The effect is that neither media-F2 nor F2 act like F2 (pressing alt + F2 in KDE would show a launch window)

I tried also to find out other information on the net, bud I didn't find anything... Can anyone help me?

Last edited by PogMat (2013-09-19 09:28:32)

Offline

#7 2013-09-19 09:24:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Remove "media keys"

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2013-09-19 09:52:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,606
Website

Re: Remove "media keys"

Check in the bios and see if there's an option to toggle this. Most laptops these days seem to come with push-to-break fn key by default, with an option to switch back to the saner (imo) press-to-make fn key.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2013-09-19 15:08:14

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Remove "media keys"

@WorMzy, it sounds as though this is an external logitech keyboard, not one that is built into a laptop.

@OP, have you tried to determine the module that drives this keyboard?  Figure that out and then see if there are any options for it.  If it is using the generic HID module, then there are going to be no options, but if it has something special, then there is a chance that there are things that you can change at module load time (or by writing values into /sys files).

Offline

#10 2013-11-21 10:54:16

oggio88
Member
Registered: 2013-09-10
Posts: 4

Re: Remove "media keys"

I also have the same problem with that keyboard, which is very good from every other point of view (solid, reliable, responsive and very good-looking) but it is plagued by that terrible decision to remap the function keys to multimedia keys, I also noticed using xev that pressing some multimedia keys like "search" (which would be F1) is interpreted like a combination of XF86TouchpadToggle, Shift_L, Super_L. The problem is that I don't know how to reassign that combination back to the F1 key..

Offline

Board footer

Powered by FluxBB