Skip to content

[Bug] IR Emitter fails to trigger after system suspend/resume (Device 2b7e:b663) #246

@jswysnemc

Description

@jswysnemc

Description

I am using linux-enable-ir-emitter to configure my infrared emitter. It works perfectly after a fresh boot. However, after the system wakes up from suspend (s2idle), the IR emitter fails to turn on.
The regular webcam functionality continues to work fine after suspend (verified via sudo howdy test), but the IR emitter remains inactive. I am unsure if this is directly related to this software or a kernel/driver issue, but I have run out of ideas after trying multiple troubleshooting steps.
Hardware Information:
Device: Yilong15Pro Series GM5HG7A (Laptop)
CPU: AMD Ryzen 7 8845H
Webcam ID: 2b7e:b663 (SunplusIT Inc HD Webcam)
Sleep Mode: [s2idle] (cat /sys/power/mem_sleep)

Software Information:
OS: Arch Linux
Kernel: Linux 6.17.9-arch1-
Desktop: Niri (Wayland)
Steps to Reproduce

Boot the system (IR works).
Suspend the system (systemctl suspend).
Wake up the system.
Try to invoke the IR emitter (e.g., via Howdy or linux-enable-ir-emitter run).
IR emitter fails to turn on.

Troubleshooting Attempted

I have tried the following commands after resuming from suspend, but none of them restored the IR functionality:

Re-running configuration:
sudo -E linux-enable-ir-emitter configure

OR

linux-enable-ir-emitter run

Reloading the kernel module:
sudo modprobe -r uvcvideo
sleep 0.5
sudo modprobe uvcvideo

Resetting the USB device:
sudo usbreset "HD Webcam"

Adding Kernel/GRUB parameters:
GRUB_CMDLINE_LINUX_DEFAULT="... uvcvideo.quirks=640"

sudo sh -c 'echo 0x4 > /sys/module/uvcvideo/parameters/trace'
󰬡  snemc  ~
➜ journalctl -b 0 -k | grep -iE 'suspend|resume|usb|uvcvideo|firmware' | tail -n 100
12月 02 23:05:34 archlinux kernel: usb usb5: SerialNumber: 0000:09:00.3
12月 02 23:05:34 archlinux kernel: hub 5-0:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
12月 02 23:05:34 archlinux kernel: usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.17
12月 02 23:05:34 archlinux kernel: usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
12月 02 23:05:34 archlinux kernel: usb usb6: Product: xHCI Host Controller
12月 02 23:05:34 archlinux kernel: usb usb6: Manufacturer: Linux 6.17.9-arch1-1 xhci-hcd
12月 02 23:05:34 archlinux kernel: usb usb6: SerialNumber: 0000:09:00.3
12月 02 23:05:34 archlinux kernel: hub 6-0:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: xhci_hcd 0000:09:00.4: new USB bus registered, assigned bus number 7
12月 02 23:05:34 archlinux kernel: xhci_hcd 0000:09:00.4: new USB bus registered, assigned bus number 8
12月 02 23:05:34 archlinux kernel: xhci_hcd 0000:09:00.4: Host supports USB 3.1 Enhanced SuperSpeed
12月 02 23:05:34 archlinux kernel: usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.17
12月 02 23:05:34 archlinux kernel: usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
12月 02 23:05:34 archlinux kernel: usb usb7: Product: xHCI Host Controller
12月 02 23:05:34 archlinux kernel: usb usb7: Manufacturer: Linux 6.17.9-arch1-1 xhci-hcd
12月 02 23:05:34 archlinux kernel: usb usb7: SerialNumber: 0000:09:00.4
12月 02 23:05:34 archlinux kernel: hub 7-0:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
12月 02 23:05:34 archlinux kernel: usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.17
12月 02 23:05:34 archlinux kernel: usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
12月 02 23:05:34 archlinux kernel: usb usb8: Product: xHCI Host Controller
12月 02 23:05:34 archlinux kernel: usb usb8: Manufacturer: Linux 6.17.9-arch1-1 xhci-hcd
12月 02 23:05:34 archlinux kernel: usb usb8: SerialNumber: 0000:09:00.4
12月 02 23:05:34 archlinux kernel: hub 8-0:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: usbcore: registered new interface driver usbserial_generic
12月 02 23:05:34 archlinux kernel: usbserial: USB Serial support registered for generic
12月 02 23:05:34 archlinux kernel: usbcore: registered new interface driver usbhid
12月 02 23:05:34 archlinux kernel: usbhid: USB HID core driver
12月 02 23:05:34 archlinux kernel: usb 1-2: new full-speed USB device number 2 using xhci_hcd
12月 02 23:05:34 archlinux kernel: usb 7-1: new high-speed USB device number 2 using xhci_hcd
12月 02 23:05:34 archlinux kernel: usb 3-1: new high-speed USB device number 2 using xhci_hcd
12月 02 23:05:34 archlinux kernel: usb 7-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=93.11
12月 02 23:05:34 archlinux kernel: usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
12月 02 23:05:34 archlinux kernel: usb 7-1: Product: USB2.1 Hub
12月 02 23:05:34 archlinux kernel: usb 7-1: Manufacturer: GenesysLogic
12月 02 23:05:34 archlinux kernel: usb 3-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=60.70
12月 02 23:05:34 archlinux kernel: usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
12月 02 23:05:34 archlinux kernel: usb 1-2: New USB device found, idVendor=5253, idProduct=1021, bcdDevice=14.19
12月 02 23:05:34 archlinux kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
12月 02 23:05:34 archlinux kernel: usb 1-2: Product: MCHOSE M7 Pro
12月 02 23:05:34 archlinux kernel: usb 1-2: Manufacturer: RealTek
12月 02 23:05:34 archlinux kernel: usb 1-2: SerialNumber: 0123456789
12月 02 23:05:34 archlinux kernel: hub 3-1:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: input: RealTek MCHOSE M7 Pro as /devices/pci0000:00/0000:00:08.1/0000:07:00.3/usb1/1-2/1-2:1.0/0003:5253:1021.0001/input/input5
12月 02 23:05:34 archlinux kernel: hid-generic 0003:5253:1021.0001: input,hidraw0: USB HID v1.10 Mouse [RealTek MCHOSE M7 Pro] on usb-0000:07:00.3-2/input0
12月 02 23:05:34 archlinux kernel: hub 7-1:1.0: USB hub found
12月 02 23:05:34 archlinux kernel: input: RealTek MCHOSE M7 Pro Keyboard as /devices/pci0000:00/0000:00:08.1/0000:07:00.3/usb1/1-2/1-2:1.1/0003:5253:1021.0002/input/input6
12月 02 23:05:34 archlinux kernel: usb 8-1: new SuperSpeed USB device number 2 using xhci_hcd
12月 02 23:05:34 archlinux kernel: usb 8-1: New USB device found, idVendor=05e3, idProduct=0620, bcdDevice=93.11
12月 02 23:05:34 archlinux kernel: usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
12月 02 23:05:34 archlinux kernel: usb 8-1: Product: USB3.2 Hub
12月 02 23:05:34 archlinux kernel: usb 8-1: Manufacturer: GenesysLogic
12月 02 23:05:35 archlinux kernel: hid-generic 0003:5253:1021.0002: input,hidraw1: USB HID v1.10 Keyboard [RealTek MCHOSE M7 Pro] on usb-0000:07:00.3-2/input1
12月 02 23:05:35 archlinux kernel: hub 8-1:1.0: USB hub found
12月 02 23:05:35 archlinux kernel: hid-generic 0003:5253:1021.0003: hiddev96,hidraw2: USB HID v1.10 Device [RealTek MCHOSE M7 Pro] on usb-0000:07:00.3-2/input2
12月 02 23:05:35 archlinux kernel: usb 1-3: new high-speed USB device number 3 using xhci_hcd
12月 02 23:05:35 archlinux kernel: nvme 0000:02:00.0: platform quirk: setting simple suspend
12月 02 23:05:35 archlinux kernel: nvme 0000:06:00.0: platform quirk: setting simple suspend
12月 02 23:05:35 archlinux kernel: usb 1-3: New USB device found, idVendor=2b7e, idProduct=b663, bcdDevice= 0.08
12月 02 23:05:35 archlinux kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
12月 02 23:05:35 archlinux kernel: usb 1-3: Product: HD Webcam
12月 02 23:05:35 archlinux kernel: usb 1-3: Manufacturer: SunplusIT Inc
12月 02 23:05:35 archlinux kernel: usb 1-3: SerialNumber: 01.00.00
12月 02 23:05:36 archlinux kernel: usb 1-5: new full-speed USB device number 4 using xhci_hcd
12月 02 23:05:36 archlinux kernel: usb 1-5: New USB device found, idVendor=8087, idProduct=0032, bcdDevice= 0.00
12月 02 23:05:36 archlinux kernel: usb 1-5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
12月 02 23:05:36 archlinux kernel: amdgpu 0000:07:00.0: amdgpu: [drm] Loading DMUB firmware via PSP: version=0x08005400
12月 02 23:05:36 archlinux kernel: amdgpu 0000:07:00.0: amdgpu: Found VCN firmware Version ENC: 1.24 DEC: 9 VEP: 0 Revision: 27
12月 02 23:05:39 archlinux-pc systemd[1]: Clear Stale Hibernate Storage Info was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67).
12月 02 23:05:39 archlinux-pc kernel: faux_driver regulatory: Direct firmware load for regulatory.db failed with error -2
12月 02 23:05:39 archlinux-pc kernel: usbcore: registered new interface driver btusb
12月 02 23:05:39 archlinux-pc kernel: Bluetooth: hci0: Minimum firmware build 1 week 10 2014
12月 02 23:05:39 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:05:39 archlinux-pc kernel: Bluetooth: hci0: Found device firmware: intel/ibt-0041-0041.sfi
12月 02 23:05:39 archlinux-pc kernel: Bluetooth: hci0: Firmware Version: 133-20.25
12月 02 23:05:39 archlinux-pc kernel: iwlwifi 0000:04:00.0: loaded firmware version 89.7207fc64.0 ty-a0-gf-a0-89.ucode op_mode iwlmvm
12月 02 23:05:39 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:05:40 archlinux-pc kernel: usbcore: registered new interface driver uvcvideo
12月 02 23:05:41 archlinux-pc kernel: Bluetooth: hci0: Waiting for firmware download to complete
12月 02 23:05:41 archlinux-pc kernel: Bluetooth: hci0: Firmware loaded in 1145954 usecs
12月 02 23:05:41 archlinux-pc kernel: Bluetooth: hci0: Firmware timestamp 2025.20 buildtype 1 build 82053
12月 02 23:05:41 archlinux-pc kernel: Bluetooth: hci0: Firmware SHA1: 0x937bca4a
12月 02 23:15:17 archlinux-pc kernel: PM: suspend entry (s2idle)
12月 02 23:15:20 archlinux-pc kernel: printk: Suspending console(s) (use no_console_suspend to debug)
12月 02 23:15:20 archlinux-pc kernel: atkbd serio0: Disabling IRQ1 wakeup source to avoid platform firmware bug
12月 02 23:15:20 archlinux-pc kernel: amd_pmc AMDI0009:00: Last suspend didn't reach deepest state
12月 02 23:15:20 archlinux-pc kernel: amdgpu 0000:07:00.0: amdgpu: SMU is resumed successfully!
12月 02 23:15:20 archlinux-pc kernel: PM: suspend exit
12月 02 23:24:39 archlinux-pc kernel: PM: suspend entry (s2idle)
12月 02 23:46:14 archlinux-pc kernel: printk: Suspending console(s) (use no_console_suspend to debug)
12月 02 23:46:14 archlinux-pc kernel: amdgpu 0000:07:00.0: amdgpu: SMU is resumed successfully!
12月 02 23:46:14 archlinux-pc kernel: PM: suspend exit
12月 02 23:49:39 archlinux-pc kernel: usb 1-3: reset high-speed USB device number 3 using xhci_hcd
12月 02 23:49:39 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:49:39 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:56:19 archlinux-pc kernel: usbcore: deregistering interface driver uvcvideo
12月 02 23:56:29 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:56:29 archlinux-pc kernel: usb 1-3: Found UVC 1.50 device HD Webcam (2b7e:b663)
12月 02 23:56:29 archlinux-pc kernel: usbcore: registered new interface driver uvcvideo
󰬡  snemc  ~
➜ sudo dmesg | grep -iE 'fail|error|timeout|reset' | tail -n 20
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=57fd6bbf-2669-4a87-87c6-5e607612cb3b rw rootflags=subvol=@ quiet splash loglevel=5 nvidia_drm.modeset=1 i8042.reset i8042.nomux i8042.nopnp i8042.noloop
[ 0.029840] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=57fd6bbf-2669-4a87-87c6-5e607612cb3b rw rootflags=subvol=@ quiet splash loglevel=5 nvidia_drm.modeset=1 i8042.reset i8042.nomux i8042.nopnp i8042.noloop
[ 0.264948] ACPI BIOS Error (bug): Could not resolve symbol [SB.PCI0.GPP2.WWAN], AE_NOT_FOUND (20250404/dswload2-162)
[ 0.264966] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20250404/psobject-220)
[ 0.383781] pci 0000:06:00.0: VF BAR 2 [mem size 0x00300000 64bit]: failed to assign
[ 0.383784] pci 0000:06:00.0: VF BAR 4 [mem size 0x00300000 64bit]: failed to assign
[ 0.490479] x86/amd: Previous system reset reason [0x00200800]: ACPI power state transition occurred
[ 0.602268] RAS: Correctable Errors collector initialized.
[ 0.774611] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 5.324975] systemd[1]: Listening on Factory Reset Management.
[ 5.799785] faux_driver regulatory: Direct firmware load for regulatory.db failed with error -2
[ 5.799790] cfg80211: failed to load regulatory.db
[ 5.832846] Bluetooth: hci0: No dsm support to set reset delay
[ 584.932725] ACPI BIOS Error (bug): Could not resolve symbol [SB.ACDC.RTAC], AE_NOT_FOUND (20250404/psargs-332)
[ 584.932732] ACPI Error: Aborting method SB.PEP.DSM due to previous error (AE_NOT_FOUND) (20250404/psparse-529)
[ 2438.965045] ACPI BIOS Error (bug): Could not resolve symbol [SB.ACDC.RTAC], AE_NOT_FOUND (20250404/psargs-332)
[ 2438.965055] ACPI Error: Aborting method SB.PEP.DSM due to previous error (AE_NOT_FOUND) (20250404/psparse-529)
[ 2440.094597] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
[ 2440.718603] atkbd serio0: Failed to enable keyboard on isa0060/serio0
[ 2645.481888] usb 1-3: reset high-speed USB device number 3 using xhci_hcd
󰬡  snemc  ~
➜ lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/5p, 480M
| Port 002: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|
Port 002: Dev 002, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|
Port 002: Dev 002, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|
_ Port 003: Dev 003, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 003: Dev 003, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 003: Dev 003, If 2, Class=Video, Driver=uvcvideo, 480M
|__ Port 003: Dev 003, If 3, Class=Video, Driver=uvcvideo, 480M
|__ Port 005: Dev 004, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 005: Dev 004, If 1, Class=Wireless, Driver=btusb, 12M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
/: Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
/: Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
/: Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
󰬡  snemc  ~

