Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions on fixing Failed to open device on Linux #256

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Talinx
Copy link

@Talinx Talinx commented Jun 30, 2024

Add instructions for linux users on how to fix Failed to open the device error.

Linux users usually encounter this problem when trying to use via (#93 #224 #236 #255). This PR aims to make the process easier by providing instructions on the errors page.

It adds a button to fix problems on the errors pane:

Fix button

Clicking this button opens a modal with instructions:

Fix Failed to open device error modal

(Maybe it would be nice to add a notification when authorizing a keyboard fails so that the user can't miss the produced errors.)

Closes #236

import { DeviceInfo } from 'src/types/types';

const LinuxHidrawFix = (deviceInfo: DeviceInfo): () => JSX.Element => {
const textUdev = `SUBSYSTEM=="usb", ATTR{idVendor}=="${deviceInfo.vendorId.toString(16).toUpperCase().padStart(4, '0')}", ATTR{idProduct}=="${deviceInfo.productId.toString(16).toUpperCase().padStart(4, '0')}", TAG+="uaccess""
Copy link

@Forage Forage Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've got a double quote too many at the end of line 5

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to be clearer about Linux permissions?
2 participants