LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-02-2004, 10:05 PM   #1
baudchaser
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
xmodmap/imwheel


I am having trouble getting xmodmap to remap my mouse buttons upon startup. I.e. I have to manually issue the "/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"" command. I have searched and have found others with similar issues, but what ended up working for them is not working for me. I am using RH 9, and have added the command to my /etc/X11/xinit/xinitrc file. I also tried placing the command in different sections of the file based on a tip that said the call must be made before calling X. It is a 5 button USB Optical Intellimouse. Thanks for the help.

XF86Config:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "CorePointer"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection

xinitrc:
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

Last edited by baudchaser; 03-02-2004 at 11:58 PM.
 
Old 03-03-2004, 10:50 PM   #2
baudchaser
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ttt
 
  


Reply



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
Help me with imwheel Kethinov Linux - Software 0 01-24-2005 12:29 PM
Imwheel help me get the right keys..... DavidTempler Linux - Newbie 4 11-20-2004 05:43 PM
Uninstalling imwheel jon1101 Linux - Newbie 2 08-09-2004 12:15 AM
Imwheel Fix Sebboh Linux - Software 4 01-09-2004 06:55 PM
IMWheel tslugmo Linux - Software 8 04-28-2003 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:30 AM.

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