| View previous topic :: View next topic |
| Author |
Message |
brainlock Tux's lil' helper

Joined: 20 Jun 2002 Posts: 110
|
Posted: Wed Jan 29, 2003 6:30 pm Post subject: |
|
|
I've got some problems with imwheel... Here is what I have done so far :
Like other people here I had some problems with the placement of the xmodmap instruction. Finally, I read my /etc/rc.conf file and found that since I have DISPLAYMANAGER=gdm and XSESSION=Gnome, the script that really gets loaded in my case is /etc/X11/Sessions/Gnome.
Now if you read that script, you will see that for system-wide use of the 7 buttons with the wheel working properly, you need to make a file called /etc/X11/Xmodmap in which u put this line:
| Code: | | pointer = 1 2 3 6 7 4 5 |
After u restart X, your mouse wheel will work as expected. Now here is where I run into problems... where do I put the imwheel -k -b "67" command? I have tried putting it in the /etc/X11/Sessions/Gnome script after it loads the Xmodmap file but that doesn't work.
Furthermore, when I type it in the console, this is what I get:
| Code: | bash-2.05b$ imwheel -k -b "67"
WARNING: imwheel process could not be verified, it may not be running anymore, that's OK!
: No such file or directory
WARNING: imwheel pid file could not be removed.
Perhaps you want the -p option.
Or SUID root the imwheel executable...
: Operation not permitted
ERROR: Couldn't write pid to pid file
Perhaps you want the -p option to avoid this...
Otherwise you may SUID root the imwheel executable.
: Permission denied |
What is the problem here?
Any help appreciated,
Brainlock |
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Mon Feb 03, 2003 10:54 am Post subject: |
|
|
Ok I have mu usb mouse working
But I would like to impove it
I have put this on my /etc/X11/Sessions/kde3.1 file
| Code: |
xmodmap -e "pointer = 1 2 3 6 7 4 5 "
imwheel -k b "67"
|
On a web page I can use the wheel , but to use it I have to push on the wheel and turn it .
What I would like to do is just to turn the wheel it without to have to push it .
I hope you understand my request
Sorry for my english |
|
| Back to top |
|
 |
TelMarien n00b


Joined: 21 Jan 2003 Posts: 26 Location: Largo, FL
|
Posted: Thu Feb 20, 2003 4:28 am Post subject: |
|
|
| Think in the desktop install guide say's you are only suppose to use one or the other never both (hid or usbmouse). I have hid loaded seems to work fine. |
|
| Back to top |
|
 |
stig Apprentice


Joined: 03 Sep 2002 Posts: 289 Location: Bærum, Norway
|
Posted: Sun Feb 23, 2003 11:20 am Post subject: |
|
|
Here is some extra info that might help someone...
When I tried to get the buttons to work with mozilla (1.2.1-r3) I encountered som problems. The nice little app "xev" told me that all the buttons were working (Intellimouse Explorer PS/2) but it didn't do anything in the browser.
After having followed this useful thread, I put (amongst other things)
in my /etc/X11/Sessions/fluxbox.
When I excecuted the command manually, It worked fine with mozilla, but when put in the startup file, it didn't.
When I changed the line in /etc/X11/Sessions/fluxbox to:
| Code: | | imwheel -p -k -b "67" | thus adding an additional "-p" made it work fine.
Hope it helps someone. _________________ Allting har en ende, pølsen den har to.
Last edited by stig on Sat Oct 25, 2003 8:50 pm; edited 2 times in total |
|
| Back to top |
|
 |
Bowyakka Tux's lil' helper


Joined: 04 Oct 2002 Posts: 142 Location: London
|
Posted: Sun Feb 23, 2003 3:09 pm Post subject: |
|
|
I cheated and just made imwehll suid root
| brainlock wrote: | I've got some problems with imwheel... Here is what I have done so far :
Like other people here I had some problems with the placement of the xmodmap instruction. Finally, I read my /etc/rc.conf file and found that since I have DISPLAYMANAGER=gdm and XSESSION=Gnome, the script that really gets loaded in my case is /etc/X11/Sessions/Gnome.
Now if you read that script, you will see that for system-wide use of the 7 buttons with the wheel working properly, you need to make a file called /etc/X11/Xmodmap in which u put this line:
| Code: | | pointer = 1 2 3 6 7 4 5 |
After u restart X, your mouse wheel will work as expected. Now here is where I run into problems... where do I put the imwheel -k -b "67" command? I have tried putting it in the /etc/X11/Sessions/Gnome script after it loads the Xmodmap file but that doesn't work.
Furthermore, when I type it in the console, this is what I get:
| Code: | bash-2.05b$ imwheel -k -b "67"
WARNING: imwheel process could not be verified, it may not be running anymore, that's OK!
: No such file or directory
WARNING: imwheel pid file could not be removed.
Perhaps you want the -p option.
Or SUID root the imwheel executable...
: Operation not permitted
ERROR: Couldn't write pid to pid file
Perhaps you want the -p option to avoid this...
Otherwise you may SUID root the imwheel executable.
: Permission denied |
What is the problem here?
Any help appreciated,
Brainlock |
_________________ glows in the dark |
|
| Back to top |
|
 |
stig Apprentice


Joined: 03 Sep 2002 Posts: 289 Location: Bærum, Norway
|
Posted: Mon Feb 24, 2003 8:31 am Post subject: |
|
|
...but did you try adding "-p" to imwheel when putting it in /etc/X11/Sessions/Gnome? _________________ Allting har en ende, pølsen den har to. |
|
| Back to top |
|
 |
sun_downsi n00b

Joined: 22 Feb 2003 Posts: 5
|
Posted: Thu Feb 27, 2003 3:57 am Post subject: |
|
|
K... I've read through this board.. Great tips!
Please note though. Mozilla on it's own DOES NOT RECOGNIZE THE TWO SIDE BUTTONS ON THE INTELLIMOUSE EXPLORER! This is fluent through the Windows, Mac, and Linux versions.
Later _________________ "A gun and a sharpie... What more could one want?" ~Twap from Untitled! |
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Fri Feb 28, 2003 1:32 pm Post subject: |
|
|
I would like to come back to 3 buttons instead of 5
I just bought a new Optcal wireless blue mouse .
my XF86Config was
| Code: |
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "Buttons" "7"
Option "ZaxisMapping" "6 7"
Option "Resolution" "1200"
|
This configuration work with my previous Usb Intellimouse Explorer .
But now to get my blue Optical mouse working I try
| Code: |
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "Buttons" "3"
Option "ZaxisMapping" "4 5"
Option "Resolution" "1200"
|
But I can just move verticaly
please what is the right configuration ?
My usb wireless receiver is well recognize as
| Code: |
input0 : Microsoft Microsoft Wireless Optical Mouse 1.0A on usb1:2.0
|
|
|
| Back to top |
|
 |
jetblack Guru


