Skip to content

Instantly share code, notes, and snippets.

@xanderificnl
Created September 5, 2023 18:28
Show Gist options
  • Save xanderificnl/fae4e87d00728c96c120f2a2f773b6d9 to your computer and use it in GitHub Desktop.
Save xanderificnl/fae4e87d00728c96c120f2a2f773b6d9 to your computer and use it in GitHub Desktop.
Keychron VIA configuration (linux | fedora)

In short:

You'll need to give write acess to the correct /dev/hidrawN device and possibly turn off SELinux enforcing while you're running the VIA app, be sure to turn it back on afterwards.

Steps

  • You need a chromium-based browser
  • Go to usevia.app and load the device, if all is well: great.

When it fails:

  • Open the chrome://device-log URL in your browser, and find the line which describes access denied, i.e.:
[20:08:02] Failed to open '/dev/hidraw4': FILE_ERROR_ACCESS_DENIED
  • Now we know the correct hid is /dev/hidraw4 (YMMV) - run this: sudo chmod a+rw /dev/hidraw4
  • If SELinux is enabled, you may want to create either a policy, or temporarily run setenforce 0
  • Try the VIA app again, it should work.
  • Do whatever you need to do.
  • Once you're done, run: setenforce 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment