imwheel crashes startx
I've been trying to get my extra mouse buttons (mx1000) to work in web browsers to no avail. I have a .xinitrc that call imwheel -k -b "89" in order to make the back and forward buttons work on my mouse. When I startx the system returns to CLI with no warnings, but when I remove the .xinitrc the server starts (no back and forward mouse buttons). I also modified the .xiinitrc with a & at the end, but it did not help. When I run the imwheel -k -b "89" in the Konsole while X is running the mouse buttons work as anticipated.
Any suggestions? |
No need for imwheel if you want just the back and forward buttons.
I have the same mouse, this is what works for me so I can go back and fourth in FF. http://susewiki.org/index.php?title=...itech_MX_Mouse Basically just add this line to the input device: mouse section of '/etc/X11/xorg.conf' Code:
Option "ButtonMapping" "1 2 3 6 7" Code:
Section "InputDevice" |
One thing that is very strange is that using xev, when I press the scroll up button that is being read as button 4 AND 6 (why both ?). And when I press scroll down it is being read as button 5 AND 1. I think it is misconfigured. I'll keep trying to find the answer, I'll say if I find it.
|
I have found another solution.
Here's the steps I took. Now this is specifically for the Logitech MX1000 mouse. And pretty much followed the guide here: http://gentoo-wiki.com/HOWTO_Advanced_Mouse Yeah, Gentoo has great HOWTOs ... :) So, 1) Make sure you plug the mouse in via USB, NOT the funky USB -> PS/2 converter ... it is crap ! 2) Next run: Code:
cat /proc/bus/input/devices Mine says: Code:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41 The second one says "Logitech USB Receiver", yeah, that one is the mouse (receiver). 3)Now, I tried Option 2 of that HOWTO, namely: Code:
Section "InputDevice" BUT, I then tried option 1, which is: Code:
Section "InputDevice" Code:
H: Handlers=mouse0 event1 So our config must be this: Code:
Section "InputDevice" 4) Now there is one problem with the above, which is that the event bound to the mouse may change. Might want to try evdev autodetection (option 3 on the HOWTO), even tho it doesn't work for me :( Code:
Section "InputDevice" Code:
#!/bin/sh 5) Last thing is, if your mouse buttons still do not work, do one of the following from the Gentoo guide here:http://gentoo-wiki.com/HOWTO_Advance...ogitech_MX1000 a) put this line into '~/.Xmodmap' (create it if it doesn't exist): Code:
pointer = 1 3 2 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Code:
pointer = 1 2 3 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 There you have it, hope that helps. Again, this is all taken (and interpreted by me) from the above two referenced Gentoo HOWTOs. Again, Gentoo has great howtos, especially on how to customize ... And if you still wanna use imwheel, there's a section on that in there too: http://gentoo-wiki.com/HOWTO_Advanced_Mouse#imwheel BUT, Quote:
|
Does anyone have a better solution to this ? The only thing that works for me is the hackish script that I wrote that modifies xorg.conf on boot to the right 'event#'.
And it works pretty well, but sometimes when I exit xserver, it says it segfaults. It doesn't hurt anything I guess, cuz it crashes only when I exit it ... |
I managed to get a log from one of the crashes:
Code:
(**) Option "CorePointer" |
The problem is generally that your .xinitrc doesn't have the right contents to actually start X. There is a file somewhere that you can copy to get a working .xinitrc, but I'll be danged if I can remember where it is. (Sorry) I generally follow the path of least resistance and found that you can just use the default startup and make the following mods:
BTW: I don't have the same mouse, but here is how I did my MS Intellimouse on Etch: NOTE: For each major revision of Sarge and going from Sarge to Etch I have had to bang on xorg.conf at random with a large heavy object to make it work. I can't say that this will work for anyone else: From xorg.conf: Code:
Section "InputDevice" Code:
/home/myuserid/.xmodmap.sh Code:
#/bin/sh |
I found an old .xinitrc file that I used until I figured out the way I put above. Notice that it has the xmodmap command in it. I had just copied this file verbatim from /etc/X11/xinit/xinitrc, I guess before adding the xmodmap stuff.
Code:
#!/bin/sh |
Well, I looked around a bit, it seems that '/etc/X11/xinit' contains a script 'xinitrc' (actually a symlink to 'xinitrc.fluxbox'), that gets run when I start xserver.
So, what should I do ? How do I stop xserver from crashing when I exit xserver ? If I use the 'mouse' driver, the buttons on my mouse do not work properly. Basically, I'd have to disable most of them so things don't go wrong. |
Sorry TexMex, I was only trying to address Nixis' problem with .xinitrc and remapping the buttons and wheels. I remember going through hell trying to figure out why a simple .xinitrc wouldn't start X. I don't have any suggestions for you if the event is changing from boot to boot. But you might want to open a new thread for your problem.
|
If you want an update on this ... there have been no further crashes. All crashes seem to have originated from a source other than the evdev driver. So, I think the best solution is using the startup script that I proposed. You get a fully functional mouse, even tho the solution is kind of hackish ... I can't find a better solution. Nothing else works.
|
All times are GMT -5. The time now is 08:10 AM. |