- Package:
- laptop-mode-tools
- Source:
- laptop-mode-tools
- Submitter:
- gulfstream
- Date:
- 2017-10-13 17:33:06 UTC
- Severity:
- important
I use my laptop (Thinkpad X1 Carbon 5th) with a bluetooth mouse. The mouse work fine while the laptop runs with AC power supply. But The bluetooth mouse is a trouble while the laptop runs with the embed cell. The mouse will suspend if it is not be used after several seconds. So I want use the mouse, it must reconnect to the laptop and spend several seconds. it is very inconvenient! I find that the reason is bluetooth power saving of laptop mode tools. It can be didabled in /etc/laptop-mode/conf.d/runtime-pm.conf by item "AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST". After disabling, the bluetooth mouse will not suspend while using cell. I think that the bluetooth should not suspend because of bluetooth mouse. So I advise you modify the runtime-pm.conf to add the bluetooth device to blacklist by default for using bluetooth mouse. Thank you very much! Best regards, Gulfstream
Hello, The default list of device types was extended to accommodate such devices. AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST="hub usbhid usb-storage" So when you say a bluetooth mouse, should I assume that the mouse connect to a bluetooth dongle, which is connected to a USB port ? Because, as long as it gets enumerated as a USB device, which I suspect is what should happen here, it would be covered. The bluetooth power saving module is disabled by default. runtime-pm, which takes care of most devices supporting Runtime PM (most USB devices included), should by default blacklist most common USB type devices. Can you share your runtime-pm.conf ?
Yes, the bluetooth dongle is connected to a USB port on my laptop, and I have noticed the "hub usbhid usb-storage" is list in the AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST. But the bluetooth power saving is not be disabled unless I add the device id of bluetooth in the AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST. Yes, my runtime-pm.conf is like this, and the device id 8087:0a2b is the bluetooth device id in my laptop. # # Configuration file for Laptop Mode Tools module runtime-pm # # For more information, consult the laptop-mode.conf(8) manual page. # ############################################################################### # Runtime Power Management Settings # --------------------------------- # #__COMMENT If you enable this setting, laptop mode tools will automatically enable #__COMMENT the Runtime Power Management feature for all devices. #__COMMENT #__COMMENT NOTE: Some devices claim they support autosuspend, but implement it in a #__COMMENT broken way. This can mean keyboards losing keypresses, or optical mice #__COMMENT turning their LED completely off. If you have a device that misbehaves, #__COMMENT add its DEVICE ID to the blacklist section below and complain to your #__COMMENT hardware / device driver contact # ################################################################################ # Enable debug mode for this module # Set to 1 if you want to debug this module DEBUG=0 # Enable Runtime autosuspend feature? # Set to 0 to disable CONTROL_RUNTIME_AUTOSUSPEND=1 # Set this to use opt-in/whitelist instead of opt-out/blacklist for deciding # which devices should be autosuspended. # AUTOSUSPEND_USE_WHITELIST=0 means AUTOSUSPEND_*_BLACKLIST will be used. # AUTOSUSPEND_USE_WHITELIST=1 means AUTOSUSPEND_*_WHITELIST will be used. AUTOSUSPEND_USE_WHITELIST=0 # The list of Device IDs that should not use autosuspend. Use system commands or # look into sysfs to find out the IDs of your devices. # Example: AUTOSUSPEND_DEVID_BLACKLIST="046d:c025 0123:abcd" AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="8087:0a2b" # The list of device driver types that should not use autosuspend. The driver # type is given by "DRIVER=..." in a device's uevent file. # Example: AUTOSUSPEND_DEVID_BLACKLIST="usbhid usb-storage" AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST="hub usbhid usb-storage" # The list of Device IDs that should use autosuspend. Use system commands or # look into sysfs to find out the IDs of your devices. # Example: AUTOSUSPEND_DEVID_WHITELIST="046d:c025 0123:abcd" AUTOSUSPEND_RUNTIME_DEVID_WHITELIST="" # The list of device driver types that should use autosuspend. The driver # type is given by "DRIVER=..." in a device's uevent file. # Example: AUTOSUSPEND_DEVTYPE_WHITELIST="usbhid usb-storage" AUTOSUSPEND_RUNTIME_DEVTYPE_WHITELIST="" # Trigger auto-suspension of the deivce under conditional circumstances # Warning: DO NOT CHANGE THESE DEFAUTLS UNLESS YOU KNOW BATT_SUSPEND_RUNTIME=1 LM_AC_SUSPEND_RUNTIME=1 NOLM_AC_SUSPEND_RUNTIME=0 # Auto-Suspend timeout in seconds # Number of seconds after which the USB devices should suspend AUTOSUSPEND_TIMEOUT=2
Hmmm.. Thanks for the information. My guess, so far from what you have mentioned, is that this device type is not getting classified as a USB class device. But I still think that is very very weird, given that the BT dongle connects to the USB port. Can you run in debug mode, with only the runtime-pm module having debugging enabled ?
The device informations about bluetooth are list as below which got by lsusb -v. And I do not known how to get to debug information about laptop-mode-tools.
Bus 001 Device 003: ID 8087:0a2b Intel Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 1 Bluetooth
bMaxPacketSize0 64
idVendor 0x8087 Intel Corp.
idProduct 0x0a2b
bcdDevice 0.10
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 177
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 3
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 4
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 5
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
You can set DEBUG=1 in /etc/laptop-mode/conf.d/runtime-pm.conf and then restart laptop-mode-tools Then, you can plun/unplug your bluetooth dongle. After that, all logs will be stored in syslog/journalctl, from which you'll need to extract the relevant debug logs. HTH
Hi, I am so sorry for reply late. My bluetooth dongle is embedded, so I can not plug/unplug it for accquire the debug information.
A simple power plug unplug will also do the same work. So you can try that. s3nt fr0m a $martph0ne, excuse typ0s
Hi, the log information is:
Oct 12 15:10:04 athena dbus-daemon[541]: [system] Activating service name='org.blueman.Mechanism' requested by ':1.97' (uid=44444 pid=7478 comm="/usr/bin/python3 /usr/bin/blueman-applet ") (using servicehelper)
Oct 12 15:10:04 athena org.blueman.Mechanism[541]: Unable to init server: Could not connect: Connection refused
Oct 12 15:10:04 athena org.blueman.Mechanism[541]: Unable to init server: Could not connect: Connection refused
Oct 12 15:10:04 athena blueman-mechanism: Starting blueman-mechanism
Oct 12 15:10:04 athena dbus-daemon[541]: [system] Successfully activated service 'org.blueman.Mechanism'
Oct 12 15:10:04 athena blueman-mechani[14490]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Oct 12 15:10:04 athena blueman-mechanism: loading RfKill
Oct 12 15:10:04 athena blueman-mechanism: loading Rfcomm
Oct 12 15:10:04 athena blueman-mechanism: loading Ppp
Oct 12 15:10:04 athena blueman-mechanism: loading Network
Oct 12 15:10:04 athena systemd[1]: Starting Load/Save RF Kill Switch Status...
Oct 12 15:10:04 athena systemd[1]: Started Load/Save RF Kill Switch Status.
Oct 12 15:10:04 athena kernel: [ 569.067736] usb 1-7: USB disconnect, device number 6
Oct 12 15:10:04 athena blueman.desktop[7478]: ERROR:dbus.connection:Exception in handler for D-Bus signal:
Oct 12 15:10:04 athena blueman.desktop[7478]: Traceback (most recent call last):
Oct 12 15:10:04 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/dbus/connection.py", line 230, in maybe_handle_message
Oct 12 15:10:04 athena blueman.desktop[7478]: self._handler(*args, **kwargs)
Oct 12 15:10:04 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/bluez/PropertiesBlueZInterface.py", line 55, in wrapper
Oct 12 15:10:04 athena blueman.desktop[7478]: handler(name, value, **kwargs)
Oct 12 15:10:04 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/plugins/applet/GameControllerWakelock.py", line 36, in on_device_property_changed
Oct 12 15:10:04 athena blueman.desktop[7478]: klass = Device(path).get_properties()["Class"] & 0x1fff
Oct 12 15:10:04 athena blueman.desktop[7478]: KeyError: 'Class'
Oct 12 15:10:04 athena systemd-rfkill[14493]: Failed to open device: No such device
Oct 12 15:10:04 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) config/udev: removing device HUAWEI Mouse
Oct 12 15:10:04 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) Option "fd" "69"
Oct 12 15:10:04 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) device removed
Oct 12 15:10:04 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) UnloadModule: "libinput"
Oct 12 15:10:04 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) systemd-logind: releasing fd for 13:82
Oct 12 15:10:04 athena bluetoothd[4011]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSource
Oct 12 15:10:04 athena bluetoothd[4011]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSink
Oct 12 15:10:04 athena bluetoothd[4011]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource
Oct 12 15:10:04 athena bluetoothd[4011]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink
Oct 12 15:10:06 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:06 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:07 athena kernel: [ 572.402472] usb 1-7: new full-speed USB device number 7 using xhci_hcd
Oct 12 15:10:08 athena kernel: [ 572.543621] usb 1-7: New USB device found, idVendor=8087, idProduct=0a2b
Oct 12 15:10:08 athena kernel: [ 572.543631] usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 12 15:10:08 athena kernel: [ 572.545725] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
Oct 12 15:10:08 athena kernel: [ 572.546733] Bluetooth: hci0: Device revision is 16
Oct 12 15:10:08 athena kernel: [ 572.546742] Bluetooth: hci0: Secure boot is enabled
Oct 12 15:10:08 athena kernel: [ 572.546746] Bluetooth: hci0: OTP lock is enabled
Oct 12 15:10:08 athena kernel: [ 572.546750] Bluetooth: hci0: API lock is enabled
Oct 12 15:10:08 athena kernel: [ 572.546754] Bluetooth: hci0: Debug lock is disabled
Oct 12 15:10:08 athena kernel: [ 572.546759] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
Oct 12 15:10:08 athena kernel: [ 572.547328] bluetooth hci0: firmware: direct-loading firmware intel/ibt-12-16.sfi
Oct 12 15:10:08 athena kernel: [ 572.547339] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
Oct 12 15:10:08 athena gnome-shell[7272]: Allocating size to ShellEmbeddedWindow 0x562665108ba0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Oct 12 15:10:08 athena laptop-mode: enabled, active
Oct 12 15:10:08 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:08 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/1-7 is blacklisted, skipping auto suspend.
Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:08 athena laptop-mode: enabled, active
Oct 12 15:10:09 athena root: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:09 athena kernel: [ 573.919793] Bluetooth: hci0: Waiting for firmware download to complete
Oct 12 15:10:09 athena kernel: [ 573.920670] Bluetooth: hci0: Firmware loaded in 1344228 usecs
Oct 12 15:10:09 athena kernel: [ 573.920694] Bluetooth: hci0: Waiting for device to boot
Oct 12 15:10:09 athena root: Device /sys/bus/usb/devices/1-7 is blacklisted, skipping auto suspend.
Oct 12 15:10:09 athena kernel: [ 573.932669] Bluetooth: hci0: Device booted in 11707 usecs
Oct 12 15:10:09 athena kernel: [ 573.932716] bluetooth hci0: firmware: direct-loading firmware intel/ibt-12-16.ddc
Oct 12 15:10:09 athena kernel: [ 573.932718] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
Oct 12 15:10:09 athena kernel: [ 573.934714] Bluetooth: hci0: Applying Intel DDC parameters completed
Oct 12 15:10:09 athena root: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:09 athena laptop-mode: enabled, active
Oct 12 15:10:09 athena bluetoothd[4011]: Sap driver initialization failed.
Oct 12 15:10:09 athena bluetoothd[4011]: sap-server: Operation not permitted (1)
Oct 12 15:10:09 athena bluetoothd[4011]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Oct 12 15:10:09 athena bluetoothd[4011]: RFCOMM server failed for :1.77/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb: rfcomm_bind: Address already in use (98)
Oct 12 15:10:09 athena bluetoothd[4011]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSource
Oct 12 15:10:09 athena bluetoothd[4011]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSink
Oct 12 15:10:09 athena bluetoothd[4011]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource
Oct 12 15:10:09 athena bluetoothd[4011]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink
Oct 12 15:10:10 athena root: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:10 athena root: Device /sys/bus/usb/devices/1-7 is blacklisted, skipping auto suspend.
Oct 12 15:10:10 athena root: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend.
Oct 12 15:10:10 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:10 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:11 athena blueman.desktop[7478]: Traceback (most recent call last):
Oct 12 15:10:11 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/main/PluginManager.py", line 212, in Run
Oct 12 15:10:11 athena blueman.desktop[7478]: ret = getattr(inst, function)(*args, **kwargs)
Oct 12 15:10:11 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/plugins/applet/DiscvManager.py", line 92, in on_adapter_removed
Oct 12 15:10:11 athena blueman.desktop[7478]: if path == self.adapter.get_object_path():
Oct 12 15:10:11 athena blueman.desktop[7478]: AttributeError: 'NoneType' object has no attribute 'get_object_path'
Oct 12 15:10:11 athena blueman.desktop[7478]: ERROR:dbus.connection:Exception in handler for D-Bus signal:
Oct 12 15:10:11 athena blueman.desktop[7478]: Traceback (most recent call last):
Oct 12 15:10:11 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/dbus/connection.py", line 230, in maybe_handle_message
Oct 12 15:10:11 athena blueman.desktop[7478]: self._handler(*args, **kwargs)
Oct 12 15:10:11 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/bluez/PropertiesBlueZInterface.py", line 55, in wrapper
Oct 12 15:10:11 athena blueman.desktop[7478]: handler(name, value, **kwargs)
Oct 12 15:10:11 athena blueman.desktop[7478]: File "/usr/lib/python3/dist-packages/blueman/plugins/applet/GameControllerWakelock.py", line 36, in on_device_property_changed
Oct 12 15:10:11 athena blueman.desktop[7478]: klass = Device(path).get_properties()["Class"] & 0x1fff
Oct 12 15:10:11 athena blueman.desktop[7478]: KeyError: 'Class'
Oct 12 15:10:11 athena bluetoothd[4011]: bt_uhid_send: Invalid argument (22)
Oct 12 15:10:11 athena kernel: [ 576.441460] input: HUAWEI Mouse as /devices/virtual/misc/uhid/0005:12D1:109A.0003/input/input21
Oct 12 15:10:11 athena kernel: [ 576.441791] hid-generic 0005:12D1:109A.0003: input,hidraw0: BLUETOOTH HID v0.01 Mouse [HUAWEI Mouse] on F8:59:71:BC:E1:F6
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) config/udev: Adding input device HUAWEI Mouse (/dev/input/mouse2)
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) No input driver specified, ignoring this device.
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) This device may have been added with another device file.
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) config/udev: Adding input device HUAWEI Mouse (/dev/input/event18)
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) HUAWEI Mouse: Applying InputClass "libinput pointer catchall"
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) Using input driver 'libinput' for 'HUAWEI Mouse'
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) systemd-logind: got fd for /dev/input/event18 13:82 fd 57 paused 0
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) HUAWEI Mouse: always reports core events
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) Option "Device" "/dev/input/event18"
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) Option "_source" "server/udev"
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) is tagged by udev as: Mouse
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) device is a pointer
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) device removed
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) Option "config_info" "udev:/sys/devices/virtual/misc/uhid/0005:12D1:109A.0003/input/input21/event18"
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) XINPUT: Adding extended input device "HUAWEI Mouse" (type: MOUSE, id 14)
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) Option "AccelerationScheme" "none"
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) HUAWEI Mouse: (accel) selected scheme none/0
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) HUAWEI Mouse: (accel) acceleration factor: 2.000
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (**) HUAWEI Mouse: (accel) acceleration threshold: 4
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) is tagged by udev as: Mouse
Oct 12 15:10:11 athena /usr/lib/gdm3/gdm-x-session[7140]: (II) event18 - (II) HUAWEI Mouse: (II) device is a pointer
Oct 12 15:10:12 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:12 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:12 athena kernel: [ 577.042676] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
Oct 12 15:10:12 athena kernel: [ 577.042684] thinkpad_acpi: unhandled HKEY event 0x60b1
Oct 12 15:10:12 athena kernel: [ 577.042687] thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@lists.sourceforge.net
Oct 12 15:10:12 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:12 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:14 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:14 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:14 athena dbus-daemon[7883]: [session uid=0 pid=7881] Activating service name='org.gnome.gedit' requested by ':1.0' (uid=0 pid=7869 comm="/usr/bin/nautilus --no-desktop file:///var/log ")
Oct 12 15:10:14 athena dbus-daemon[7883]: [session uid=0 pid=7881] Successfully activated service 'org.gnome.gedit'
Oct 12 15:10:16 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:16 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
Oct 12 15:10:18 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand)
Oct 12 15:10:18 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none").
-----原始邮件-----
发件人:"Ritesh Raj Sarraf" <rrs@debian.org>
发送时间:2017-10-09 21:13:18 (星期一)
收件人: wglxy@china.com, 877519@bugs.debian.org
抄送:
主题: Re: Bug#877519: Re: Re: Re: Bug#877519: Bluetooth mouse suspend while using cell
A simple power plug unplug will also do the same work. So you can try that.
s3nt fr0m a $martph0ne, excuse typ0s
On 09-Oct-2017 18:18, <wglxy@china.com> wrote:
Hi, I am so sorry for reply late. My bluetooth dongle is embedded, so I can not plug/unplug it for accquire the debug information.
Hello, Thank you for the log. Though it is *limited* in information, I think I have some clue from it. You have device resent occuring in the kernel. Which leads to the bt stack being reinitialized. And then enumerated. Yet, all aside, this bug was about laptop-mode-tools not skipping the BT Mouse. But in this log, it is skipping it. Is this after you added the device ID in the configuration file, or before it itself ?
Yes, this is after I added the device ID in the configuration file.-----原始邮件----- 发件人:"Ritesh Raj Sarraf" <rrs@debian.org> 发送时间:2017-10-12 18:14:39 (星期四) 收件人: wglxy@china.com 抄送: 877519@bugs.debian.org 主题: Re: Re: Bug#877519: Re: Re: Re: Bug#877519: Bluetooth mouse suspend while using cell Hello, Thank you for the log. Though it is *limited* in information, I think I have some clue from it. On Thu, 2017-10-12 at 15:11 +0800, wglxy@china.com wrote: Oct 12 15:10:07 athena kernel: [ 572.402472] usb 1-7: new full-speed USB device number 7 using xhci_hcd Oct 12 15:10:08 athena kernel: [ 572.543621] usb 1-7: New USB device found, idVendor=8087, idProduct=0a2b Oct 12 15:10:08 athena kernel: [ 572.543631] usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0 You have device resent occuring in the kernel. Oct 12 15:10:08 athena kernel: [ 572.545725] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015 Oct 12 15:10:08 athena kernel: [ 572.546733] Bluetooth: hci0: Device revision is 16 Oct 12 15:10:08 athena kernel: [ 572.546742] Bluetooth: hci0: Secure boot is enabled Oct 12 15:10:08 athena kernel: [ 572.546746] Bluetooth: hci0: OTP lock is enabled Oct 12 15:10:08 athena kernel: [ 572.546750] Bluetooth: hci0: API lock is enabled Oct 12 15:10:08 athena kernel: [ 572.546754] Bluetooth: hci0: Debug lock is disabled Oct 12 15:10:08 athena kernel: [ 572.546759] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 Oct 12 15:10:08 athena kernel: [ 572.547328] bluetooth hci0: firmware: direct-loading firmware intel/ibt-12-16.sfi Oct 12 15:10:08 athena kernel: [ 572.547339] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi Which leads to the bt stack being reinitialized. Oct 12 15:10:08 athena gnome-shell[7272]: Allocating size to ShellEmbeddedWindow 0x562665108ba0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? Oct 12 15:10:08 athena laptop-mode: enabled, active Oct 12 15:10:08 athena cpufreqd: cpufreqd_set_profile : Couldn't set profile "On Demand High" set for cpu0 (3900000-390000-ondemand) Oct 12 15:10:08 athena cpufreqd: cpufreqd_loop : Cannot set policy, Rule unchanged ("none"). Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend. Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/1-7 is blacklisted, skipping auto suspend. Oct 12 15:10:08 athena root: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend. Oct 12 15:10:08 athena laptop-mode: enabled, active Oct 12 15:10:09 athena root: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend. Oct 12 15:10:09 athena kernel: [ 573.919793] Bluetooth: hci0: Waiting for firmware download to complete Oct 12 15:10:09 athena kernel: [ 573.920670] Bluetooth: hci0: Firmware loaded in 1344228 usecs Oct 12 15:10:09 athena kernel: [ 573.920694] Bluetooth: hci0: Waiting for device to boot And then enumerated. Oct 12 15:10:09 athena root: Device /sys/bus/usb/devices/1-7 is blacklisted, skipping auto suspend. Yet, all aside, this bug was about laptop-mode-tools not skipping the BT Mouse. But in this log, it is skipping it. Is this after you added the device ID in the configuration file, or before it itself ?
You have device resets occurring in the kernel, even while the device is blacklisted. I see this more as a kernel bug or a faulty hardware s3nt fr0m a $martph0ne, excuse typ0s