So I got a Aquacomputer Octo in my computer and I have created a custorm dashboard in the KDE System Monitor that uses some of the sensors of the Aquacomputer Octo.
I have actually 2 problems at the moment but lets handle one at a time.
Everytime I boot the Aquacomputer Octo gets a new Device Name (at least I think it is called like that)
When I execute the sensors command in the terminal I get this output:
The device name is: octo-hid-3-b
Yesterday the device name was: octo-hid-3-9
This seems to change after almost every reboot and has the consequence, that everytime I start the KDE System Monitor I need to adjust all the sensors since their name or path has changed.
See Screenshot here:
I tried to solve the problem in the telegram channel and Ringo32 pointed me to two threads which kinda overwhelm me as a new linux user.
One thread was this:
the other one was that:
https://wiki.archlinux.org/title/Lm_sensors#Persistent_device_names
I now created a file named: octo.rules in the location /etc/udev/rules.d/
In the stackoverflow post the following is mentioned:
ACTION=="bind", KERNELS=="0005:<VENDOR_ID>:<PRODUCT_ID>.*", SUBSYSTEMS=="hid", DRIVERS=="hid-generic", \
RUN+="/bin/bash -c 'echo $kernel > /sys/bus/hid/drivers/$driver/unbind'", \
RUN+="/bin/bash -c 'echo $kernel > /sys/bus/hid/drivers/<MY_DRIVER>/bind'"
I found out vendor id product id and adjusted this to:
ACTION=="bind", KERNELS=="0005:0c70:f011.*", SUBSYSTEMS=="hid", DRIVERS=="hid-generic", \
RUN+="/bin/bash -c 'echo $kernel > /sys/bus/hid/drivers/$driver/unbind'", \
RUN+="/bin/bash -c 'echo $kernel > /sys/bus/hid/drivers/<MY_DRIVER>/bind'"
Now I wonder how I need to adjust the rest ? Is it even the right command to do what I actually want. I think somwhere I need to put the octo-hid-3-b from above but I have no idea how to properly use these commands or if it is the right way to do this after all.
Maybe additional Infos that might help:
This is the device:
Bus 005 Device 005: ID 0c70:f011 MCT Elektronikladen OCTO
I can find all the sensors etc under: /sys/class/hwmon/hwmon5/
If you need more informations please let me know.
Would be great if someone can show me the commands that I have to use so that the Octo always stays at: octo-hid-3-b so that I can use it properly with KDE System Monitor
This was my first Problem. After this has been resolved I will post the other one.