Flole-Inverter-Tool - Accessing the Dongle

To use the Flole-Inverter-Tool with the Dongle, you need access to the /dev/hidraw0 device. Here are three options to grant access:

Option 1: Run as Root

You can run the Flole-Inverter-Tool as root to ensure it has the required permissions to access /dev/hidraw0.

sudo ./flole-inverter-tool

Option 2: Install a udev Rule for Automatic Permission Changes

To always grant access to /dev/hidraw0 automatically, you can install a udev rule that sets the appropriate permissions.

Step-by-Step Instructions

  1. Create a new udev rule file. Run the following command:
  2. sudo nano /etc/udev/rules.d/99-floletool.rules
  3. Add the following line to the file:
  4. KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="1902", ATTRS{idProduct}=="0002", MODE="0666"
  5. Save the file and exit.
  6. Reload the udev rules with the following command:
  7. sudo udevadm control --reload-rules && sudo udevadm trigger
  8. Now, the permissions on /dev/hidraw0 will automatically be set to allow all users access after each boot or when the device is reconnected.

Download the udev Rule

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

Option 3: Change Permissions Temporarily

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.

Summary

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.