this post was submitted on 16 Jun 2025
6 points (100.0% liked)

Linux

7932 readers
700 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

Like a lot of Chinese devices, my TEMPer clone creates two HID interfaces. This isn't how TEMPer is supposed to work but this unit is a knock-off. It was purchsed from Amazon and I tried to get an authentic part (Got from Amazon. The brand looked right and it wasn't the cheapest TEMPer, by far, but turned out to be a junky knock-off).

Right now, the app only works with root permission. I need to get it completely into the user space

Anyway, it creates two HIDRAW dev interfaces. The first one does not work. It responds on the second one. It always seems to show up on /dev/hidraw3 but I understand this cannot be counted on after re-plug, reboot, or other installs.

How can I create a udev rule that will allow my app to find the device (either scan with HIDAPI or libusb) and create symlink under /dev with user space access that my app can interface with?

Or, perhaps there is a better way?

I'm trying to write a driver that anyone can use with a knock-off TEMPer.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 day ago (1 children)
[โ€“] [email protected] 1 points 1 day ago

Thanks. He has the core done. It could have saved me some time. I'm quite a bit further along with auto discovery and a couple of minor conveniences.

If I can get it to install with a UDEV rule so it runs at user privilege level, it'll be all set and I'll push it into the AUR.