➜ fastfetch -l none
snemc@archlinux-pc

OS: Arch Linux x86_64
Host: Yilong15Pro Series GM5HG7A
Kernel: Linux 6.17.9-arch1-1
Uptime: 19 mins
Packages: 1331 (pacman)
Shell: zsh 5.9
Display (BOE0C8E): 2560x1600 @ 1.1x in 15", 240 Hz [Built-in]
WM: niri (Wayland)
Theme: KvArc [Qt], catppuccin-latte-blue-standard+default [GTK2/3/4]
Icons: Papirus-Light [Qt], Papirus-Light [GTK2/3/4]
Font: Noto Sans (12pt) [Qt], Adwaita Sans (11pt) [GTK2/3/4]
Cursor: phinger-cursors-light (24px)
Terminal: kitty 0.44.0
Terminal Font: MapleMono-NF-CN-Regular (14pt)
CPU: AMD Ryzen 7 8845H (16) @ 5.14 GHz
GPU 1: NVIDIA GeForce RTX 4070 Max-Q / Mobile [Discrete]
GPU 2: AMD Radeon 780M Graphics [Integrated]
Memory: 4.05 GiB / 30.64 GiB (13%)
Swap: 0 B / 38.00 GiB (0%)
Disk (/): 85.92 GiB / 1.82 TiB (5%) - btrfs
Local IP (utun0): 28.0.0.1/30
Battery (standard): 100% [AC Connected]
Locale: zh_CN.UTF-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions