[go: up one dir, main page]

So I have a bequiet keyboard with lights. When I open up the web-based settings it says following:

It seems that you are using our device on a Linux system. To ensure full functionality, root user permission is required, while you follow these additional steps

And then goes on how I must install a *.rules file in the “/etc/udev/rules.d/” folder and then run:

sudo udevadm control --reload-rules
sudo udevadm trigger

Back when I bought the keyboard I had Mint installed on my computer.

I went through the same procedure as below on my Mint installation, and it worked. But now when I do the same on my Fedora, it does not work.

So I created a file (/etc/udev/rules.d/10-bequiet.rules). The rule file contains the following:

SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="02", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0001", TAG+="bequiet"
SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="02", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0002", TAG+="bequiet"
SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="02", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0003", TAG+="bequiet"
SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="02", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0005", TAG+="bequiet"
SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="02", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0007", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0009", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="000a", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0010", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0011", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0016", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0017", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0023", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0024", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0025", TAG+="bequiet"
SUBSYSTEM=="usb", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0026", TAG+="bequiet"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", TAGS=="bequiet", MODE="0660", GROUP="plugdev", TAG+="uaccess"

After creating the file and running the udevadm methods in the terminal, I still get the same error.

So I looked around and found another suggestion, which was to add an additional file:

# create rule
sudo nano /etc/udev/rules.d/99-bequiet-lightmount.rules

# add this into the rule file
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="373f", ATTRS{idProduct}=="0002", MODE:="000"

# reload
sudo udevadm control --reload-rules
sudo udevadm trigger

So I added this file and ran the udevadm methods again, this also didn’t make any difference (Although after this step it did work on Mint).

Is there any difference between these two that different on how I should create and “apply” rules? It did work on one system but not on the second. The Hardware is the same nothing has changed in that regards.

Does this rule stuff work differently on Fedora? Am I missing a step that I should do on Fedora that I didn’t have to do on Mint?

Does “root user permission” mean that I might need to add something more, or do something different, rather than just the rule files?

What was different in Mint, was that I didn’t have to add the files in “admin mode”, if that makes sense. Do I perhaps need to start the browser in “admin mode” for it to work on Fedora?

Do anyone know what the issue could be here?

Thanks!

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago
    1. Run sudo dmesg -wH to watch the live output of events
    2. Unplug keyboard
    3. Plug keyboard back in
    4. Post the new lines of output here

    Edit: Oh, I just realized it’s setting weird permissions for a keyboard. 660 means only root and the plugdev group can access the device, so your regular user wouldn’t have access to it off the bat. Add yourself to the plugdev group and see if that works, or just change the rule to make the group “users” or whatever you’re apart of by default instead of “plugdev”.

    • dennisnedry@feddit.nuOP
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      OK, Thank you for the tip!

      I am currently not by my computer so I will try it later. I will post an update when I have tried. Thanks!

    • dennisnedry@feddit.nuOP
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      So I added the group “plugdev” to my user, but it didn’t solve the issue. So I changed the group property in the rule to wheel instead: KERNEL=="hidraw*", SUBSYSTEM=="hidraw", TAGS=="bequiet", MODE="0660", GROUP="wheel", TAG+="uaccess"

      And now it works fine! 👍

      Though, I am not sure if it didn’t work with adding the “plugdev” group because it was not the primary group? (I don’t know if that is how it works or makes sense) In my system it looked something like this: <user> wheel plugdev

      And maybe that was the reason why it didn’t work… Nevertheless, it is working now, so thank you very much for the help and information 😀