jurkovic-nikola / OpenLinkHub

Open source interface for iCUE LINK Hub and other Corsair AIOs, Hubs for Linux
GNU General Public License v3.0
54 stars 4 forks source link

H150i new id #15

Closed barecool closed 1 month ago

barecool commented 1 month ago

Is your feature request related to a problem? Please describe. No control displayed in the dashboard for CORSAIR iCUE Link H150i LCD Liquid CPU Cooler - 360mm AIO - QX120 RGB Fans - 2.1” IPS LCD Screen

Additional context config.json { "listenPort": 8080, "listenAddress": "0.0.0.0", "cpuSensorChip": "coretemp", "manual": false, "frontend": true, "refreshOnStart": false, "metrics": true, "dbusMonitor": false }

stdout.log

{"level":"warning","msg":"Unsupported device detected. Please open a new feature request for your device on OpenLinkHub repository","product":3150,"serial":"A6B5T40101PF57","time":"2024-09-14T14:02:02Z","vendor":6940} {"error":"Failed to open a device with path '/dev/hidraw4': No such file or directory","level":"error","msg":"Unable to open HID device","productId":3135,"serial":"122D323782E03A5EA24BB40B3215782B","time":"2024-09-14T14:02:02Z","vendorId":6940} {"level":"warning","msg":"Unsupported device detected. Please open a new feature request for your device on OpenLinkHub repository","product":3150,"serial":"A6B5T40101PF57","time":"2024-09-14T14:12:46Z","vendor":6940} {"error":"Failed to open a device with path '/dev/hidraw4': No such file or directory","level":"error","msg":"Unable to open HID device","productId":3135,"serial":"122D323782E03A5EA24BB40B3215782B","time":"2024-09-14T14:12:46Z","vendorId":6940} {"level":"warning","msg":"Unsupported device detected. Please open a new feature request for your device on OpenLinkHub repository","product":3150,"serial":"A6B5T40101PF57","time":"2024-09-14T14:20:37Z","vendor":6940} {"error":"Failed to open a device with path '/dev/hidraw4': No such file or directory","level":"error","msg":"Unable to open HID device","productId":3135,"serial":"122D323782E03A5EA24BB40B3215782B","time":"2024-09-14T14:20:37Z","vendorId":6940}

jurkovic-nikola commented 1 month ago

Hello,

What OS are you using ?

Software is unable to open connection towards the hub due to the device path does not exists.

{"error":"Failed to open a device with path '/dev/hidraw4': No such file or directory","level":"error","msg":"Unable to open HID device","productId":3135,"serial":"122D323782E03A5EA24BB40B3215782B","time":"2024-09-14T14:20:37Z","vendorId":6940}

Please provide output of following commands: sudo ls -al /dev/hidraw* and sudo getfacl /dev/hidraw4

barecool commented 1 month ago

sorry to have bugged you I figured the issue out it was a typo on a device mapping

but I was able to getting all working on

basically I found the ids for the CORSAIR iCUE Link H150i LCD Liquid CPU Cooler - 360mm AIO - QX120 RGB Fans - 2.1” IPS LCD Screen

lsusb 

Bus 001 Device 011: ID 1b1c:0c4e Corsair CORSAIR iCUE LINK AIO LCD Screen Module
Bus 001 Device 009: ID 1b1c:0c3f Corsair iCUE LINK System Hub
nano /etc/udev/rules.d/99-usb-serial.rules

SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="0c3f" SYMLINK+="ttycorsair0"
KERNEL=="hidraw[0-9]*",MODE="0666"
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="0c4e" SYMLINK+="ttycorsair1"
KERNEL=="hidraw[0-9]*",MODE="0666"
udevadm trigger

Edit LXC Container configuration for passthrough

nano /etc/pve/lxc/container.conf

lxc.mount.entry: /dev/ttycorsair0 dev/hidraw4 none bind,optional,create=file
lxc.mount.entry: /dev/ttycorsair1 dev/hidraw9 none bind,optional,create=file