如何解决在启动 Debian 10 时报告的一些意外错误消息?

Pan*_*dya 5 boot usb debian dmesg

当 Debian 10 正式发布时,我将我的 Debian 从第 9 版升级到第 10 版。自从我升级到 Debian 10 后,我在启动时收到以下消息:

[   11.008027] pstore: Using compression: deflate
[   11.008597] pstore: crypto_comp_decompress failed, ret = -22!
[   11.008666] pstore: decompression failed: -22
[   11.008784] pstore: crypto_comp_decompress failed, ret = -22!
[   11.008845] pstore: decompression failed: -22
Run Code Online (Sandbox Code Playgroud)

编辑/sys/fs/pstore按照评论和答案中的建议清除日志文件后,pstore:消息现在消失了。但是来自的消息(如下所述)usb 1-1.5仍然存在,这些消息在启动时花费了太多时间。

最近一些关于 USB 的消息在启动时也开始闪烁:

[   91.875667] usb 1-1.5: new full-speed USB device number 81 using ehci-pci
[   91.955706] usb 1-1.5: device descriptor read/64, error -32
[   92.147658] usb 1-1.5: device descriptor read/64, error -32
[   92.335657] usb 1-1.5: new full-speed USB device number 82 using ehci-pci
[   92.415642] usb 1-1.5: device descriptor read/64, error -32
[   92.603699] usb 1-1.5: device descriptor read/64, error -32
[   92.711758] usb 1-1-port5: attempt power cycle
[   93.315668] usb 1-1.5: new full-speed USB device number 83 using ehci-pci
[   93.731705] usb 1-1.5: device not accepting address 83, error -32
[   93.811713] usb 1-1.5: new full-speed USB device number 84 using ehci-pci
[   94.227687] usb 1-1.5: device not accepting address 84, error -32
[   94.227912] usb 1-1-port5: unable to enumerate USB device
Run Code Online (Sandbox Code Playgroud)

因此,在启动过程中会多次报告这些decompression failedunable to enumerate USB device消息,因此到达登录屏幕需要更多时间。如何排除故障并清除这些消息,从而节省启动时间?

顺便说一下,系统看起来工作正常,没有任何问题,笔记本电脑的所有 USB 端口在启动后也工作正常

是一个完整的dmesg输出。我还附上了lscpulspcilsusb 的输出。

Pan*_*dya 0

减压消息pstore按照此答案解决。

我刚刚也弄清楚了导致 USB 设备相关错误的原因。

这是笔记本电脑的网络摄像头未正确连接。我已经通过watching 的输出确认了这一点lsusb。实际上,我在使用 Cheese 测试网络摄像头时发现,如果我上下移动盖子,Cheese 就会开始显示“未找到设备”。(在盖子完全打开位置时,此问题仍然存在)。watch lsusb因此,我使用突出显示的硬件波动来监视连接:

在此输入图像描述

我不知道显示端口信息-t的功能。lsusb重新启动时,我记下报告错误的 USB 端口:

usb 3-1.5: new high-speed USB device number 9 using ehci-pci
usb 3-1.5: device descriptor read/64, error -71
usb 3-1.5: device descriptor read/64, error -71
usb 3-1-port5: attempt power cycle
usb 3-1.5: new high-speed USB device number 10 using ehci-pci
usb 3-1.5: device not accepting address 10, error -71
usb 3-1.5: new high-speed USB device number 11 using ehci-pci
usb 3-1.5: device not accepting address 11, error -71
usb 3-1-port5: unable to enumerate USB device
Run Code Online (Sandbox Code Playgroud)

(在问题中它是 USB 1-1-5,但我认为端口可能会改变)

并想出使用lsusb -t

$ lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 5: Dev 59, If 1, Class=Video, Driver=uvcvideo, 480M
        |__ Port 5: Dev 59, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 6: Dev 7, If 3, Class=Application Specific Interface, Driver=, 12M
        |__ Port 6: Dev 7, If 1, Class=Vendor Specific Class, Driver=btusb, 12M
        |__ Port 6: Dev 7, If 2, Class=Vendor Specific Class, Driver=btusb, 12M
        |__ Port 6: Dev 7, If 0, Class=Vendor Specific Class, Driver=btusb, 12M
        |__ Port 8: Dev 9, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
Run Code Online (Sandbox Code Playgroud)

这里端口 5 显示了笔记本电脑制造商Class=Video, Driver=uvcvideo用于运行网络摄像头的驱动程序/工具。

所以,这是USB与网络摄像头连接的问题。自我回答问题,以便其他面临类似问题的人可能会发现它有用。