LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-02-2005, 08:38 PM   #1
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
xmodmap and 7 button Intellimouse wheel


Hi, I've got Gentoo 2005.1 running on my Insprion 9300 (love this setup!). I also have the Microsoft Optical Desktop Elite for Bluetooth 2. However, I cannot get my mouse wheel to scrool in any application. The thumb buttons (4,5) do, however, perform the wheel functions.

For example, in any app with a vertical scrollbar, the thumb buttons (4,5) scroll vertically, and the wheel (6,7) performs forward/back browse in firefox.

Both the mouse and keyboard work fine. My kernel (2.6.13) is patched with the Bluez patch, so I most definitely receive input in /dev/input/mice from all buttons on the mouse. Running 'xev' also shows the events from the buttons are occurring correctly.

I know I have to use xmodmap to switch the functions, but I cannot for the life of me, get it to work. Everything I've read says to use this command and imwheel. I uninstalled imwheel, though, because all of my button events are working in X, but are not mapped correctly.

xmodmap -e "pointer = 1 2 3 6 7 4 5"
But I receive this output:
xmodmap: commandline:0: bad number of buttons, must have 12 instead of 7
xmodmap: 1 error encountered, aborting.

I'm not sure why this occurs, but I tried this and received no error:
xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 10 11 12"

This, however, doesn't fix the problem. Can't I simply switch their functionality? What am I doing wrong?

Thank you in advance.


Relevant sections of xorg.conf (synaptics device is my touchpad):
Code:
Section "InputDevice"
	Driver "synaptics"
	Identifier "touchpad"
	Option "Device" "/dev/input/mouse1"
	Option "Protocol" "auto-dev"
	Option "LeftEdge" "120"
	Option "RightEdge" "830"
	Option "TopEdge" "120"
	Option "BottomEdge" "650"
	Option "FingerLow" "14"
	Option "FingerHigh" "15"
	Option "MaxTapTime" "180"
	Option "MaxTapMove" "110"
	Option "EmulateMidButtonTime" "75"
	Option "VertScrollDelta" "20"
	Option "HorizScrollDelta" "20"
	Option "MinSpeed" "0.5"
	Option "MaxSpeed" "1.2"
	Option "AccelFactor" "0.01"
	Option "EdgeMotionMinSpeed" "15"
	Option "EdgeMotionMaxSpeed" "15"
	Option "UpDownScrolling" "1"
	Option "CircularScrolling" "1"
	Option "CircScrollDelta" "0.1"
	Option "CircScrollTrigger" "2"
EndSection

Section "InputDevice"
    Identifier	"Bluetooth Mouse"
    Driver	"mouse"
    Option	"Protocol"	"ExplorerPS/2"
    Option	"SendCoreEvents" "true"
    Option	"Device"	"/dev/input/mice"
    Option	"Buttons" "7"
    Option      "ZAxisMapping" "6 7"
    Option	"Emulate3Buttons" "false"
EndSection

Section "ServerLayout"
    Identifier	"DefaultLayout"
    Screen	"Screen 1"
    InputDevice	"touchpad" "CorePointer"
    InputDevice	"Bluetooth Mouse"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
 
Old 11-03-2005, 07:25 PM   #2
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
It is easier than you think actually.

To switch the button mapping of the scrollwheel and the side buttons:

Change This:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
To this:
xmodmap -e "pointer = 1 2 3 4 5 6 7"

However, I found upon rebooting, it did what I wanted to originally, so do that first, if that doesn't do it, then switch the maps.

Now, assuming you really do need 12 buttons, change the button count to 12, then add 8-12 on the end of the mapping, they shouldn't do anything though, honestly. I am wondering why it wants 12 buttons... that is odd.

A note, I have no "SendCoreEvents" I wonder what that is and does...
 
Old 11-04-2005, 07:32 AM   #3
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
No dice. thanks, though
 
Old 11-04-2005, 08:35 AM   #4
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
I am guessing it has something to do with your odd 12 button problem. Most likely it is mapping some of the latter and not all of 1-7 like it should...

Ahhh.... I have a thought about that, actually...probably the xmodmap isn't mapping to a single pointing device, as you have a touchpad AND a mouse setup... the touchpad is 5 buttons, and the mouse is 7. As for which comes first and which comes later...or if it even makes that much sense...Logically... you would think either-
"1 2 3 4 5 6 7" Intellimouse
"8 9 10 11 12" Touchpad
or
"1 2 3 4 5" Touchpad
"6 7 8 9 10 11 12" Intellimouse

If it is type 2... instead of swapping the ones I expected 4 5 and 6 7... you would need to swap 9 10 and 11 12...to-
"1 2 3 4 5" Touchpad
"6 7 8 11 12 9 10" Intellimouse

The above assumes it makes logical sense and goes in order. Which it may or may not. I don't know.

If you don't use the touchpad, try disabling or deleting its section entirely. Then instead of haiving to worry about which of the 12:
1 2 3 4 5 6 7 8 9 10 11 12

You will know already which of the 7 you need to mess with:
1 2 3 6 7 4 5

Otherwise, you may have to mess around swapping the map until you figure out which 7 of the 12 affect the Intellimouse, and which 5 affect the touchpad.
 
Old 11-04-2005, 09:15 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
This may help:
My site > Computing > Linux > Config / mouse

Yves.
 
Old 11-05-2005, 09:01 AM   #6
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
xev generates the same button event numbers as the bluetooth mouse. i.e. left click is 1, right click is 3, etc...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Microsoft Intellimouse wheel/Optical USB (5 Buttons) barabus Linux - Hardware 2 06-14-2005 10:29 PM
wheel-function not working on intellimouse explorer geodesic Linux - Hardware 1 05-03-2004 11:51 PM
Mouse not working: MS 5 button Intellimouse Inuyasha-kun Linux - Hardware 2 11-30-2003 05:07 PM
MS Intellimouse Optical--No Wheel mooreted Slackware 11 08-13-2003 08:11 AM
Problems Installing Microsoft 2 btn + wheel PS/2 Intellimouse natethebate Linux - Hardware 8 07-24-2002 08:57 PM

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

All times are GMT -5. The time now is 12:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration