To use the Flole-Inverter-Tool with the Dongle, you need access to the /dev/hidraw0
device. Here are three options to grant access:
You can run the Flole-Inverter-Tool as root to ensure it has the required permissions to access /dev/hidraw0
.
sudo ./flole-inverter-tool
To always grant access to /dev/hidraw0
automatically, you can install a udev
rule that sets the appropriate permissions.
sudo nano /etc/udev/rules.d/99-floletool.rules
KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="1902", ATTRS{idProduct}=="0002", MODE="0666"
sudo udevadm control --reload-rules && sudo udevadm trigger
/dev/hidraw0
will automatically be set to allow all users access after each boot or when the device is reconnected.You can download the udev rule file directly using the following command:
wget https://invertertool.flole.de/99-floletool.rules -O /etc/udev/rules.d/99-floletool.rules
Make sure to reload the udev rules after downloading:
sudo udevadm control --reload-rules && sudo udevadm trigger
Use the following command to temporarily allow all users to access /dev/hidraw0
:
sudo chmod 666 /dev/hidraw0
Note that this change will be reset after a reboot or when the device is reconnected.
Choose one of the above methods based on your needs. Running as root provides the easiest solution, while the udev rule offers a permanent fix for permission issues.