lshw | grep -A10 -i usb

lshw | grep -A10 -i usb

我有一台 HP Pavilion Power 15-CB030NL,搭载 Debian 10,内核 4.19.0-9-amd64。

以下是我的 2 个 GPU:

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04) (prog-if 00 [VGA controller])
    Subsystem: Hewlett-Packard Company HD Graphics 630
    Flags: bus master, fast devsel, latency 0, IRQ 133
    Memory at b2000000 (64-bit, non-prefetchable) [size=16M]
    Memory at c0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 5000 [size=64]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: [40] Vendor Specific Information: Len=0c <?>
    Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [d0] Power Management version 2
    Capabilities: [100] Process Address Space ID (PASID)
    Capabilities: [200] Address Translation Service (ATS)
    Capabilities: [300] Page Request Interface (PRI)
    Kernel driver in use: i915
    Kernel modules: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev ff) (prog-if ff)
    !!! Unknown header type 7f
    Kernel modules: nvidia

我一直不知道如何让这台笔记本电脑的 HDMI 工作,即使安装了 nvidia 驱动程序并使用 bumblebee 在集成英特尔和专用 nvidia 之间切换。但是,我开始使用 type-c 端口(带 hdmi 适配器),一切都运行良好。突然有一天,当我将笔记本电脑与外接显示器一起使用时,它变黑了,type-c 端口也停止工作了!

我将在这里粘贴一些有趣的输出:

lshw | grep -A10 -i usb

      capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
 *-cpu
      description: CPU
      product: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
      vendor: Intel Corp.
      physical id: 4
      bus info: cpu@0
      version: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
      serial: To Be Filled By O.E.M.
      slot: U3E1
      size: 3339MHz
    *-usb
         description: USB controller
         product: Sunrise Point-H USB 3.0 xHCI Controller
         vendor: Intel Corporation
         physical id: 14
         bus info: pci@0000:00:14.0
         version: 31
         width: 64 bits
         clock: 33MHz
         capabilities: pm msi xhci bus_master cap_list
         configuration: driver=xhci_hcd latency=0
         resources: irq:132 memory:b4500000-b450ffff
       *-usbhost:0
            product: xHCI Host Controller
            vendor: Linux 4.19.0-9-amd64 xhci-hcd
            physical id: 0
            bus info: usb@1
            logical name: usb1
            version: 4.19
            capabilities: usb-2.00
            configuration: driver=hub slots=16 speed=480Mbit/s
          *-usb:0
               description: Keyboard
               product: USB Keyboard
               vendor: Logitech
               physical id: 2
               bus info: usb@1:2
               version: 79.00
               capabilities: usb-1.10
               configuration: driver=usbhid maxpower=98mA speed=1Mbit/s
          *-usb:1
               description: Mouse
               product: USB Optical Mouse
               vendor: Logitech
               physical id: 3
               bus info: usb@1:3
               version: 72.00
               capabilities: usb-2.00
               configuration: driver=usbhid maxpower=100mA speed=1Mbit/s
          *-usb:2
               description: Video
               product: HP Wide Vision HD Camera
               vendor: Chicony
               physical id: 4
               bus info: usb@1:4
               version: 32.22
               capabilities: usb-2.00
               configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
          *-usb:3
               description: Bluetooth wireless interface
               vendor: Intel Corp.
               physical id: 7
               bus info: usb@1:7
               version: 0.03
               capabilities: bluetooth usb-2.00
               configuration: driver=btusb maxpower=100mA speed=12Mbit/s
       *-usbhost:1
            product: xHCI Host Controller
            vendor: Linux 4.19.0-9-amd64 xhci-hcd
            physical id: 1
            bus info: usb@2
            logical name: usb2
            version: 4.19
            capabilities: usb-3.00
            configuration: driver=hub slots=8 speed=5000Mbit/s
    *-generic:1
         description: Signal processing controller
         product: Sunrise Point-H Thermal subsystem
         vendor: Intel Corporation
         physical id: 14.2
         bus info: pci@0000:00:14.2
         version: 31
         width: 64 bits
         clock: 33MHz

--

在# tail -f /var/log/kern.log上,如果我从 type-c 端口插入或移除任何东西,什么都不会发生。

系统盘

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0a2a Intel Corp. 
Bus 001 Device 004: ID 04f2:b5d6 Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 046d:c326 Logitech, Inc. Washable Keyboard K310
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

cat /boot/config-4.19.0-8-amd64 | grep TYPEC

CONFIG_TYPEC=m
CONFIG_TYPEC_TCPM=m
# CONFIG_TYPEC_TCPCI is not set
# CONFIG_TYPEC_RT1711H is not set
CONFIG_TYPEC_FUSB302=m
CONFIG_TYPEC_UCSI=m
CONFIG_TYPEC_TPS6598X=m
# CONFIG_TYPEC_MUX_PI3USB30532 is not set
# CONFIG_TYPEC_DP_ALTMODE is not set

我还使用了外置华硕 ZenScreen MB16ACM 显示器,它工作正常(因此只需使用 type-c 转 type-c 电缆,无需任何适配器)。现在,当我将其连接到笔记本电脑时,电源灯会亮起,但它“看不到”它。我还尝试了 type-c 转 usb 适配器(带有简单的 usb 外部驱动程序),同样,debian 根本无法检测到它。

我想知道是否应该在内核中启用 CONFIG_TYPEC_DP_ALTMODE(CONFIG_TYPEC_DP_ALTMODE=m)但我不知道如何做到这一点。

更新

我发现,如果我打开网络摄像头或使用 VMWare 进行虚拟化,type-c 端口就会停止工作。这种情况会在一段时间后发生,比如 10-15 分钟。我开始认为这与“省电”问题有关,但我停用了有关省电的所有设置,电源线始终处于开启状态。所以电脑也没有电量不足。

相关内容