使用多重配置 USB 设备时,请牢记以下要点:
USB 设备配置定义了设备向操作系统显示其本身的方式。 此方法不同于其他 cfgadm 部分中介绍的系统设备配置。
某些 USB 设备支持多种配置,但一次只能有一种配置处于活动状态。
通过检查 cfgadm -lv 输出,可以确定多重配置设备。 Nconfigs 将大于 1。
缺省 USB 配置为配置 1。当前配置在 cfgadm -lv 输出中反映为 Config。
只要将设备重新连接至同一个端口,对缺省配置所做的更改在重新引导、热移除以及重新配置设备期间就将始终保持不变。
确保设备未被使用。
更改缺省 USB 配置。
例如:
# cfgadm -x usb_config -o config=2 usb0/4 Setting the device: /devices/pci@1f,0/usb@c,3:4 to USB configuration 2 This operation will suspend activity on the USB device Continue (yes/no)? yes |
检验设备是否已更改。
例如:
# cfgadm -lv usb0/4 Ap_Id Receptacle Occupant Condition Information When Type Busy Phys_Id usb0/4 connected unconfigured ok Mfg: Sun 2000 Product: USB-B0B0 aka Robotech With 6 EPPS High Clk Mode NConfigs: 7 Config: 2 : EVAL Board Setup unavailable usb-device n /devices/pci@1f,0/usb@c,3:4 |
请注意,Config: 现在显示 2。