Logitech RX300 mouse extra-buttons without kernel events

Bug #27421 reported by Ignacio Lago Fontán
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Confirmed
Medium
Unassigned
linux-source-2.6.22 (Ubuntu)
New
Undecided
Unassigned

Bug Description

The Logitech RX300 mouse wheel have two extra clicks (side left and side right)
with the internal buttons. xev can't detect this two extra-buttons. 7 buttons in
this mouse. Tested with the different drivers (mouse, evdev...) and the
different protocols (ImPS/2, Explore/PS2...)

The 'xmodmap -pp' output is:

There are 5 pointer buttons defined.

The 'cat /proc/bus/input/devices' output for the mouse is:

I: Bus=0003 Vendor=046d Product=c040 Version=2400
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-1/input0
H: Handlers=mouse0 event1 ts0
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=143

'xev' haven't response for this two buttons.

All the other functions of the mouse (3 standar buttons plus wheel) work well.

Revision history for this message
Daniel Stone (daniels) wrote :

ben, how do we go about getting output from the kernel event devices?

Revision history for this message
Ben Collins (ben-collins) wrote :

(In reply to comment #1)
> ben, how do we go about getting output from the kernel event devices?

modprobe evbug

Daniel Stone (daniels)
Changed in xserver-xorg-input-mouse:
assignee: daniels → nobody
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

could you please do:

cat /dev/input/mouse0

and try to press the buttons?

Is there anything showing on terminal?

Be aware that everything you do on the mouse (including movements) will show up there.

Fabio

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

No, the extra-buttons doesn't show any change in the output.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Ben, the kernel is not sending events anylonger. X can't do much without them.

Fabio

Revision history for this message
Ben Collins (ben-collins) wrote :

Is it that it's not sending these events any longer, or that it never sent them? If the events exist, and are standard HID stuff, then the event layer should be processing them. If they are some special protocol, like something that needs a driver under Windows, then there's probably not much to support.

I'm going to attach two test programs to the bug report to help identify the problem.

Revision history for this message
Ben Collins (ben-collins) wrote : Event Test

Compile this program with this command:

cc evtest.c -o evtest

Then execute it like:

./evtest /dev/input/event0 > evtest.log

(Make sure to change event0 to whatever event device is actually used for your mouse).

While it is running, hit the buttons, then hit Ctrl+C to stop it.

Attach hidtest.log to this bug report.

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

evtest.log is empty when these buttons are pressed.

Revision history for this message
Ben Collins (ben-collins) wrote :

Please attach the complete log. It will atleast tell me some info about the device and what the kernel is seeing.

Revision history for this message
Brian Murray (brian-murray) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and feel free to submit bug reports in the future.

Changed in linux-source-2.6.15:
assignee: nobody → brian-murray
status: Needs Info → Rejected
Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote :

The problem with the 0 bytes log was in saving the output to a file.

Without saving the output to a file I can see things in the program output, but with the > the log is empty/0 bytes. The buttons are pressing the sides of the wheel. First I pressed to the left, then to the right.

Then I will copy and paste the output:

Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x46d product 0xc040 version 0x110
Input device name: "Logitech USB-PS/2 Optical Mouse"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn)
    Event code 274 (MiddleBtn)
    Event code 275 (SideBtn)
    Event code 276 (ExtraBtn)
    Event code 277 (ForwardBtn)
    Event code 278 (BackBtn)
    Event code 279 (TaskBtn)
  Event type 2 (Relative)
    Event code 0 (X)
    Event code 1 (Y)
    Event code 6 (HWheel)
    Event code 8 (Wheel)
Testing ... (interrupt to exit)
Event: time 1180182482.286942, type 2 (Relative), code 6 (HWheel), value 1
Event: time 1180182482.286949, -------------- Report Sync ------------
Event: time 1180182483.846678, type 2 (Relative), code 6 (HWheel), value -1
Event: time 1180182483.846686, -------------- Report Sync ------------

<Ctrl+C>
Sorry

Changed in linux-source-2.6.15:
assignee: brian-murray → ubuntu-kernel-team
status: Rejected → Confirmed
Revision history for this message
Peter Buri (peter-buri) wrote :

The same with 2.6.20.

After "modprobe evbug" i can see in the log:

Middle button down:

