LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xmodmap won't load (https://www.linuxquestions.org/questions/linux-software-2/xmodmap-wont-load-500043/)

oshunluvr 11-09-2006 07:56 AM

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;
Quote:

!
! 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????

PMorph 11-09-2006 12:16 PM

What if you put it in /etc/X11/Xsession ?


All times are GMT -5. The time now is 01:09 PM.