Bug 55867 - Doesn't know how to tag XI_TRACKBALL
Summary: Doesn't know how to tag XI_TRACKBALL
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on: 62831
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-11 10:47 UTC by Bastien Nocera
Modified: 2013-06-06 04:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
udev output for trackball (4.57 KB, text/plain)
2013-03-26 14:56 UTC, Bastien Nocera
no flags Details

Description Bastien Nocera 2012-10-11 10:47:06 UTC
At the very least, it should guess based on the product name:
$ xinput | grep -i trackball
⎜   ↳ Logitech USB Trackball                  	id=15	[slave  pointer  (2)]
Comment 1 Peter Hutterer 2013-03-26 06:27:42 UTC
Pls attach an evtest output of the device.
Comment 2 Bastien Nocera 2013-03-26 14:55:51 UTC
/dev/input/event11:	Logitech USB Trackball

Select the device event number [0-11]: 11
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x46d product 0xc408 version 0x110
Input device name: "Logitech USB Trackball"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
    Event code 274 (BTN_MIDDLE)
    Event code 275 (BTN_SIDE)
    Event code 276 (BTN_EXTRA)
  Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1364309550.848435, type 2 (EV_REL), code 0 (REL_X), value -2
Event: time 1364309550.848435, -------------- SYN_REPORT ------------
Event: time 1364309550.856394, type 2 (EV_REL), code 0 (REL_X), value -2
Event: time 1364309550.856394, -------------- SYN_REPORT ------------
Event: time 1364309550.864397, type 2 (EV_REL), code 0 (REL_X), value -4
Event: time 1364309550.864397, type 2 (EV_REL), code 1 (REL_Y), value 2
Event: time 1364309550.864397, -------------- SYN_REPORT ------------
etc.
Comment 3 Bastien Nocera 2013-03-26 14:56:14 UTC
Created attachment 77060 [details]
udev output for trackball
Comment 4 Peter Hutterer 2013-03-27 00:44:07 UTC
http://patchwork.freedesktop.org/patch/13396/
Comment 5 Peter Hutterer 2013-04-02 04:50:39 UTC
More generic, though less automatic solution proposed in bug 62831
Comment 6 Peter Hutterer 2013-04-17 03:31:18 UTC
commit b59a1a25dad4437e013ce8d3d65d4591c6f4ee4a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Tue Apr 2 14:12:26 2013 +1000

    Add option TypeName (#62831)



Actual assignment of the trackball is up to the distributions in their quirks files, I'll push that to Fedora asap.
Comment 7 Bastien Nocera 2013-06-03 07:33:02 UTC
(In reply to comment #6)
<snip>
> Actual assignment of the trackball is up to the distributions in their
> quirks files, I'll push that to Fedora asap.

Why? Doesn't it make sense for every distro to inherit from those quirks?
Comment 8 Peter Hutterer 2013-06-06 04:02:53 UTC
> (In reply to comment #7)
> Why? Doesn't it make sense for every distro to inherit from those quirks?

in pull request here: http://patchwork.freedesktop.org/patch/13820/


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.