Bug 12922 - no scroll-wheel reports for "trackman" USB-mouse, but is detected fine
Summary: no scroll-wheel reports for "trackman" USB-mouse, but is detected fine
Status: CLOSED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 17:58 UTC by clemens fischer
Modified: 2012-05-30 14:56 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.28
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description clemens fischer 2009-03-23 17:58:41 UTC
Latest working kernel version: 2.6.28
Earliest failing kernel version: don't know
Distribution: Arch Linux x86, most recent stable

# uname -a
Linux spotteswoode.dnsalias.org 2.6.28-ARCH #1 SMP PREEMPT Sun Mar 8 10:18:28 UTC 2009 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux

Hardware Environment:

# lspci -v

00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
	Subsystem: Giga-byte Technology Device 5001
	Flags: bus master, 66MHz, fast devsel, latency 0
	Capabilities: [44] HyperTransport: Slave or Primary Interface
	Capabilities: [dc] HyperTransport: MSI Mapping Enable+ Fixed-

00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
	Subsystem: Giga-byte Technology Device 0c11
	Flags: bus master, 66MHz, fast devsel, latency 0

00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
	Subsystem: Giga-byte Technology Device 0c11
	Flags: 66MHz, fast devsel, IRQ 11
	I/O ports at b800 [size=64]
	I/O ports at 1c00 [size=64]
	I/O ports at 1c40 [size=64]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: nForce2_smbus
	Kernel modules: i2c-nforce2

00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
	Subsystem: Giga-byte Technology Device 0c11
	Flags: 66MHz, fast devsel

00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2) (prog-if 10 [OHCI])
	Subsystem: Giga-byte Technology Device 5004
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
	Memory at fd005000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2) (prog-if 20 [EHCI])
	Subsystem: Giga-byte Technology Device 5004
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
	Memory at fd006000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [44] Debug port: BAR=1 offset=0098
	Capabilities: [80] Power Management version 2
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000a000-0000afff
	Memory behind bridge: f9000000-faffffff
	Prefetchable memory behind bridge: 50000000-500fffff
	Capabilities: [b8] Subsystem: Giga-byte Technology Device 026f
	Capabilities: [8c] HyperTransport: MSI Mapping Enable+ Fixed-

00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
	Subsystem: Giga-byte Technology Device a002
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
	Memory at fd000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] MSI: Mask+ 64bit+ Count=1/1 Enable-
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2) (prog-if 8a [Master SecP PriP])
	Subsystem: Device f458:5002
	Flags: bus master, 66MHz, fast devsel, latency 0
	[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	I/O ports at f000 [size=16]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: pata_amd
	Kernel modules: pata_amd, amd74xx

00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
	Subsystem: Giga-byte Technology Device e000
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 767
	Memory at fd007000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at bc00 [size=8]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] MSI: Mask+ 64bit+ Count=1/8 Enable+
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: forcedeth
	Kernel modules: forcedeth

00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
	Subsystem: Giga-byte Technology Device b002
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
	I/O ports at 09f0 [size=8]
	I/O ports at 0bf0 [size=4]
	I/O ports at 0970 [size=8]
	I/O ports at 0b70 [size=4]
	I/O ports at d000 [size=16]
	Memory at fd008000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Capabilities: [b0] MSI: Mask- 64bit+ Count=1/4 Enable-
	Capabilities: [cc] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: sata_nv
	Kernel modules: sata_nv

00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
	Subsystem: Giga-byte Technology Device b002
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
	I/O ports at 09e0 [size=8]
	I/O ports at 0be0 [size=4]
	I/O ports at 0960 [size=8]
	I/O ports at 0b60 [size=4]
	I/O ports at e400 [size=16]
	Memory at fd004000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Capabilities: [b0] MSI: Mask- 64bit+ Count=1/4 Enable-
	Capabilities: [cc] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: sata_nv
	Kernel modules: sata_nv

00:0d.0 VGA compatible controller: nVidia Corporation GeForce 6150SE nForce 430 (rev a2) (prog-if 00 [VGA controller])
	Subsystem: Giga-byte Technology Device d000
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 10
	Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
	[virtual] Expansion ROM at 50100000 [disabled] [size=128K]
	Capabilities: [48] Power Management version 2
	Capabilities: [50] MSI: Mask- 64bit+ Count=1/1 Enable-
	Kernel modules: nvidiafb

00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] Secure device <?>
	Kernel driver in use: k8temp
	Kernel modules: k8temp

01:07.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)
	Subsystem: 3Com Corporation 3C905CX-TX/TX-M Fast Etherlink for PC Management NIC
	Flags: bus master, medium devsel, latency 64, IRQ 17
	I/O ports at a000 [size=128]
	Memory at fa005000 (32-bit, non-prefetchable) [size=128]
	[virtual] Expansion ROM at 50000000 [disabled] [size=128K]
	Capabilities: [dc] Power Management version 2
	Kernel driver in use: 3c59x
	Kernel modules: 3c59x

01:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
	Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
	Flags: bus master, medium devsel, latency 32, IRQ 18
	Memory at fa004000 (32-bit, non-prefetchable) [size=2K]
	Memory at fa000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci1394
	Kernel modules: ohci1394

# cat /proc/interrupts
           CPU0       CPU1       
  0:         58         94   IO-APIC-edge      timer
  1:         35      29979   IO-APIC-edge      i8042
  7:          1          0   IO-APIC-edge      parport0
  8:          0        260   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 14:          0         71   IO-APIC-edge      pata_amd
 15:          0          0   IO-APIC-edge      pata_amd
 18:          0          3   IO-APIC-fasteoi   ohci1394
 20:        111      72274   IO-APIC-fasteoi   ohci_hcd:usb2
 21:          0          3   IO-APIC-fasteoi   ehci_hcd:usb1
 22:        177     167806   IO-APIC-fasteoi   sata_nv, HDA Intel
 23:          1        863   IO-APIC-fasteoi   sata_nv
767:       1673    3283053   PCI-MSI-edge      eth1
NMI:          0          0   Non-maskable interrupts
LOC:    1365658    1433418   Local timer interrupts
RES:     384674     235663   Rescheduling interrupts
CAL:        134         36   Function call interrupts
TLB:       7234       6333   TLB shootdowns
TRM:          0          0   Thermal event interrupts
SPU:          0          0   Spurious interrupts
ERR:          1
MIS:          0

# cat /proc/bus/input/devices

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3 
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event5 
B: EV=40001
B: SND=6

I: Bus=0003 Vendor=046d Product=c404 Version=0110
N: Name="Logitech Trackball"
P: Phys=usb-0000:00:02.0-2/input0
S: Sysfs=/class/input/input6
U: Uniq=
H: Handlers=mouse1 event4 
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

Software Environment:

# cat /proc/cmdline 
vga=773 root=/dev/disk/by-uuid/95b3cec2-934b-4115-a601-f7b10924b477 ro verbose

# lsmod
Module                  Size  Used by
hid_logitech           11392  0 
ff_memless              6792  1 hid_logitech
fuse                   53020  0 
ipv6                  260340  14 
ipt_MASQUERADE          4608  1 
ipt_NETMAP              3584  1 
iptable_nat             7428  1 
nf_nat                 18708  3 ipt_MASQUERADE,ipt_NETMAP,iptable_nat
xt_connlimit            5768  6 
ipt_LOG                 7684  1 
xt_pkttype              3584  3 
xt_limit                3972  8 
xt_tcpudp               4864  32 
xt_recent              12196  12 
nf_conntrack_ipv4      14988  20 iptable_nat,nf_nat
nf_defrag_ipv4          3712  1 nf_conntrack_ipv4
xt_state                3968  11 
nf_conntrack           58696  6 ipt_MASQUERADE,iptable_nat,nf_nat,xt_connlimit,nf_conntrack_ipv4,xt_state
xt_multiport            5120  2 
iptable_filter          4608  1 
ip_tables              12944  2 iptable_nat,iptable_filter
x_tables               14980  12 ipt_MASQUERADE,ipt_NETMAP,iptable_nat,xt_connlimit,ipt_LOG,xt_pkttype,xt_limit,xt_tcpudp,xt_recent,xt_state,xt_multiport,ip_tables
xfs                   561864  3 
ppdev                   9348  0 
lp                     11108  0 
pcspkr                  4352  0 
ohci1394               31280  0 
ieee1394               79940  1 ohci1394
usbhid                 36640  1 hid_logitech
hid                    40704  2 hid_logitech,usbhid
sg                     26804  0 
parport_pc             37700  1 
parport                33004  3 ppdev,lp,parport_pc
i2c_nforce2             8580  0 
i2c_core               22804  1 i2c_nforce2
thermal                17180  0 
evdev                  11296  1 
fan                     6276  0 
button                  7824  0 
battery                12036  0 
ac                      6020  0 
snd_seq_oss            31872  0 
snd_seq_midi_event      8192  1 snd_seq_oss
snd_seq                49968  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8204  2 snd_seq_oss,snd_seq
snd_pcm_oss            40192  0 
snd_mixer_oss          16512  1 snd_pcm_oss
snd_hda_intel         412980  0 
snd_pcm                70020  2 snd_pcm_oss,snd_hda_intel
snd_timer              21384  2 snd_seq,snd_pcm
snd_page_alloc         10120  2 snd_hda_intel,snd_pcm
snd_hwdep               9092  1 snd_hda_intel
snd                    50852  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
soundcore               8160  1 snd
loop                   16012  0 
cpufreq_powersave       3456  0 
cpufreq_ondemand        8972  1 
k8temp                  6144  0 
it87                   22032  0 
hwmon_vid               4864  1 it87
powernow_k8            15364  1 
freq_table              5632  2 cpufreq_ondemand,powernow_k8
processor              41388  2 thermal,powernow_k8
slhc                    7552  0 
forcedeth              56592  0 
3c59x                  42280  0 
mii                     6528  1 3c59x
rtc_cmos               12332  0 
rtc_core               17564  1 rtc_cmos
rtc_lib                 4480  1 rtc_core
ext2                   66184  2 
mbcache                 8708  1 ext2
sd_mod                 26904  7 
sr_mod                 16708  0 
cdrom                  35360  1 sr_mod
ohci_hcd               25360  0 
ehci_hcd               36876  0 
usbcore               136848  4 usbhid,ohci_hcd,ehci_hcd
sata_nv                24072  6 
ata_generic             6788  0 
pata_amd               12292  0 
pata_acpi               6016  0 
libata                157856  4 sata_nv,ata_generic,pata_amd,pata_acpi
scsi_mod              102164  4 sg,sd_mod,sr_mod,libata


Problem Description:

Please see <url:http://bugs.freedesktop.org/show_bug.cgi?id=20789> for the first description of my problem, when I thought it would be an X11 evdev problem.  They reject it tagged "NOTOURBUG", because there's no way I can reliably get scroll-wheel events logged.

The trackball works except for that wheel.  Every once in a while wheel-scroll-down events can be seen, very rarely -scroll-up events, the wheel is useless.  I have tried "od /dev/input/event4", xev(1), evtest.c (unofficial test program), "evrouter -d" and so on, but normally no wheel events are recorded.  Peter Hutterer from Xorg and the evrouter(1) developer think it must be a problem with the kernel not handling mouse events properly.

The device is recognized properly by both the kernel and Xorg[1], and there is absolutely nothing in dmesg(1).

[1]
dmesg:
...
ACPI: Core revision 20080926
ACPI: Checking initramfs for custom DSDT
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ stepping 02
Booting processor 1 APIC 0x1 ip 0x6000
Initializing CPU#1
Calibrating delay using timer specific routine.. 4421.21 BogoMIPS (lpj=7366749)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x7010600070106
...
usbcore: registered new interface driver hiddev
input: Logitech Trackball as /class/input/input4
generic-usb 0003:046D:C404.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:02.0-2/input0
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
...

log/Xorg.0.log:
...
(**) Option "SendCoreEvents"
(**) le_trackball: always reports core events
(**) le_trackball: Device: "/dev/input/by-id/usb-Logitech_Trackball-event-mouse"
(II) le_trackball: Found 3 mouse buttons
(II) le_trackball: Found x and y relative axes
(II) le_trackball: Found scroll wheel(s)
(II) le_trackball: Configuring as mouse
(**) le_trackball: YAxisMapping: buttons 4 and 5
(**) le_trackball: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "le_trackball" (type: MOUSE)
(**) le_trackball: (accel) keeping acceleration scheme 1
(**) le_trackball: (accel) filter chain progression: 2.00
(**) le_trackball: (accel) filter stage 0: 20.00 ms
(**) le_trackball: (accel) set acceleration profile 0
...

The oldest kernel I have is a 2.6.19 from a KNOPPIX-CD, but it exhibits the same problem.  As the trackball is brandnew and I ran Freebsd before switching to linux a few weeks ago, I cannot say much more than ... it works perfectly normal on window$, as my neighbor assured me.

As this is my first bug report with bugzilla.kernel.org, there may be information missing.  Please tell me what to provide in addition to the above, especially on how to have the kernel log USB HID events as it sees them, how to get verbose/debugging output from specific modules or what to add to the kernel command line.

Steps to reproduce:

Try to use a the scroll-wheel of a "Logitech TrackMan Wheel".

Regards, clemens
Comment 1 Lionel Dricot 2009-12-10 15:05:30 UTC
I confirm this bug. (see https://bugs.edge.launchpad.net/linux/+bug/237318 )



Also, it might be interesting to note that the lsusb number is the same as a number of touchpads on various laptops.

Is the kernel thinking that this is a touchpad and thus not thinking a touchpad could have a wheel?
Comment 2 Lionel Dricot 2010-01-04 15:43:18 UTC

ok, it seems that that the trackball I was testing was broken, it's not a bug in the kernel.

Funny stuff : it broke the day my coworker migrated to Ubuntu, leading us to think that it was an Ubuntu bug.


Those trackball seem really easy to break.

Note You need to log in before you can comment on or make changes to this bug.