Saturday, November 19, 2011

Xmodmap and xbindkeys to disable Media buttons

Dell Vostro 1510 have weird problem with constant permanent media button - stop.

Here is log of my changes that I did on Fedora(I hope this will help fro Ubuntu too):
 To get code you can use "xev" or "xbindkeys -k", for my media button only second approach is working.


gedit ~/.xbindkeysrc
"NoCommand"
    m:0x0 + c:171
"NoCommand"
    m:0x0 + c:172
"NoCommand"
    m:0x0 + c:173
"NoCommand"
    m:0x0 + c:174
"NoCommand"
    m:0x0 + c:215
"NoCommand"
    m:0x0 + c:216
"NoCommand"
    m:0x0 + c:208
"NoCommand"
    m:0x0 + c:209
"NoCommand"
    m:0x0 + c:121
"NoCommand"
    m:0x0 + c:234


gedit ~/.Xmodmap


keycode 171 = NoSymbol
keycode 172 = NoSymbol
keycode 173 = NoSymbol
keycode 174 = NoSymbol
keycode 215 = NoSymbol
keycode 216 = NoSymbol
keycode 208 = NoSymbol
keycode 209 = NoSymbol
keycode 121 = NoSymbol
keycode 234 = NoSymbol

press Alt+F2
launch "gnome-session-properties"
add "usr/bin/xbindkeys"

Restart is required.


Results:
Looks like Stop button does not work, no sign is shown on the screen. Issue is not reproduced for now:
http://askubuntu.com/questions/76410/black-area-with-stroked-circle-on-the-screen

Sources:
http://www.nongnu.org/xbindkeys/
http://cweiske.de/howto/xmodmap/allinone.html
http://forums.opensuse.org/english/get-technical-help-here/laptop/406877-multimedia-keys-dell-vostro-1510-suse11-1-a.html
https://wiki.archlinux.org/index.php/Lenovo_Thinkpad_T61
https://wiki.archlinux.org/index.php/Xbindkeys

For ubuntu users could be helpful:
http://www.atunes.org/wiki/index.php?title=Use_multimedia_keys_with_aTunes_on_Linux

1 comment:

  1. Thanks a lot for this helpful post, I was as hopeful as you when you wrote this post that it will really solve this strange problem, until we realized later this is not the solution with the constant hardware interrupts even though these buttons are disabled, instead the solution is:

    "Problem was reproduced in Windows and Ubuntu and Fedora ... problem completely in hardware. Solution: new laptop :) – RomanIvanov Jan 12 '12 at 3:23"

    ReplyDelete