A program that displays temperature on the thermal right cpu cooler's digital screen for Linux.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pyinstaller --onefile src/controller.py
You may also launch it directcly with python
python3 src/controller.py conf
Create a file in /etc/systemd/system/digital_lcd_controller.service:
sudo nano /etc/systemd/system/digital_lcd_controller.service
Write this inside :
[Unit]
Description=Lcd screen controller
After=network.target udev.service systemd-modules-load.service
[Service]
ExecStart=/path/to/the/executable /path/to/the/conf_dir
User=yourusername
Group=yourusername
Type=simple
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
python3 src/led_display_ui.py config.json
ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so libhidapi-hidraw.so.0 libhidapi-libusb.so libhidapi-libusb.so.0 libhidapi-iohidmanager.so libhidapi-iohidmanager.so.0 libhidapi.dylib hidapi.dll libhidapi-0.dll
Install it with :
sudo apt update && sudo apt install libhidapi-hidraw0 libhidapi-libusb0
"Error initializing HID device: unable to open device No device found, with VENDOR_ID: 1046, PRODUCT_ID: 32769"
Try running the controller as root :
sudo python3 src/controller.py config.json
The correct way to fix this problem is to create a udev rule by editing this file "/etc/udev/rules.d/99-hid-device.rules" :
sudo nano /etc/udev/rules.d/99-hid-device.rules
and paste this line :
SUBSYSTEM=="usb", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8001", MODE="0666"
Try running the controller as root or with sudo, alternatively you can give reading access to "/sys/class/powercap/intel-rapl:0/energy_uj" or "/sys/class/powercap/amd-rapl:0/energy_uj" with sudo chmod +r /sys/class/powercap/intel-rapl:0/energy_uj (The path may vary depending on your system).
Please check the Troubleshooting section first! 👆
Whether you need help getting it running or want to discuss new features/contributions:
You're also welcome to open a GitHub Discussion for general questions.