Disconnected USB Device is constantly initialized

Hi all,
since beginning of April my mouse stucks if I run my Lenovo ideapad Duet 3 10IGL3 with closed lid. It happens always, when I leave the mouse für about 10 secs. After this waiting period, it takes about 3 secs for the mouse to react to movement. This is annoying, so I leave the laptop opened as a workaround. Any help is appreciated.

Looking at the journalctl I see

Apr 20 21:29:19 ideapad systemd-logind[459]: Lid closed.
Apr 20 21:29:19 ideapad gnome-shell[1073]: meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
Apr 20 21:29:19 ideapad gnome-shell[1073]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Apr 20 21:29:19 ideapad gnome-shell[1073]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 20 21:29:19 ideapad gsd-color[1254]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Apr 20 21:29:19 ideapad kernel: usb 1-5: USB disconnect, device number 4
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25d73df50] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b0940] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b0620] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b15c0] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b0f80] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b1f20] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25e0b12a0] is on because it needs an allocation.
Apr 20 21:29:20 ideapad gnome-shell[1073]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55d25d8b6c60] is on because it needs an allocation.
Apr 20 21:29:20 ideapad kernel: usb 1-5: new full-speed USB device number 11 using xhci_hcd
Apr 20 21:29:21 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?
Apr 20 21:29:21 ideapad kernel: usb 1-5: new full-speed USB device number 12 using xhci_hcd
Apr 20 21:29:22 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?
Apr 20 21:29:22 ideapad kernel: usb usb1-port5: attempt power cycle
Apr 20 21:29:23 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?
Apr 20 21:29:23 ideapad kernel: usb 1-5: new full-speed USB device number 14 using xhci_hcd
Apr 20 21:29:23 ideapad kernel: usb 1-5: Device not responding to setup address.
Apr 20 21:29:23 ideapad kernel: usb 1-5: Device not responding to setup address.
Apr 20 21:29:23 ideapad kernel: usb 1-5: device not accepting address 14, error -71
Apr 20 21:29:23 ideapad kernel: usb usb1-port5: unable to enumerate USB device
Apr 20 21:29:24 ideapad kernel: usb 1-5: new full-speed USB device number 15 using xhci_hcd
Apr 20 21:29:24 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?
Apr 20 21:29:25 ideapad kernel: usb 1-5: new full-speed USB device number 16 using xhci_hcd
Apr 20 21:29:25 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?
Apr 20 21:29:25 ideapad kernel: usb usb1-port5: attempt power cycle
Apr 20 21:29:26 ideapad kernel: usb usb1-port5: Cannot enable. Maybe the USB cable is bad?

I have never experienced these reactivation usb messages and it only happens if the lid is closed. When I open the lid, this error disappears immediately. I would assume this is not a hardware defect.

In a log from April 3rd, I don’t see the error messages. The first log lines when closing the lid were the following. Interestingly, the USB disconnect happened before the Lid close. Don’t know, if this has something to do with my problem.

Apr 03 18:50:28 ideapad kernel: usb 1-5: USB disconnect, device number 4
Apr 03 18:50:29 ideapad systemd-logind[491]: Lid closed.
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_display_get_monitor_geometry: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: JS ERROR: TypeError: monitor is undefined
                                           _createBackgroundActor@resource:///org/gnome/shell/ui/background.js:778:13
                                           BackgroundManager@resource:///org/gnome/shell/ui/background.js:688:37
                                           enable/workspaceThumbnail.WorkspaceThumbnail.prototype._init@/usr/share/gnome-shell/extensions/gnome-ui-tune@itstime.tech/src/modRestoreThumbnailsBackground.js:14:31
                                           addThumbnails@resource:///org/gnome/shell/ui/workspaceThumbnail.js:1093:29
                                           _createThumbnails@resource:///org/gnome/shell/ui/workspaceThumbnail.js:1028:14
                                           _init/this._monitorsChangedId<@resource:///org/gnome/shell/ui/workspaceThumbnail.js:695:26
                                           _monitorsChanged@resource:///org/gnome/shell/ui/layout.js:544:14
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 03 18:50:29 ideapad gsd-color[1251]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: JS ERROR: TypeError: monitor is undefined
                                           _updateRoundedClipBounds@resource:///org/gnome/shell/ui/workspace.js:993:9
                                           _init/this._workareasChangedId<@resource:///org/gnome/shell/ui/workspace.js:970:22
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: clutter_actor_allocate: assertion '!isnan (real_allocation.x1) && !isnan (real_allocation.x2) && !isnan (real_allocation.y1) && !isnan (real_allocation.y2)' failed
Apr 03 18:50:29 ideapad gnome-shell[1074]: Can't update stage views actor <unnamed>[<Gjs_ui_workspace_Workspace>:0x5612b22e5460] is on because it needs an allocation.
Apr 03 18:50:29 ideapad gnome-shell[1074]: Can't update stage views actor <unnamed>[<ClutterActor>:0x5612b22d4c50] is on because it needs an allocation.
Apr 03 18:50:29 ideapad gnome-shell[1074]: Can't update stage views actor <unnamed>[<ClutterActor>:0x5612ad523c00] is on because it needs an allocation.
Apr 03 18:50:29 ideapad gnome-shell[1074]: meta_display_get_monitor_scale: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
Apr 03 18:50:29 ideapad dbus-daemon[487]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.93' (uid=972 pid=1467 comm="/usr/lib/colord-sane>
Apr 03 18:50:29 ideapad dbus-daemon[487]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
Apr 03 18:50:30 ideapad systemd[1]: fprintd.service: Deactivated successfully.

The output of inxi is

   ~  inxi --admin --verbosity=7 --filter --width                                                                                                                                                   ✔  root@ideapad 
System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=d1b85899-cc2f-489e-8ed8-a89062284a10 rw fbcon=rotate:1
    systemd.debug-shell=1 apparmor=1 security=apparmor udev.log_priority=3
  Console: pty pts/0 wm: gnome-shell DM: GDM v: 41.3 Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Detachable System: LENOVO product: 82AT v: IdeaPad Duet 3 10IGL5
    serial: <filter> Chassis: type: 32 v: IdeaPad Duet 3 10IGL5 serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T31556 WIN serial: <filter>
    UEFI: LENOVO v: EQCN29WW date: 08/11/2021
Battery:
  ID-1: BAT0 charge: 30.9 Wh (100.0%) condition: 30.9/30.0 Wh (102.8%)
    volts: 8.7 min: 7.7 model: SMP L19M2PD7 type: Li-ion serial: <filter>
    status: full cycles: 41
  Device-1: hid-0018:04F3:2BD6.0003-battery model: ELAN901C:00 04F3:2BD6
    serial: N/A charge: N/A status: N/A
Memory:
  RAM: total: 7.57 GiB used: 2.96 GiB (39.1%)
  Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB
    note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 detail: synchronous size: 8 GiB
    speed: 2400 MT/s volts: N/A width (bits): data: 8 total: 8
    manufacturer: Samsung part-no: N/A serial: N/A
CPU:
  Info: model: Intel Pentium Silver N5030 socket: U3E1 bits: 64 type: MCP
    arch: Goldmont Plus family: 6 model-id: 0x7A (122) stepping: 8
    microcode: 0x1C
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
    desc: d-4x24 KiB; i-4x32 KiB L2: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1216 high: 1487 min/max: 800/3100 base/boost: 1100/1100
    scaling: driver: intel_cpufreq governor: schedutil volts: 0.8 V
    ext-clock: 100 MHz cores: 1: 1487 2: 1467 3: 1124 4: 787 bogomips: 8756
  Flags: 3dnowprefetch acpi aes aperfmperf apic arat arch_capabilities
    arch_perfmon art bts cat_l2 cdp_l2 clflush clflushopt cmov constant_tsc
    cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est
    flexpriority fpu fsgsbase fxsr ht ibpb ibrs ibrs_enhanced ida intel_pt
    lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc
    nopl nx pae pat pbe pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse
    pse36 pts rdpid rdrand rdseed rdt_a rdtscp rep_good sdbg sep sha_ni smap
    smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow
    tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip vme vmx vnmi vpid
    x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 605] vendor: Lenovo driver: i915
    v: kernel ports: active: DP-1,DSI-1 empty: DP-2,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:3184 class-ID: 0300
  Device-2: Realtek Intergrated Camera 2M type: USB driver: uvcvideo
    bus-ID: 1-4:3 chip-ID: 0bda:5609 class-ID: 0e02 serial: <filter>
  Device-3: Realtek Intergrated Camera 5M type: USB driver: uvcvideo
    bus-ID: 1-7:9 chip-ID: 0bda:5612 class-ID: 0e02 serial: <filter>
  Display: server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4040x1440 s-size: <missing: xdpyinfo>
  Monitor-1: DP-1 mapped: XWAYLAND0 pos: right model: Samsung S34J55x
    serial: <filter> built: 2021 res: 3440x1440 hz: 50 dpi: 109 gamma: 1.2
    size: 800x330mm (31.5x12.99") diag: 864mm (34") modes: max: 3440x1440
    min: 720x400
  Monitor-2: not-matched mapped: XWAYLAND7 pos: primary,left res: 600x960
    hz: 60 dpi: 110 size: 138x222mm (5.43x8.74") diag: 261mm (10.29") modes: N/A
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Celeron/Pentium Silver Processor High Definition Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_apl bus-ID: 00:0e.0
    chip-ID: 8086:3198 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Intel Gemini Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:0c.0 chip-ID: 8086:31dc class-ID: 0280
  IF: wlp0s12f0 state: down mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 2-1.1:3 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s21f0u1u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-9:10 chip-ID: 8087:0aaa class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 146.2 GiB used: 43.81 GiB (30.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/mmcblk0 maj-min: 179:0 vendor: SanDisk model: DA4128
    size: 116.48 GiB block-size: physical: 512 B logical: 512 B type: SSD
    serial: <filter> rev: 0x8 scheme: GPT
  ID-2: /dev/mmcblk1 maj-min: 179:24 vendor: SanDisk model: SC32G
    size: 29.72 GiB block-size: physical: 512 B logical: 512 B type: SSD
    serial: <filter> scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 69.44 GiB size: 67.85 GiB (97.71%) used: 43.78 GiB (64.5%)
    fs: ext4 block-size: 4096 B dev: /dev/mmcblk0p5 maj-min: 179:5 label: N/A
    uuid: d1b85899-cc2f-489e-8ed8-a89062284a10
  ID-2: /boot/efi raw-size: 497 MiB size: 496 MiB (99.80%)
    used: 28.6 MiB (5.8%) fs: vfat block-size: 512 B dev: /dev/mmcblk0p1
    maj-min: 179:1 label: SYSTEM_DRV uuid: B6E8-D9A6
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 3.91 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/mmcblk0p6 maj-min: 179:6 label: N/A
    uuid: ac965b1e-21e7-4b9e-ad36-4230184af56f
Unmounted:
  ID-1: /dev/mmcblk0p2 maj-min: 179:2 size: 16 MiB fs: N/A label: N/A
    uuid: N/A
  ID-2: /dev/mmcblk0p3 maj-min: 179:3 size: 41.66 GiB fs: ntfs
    label: Windows uuid: 7C7CEBD67CEB896A
  ID-3: /dev/mmcblk0p4 maj-min: 179:4 size: 1000 MiB fs: ntfs
    label: WINRE_DRV uuid: 8816EC3B16EC2C3E
  ID-4: /dev/mmcblk1p1 maj-min: 179:25 size: 29.72 GiB fs: bitlocker
    label: N/A uuid: N/A
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: VIA Labs USB2.0 Hub ports: 5 rev: 2.1 speed: 480 Mb/s
    chip-ID: 2109:2817 class-ID: 0900
  Hub-3: 1-1.3:5 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-1.3.4:7 info: Logitech Keyboard K120 type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
    power: 90mA chip-ID: 046d:c31c class-ID: 0300
  Hub-4: 1-1.4:6 info: Hitachi ports: 4 rev: 2.1 speed: 480 Mb/s
    chip-ID: 045b:0209 class-ID: 0900
  Device-1: 1-1.5:8 info: Anker Innovations USB-C Hub Device type: Billboard
    driver: N/A interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 291a:8365 class-ID: 1100 serial: <filter>
  Device-2: 1-4:3 info: Realtek Intergrated Camera 2M type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0bda:5609 class-ID: 0e02 serial: <filter>
  Device-3: 1-5:67 info: Lenovo Duet 3 USB Composite Device
    type: Keyboard,Mouse driver: hid-generic,hid-multitouch,usbhid interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 17ef:60fa class-ID: 0301
  Device-4: 1-7:9 info: Realtek Intergrated Camera 5M type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0bda:5612 class-ID: 0e02 serial: <filter>
  Device-5: 1-9:10 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP)
    type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 8087:0aaa class-ID: e001
  Hub-5: 2-0:1 info: Super-speed hub ports: 7 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-6: 2-1:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1 speed: 5 Gb/s
    chip-ID: 2109:0817 class-ID: 0900
  Device-1: 2-1.1:3 info: Realtek RTL8153 Gigabit Ethernet Adapter
    type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s
    power: 288mA chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  Hub-7: 2-1.3:4 info: Genesys Logic Hub ports: 4 rev: 3.2 speed: 5 Gb/s
    chip-ID: 05e3:0626 class-ID: 0900
  Hub-8: 2-1.4:5 info: Hitachi ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 045b:0210 class-ID: 0900
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 251 Uptime: 1h 48m wakeups: 9 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 1569
  pacman: 1561 lib: 391 flatpak: 0 snap: 8 Shell: Zsh (sudo) v: 5.8.1
  running-in: gnome-terminal inxi: 3.3.15

The USB device, that causes the trouble (USB 1-5) is the “Lenovo Duet 3 USB Composite Device”. It combines touchpad, internal keyboard, … It seems to me that these devices should be deactivated to prevent unintended keypress events etc. when the lid is closed. Sounds like a good idea to me and looking at the older ``journalctl``` the deactivation was done there, too. This is issued by GNOME or WAYLAND or X11:

    ~  libinput debug-events                                                                                                                                                                     INT ✘  root@ideapad 
-event2   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event3   DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event0   DEVICE_ADDED            Lid Switch                        seat0 default group3  cap:S
-event1   DEVICE_ADDED            Power Button                      seat0 default group4  cap:k
-event4   DEVICE_ADDED            DP-1                              seat0 default group5  cap:kp left scroll-nat scroll-button
-event8   DEVICE_ADDED            Logitech USB Keyboard             seat0 default group6  cap:k
-event9   DEVICE_ADDED            Logitech USB Keyboard             seat0 default group6  cap:kp scroll-nat
-event28  DEVICE_ADDED            Intergrated Camera 2M: Intergra   seat0 default group7  cap:k
-event23  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device seat0 default group8  cap:k
-event24  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Consumer Control seat0 default group8  cap:kp scroll-nat
-event25  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Mouse seat0 default group8  cap:p left scroll-nat scroll-button
-event26  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Touchpad seat0 default group8  cap:pg  size 101x66mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event27  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Wireless Radio Control seat0 default group8  cap:k
-event29  DEVICE_ADDED            Intergrated Camera 5M: Intergra   seat0 default group9  cap:k
-event11  DEVICE_ADDED            ELAN901C:00 04F3:2BD6             seat0 default group10 cap:t  size 141x227mm ntouches 10 calib
-event16  DEVICE_ADDED            ELAN901C:00 04F3:2BD6 Stylus      seat0 default group10 cap:T  size 138x222mm calib
-event10  DEVICE_ADDED            Ideapad extra buttons             seat0 default group11 cap:k
-event6   DEVICE_ADDED            Intel HID events                  seat0 default group12 cap:k
-event7   DEVICE_ADDED            Intel HID 5 button array          seat0 default group13 cap:k
-event5   DEVICE_ADDED            AT Raw Set 2 keyboard             seat0 default group14 cap:k
-event30  DEVICE_ADDED            MX Anywhere 2S Keyboard           seat0 default group15 cap:k
-event31  DEVICE_ADDED            MX Anywhere 2S Mouse              seat0 default group15 cap:p left scroll-nat scroll-button
-event0   SWITCH_TOGGLE           +0.000s	switch lid state 1
-event23  DEVICE_REMOVED          HAILUCK CO.,LTD Duet 3 USB Composite Device seat0 default group8  cap:k
-event24  DEVICE_REMOVED          HAILUCK CO.,LTD Duet 3 USB Composite Device Consumer Control seat0 default group8  cap:kp
-event25  DEVICE_REMOVED          HAILUCK CO.,LTD Duet 3 USB Composite Device Mouse seat0 default group8  cap:p
-event26  DEVICE_REMOVED          HAILUCK CO.,LTD Duet 3 USB Composite Device Touchpad seat0 default group8  cap:pg  size 101x66mm
-event27  DEVICE_REMOVED          HAILUCK CO.,LTD Duet 3 USB Composite Device Wireless Radio Control seat0 default group8  cap:k
-event0   SWITCH_TOGGLE           +9.334s	switch lid state 0
-event27  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Wireless Radio Control seat0 default group16 cap:k
-event24  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Consumer Control seat0 default group16 cap:kp scroll-nat
-event23  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device seat0 default group16 cap:k
-event25  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Mouse seat0 default group16 cap:p left scroll-nat scroll-button
-event26  DEVICE_ADDED            HAILUCK CO.,LTD Duet 3 USB Composite Device Touchpad seat0 default group16 cap:pg  size 101x66mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on

sid

Hello,

Did you had a look at TLP settings for that USB port and turn off power saving ?
Maybe doing it via tlpui will be easier.

Hi,
unfortunately the tuning in tlpui had no effect. I just installed the ui, and activated the USB_DENYLIST checkbox on the USB section. Checked that the device is on the list and rebooted. I get the same error logs after closing the lid. The documentation says “input devices […] are excluded automatically”. I have added a tlpui status report here:

Bus 002 Device 005 ID 045b:0210 control = auto, autosuspend_delay_ms =    0 -- Hitachi, Ltd (hub)
Bus 002 Device 004 ID 05e3:0626 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 002 Device 003 ID 0bda:8153 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter (r8152)
Bus 002 Device 002 ID 2109:0817 control = auto, autosuspend_delay_ms =    0 -- VIA Labs, Inc. USB3.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 010 ID 8087:0aaa control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP) (btusb)
Bus 001 Device 009 ID 0bda:5612 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. Intergrated Camera 5M (uvcvideo)
Bus 001 Device 017 ID 17ef:60fa control = on,   autosuspend_delay_ms = 2000 -- Lenovo Duet 3 USB Composite Device (usbhid)
Bus 001 Device 003 ID 0bda:5609 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. Intergrated Camera 2M (uvcvideo)
Bus 001 Device 008 ID 291a:8365 control = auto, autosuspend_delay_ms = 2000 -- Anker Innovations Limited Anker USB-C Hub Device (no driver)
Bus 001 Device 006 ID 045b:0209 control = auto, autosuspend_delay_ms =    0 -- Hitachi, Ltd (hub)
Bus 001 Device 007 ID 046d:c31c control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Keyboard K120 (usbhid)
Bus 001 Device 005 ID 05e3:0610 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 002 ID 2109:2817 control = auto, autosuspend_delay_ms =    0 -- VIA Labs, Inc. USB2.0 Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

sid

Actually, I didn’t get the function of tlpui right. I gave it another try, selected the usb device on the USB_DENYLIST, saved, rebooted, but got the same errors in the log. The tlpui status report when the lid is closed, is the following:

Bus 002 Device 005 ID 045b:0210 control = auto, autosuspend_delay_ms =    0 -- Hitachi, Ltd (hub)
Bus 002 Device 004 ID 05e3:0626 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 002 Device 003 ID 0bda:8153 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter (r8152)
Bus 002 Device 002 ID 2109:0817 control = auto, autosuspend_delay_ms =    0 -- VIA Labs, Inc. USB3.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 010 ID 8087:0aaa control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP) (btusb)
Bus 001 Device 009 ID 0bda:5612 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. Intergrated Camera 5M (uvcvideo)
Bus 001 Device 003 ID 0bda:5609 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. Intergrated Camera 2M (uvcvideo)
Bus 001 Device 008 ID 291a:8365 control = auto, autosuspend_delay_ms = 2000 -- Anker Innovations Limited Anker USB-C Hub Device (no driver)
Bus 001 Device 006 ID 045b:0209 control = auto, autosuspend_delay_ms =    0 -- Hitachi, Ltd (hub)
Bus 001 Device 007 ID 046d:c31c control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Keyboard K120 (usbhid)
Bus 001 Device 005 ID 05e3:0610 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 002 ID 2109:2817 control = auto, autosuspend_delay_ms =    0 -- VIA Labs, Inc. USB2.0 Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

sid

@sid789 Let me sum this up: The Lid is a hardware button. It reports the firmware that the Lid has been closed and because of that the firmware decides to remove the devices and report it back

So my guess is that this clearly hardware/firmware depended.

libinput just prints what was happening.

What can I do to solve this issue, now? I would like to use the ideapad like I did until April.

I havn’t expected, that this is a hardware topic. Can you provide links to simple explanations about the hardware and how it communicates with the kernel so I can understand it better?

Just to be sure, could you send your logind.conf ?

cat /etc/systemd/logind.conf  

There can you maybe set

HandleLidSwitch=ignore

Maybe that helps, to ignore the button?

logind.conf has not changed. All lines are commented out. But this is ok, I don’t want to completely ignore the lid switch, as I need it for easy suspend if no external display is connected.

But if you have some sources for better understanding this, that would be great.

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Well there is nothing “easy”, but maybe this helps:

https://docs.kernel.org/input/index.html
https://docs.kernel.org/driver-api/firmware/index.html

Most/All documentations are targeted to developers/programmers:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.