Skip to content

[NotAllowedError: Failed to open the device.] Linux Fix#233

Description

@Nounejm

Hello, 馃憢
first of all, I would like to thank the OpenMouse's Developer team for this amazing, free and open-source website. Not requiring special software should be a standard for any modern day peripheral. 鉂わ笍

WARNING: There might be a simpler, easier and safer way of doing this, but this one worked for me. If you know or find any simpler way, please let me know and/or create your own issue.

If you're on Linux and you're having a problem, where you can see the mouse, pair it, but it fails to open, then one possible issue could be missing permissions.

1. Check chrome://device-log/, filter for HID events and look for something like this:
Image
This might also help you find other issues.

2. When you identify that this is your issue, you can check if the files have the right permission. Example of root-only access:
ls -l /dev/hidraw3 /dev/hidraw4 /dev/hidraw5
Image
Your device might have different indexes.

3. If you are missing access, you can simply add yourself to read and write with setfacl. Example for my issue:
sudo setfacl -m u:$USER:rw /dev/hidraw3
sudo setfacl -m u:$USER:rw /dev/hidraw4
sudo setfacl -m u:$USER:rw /dev/hidraw5

4. If you run the ls command from step 1 again, you should now see you have read and write access.
Image

5. Done. Try OpenMouse now. 馃憤

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions