Ubuntu 22.04 USB 不工作(使用电池供电时)

Ubuntu 22.04 USB 不工作(使用电池供电时)

这是我之前问题。我以为tlp是哪里出了问题,于是停止了服务,然后它就正常工作了。但是当我尝试用电池运行笔记本电脑时,USB 设备再次无法工作。工作几秒钟后就停止了。

lsusb显示我的设备并dmesg

[    1.903341] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=60.60
[    1.903347] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.903350] usb 3-1: Product: USB2.0 Hub
[    1.919601] usb 1-3: New USB device found, idVendor=413c, idProduct=250e, bcdDevice= 1.24
[    1.919608] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.919612] usb 1-3: Product: Dell Laser Mouse MS3220
[    1.919615] usb 1-3: Manufacturer: Dell Computer Corp
[    1.946309] hub 3-1:1.0: USB hub found
[    1.946662] hub 3-1:1.0: 4 ports detected
[    1.959834] input: Dell Computer Corp Dell Laser Mouse MS3220 as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.0/0003:413C:250E.0002/input/input16


[   50.021872] xhci_hcd 0000:05:00.3: WARNING: Host System Error
[   61.509372] xhci_hcd 0000:05:00.4: xHCI host not responding to stop endpoint command
[   61.509412] xhci_hcd 0000:05:00.4: xHCI host controller not responding, assume dead
[   61.509439] xhci_hcd 0000:05:00.4: HC died; cleaning up
[   61.509462] usb 3-1: USB disconnect, device number 2
[   61.509467] usb 3-1.1: USB disconnect, device number 4
[   61.513144] usb 3-1.2: USB disconnect, device number 5
[   61.518612] usb 3-2: USB disconnect, device number 3

tlp-stat

总线 001 设备 002 ID 413c:250e 控制 = 开启,自动暂停延迟毫秒 = -1000 - 戴尔计算机公司戴尔激光鼠标 MS3220 (usbhid)

我曾尝试安装linux-hwe-22.04、停止tlp、配置 tlp 如上所述这里

我对 Ubuntu 22.04 真的很失望。

答案1

经过漫长的调试时间,我找到了解决方案。它也与有关tlp

/etc/tlp.conf文件中。

 Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
# Default: on (AC), auto (BAT)

RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=on

我必须设置RUNTIME_PM_ON_BAT=on,它最初设置为自动。
现在外部 USB 键盘和鼠标可以正常工作,并且电池没有问题。

相关内容