I am attempting to get the extra buttons on my Intellimouse Optical mouse on the PS2 port to work. I found many posts about how to do that.
My problem is when I change the contents of my ".xinitrc" file in my home directory, it seems to have no effect on what happens when I start KDE.
Here are the contents of my ".xinitrc" file.
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Mouse buttons and wheel
xmodmap -e "pointer = 1 2 3 6 7 4 5"
#imwheel -k -b "45"
# Start the window manager:
startkde
The problem is "xmodmap" has no effect on the button mappings. If I uncomment "imwheel" it also has no effect. Adding programs to the file has no effect.
Here are some of the things I tried to solve the problem.
- Symbolically link ".xinitrc" to ".xsession" to make sure they are both identical
- Log in as root
- Place the "xmodmap" command in "/etc/X11/xinit/xinitrc"
- Run "xorgconfig" again
- Adding or removing spaces between "1 2 3 6 7 4 5"
- Running "xmodmap" from the KDE desktop "run" box
- Running "xmodmap" by creating a shortcut in ".kde/Autostart".
For some reason, no matter how I try to use "modmap" to remap buttons it has no effect. It also apprears that the ".xinit" and "xinit" files are not having any effect if I add other things to them, such as launching applications.
I am getting some errors reported in a file called ".xsession-errors" in my home directory. Here is what I find in that file after I log in.
Code:
stderr is not a tty - where are you?
xset: bad font path element (#96), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
xset: bad font path element (#96), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
kbuildsycoca running...
DCOP Cleaning up dead connections.
kdecore (KLibLoader): WARNING: KLibrary: /opt/kde/lib/kde3/kcm_kdnssd.so: undefined symbol: init_kdnssd
(Gecko:7364): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?)
When I log out I sometimes get an error that lists "kcm_kdnssd.so" in a rather voluminous stack trace.
I have no idea how to go about investigating those errors, or if they have any bearing on the problem. Help from anyone will be greatly appreciated.
Just for completeness here is the section I changed in "/etc/X11/xorg.conf" to specify my mouse configuration.
Code:
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
This configuration had the expected effect of making my thumb buttons operate, and mapping the mouse wheel to the wrong button numbers. If I use "4 7" instead of "6 7" only the mouse wheel works mapped to the correct button numbers. In order to use both the wheel and the thumb buttons, I have to get "xmodmap" to reassign the button functions.