Mandriva Expert
The place where your Mandriva Linux system finds support

problem with autostart

+/- details
User Toker
Incident Number 71535
Date 2003/10/10 16:57
Status Incident closed
Paid Yes

Product 9.1 (Bamboo)
Architecture x86_32
Scope XFree 86

Products owned

Lines in bold below have not yet been seen by the customer - those in blue are from the customer

Username : Date : Action : Comments [ close all ]    
 
Toker : 10/10/03 04:57 PM : Incident created
-   I am having a problem with running a command at startup. I am booting into kde and need to run 'xmodmap -e "pointer = 1 2 3 6 7 4 5"' for my mouse side buttons.

Steps I have already taken:

Created 'Autostart' in $HOME/.kde/Autostart with the text:

#!/bin/bash
xmodmap -e "pointer = 1 2 3 6 7 4 5"

I then ran chmod -x $HOME/.kde/Autostart/Autostart

I also did the exact same for $HOME/.xsession and $HOME/.xmodmap yet everytime I boot back into kde (from relogin and reboot) I need to manually run xmodmap...

Any idea how to run this command at boot?

 
Linegod_7611 : 10/10/03 07:13 PM : Reply received
-   Don't make it specific to KDE, do it at the lowest level.

Edit '/etc/X11/XF86Config-4 and make sure it looks something like this:
--XF86Config-4--
Section "InputDevice"
Identifier "Logitech MouseMan MX-700"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
--End--

Then edit '/etc/X11/Xmodmap' and add this line:

pointer = 1 2 3 6 7 4 5

OR if that does not work, add to '/etc/X11/xinit/xinitrc':

xmodmap -e "pointer = 1 2 3 6 7 4 5"

-----------
Note: If this answer resolves your problem, please remember to close this
incident.

 
Toker : 10/10/03 08:54 PM : More info provided
-   I think I see what's happening here... Following your instructions, I looked at the /etc/X11/Xmodmap file, and added the pointer line, but that did not work. I am about to add the line to the xinitrc file, but then I noticed that the Xmodmap file is not executable. If I enter 'chmod -x Xmodmap' will that in effect make the Xmodmap file run?

I see it already has an entry for the "windows" keyboard keys, and those do work, but I'm guessing that that was done by default and not this Xmodmap file. As I plan on adding the line to xinitrc (and hopefully it will work,) I suppose I'm asking this as a "future reference" question for how the Xmodmap file in /etc/X11/ works... :-)

 
Toker : 10/10/03 09:23 PM : More info provided
-   Adding the line to /etc/X11/xinit/xinitrc did not work either, but when I added the line to /etc/X11/Xsession.... SUCCESS! Since that was one of the files I was working with when I was editing in $HOME, I decided to try it there. I have a feeling that editing the xinitrc only affects root user (from the heading in the xinitrc.)

I'm leaving the incident open for your responce on making the Xmodmap file executable... Would a simple chmod -x be enough, or would I need additional flags (the -x, I think nix calls them flags too?)

Thank you for the help!

 
Linegod_7611 : 10/10/03 11:28 PM : Reply received
-   The Xmodmap file does not need to be executable, since it is only read by 'xmodmap', which is
executable.

By placing it in 'xinitrc' it should have been read by all users, but sifting through 'Xsession' would
make me think that it would work better here, under Mandrake.

-----------
Note: If this answer resolves your problem, please remember to close this
incident.

 
Toker : 11/10/03 12:43 AM : Incident closed
-  



This Incident is closed. It can not be edited anymore. You can create a new one by signing up/logging in your Mandriva Expert account.

  Mandriva  |  Contact  |  Legal  |  Privacy  |  Careers