You are not logged in.

#1 2012-08-18 17:39:05

rokowsky
Member
From: Slovenia
Registered: 2012-05-24
Posts: 12

[SOLVED] Disable volume buttons

I have a problem that volume touch buttons on my laptop are randomly pressed by themselves and when in prompt i sometimes get flooded with tilde characters originating from these random pressings of the volume buttens. Showkey program identified it as keykode 114 and 115. How would i disable these two buttons on the most primitive level?

Last edited by rokowsky (2012-08-26 12:41:34)

Offline

#2 2012-08-25 14:42:12

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] Disable volume buttons

You can use xmodmap to modify the keymap table and delete the symbols mapped to keycode 114 and 115.

man xmodmap
xmodmap -pke

Offline

#3 2012-08-25 21:17:41

rokowsky
Member
From: Slovenia
Registered: 2012-05-24
Posts: 12

Re: [SOLVED] Disable volume buttons

Thank you for the reply. Yes xmodmap does the trick in X, but i was wondering how would i disable these two keys on more basic level, that is when i'm in prompt (as they cause tilde characters to randomly appear on inputline). I don't often use prompt so this is really more or less a curiosity, but still i had some instances when i couldn't write my password correctly because of this issue (input was p~~as~swor~d instead of password) and it took some time and couple of reboots so that window of no '~' pressings appeared and that i could properly login.

Last edited by rokowsky (2012-08-25 21:18:56)

Offline

#4 2012-08-26 08:24:27

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] Disable volume buttons

On the console the keymap is controlled either by /etc/rc.conf or /etc/vconsole.conf
You can change to a keymap that does not have the volume keys, but i dont know if such keymap does exist or how it  is called.
Try one of the keymaps listed here.

Offline

#5 2012-08-26 12:41:05

rokowsky
Member
From: Slovenia
Registered: 2012-05-24
Posts: 12

Re: [SOLVED] Disable volume buttons

Funny thing... i use slovene keymap and when going through slovene.map and all the files included in slovene.map, which defines layout, i found out that keycodes 114 and 115 are not even defined. So i thought if it's not defined in kbd, something else is causing this because kbd doesn't care about these keycodes. My solution was to make kbd care about 114 and 115 and not let some uncontrolled actions. So i added definitions of 114 and 115 in slovene.map to do nothing with the help of F37-F48, which are undefined on my system. So hopefully this is solved.

Offline

#6 2012-08-26 23:55:02

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] Disable volume buttons

Glad to hear you could solve it on your own.

Offline

Board footer

Powered by FluxBB