Jun 4 11:24:14 localhost kernel: [ 1283.992882] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 2, Code: 0, Value: 1
Jun 4 11:24:14 localhost kernel: [ 1283.992894] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0
Jun 4 11:24:14 localhost kernel: [ 1284.232864] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 2, Code: 6, Value: -1
Jun 4 11:24:14 localhost kernel: [ 1284.232872] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0

Middle button left/right:

Jun 4 11:24:24 localhost kernel: [ 1293.656110] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 2, Code: 6, Value: -1
Jun 4 11:24:24 localhost kernel: [ 1293.656118] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0

Jun 4 11:24:25 localhost kernel: [ 1295.143990] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 2, Code: 6, Value: 1
Jun 4 11:24:25 localhost kernel: [ 1295.143998] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0

And what is the most interesting part is: after getting another Logitech mouse, and try this rx300 at a windows [works fine there] and switch it back the middle button event changed:

Jun 4 11:52:27 localhost kernel: [ 2976.485249] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 1, Code: 274, Value: 1
Jun 4 11:52:27 localhost kernel: [ 2976.485263] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0
Jun 4 11:52:27 localhost kernel: [ 2976.509250] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 2, Code: 6, Value: -1
Jun 4 11:52:27 localhost kernel: [ 2976.509258] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0
Jun 4 11:52:27 localhost kernel: [ 2976.605232] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 1, Code: 274, Value: 0
Jun 4 11:52:27 localhost kernel: [ 2976.605244] evbug.c: Event. Dev: usb-0000:00:02.0-8/input0, Type: 0, Code: 0, Value: 0

Revision history for this message
Grzegorz Orciuch (frozz) wrote :

I've rx300 mouse and it works well with following configuration:
1. Connected to usb port (not to PS/2)
2. Must have event device driver support in kernel and x-server.
3. in xorg.conf :
       Section "InputDevice"
        Identifier "Mouse0"
        Driver "evdev"
        Option "Protocol" "IMPS/2"
        Option "Device" "/dev/input/event2"
4. left-side and right-side middle button(roll-click) work well, and xev recognize events.
5. other mouse features work as well.

enjoy!

Revision history for this message
glepore70 (greg-rhobard) wrote :

Confirming this bug on 2.6.22-14-generic as well. Same output from evtest as described above by Ignacio Lago Fontán. Suggested fix by Grzegorz Orciuch doesn't work, xev still fails to see left and right side wheel clicks.

Revision history for this message
Ignacio Lago Fontán (nacho-exr) wrote : Re: [Bug 27421] Re: Logitech RX300 mouse extra-buttons without kernel events

With a Section in Xorg.conf as this:

Section "InputDevice"
        Identifier "Mouse0"
        Driver "evdev"
        Option "Protocol" "IMPS/2"
        Option "CorePointer"
        Option "Emulate3Buttons" "false"
        Option "Buttons" "7"
        #Option "Device" "/dev/input/event2"
        Option "Name" "Logitech USB-PS/2 Optical
Mouse"
        Option "ZAxisMapping" "4 5"
        Option "ButtonMapping" "1 2 3 7 6"
        Option "Resolution" "300"
EndSection

I have my RX300 mouse working 100%, with the side buttons of the wheel (xev
detects them and I can go Back and Forward in Firefox with them). Thanks
Grzegorz Orciuch :) your tip worked for me.

Gutsy Gibbon with kernel 2.6.22-14-generic

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Mike (michal-ostrowski) wrote :

Hi, I'm a total n00b (a recent windows convert).... I have a Logitech RX300 (USB) mouse, and am having similar issues with the scroll wheel buttons not working (down, left, right). Everything else with the mouse works fine.

Gregor and Ignacio, it looks like you two cracked the secret to this thing... can you give me any advice?

I'm running Jaunty x64... the info in my xorg.conf looks like:

Section "InputDevice"

    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Paranoia has me worried that I'll screw something major up if I just copy the same text that you have blindly...

...
what is: "2. Must have event device driver support in kernel and x-server." ?
how do I get "evdev" driver instead of "mouse"? Do I have to install something or just type that in?

I can't wait to be able to go back and forward in webpages with my mouse again...

Any help would be greatly appreciated!

Thanks,
  -Mike

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.