Joined: 15 Jan 2003 Posts: 340 Location: Evanston, IL, USA
|
Posted: Fri Feb 28, 2003 2:38 pm Post subject: |
|
|
| vibidoo wrote: | I would like to come back to 3 buttons instead of 5
But now to get my blue Optical mouse working I try
| Code: |
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "Buttons" "3"
Option "ZaxisMapping" "4 5"
Option "Resolution" "1200"
|
But I can just move verticaly
please what is the right configuration ?
|
Is this a wheel mouse? Even if it's only a "3 button" wheel mouse (where the wheel is the middle button), you will need to tell X that it has 5 buttons. Change Option "Buttons" "3" to Option "Buttons" "5". Otherwise, it won't recognize that there are buttons 4 and 5 to map the scroll wheel to.
Not sure if this addresses the problem you are currently having, but it should make the mouse behave more like you'd expect. |
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Fri Feb 28, 2003 2:56 pm Post subject: |
|
|
yes it's a wheel mouse
I change from 3 to 5 buttons
still the same problem |
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Fri Feb 28, 2003 3:32 pm Post subject: |
|
|
Here my test with the usb -> PS2 adaptor
| Code: |
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "5"
Option "ZaxisMapping" "4 5"
Option "Resolution" "1200"
|
The mouse is working very well and the wheel run well on Mozilla.
Now connect directly to the USB
| Code: |
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "Buttons" "5"
Option "ZaxisMapping" "4 5"
Option "Resolution" "1200"
|
I still can only move verticaly |
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Fri Feb 28, 2003 3:52 pm Post subject: |
|
|
I fix it by
ismod hid
rather than
insmod usbmouse
So now my mouse is working , but I can not use the wheel
What do I have to modify on xmodmap ?
I tried this
| Code: |
xmodmap -e "pointer = 1 5 3 2 4"
imwheel -k b "45"
|
|
|
| Back to top |
|
 |
vibidoo Guru


Joined: 27 Nov 2002 Posts: 392
|
Posted: Fri Feb 28, 2003 4:11 pm Post subject: |
|
|
Everything is fixed
I just have to put this
| Code: |
xmodmap -e "pointer = 1 2 3 4 5"
#imwheel -k -b "45"
|
No need imwheel  |
|
| Back to top |
|
 |
Sastraxi Apprentice


Joined: 25 Feb 2003 Posts: 258
|
Posted: Sat Mar 01, 2003 5:02 am Post subject: |
|
|
'twill it work on the MX5/700s from Logitech? (I picked me up one of these MX500 beauties ). |
|
| Back to top |
|
 |
Ric n00b


Joined: 11 Oct 2002 Posts: 8
|
Posted: Tue Mar 04, 2003 3:53 pm Post subject: Gtk2 Apps? |
|
|
I noticed after i installed imwheel, that nautilus would never go back in directorys when i used the side button, but mozilla and phoenix worked find. Then i finally got around to compiling moz with GTK2, and the side buttons stopped working with there as well (same with ephiphany).
Anyone else having problems with GTK2 apps? |
|
| Back to top |
|
 |
Sastraxi Apprentice


Joined: 25 Feb 2003 Posts: 258
|
Posted: Tue Mar 04, 2003 10:29 pm Post subject: |
|
|
| Just so anyone knows, it works beautifully on my MX500. Mouse4/5 work flawlessly in RtCW, soon I will try it in WineX/CS. |
|
| Back to top |
|
 |
Kodama Tux's lil' helper


Joined: 28 Jan 2003 Posts: 85 Location: Linköping, Sweden
|
Posted: Wed Mar 05, 2003 8:43 pm Post subject: |
|
|
| Great! Thanks for the info Knight and Megatron. |
|
| Back to top |
|
 |
grant.mcdorman Apprentice


Joined: 29 Jan 2003 Posts: 295 Location: Toronto, ON, Canada
|
Posted: Fri Mar 07, 2003 11:37 pm Post subject: Thumb button: I have a program that makes it a double-click |
|
|
Anybody interested?
I don't have a web site, and I feel it's too small for a SourceForge project all on its own.
Drop me a message if you're interested. |
|
| Back to top |
|
 |
doalwa Tux's lil' helper


Joined: 03 Mar 2003 Posts: 122 Location: Old Europe
|
Posted: Sun Mar 09, 2003 11:40 am Post subject: |
|
|
Yeah, you guys totally rule, my mouse works perfect now
Quake 3 , here I come  |
|
| Back to top |
|
 |
buckets n00b

