You are not logged in.
The latest version of laptop-mode-tools (1.68-1) restarts every time I connect (or disconnect) a USB device (a mouse) to (or from) my laptop. Moreover, the mouse doesn't work at all. Before rebooting, it worked for a short while. Since rebooting, it does nothing.
For example the journal shows:
Aws 29 03:15:17 MyComputer kernel: usb 1-1.1: new low-speed USB device number 5 using ehci-pci
Aws 29 03:15:17 MyComputer kernel: input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003
:046D:C00E.0002/input/input23
Aws 29 03:15:17 MyComputer kernel: hid-generic 0003:046D:C00E.0002: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on
usb-0000:00:1a.0-1.1/input0
Aws 29 03:15:17 MyComputer mtp-probe[8233]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Aws 29 03:15:17 MyComputer mtp-probe[8233]: bus: 1, device: 5 was not an MTP device
Aws 29 03:15:17 MyComputer systemd[1]: Stopping Laptop Mode Tools...
...
Aws 29 03:15:17 MyComputer kdeinit5[2352]: kcm_keyboard: New device id: 15
...
Aws 29 03:15:17 MyComputer kdeinit5[2352]: kcm_keyboard: id: 15 name: Logitech USB-PS/2 Optical Mouse used as: 4
Aws 29 03:15:17 MyComputer kdeinit5[2352]: kcm_keyboard: new pointer device, id: 15 name: Logitech USB-PS/2 Optical Mouse used as: 4
...
Aws 29 03:15:17 MyComputer laptop-mode[8286]: Laptop mode
Aws 29 03:15:17 MyComputer laptop-mode[8287]: disabled, not active
...
Aws 29 03:15:17 MyComputer kcminit[8272]: Initializing "kcm_input" : "kcminit_mouse"
...
Aws 29 03:15:18 MyComputer systemd[1]: Stopped Laptop Mode Tools.
Aws 29 03:15:18 MyComputer systemd[1]: Starting Laptop Mode Tools...
Aws 29 03:15:18 MyComputer laptop-mode[8934]: Laptop mode
Aws 29 03:15:18 MyComputer laptop-mode[8935]: enabled, not active
...And then it all starts over. I'm not sure if this is an interaction between laptop-mode-tools and KDE or what.
I noticed that makepkg caused it to try (unsuccessfully) to restart acpid when building. However, I forced a rebuild after rebooting. I also removed the dangling acpid.socket left in /etc/systemd/system/sockets.target.wants.
Here's the output from lsusb -v for the device:
[usb]
Bus 001 Device 006: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x046d Logitech, Inc.
idProduct 0xc00e M-BJ58/M-BJ69 Optical Wheel Mouse
bcdDevice 11.00
iManufacturer 1 Logitech
iProduct 2 USB-PS/2 Optical Mouse
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 52
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 10
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)I noticed that a lot of the configuration files in /etc/laptop-mode/conf.d have changed but I cannot find anything obviously related (obvious to me) to mice or USB devices in general.
Note that I would be happy to move away from laptop-mode-tools if better options are now available: last time I checked, I still couldn't get all of the functionality I'm using from other tools.
Last edited by cfr (2015-08-29 22:29:20)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Downgrading to package version 1.67-1 seems to help. At least, my mouse works again.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
This got broken with the last minute change, where I was trying to fix something else.
https://github.com/rickysarraf/laptop-m … 2b20aca114
I'll fix it for the next release. Until then, you can apply the revert yourself. It is just a single line change.
Laptop Mode Tools author
Offline
The latest version of laptop-mode-tools (1.68-1) restarts every time I connect (or disconnect) a USB device (a mouse) to (or from) my laptop. Moreover, the mouse doesn't work at all. Before rebooting, it worked for a short while. Since rebooting, it does nothing.
I noticed that a lot of the configuration files in /etc/laptop-mode/conf.d have changed but I cannot find anything obviously related (obvious to me) to mice or USB devices in general.
Note that I would be happy to move away from laptop-mode-tools if better options are now available: last time I checked, I still couldn't get all of the functionality I'm using from other tools.
Well... It moved to runtime-pm.conf some time ago. I should have done a better job at ensuring backward compatibility.
Laptop Mode Tools author
Offline
Thanks! This seems to have solved the issue. I re-added the removed line to /usr/lib/systemd/system/laptop-mode.service after reinstalling the upgrade, and that seems to have done the trick.
Also, I should have been clearer: I didn't mean I couldn't find anything about autosuspend of USB. I really meant I couldn't find anything which 'looked odd' and would explain the changed behaviour. That is, the USB autosuspend stuff didn't look problematic, given what I remembered about how I'd set it up. Though I am now experimenting with blacklisting the mouse, too. I'd like to see if that solves a different issue I've had for a while.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
This might not exactly answer your question, but I gave up on fiddling with laptop-mode tools and switched to tlp, which seems to do a similar thing and currently be better supported by arch. With tlp and tlp-rdw installed, my thinkpad T450s consumes under 5W of power (according to powertop), and the batteries last forever. So while I'm sure laptop-mode-tools has its advantages, if someone reading this thread just wants a community (not AUR) package that works immediately, tlp might get you close enough to what you want.
Offline