Re: USB TrackPoint mouse non-functional with dock; works if direct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 07, 2015 at 02:29:39PM -0600, Felipe Balbi wrote:
> 
> Hi,
> 
> Josh Triplett <josh@xxxxxxxxxxxxxxxx> writes:
> > I have a USB Lenovo ThinkPad Keyboard with TrackPoint (vendor:product
> > 17ef:6009), and a ThinkPad Yoga 12 (Broadwell version) with OneLink Pro
> > dock. If I plug the keyboard/mouse directly into the laptop,
> > it works fine. If I plug it into the dock, the keyboard works fine;
> > however, the mouse works for a fraction of a second and then stops
> > working.  (Both the TrackPoint and its mouse buttons do not work through
> > the dock.)
> >
> > The dock shows up as four of:
> > 2109:0812 VIA Labs, Inc. VL812 Hub
> 
> this dock probably doesn't like autosuspend. Can you disable autosuspend
> for it and see if it sorts it out ?

I tried doing so, and that did not help:

> > At first, I wondered if USB autosuspend might have something to do with
> > this.  However, I confirmed that the keyboard/mouse itself didn't have
> > autosuspend turned on in the first place, and while the hubs did,
> > turning off autosuspend for *all* USB devices did not fix the problem.

Note that after disabling autosuspend on all devices, I then unplugged and
replugged the keyboard/mouse device, and the problem remained: the mouse only
works for a fraction of a second before stopping.

> > Looking at the sysfs path for the input device as shown in dmesg,
> > /sys/devices/pci0000\:00/0000\:00\:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2\:1.1/supports_autosuspend
> > did say "1".  However, the device didn't actually appear to have
> > autosuspend *enabled*.
> >
> > I'd appreciate any suggestions for how to debug this issue.
> 
> what does 'control' on the power directory show ?

I don't have a file "control" in the power directory when plugged in through
the dock.  The contents of all the files under power when plugged in via dock:

~$ head /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/*
==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/async <==
enabledd /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/*
==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/async <==
disabled

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/autosuspend_delay_ms <==
head: error reading ‘/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/autosuspend_delay_ms’: Input/output error

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/control <==
auto

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_active_kids <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_active_time <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_enabled <==
disabled

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_status <==
unsupported

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_suspended_time <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_usage <==
0


==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/runtime_active_kids <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/runtime_enabled <==
enabled

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/runtime_status <==
suspended

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/runtime_usage <==
0


Suspend does look like the problem here.  If I run a continuous loop
looking at
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2:1.1/power/runtime_status
, and then plug the device into the same port on the dock, that file
goes from "No such file or directory" to "active" and then almost
immediately to "suspended".


By contrast, if I plug the device into my laptop directly, the
corresponding power directory has quite different contents, and more
files:

~$ head /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/*
==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/async <==
disabled

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/autosuspend_delay_ms <==
head: error reading ‘/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/autosuspend_delay_ms’: Input/output error

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/control <==
auto

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_active_kids <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_active_time <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_enabled <==
disabled

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_status <==
unsupported

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_suspended_time <==
0

==> /sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:17EF:6009.002D/power/runtime_usage <==
0

- Josh Triplett
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux