Open gitjoska opened 3 weeks ago
means it couldn't open the device for the lcd. the "1-8:1.1" translates to Bus-Port:Device. but you would need to troubleshoot it more. try running it manually from the s1panel directory:
sudo service s1panel stop
sudo node ./main.js
here is the log from main.js:
sudo service s1panel stop root@debian12lcd:~/acemagic/s1panel# sudo node ./main.js 2024-10-27 17:36:23.2323 [info] starting up /root/acemagic/s1panel/main.js 2024-10-27 17:36:23.2323 [info] initialize: widget text loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget custom_bar loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget line_chart loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget doughnut_chart loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget bar_chart loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget image loaded... 2024-10-27 17:36:23.2323 [info] initialize: widget iconify loaded... 2024-10-27 17:36:23.2323 [info] initialize: sensor clock loaded... 2024-10-27 17:36:23.2323 [info] initialize: sensor calendar loaded... 2024-10-27 17:36:23.2323 [info] initialize: cpu sensor max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: sensor cpu_usage loaded... 2024-10-27 17:36:23.2323 [info] initialize: cpu tempature max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: cpu temp set to use fahrenheit 2024-10-27 17:36:23.2323 [info] initialize: sensor cpu_temp loaded... 2024-10-27 17:36:23.2323 [info] initialize: cpu power max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: sensor cpu_power loaded... 2024-10-27 17:36:23.2323 [info] initialize: monitoring interface vmbr0 2024-10-27 17:36:23.2323 [info] initialize: network max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: sensor network_vmbr0 loaded... 2024-10-27 17:36:23.2323 [info] initialize: monitoring interface vmbr0 2024-10-27 17:36:23.2323 [info] initialize: network max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: sensor network_vmbr0 loaded... 2024-10-27 17:36:23.2323 [info] initialize: memory sensor max points are set to 300 2024-10-27 17:36:23.2323 [info] initialize: sensor memory loaded... 2024-10-27 17:36:23.2323 [info] initialize: device orientation is portrait 2024-10-27 17:36:23.2323 [info] initialize: gui started on 0.0.0.0:8686 2024-10-27 17:36:23.2323 [info] initialize: cpu temp max set to 221 2024-10-27 17:36:23.2323 [info] initialize: cpu temp max set to 70 2024-10-27 17:36:24.2424 [info] lcd_thread: started... 2024-10-27 17:36:24.2424 [error] lcd_thread: failed to open usbhid 1-8:1.1 2024-10-27 17:36:24.2424 [info] network_thread: started... for vmbr0 2024-10-27 17:36:24.2424 [info] network_thread: started... for vmbr0 2024-10-27 17:36:24.2424 [error] cannot open device with path 1-8:1.1 2024-10-27 17:36:24.2424 [info] led_thread: started... 2024-10-27 17:36:25.2525 [info] memory sensor: total ram detected 1.00 GB 2024-10-27 17:36:25.2525 [info] memory sensor: total swap detected 512.00 MB
and here are the details of device 6:
lsusb -v -s 1:6
Bus 001 Device 006: ID 04d9:fd01 Holtek Semiconductor, Inc. Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04d9 Holtek Semiconductor, Inc. idProduct 0xfd01 bcdDevice 1.10 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x005b bNumInterfaces 3 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 1 Boot Interface Subclass bInterfaceProtocol 0 iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 27 Report Descriptors: UNAVAILABLE Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 50 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 22 Report Descriptors: UNAVAILABLE Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 34 Report Descriptors: UNAVAILABLE Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 4
when i run lsusb -t i can see for device 6 if 1 that there is no driver. Could this be the rootcause for the problen and if yes how could i install the missing driver?
lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M | Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M | Port 4: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M | Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M | Port 5: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M | Port 5: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M | Port 6: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M | Port 6: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M | Port 6: Dev 4, If 3, Class=Human Interface Device, Driver=, 12M | Port 6: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M | Port 7: Dev 5, If 0, Class=Vendor Specific Class, Driver=ch341, 12M | Port 8: Dev 6, If 1, Class=Human Interface Device, Driver=, 12M | Port 8: Dev 6, If 2, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 8: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M
First of all, great solution to make the LCD availabe also on Linux. I have installed AceMagic-S1-LED-TFT-Linux on Proxmox with at LXC Debian 12. The installation was ok after i have changed the package.json to "canvas": "^3.0.0-rc2". After the service is startet there are the following error message in the log-file: Oct 25 11:38:01 debian12lcd s1panel[127538]: [info] lcd_thread: started... Oct 25 11:38:01 debian12lcd s1panel[127538]: [error] lcd_thread: failed to open usbhid 1-8:1.1 Oct 25 11:38:01 debian12lcd s1panel[127538]: [error] cannot open device with path 1-8:1.1
in the config.json i can see the entry "device": "1-8:1.1", but i have no glue what this means. this is my usb-config: ` lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 006: ID 04d9:fd01 Holtek Semiconductor, Inc. Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter Bus 001 Device 004: ID 0573:1573 Zoran Co. Personal Media Division (Nogatech) USB Audio and HID Bus 001 Device 003: ID 0bda:b85b Realtek Semiconductor Corp. Bluetooth Radio Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/acemagic/s1panel# lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M | Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M | Port 4: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M | Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M | Port 5: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M | Port 5: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M | Port 6: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M | Port 6: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M | Port 6: Dev 4, If 3, Class=Human Interface Device, Driver=, 12M | Port 6: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M | Port 7: Dev 5, If 0, Class=Vendor Specific Class, Driver=ch341, 12M | Port 8: Dev 6, If 1, Class=Human Interface Device, Driver=, 12M | Port 8: Dev 6, If 2, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 8: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M
lsusb -v -s 1:5
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x1a86 QinHeng Electronics idProduct 0x7523 CH340 serial converter bcdDevice 81.34 iManufacturer 0 iProduct 2 USB Serial iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0027 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 104mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 1 bInterfaceProtocol 2 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0020 1x 32 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0020 1x 32 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 ` any idea why i get this error message?