View previous topic :: View next topic |
Author |
Message |
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Thu Jul 17, 2003 4:42 pm Post subject: |
|
|
This doesn't seem to work for me
I have my IntelliMouse Optical plugged into the USB port, and I'm using HID in the kernel. The stupid thing is that no matter what I try, /dev/input/mouse0 never shows up but /dev/mouse does. Only my wheel button and left and right buttons seem to work (cat /dev/mouse does not show anything when I click the left or right side buttons or if I move the wheel).
Should I be using usbmouse? Would that affect the kernel's mouse resolution (set via the "input core" section)? |
|
Back to top |
|
|
Ard Righ Guru
Joined: 24 Jun 2002 Posts: 337 Location: Wellington, NZ
|
Posted: Sat Jul 19, 2003 5:57 am Post subject: |
|
|
FxChiP wrote: | I have my IntelliMouse Optical plugged into the USB port, and I'm using HID in the kernel. [snip]
Should I be using usbmouse? Would that affect the kernel's mouse resolution (set via the "input core" section)? |
I am going to just throw some ideas out here, and someone can hopefully correct me if I am wrong, but....
First off, I think USB HID for the mouse causes most problems for configuring a USB mouse. I use the /dev/usbmouse for my Intellimouse, and it picked it up straight away. I didn't bother with HID at all.
HID also seems to be aimed more at the usage of USB Hubs, rather than single devices.
Also, as far as I am aware, the resolution you set in the kernel regarding usb devices is more aimed at pen tablets, setting the resolution the pen tablets will be at (thus normally set the resolution to what you have your normal desktop resolution at). |
|
Back to top |
|
|
pi-cubic Tux's lil' helper
Joined: 25 May 2003 Posts: 143
|
Posted: Sun Jul 20, 2003 11:28 am Post subject: |
|
|
i found out something for all you guys having 2 mice and problems with the xmodmap command Code: | xmodmap -e "pointer = 1 2 3 6 7 4 5" |
it's important to take a look at your XF86Config file at the following lines:
Code: | Section "ServerLayout"
Identifier "Simple Layout"
Screen "UXGA Display"
InputDevice "intellimouse" "CorePointer"
InputDevice "touchpad" "SendCoreEvents"
InputDevice "mm_keyboard" "CoreKeyboard"
EndSection |
you have to select your "CorePointer" to your external USB mouse! if not, xmodmap doesn't recognize the correct number of buttons and it fails to load the xmodmap command above (you'll get an errormessage that your device has only 3 buttons or something).
good luck! |
|
Back to top |
|
|
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Sun Jul 20, 2003 4:24 pm Post subject: |
|
|
Ard Righ wrote: |
Also, as far as I am aware, the resolution you set in the kernel regarding usb devices is more aimed at pen tablets, setting the resolution the pen tablets will be at (thus normally set the resolution to what you have your normal desktop resolution at). |
No; it's meant for normal mice too. Try setting it sometime and you'll see a difference (I did). It makes the mouse slightly smoother, especially in that resolution. That's what I've heard about it.
Yeah, usbmouse is probably the way to go. I'll try that now. |
|
Back to top |
|
|
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Mon Jul 21, 2003 1:22 am Post subject: |
|
|
Dear frickin' god, it didn't work for two reasons:
a.) My BIOS sucks at rerouting USB mouse signals to PS/2 accurately (i.e. discards characters that a three-button mouse doesn't typically make)
b.) I was using OHCI when my USB bus/hub/whatever was UHCI
I can use HID with it, probably usbmouse too (but I had to have that turned off so HID would be built in).
The key to it was understanding that Linux can do all of the mouse crap on it's own without BIOS help, since it has the understanding of the protocol built in and all...
*grins* It all works again. I may as well throw away my PS/2 converter. (the edges of it got bent one day...) |
|
Back to top |
|
|
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Mon Jul 21, 2003 2:18 am Post subject: |
|
|
This is EXTREMELY STUPID, but I *THINK* I have the reasoning behind "ZAxisMapping '6 7'"
X, for some reason, doesn't like it when the last two buttons aren't the wheel, so it disregards them or something.
You set xmodmap -e "pointer = 1 2 3 6 7 4 5" to make X read 4 and 5 (the REAL mouse wheel) as 6 and 7 (the mouse wheel as defined to X). This effectively routes the real wheel to X's definition. X doesn't care much about the "4 and 5" thumb buttons, so those get routed to 6 and 7 where they belong.
Enter imwheel. Somehow, it gets access to X. However, because of the xmodmap, "4 and 5" are read as 6 and 7. imwheel -b 67 makes imwheel think that 6 and 7 (remember that the thumb buttons are considered extra by X and took up the 4 and 5 space before being routed back to their rightful 6 and 7 spot) mean up and down. Since X considers the thumb buttons to be active (since they're buttons, but not handled directly by X), it happily passes them along to imwheel as 6 and 7.
It's a matter of making both of them think the wheel is somewhere it isn't... and yet is. Yet it's required because X chops off 6 and 7 since they don't seem to serve any particular purpose (while for the ZAxisMapping 6 and 7, X has to keep 4 and 5 so that it doesn't screw up).
The reason some of you are having the "thumb buttons scroll up and down" problem is because you missed a step. You set the ZAxisMapping to 6 and 7, but for some reason xmodmap isn't running or you don't have it set to run. This makes the thumb buttons scroll (most likely).
I could most definitely be wrong, but this is how I think it works.
BTW: this is how the config file provided with imwheel gets broken. That config file isn't written to do the actions it contains on an up and down event, which is what's required for the IntelliMouse (Explorer/Optical) to work correctly.
It IS kind of a hack, I see that now. |
|
Back to top |
|
|
nickc n00b
Joined: 22 Jun 2003 Posts: 30 Location: UK
|
Posted: Tue Jul 22, 2003 6:57 pm Post subject: |
|
|
Followed all this info but I can't for the life of me get the back and forward buttons to work
I have the MS Interlimouse Optical (Not the big explorer one). This has the normal left and right buttons a centre scroll wheel and two back and forward buttons on the side.
If we count the scroll button as two (Up and down) then I hve 6 buttons. It is PS/2.
XF86Config
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "6"
Option "ZaxisMapping" "5 6"
Option "Resolution" "1200"
I am using the xmodmap line:
xmodmap -e "pointer = 1 2 3 6 4 5"
Where am I going wrong? The scroll works just not the back and forward buttons.
I am testing this in Firebird and in GNOME Nautils just browsing files.
Any help _much_ appreciated!
Nick |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 9:24 pm Post subject: |
|
|
you've got 7, the wheel is pressable. _________________ Markus Nigbur |
|
Back to top |
|
|
chiatello Guru
Joined: 21 Jul 2003 Posts: 321 Location: knoxvegas, tn, AMERIKA
|
Posted: Wed Jul 23, 2003 12:45 am Post subject: |
|
|
this is great, thanks man |
|
Back to top |
|
|
Ard Righ Guru
Joined: 24 Jun 2002 Posts: 337 Location: Wellington, NZ
|
Posted: Wed Jul 23, 2003 6:40 am Post subject: |
|
|
pYrania wrote: | the wheel is pressable. |
Commonly referred to as "mouse3" in most computer software. |
|
Back to top |
|
|
nickc n00b
Joined: 22 Jun 2003 Posts: 30 Location: UK
|
Posted: Wed Jul 23, 2003 5:23 pm Post subject: |
|
|
pYrania wrote: | you've got 7, the wheel is pressable. |
Thanks, I have now set XF86Config like this:
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZaxisMapping" "6 7"
Option "Resolution" "1200"
And issued the command:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
But still no back and forward buttons in Firebird or Nautils
Do I need to set Firebird and Nautils up or something or is it my XF86Config/xmodmap?
Thanks for the help |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Wed Jul 23, 2003 7:26 pm Post subject: |
|
|
uhm i just noticed you're right.
this worked some time ago, but i never used this (appart from testing if it works)
dunno why it doesn't work anymore. I am sure there was no xmodmap update since then, has to be another problem. _________________ Markus Nigbur |
|
Back to top |
|
|
nickc n00b
Joined: 22 Jun 2003 Posts: 30 Location: UK
|
Posted: Wed Jul 23, 2003 7:29 pm Post subject: |
|
|
pYrania wrote: | uhm i just noticed you're right.
this worked some time ago, but i never used this (appart from testing if it works)
dunno why it doesn't work anymore. I am sure there was no xmodmap update since then, has to be another problem. |
Hmmm, there has to be a soloution somewhere? What setup are you using? |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Wed Jul 23, 2003 8:00 pm Post subject: |
|
|
same as yours. _________________ Markus Nigbur |
|
Back to top |
|
|
nickc n00b
Joined: 22 Jun 2003 Posts: 30 Location: UK
|
Posted: Wed Jul 23, 2003 8:03 pm Post subject: |
|
|
Right, I have noticed that using this setup my two side buttons are both functioning as "left click". This sounds like it's simply problem with mapping them to back and forward rather than left click.
Does anyone know how I can do this?
Thanks |
|
Back to top |
|
|
cereal-chiller Tux's lil' helper
Joined: 19 Jul 2003 Posts: 78 Location: Lisbon, Portugal
|
Posted: Thu Jul 24, 2003 9:04 pm Post subject: |
|
|
Has anybody manage to get this to work with gtk2 aplications?
The buttons work with Xmms, but they dont with nautilus and Mozilla-1.4 (gtk2 apps).... _________________ The problem with computers is that they do what you tell them, not what you want!! |
|
Back to top |
|
|
ruronikenshin83 n00b
Joined: 25 Mar 2003 Posts: 42
|
Posted: Wed Jul 30, 2003 10:43 pm Post subject: |
|
|
For some reason, the compile flags that you use for imwheel seem to play a hand in whether or not it works well...
I had to step down from -march to -mcpu
(basically exactly what was written in defaults for /etc/make.conf)
And even then I still had to add:
Code: | exec imwheel -k -p -f -b "67" & |
to get it to work |
|
Back to top |
|
|
neocui Apprentice
Joined: 21 Apr 2003 Posts: 186
|
Posted: Fri Aug 01, 2003 3:56 pm Post subject: |
|
|
I got it working in nautilus and mozilla 1.4 by recompiling imwheel with CFLAGS="-mcpu=i686 -O2 -pipe" |
|
Back to top |
|
|
Bytal Apprentice
Joined: 30 Sep 2002 Posts: 170 Location: NYC, USA
|
Posted: Wed Aug 06, 2003 2:10 am Post subject: |
|
|
Cereal: GTK2 apps have had some probs picking up the imwheel signals. What I had to resort to was to change my .imwheelrc to
Code: |
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
|
So that overrides any other settings unfortunately (ie u can only use the buttons as Alt_L + Right) but also clobbers gtk2 into actually picking up the signals. And its not much of a prob becuase most apps agree on this key combo for back and forth movement, if its applicable. _________________ Of all the things I lost, I miss my mind the most. |
|
Back to top |
|
|
solarium_rider Tux's lil' helper
Joined: 23 Jun 2003 Posts: 88 Location: San Francisco
|
Posted: Wed Aug 13, 2003 1:30 am Post subject: |
|
|
For those of you who prefer to make things nice an elegant, if you start imwheel w/ the line: Code: | imwheel -k -b "000067" |
And then just edit your ~/.imwheelrc (it appears to overide the global one, so you don't have to touch that) to have: Code: | "^Mozilla.*"
None, Thumb1, Alt_L|Left, 1,
None, Thumb2, Alt_L|Right, 1,
|
Using the Thumb1 and Thumb2 identifiers makes in more intuitive (for me anyways.)
This will make sure it only works in Mozilla as well (which is a GOOD THING if you play a lot of games.)
-Chris |
|
Back to top |
|
|
derlauer n00b
Joined: 25 Jan 2003 Posts: 15
|
Posted: Sat Aug 16, 2003 10:33 pm Post subject: |
|
|
all my buttons are working but my problem is that the wheel up/down is switched with the two side buttons. so if i press a side button the window scrolls up or down.
mouse: microsoft intelli optical
xf86config: Code: | Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Resolution" "1200" |
/etc/x11/gdm/sessions/gnome: Code: | xmodmap -e "pointer = 1 2 3 6 7 5 4" |
|
|
Back to top |
|
|
cvt n00b
Joined: 17 Aug 2003 Posts: 1 Location: to close mayne
|
Posted: Sun Aug 17, 2003 5:44 am Post subject: |
|
|
I'm using a MS Exporer mouse...
I'm wanting to map the 2 side buttons to programs.. like.
Through all apps, I want the big button to launch "3ddesk" and the small button to be the enter key (works)
when running winex I want the big button to be "p" (or oter games aswell)
is that possible? |
|
Back to top |
|
|
pi-cubic Tux's lil' helper
Joined: 25 May 2003 Posts: 143
|
Posted: Sun Aug 17, 2003 6:38 pm Post subject: |
|
|
derlauer wrote: | all my buttons are working but my problem is that the wheel up/down is switched with the two side buttons. so if i press a side button the window scrolls up or down.
mouse: microsoft intelli optical
xf86config: Code: | Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Resolution" "1200" |
/etc/x11/gdm/sessions/gnome: Code: | xmodmap -e "pointer = 1 2 3 6 7 5 4" |
|
you might want to check ur xmodmap line, it should be: xmodmap -e "pointer = 1 2 3 6 7 4 5". take a look at the last 2 digits! |
|
Back to top |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Wed Aug 20, 2003 6:38 am Post subject: |
|
|
Ok, I have things finally working now. Was very confused as to why it wasn't working until I realised that Firebird was running with gtk2. Currently my .imwheelrc file reads:
Code: | "(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"^MozillaFirebird"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"^xmms"
None, Down, Z
None, Up, B
|
I have two questions:
In windows I have the scroll-wheel-press action configured to go "Back" in the browser. Is this possible with imwheel or just natively through X (I am under the assumption that imwheel is only manageing the left and right side buttons)?
Can I speed up the scroll action, so a single scroll click up or down scrolls more "lines" of text in MozillaFirebird?
Thanks,
Ben |
|
Back to top |
|
|
opello n00b
Joined: 01 Jul 2002 Posts: 35 Location: USA
|
Posted: Wed Aug 20, 2003 4:14 pm Post subject: |
|
|
This is a great thread Should be added to the docs.
For people having the side buttons scroll (it's been mentioned a few times, as has the solution) all you have to do is change the 'pirority' of the devices (set the intellimouse as the "CorePointer" and the 'other pointers' (for me my laptop's trackpad/pointer stick) as "SendCoreEvents")
i've yet to do the imwheel stuff, but my wheel works with that information --
for scroll speed - i know normal mozilla has that in the prefs > advanced > mouse wheel, but i dunno about firebird (i would assume so)
EDIT:
imwheel isn't working, my config is:
Code: | cat ~/.imwheelrc
"Mozilla"
None, Thumb1, Alt_L|Left
None, Thumb2, Alt_L|Right
"^xmms"
None, Thumb1, Z
None, Thumb2, B |
but it seems that in nano or scrolling up/dn in mozilla, it's doing a pageup or a pagedown (not the 3 lines i have set in the prefs)
how do i fix this - any ideas?
EDIT 2:
fixed, s/Thumb1/Left and s/Thumb2/Right
i dunno what the deal is, but everyone seems to use different 'symbols' for the thumb buttons, thanks to #imwheel on irc.freenode.net
Last edited by opello on Wed Sep 03, 2003 5:24 pm; edited 1 time in total |
|
Back to top |
|
|
|