Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2006, 07:56 AM   #1
LQ Newbie
Registered: Jan 2005
Location: long beach, ca
Distribution: Kubuntu "Jaunty" 9.04 x86_64
Posts: 19

Rep: Reputation: 2
Xmodmap won't load

This is driving me batty. I have an unsupported keyboard with a few multimedia keys I want to activate for all my users. I got the keycode info via "xev" and edited /etc/X11/Xmodmap to this;
! This is the "Xmodmap" file for Standard Keyboards with Windows keys.
! If you want to have other keymappings for special X-Terminals, just
! create a "Xmodmap.${DISPLAY}" file with the according changes.

keycode 22 = BackSpace
keycode 115 = F13
keycode 116 = XF86Launch0
keycode 117 = Menu
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 178 = XF86HomePage
keycode 223 = XF86LogOff
keycode 230 = XF86Favorites
keycode 233 = XF86Forward
keycode 234 = XF86Back
keycode 236 = XF86Mail
and I added this to /etc/X11/init/initrc "xmodmap /etc/X11/Xmodmap".

All of this does nothing. I have put the xmodmap statement above and below the "exec /etc/X11/Xsession $" line with and without a space. I have put a script file in my own home directory under Autostart in kde with "xmodmap /etc/X11/Xmodmap" - still nothing.
If I enter the keycodes manually via konsole (i.e. xmodmap -e 'keycodeXXX=XF86Command') the
keys work fine. If I manually execute the initrc script after logging in to X - the keys all work. If I manually launch the script in my Autostart directory, they all work. There is not a .initrc or .Xmodmap file in my home directory.

Any answers????
Old 11-09-2006, 12:16 PM   #2
Registered: Sep 2003
Distribution: Debian
Posts: 213

Rep: Reputation: 31
What if you put it in /etc/X11/Xsession ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xmodmap chrismiceli Linux - Software 2 06-29-2006 03:18 AM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 12:47 AM
xmodmap help pitt30 Slackware 11 01-14-2005 04:54 AM
Load xmodmap at startup short101 Debian 2 08-27-2004 08:09 AM
xmodmap ntilde Mandriva 0 07-27-2004 01:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration