You are not logged in.
Pages: 1
Hello all, thanks in advance. I am trying to also get my Logitech Lx7 mouse buttons to work. But to do that, I need to use the evdev driver instead of mouse driver. But when I pacman evdev and modprobe it (I think it works) and I also type evdev into where mouse is for my input device in the xorg.conf file It does not work, my mouse just goes dead. here is my file that concerns the mouse part.
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "LogitechMouse" "CorePointer"
InputDevice "IHATEKLUDGERS"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
#Section "InputDevice"
# # generated from default
# Identifier "Mouse0"
# Driver "mouse"
# Option "Sensitivity" "0.5"
# Option "Protocol" "auto"
# Option "Device" "/dev/psaux"
# Option "Emulate3Buttons" "no"
# Option "ZAxisMapping" "4 5"
#EndSection
Section "InputDevice"
# Logitech LX7 Mouse
Identifier "LogitechMouse"
Driver "mouse"
Option "Sensitivity" "0.5"
Option "CorePointer"
Option "Device" "/dev/input/mouse1"
Option "Name" "Logitech USB RECEIVER"
EndSection
Section "InputDevice"
Identifier "IHATEKLUDGERS"
Driver "void"
EndSection
Also for clarification I commented out the original mouse driver just in case i want to go back to it. The input device that is identified as IHATEKLUDGERS is used in this one how to a guy did to turn off the default generation of a mouse by archlinux. I am using what this file has and my mouse works, but it is not used evdev, just mouse. If you have any questions I will be more than happy to answer. Thanks so much for the help in advance!
Offline
So when u change driver to evdev it stops working?
edit: did u read this part of the wiki very closely? I'd use the device by id part if I was you.
Last edited by jacko (2008-04-20 02:18:56)
Offline
Yup, when I change it to evdev, it stops working.
what do you mean by use the device by id part, I am confused?
Thanks again for the input!
Offline
sry, forgot link...
Offline
Do you mean this?
Section "InputDevice"
Identifier "Evdev Mouse" (Change it to this name) (I do not think it will change anything, I would just have to change the name in the server layout section)
Driver "evdev" (When I change it to this, the mouse stops working. I do have evdev installed through pacman, I do not know what going on.)
Option "Name" "Logitech USB Gaming Mouse"
Option "CorePointer"
EndSection
Sorry, I am just not understanding what you are saying to do. sorry.
Offline
Ok, I use evdev for my mouse without any problems, but there are a couple of gotchas. I can probably help you get the mouse at least active, you'll have to follow the wiki to get all those extra buttons working.
I think the problem is with the following two lines in your config:
Section "InputDevice"
...
Option "Device" "/dev/input/mouse1"
Option "Name" "Logitech USB RECEIVER"
EndSection
A little background first. For evdev there are a couple of different ways to specify a device. One is the classic "Device" option and the other is the device properties (Name, Phys, Sysfs, etc.) In my experience using the device properties doesn't work since this requires Xorg to be built with hal support. I believe Arch doesn't do this. If you really wanted "pure" evdev you could rebuild xorg with hal support with ABS, but I won't go there.
This means you'll probably have to use the classic "Device" specifier, despite the warnings about this not being recommended for evdev. In this case you first need to use /dev/input/eventX instead of the mouse device. You can try this, but I can tell you I've had a problem in that the event devices don't always seem to refer to the same device over reboots (at least on my system). I have gotten around this by using the symlinks set up by udev.
Anyway, enough theory, here's what I recommend you do.
1) Find the event device for your mouse. Do
less /proc/bus/input/devices
and find your device, in this case you should see a line like
N: Name="Logitech USB Receiver"
. In the block for the device look at the "Handlers" line and find the event device it is using.
2) No do
cd /dev/input/by-id/; ls -l
and look for the link to the event device you noted in the first step.
3) Get rid of (or comment) the Option "Name" line in your configuration.
4) Add
Option "Device" "/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse"
to your config. Replace the "usb-Logitech_USB_Receiver-event-mouse" part with whatever the name of the link you found is. (I too have a Logitech wireless, I think they all use the same receiver.)
This way, even if the event device for your mouse changes (for me it did across boots) udev still obliges you with a symlink to the correct event device. I did this a while back and since then I've had no problems.
Good luck,
j
Last edited by jbromley (2008-06-02 06:26:57)
Offline
I hope you've run into this already:
http://www.ollisalonen.com/btnx/
Mx1000 and all buttons work and are programmable with that and plain old mouse driver.
Offline
jbromley, Thanks very much for the detailed help. Sadly when I tried your idea, and restarted X X would not load.
Mikko777 I installed btnx and am going to try to work with it for a bit. Thanks!
Offline
jbromley, Thanks very much for the detailed help. Sadly when I tried your idea, and restarted X X would not load.
Did you check the X log to see what the problem was? What I recommended might make you not have a mouse, but it shouldn't prevent X from starting completely. I'll bet you've got some type of syntax error in the config file.
Anyway, if you can get all of your buttons working using the mouse driver, then there really is no reason to toy about with evdev.
If you do come back to evdev, I'll be glad to help out. You may want to take a look at my xorg.conf (which has a Logitech wireless mouse working with evdev) for reference.
Regards,
j
Offline
Thanks, I appreciate it. I was able to get the buttons working with just the mouse driver, well most of them that is . Thanks again!
Offline
Pages: 1