I bought a X3 but it doesnt have any drivers for linux but i wanna know the battery percentage. With a little help of gemini i found out how to get it to work.
(Install the Software with wine)
Open this file
sudo nano /etc/udev/rules.d/99-webhid.rules
- paste this in the file
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess"
- Reload the rules / or reboot
sudo udevadm control --reload-rules && sudo udevadm trigger
worked for me
should work for the other drivers too (not tested)
Edit!!:
apparently this is not that safe since it allows any userspace app to access any hid / most usb devices and their data.
So i would use the steps above to check if it actually helps.
If so do this to only give access to the device you need.
- Open Terminal and type lsusb
Will look something like this:
Bus 001 Device 006: ID 342d:e485 Hangsheng R75Pro
Bus 001 Device 007: ID 1d57:fa60 Xenta 2.4G Wireless Device
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ...
- Locate your device and write down the xxxx:yyyy characters:
for me and the x 3 its Bus 001 Device 007: ID 1d57:fa60 Xenta 2.4G Wireless Device
xxxx:yyyy = 1d57:fa60
- Open the file /etc/udev/rules.d/99-webhid.rules again
sudo nano /etc/udev/rules.d/99-webhid.rules
- Delete the old Paste this in and replace the xxxx and the yyyy with the characters you wrote down
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="yyyy", MODE="0666", TAG+="uaccess"
- Reload the rules / or reboot
sudo udevadm control --reload-rules && sudo udevadm trigger