Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 003: ID 8087:0032 Intel Corp. AX210 Bluetooth Bus 003 Device 013: ID 0403:c630 Future Technology Devices International, Ltd lcd2usb interface Bus 003 Device 014: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 004 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
如果看不到, 可以更换一根线试试, 我就是这么解决的.
这里我们可以看到 当前设备的连接位置是在:
1
Bus 003 Device 013: ID 0403:c630 Future Technology Devices International, Ltd lcd2usb interface
然后可以在 /dev/bus/usb/003/013 看到我们的 USB 屏幕,记下这个路径, 后续会在配置文件中使用到.
Widget IPaddress { class 'Text' # Type: Text expression netinfo::ipaddr('vmbr0') # eth0's ip prefix '' # display "IP:" width 16 # display width: 16 align 'C' # display: central update 1000 }
Widget Time { class 'Text' expression strftime('%a %H:%M:%S',time()) width 16 align 'C' update 1000 }
Layout Default { Row1 { Col1 'IPaddress' # Display Widget IPaddress in the first row and first column } Row2 { Col1 'CPU' # Display Widget Time in the second row and first column # Col9 'RAM' }