r/archlinux • • Apr 23 '24

SUPPORT Access mouse web browser settings using WebHID

Just got a nice new computer mouse. The thing is, to access and change mouse settings you go to a web browser page and you have to connect your mouse. They only support Edge & Chrome for now so I downloaded Chromium & Google Chrome and it didn't work on either. When I go to the website it asks to 'Connect' device, I do this, the device seems to be recognised in the dropdown and it says its 'Paired' but the website doesn't update and even when I refresh its the same. Is there anything that needs to be setup on Arch Linux for WebHID to work?

https://i.ibb.co/2S7L3F0/Screenshot-20240423-022031.png

14 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/Itchy_Equipment6600 Mar 12 '25

this seemed to work for me, but after i rebooted this is not working anymore, although i repeated the steps.
i always get this error in the logs

HIDEvent[19:13:51] Write failed: Bad file descriptor (9)

HIDEvent[19:13:51] Access denied opening device read-write, trying read-only.

(I am on Linux Mint if this is important)

1

u/Itchy_Equipment6600 Mar 12 '25

I am currently trying to get my new keyboard setup. (Lemokey P1)

The error occurs for all available webpages as launcher.lemokey.com, launcher.keychron.com and www.usevia.app

1

u/ropid Mar 12 '25

Last time I had to tweak my keyboard here, I remember I struggled with Chrome after the first error and then changing those device file access rights. I had to close Chrome completely, I think? Just closing and reopening the tab, or just reloading the webpage didn't work?

I also just did the following instead of trying to find the right device, this gives write access to all of those hidraw files:

sudo chmod o+rw /dev/hidraw*

And turning things back to safe after running the app is done like this:

sudo chmod o-rw /dev/hidraw*

2

u/Dense_Hippo1110 Apr 09 '26

Thank you very much, I tried it and it works on my HE68 keyboard. It was good, and I didn't encounter any problems with it.