Joined: 25 Mar 2003 Posts: 2
|
Posted: Mon Mar 31, 2003 11:59 pm Post subject: |
|
|
| Alex_K wrote: | i'm useing GDM, and it's not possible for me to execute the xmodmap and imwheel command automatically.
i have tried to write these commands in following files:
~/.xinitrc
~/.Xmodmap
~/.xmodmap
~/.xsession
/etc/X11/Xmodmap
/etc/X11/gdm/Sessions/Xsession
/etc/X11/gdm/Sessions/Gnome
if i run the commands manualy it works ...
i don't know what the problem could be. |
I had the exact same problem, I fixed it by adding -p to the imwheel arguments:
| Code: | | imwheel -k -p -b "67" |
I guessing here but I think my problem was that users didn't have rights to change the PID file so -p means ignore the PID file and just run the program. |
|
| Back to top |
|
 |
cytrox n00b

Joined: 21 Aug 2002 Posts: 13
|
Posted: Tue Apr 01, 2003 5:42 pm Post subject: |
|
|
Great Tip!
Just an additional note, you can make your imwheel config working on a per-application basis, mine looks like this:
~/.imwheelrc:
| Code: |
"konqueror"
None, Up, Alt_L|Right
None, Down, Alt_L|Left
"kmail"
None, Up, plus
None, Down, minus
|
that way, in konqueror the two buttons act as Back and Forward buttons, whereas in kmail they act as "previous unread message" and "next unread message".
Just put the window class or window name as regex in .imwheelrc (instead of the generic ".*") and have a look which keyboad shortcut performs the desired action (in kmail "+" and "-" for prev and next unread msg), and bind them to the buttons in .imwheelrc. |
|
| Back to top |
|
 |
Drewgrange Guru


Joined: 29 Mar 2003 Posts: 483 Location: Ohio, US
|
Posted: Wed Apr 02, 2003 9:20 pm Post subject: |
|
|
I love this thread I've always wanted to be able to use these nice little side buttons in linux. I've got one small problem though. They work as intended in konq, but in mozilla they work just like the mouse wheel.
Is it safe to just erase everything in the mozilla sections "Left RIght & Thumb stuff" section except for the needed None, Up, ..... None, Down, .... lines? I guess I could always just try and see if my mouse breaks  |
|
| Back to top |
|
 |
Drewgrange Guru


Joined: 29 Mar 2003 Posts: 483 Location: Ohio, US
|
Posted: Wed Apr 02, 2003 9:41 pm Post subject: |
|
|
| No dice. Maybe its because I just upgraded to 1.4a. Oh well, thats what I downloaded mouse gestures for |
|
| Back to top |
|
 |
Vache n00b


Joined: 17 Oct 2002 Posts: 45 Location: Springboro, Ohio
|
Posted: Thu Apr 03, 2003 12:36 am Post subject: |
|
|
I've gone through all the steps I've found in this post regarding the mouse configuration, but all my mouse does is scroll vertically now. Any clicks of the buttons send the mouse a few inches over to the right at a time. Perhaps someone could do a quick summary of all the information that has been presented here (?) _________________ Fool me once, shame on you. Fool me twice... you can't fool me again |
|
| Back to top |
|
 |
capran n00b


Joined: 01 Apr 2003 Posts: 48
|
Posted: Thu Apr 10, 2003 3:48 pm Post subject: |
|
|
| Quote: |
i'm useing GDM, and it's not possible for me to execute the xmodmap and imwheel command automatically.
i have tried to write these commands in following files:
~/.xinitrc
~/.Xmodmap
~/.xmodmap
~/.xsession
/etc/X11/Xmodmap
/etc/X11/gdm/Sessions/Xsession
/etc/X11/gdm/Sessions/Gnome
if i run the commands manualy it works ...
i don't know what the problem could be. |
I'm having the same issue. I have the following my .xsession (copied to both my user and root home dirs:
#! /bin/bash
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/bin/imwheel -k -b "67"
/usr/X11R6/bin/xmodmap .Xmodmap
I've chmod +x it, copied it to .kderc, but it still doesn't load at startup. I'm wondering if anyone has had any luck. |
|
| Back to top |
|
 |
|