Add instructions on fixing Failed to open device on Linux#256
Open
Talinx wants to merge 3 commits intothe-via:mainfrom
Open
Add instructions on fixing Failed to open device on Linux#256Talinx wants to merge 3 commits intothe-via:mainfrom
Talinx wants to merge 3 commits intothe-via:mainfrom
Conversation
Forage
reviewed
Jul 2, 2024
src/utils/user-fixable-errors.tsx
Outdated
| 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"" |
There was a problem hiding this comment.
You've got a double quote too many at the end of line 5
Contributor
|
It shouldn't be really instruction. It should be automated. |
Author
|
This is not something that can be done from within a browser/Web app. These permissions have to be set by the user or (ideally) configured by udev rules supplied with the Linux distribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Clicking this button opens a modal with instructions:
(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