.xinitrc and modmap have no effect on KDE?
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 Here are some of the things I tried to solve the problem.
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? 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" |
.xinitrc is not the place to put xmodmap commands - just put the following in ~/.Xmodmap or /usr/X11R6/lib/X11/xinit/.Xmodmap :
Code:
pointer = 1 2 3 6 7 4 5 |
Curious, the files don't appear to exist in the home directory, or in the usr/X11R6/lib/X11/xinit , I did a ls -al in both home and the other place, and there is no .Xmodmap file, should it be created with the following...
Code:
# merge in defaults and keymaps |
Adding "pointer = 1 2 3 6 7 4 5" to "~/.Xmodmap" or "/usr/X11R6/lib/X11/xinit/.Xmodmap" has no effect either.
I was able to get the "~/.xinitrc" script to remap the buttons by doing this.
So, apparently the "xmodmap" command in ".xinitrc" is correct, it's just that none of the X initialization scripts seem to be getting executed. I was able to catch the crash on logging out of KDE that sometimes happens. Here is the information. Code:
(no debugging symbols found) When I start KDE from an X-Windows "failsafe" shell window, I get an error saying "free( )" was called with an invalid pointer if the crash occurs. Otherwise I get no error in the shell window on logout. Since I was suspicious of a possible bug in KDE, I tried logging in using GNOME. I get less errors reported in ".xsession-errors", but the ".xinitrc" script still does not appear to be executed. Code:
stderr is not a tty - where are you? |
.xinitrc and .xsession not used for graphical login
OK, it looks like I found out why ".xinitrc" is not being executed.
I'm using the graphical login for for my X-Windows session, not starting it by typing in a command from a shell prompt. That used to execute a file called ".xsession" or "Xsession". Apparently that is no longer the case. Now, the only file executed from a graphical login is ".xprofile" in the user's home directory. I created a file called ".xprofile" in my home directory, and placed the commands in that file. The commands now work. That still leaves me with a few errors to investigate starting KDE, or logging out of KDE, but it solves my main problem. |
It's a problem with the last upgrade to kdebase before 10.2 was released; it now uses the default KDE initialisation files for KDM, instead of Pat's custom one.
For the log out crash, try deleting ~/.kde/share/config/kickerrc and possibly anything else in ~/.kde/share related to Kicker. |
All times are GMT -5. The time now is 09:43 PM. |