mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-24 21:58:22 +00:00
dist: add udev rule to enable user hidraw access (#12292)
* dist: add udev rule to enable user hidraw access * dist: amend install instructions for udev rules * dist: change udev prefix prefix from 99 to 72 * dist: fix header typo for udev rule * Update dist/72-yuzu-input.rules shoutout to @liamwhite Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * Update dist/72-yuzu-input.rules shout out to @liamwhite Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * Update dist/72-yuzu-input.rules shout out to @liamwhite Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * Update dist/72-yuzu-input.rules shout out to @liamwhite Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * Update dist/72-yuzu-input.rules Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * dist: add spdx header to udev rules * dist: change udev modes to 0660 * Update dist/72-yuzu-input.rules Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> * Update dist/72-yuzu-input.rules Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> --------- Co-authored-by: HurricanePootis <hurricanepootis@protonmail.com> Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
This commit is contained in:
parent
8a79dd2d6c
commit
e92b10f971
1 changed files with 19 additions and 0 deletions
19
dist/72-yuzu-input.rules
vendored
Normal file
19
dist/72-yuzu-input.rules
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Allow systemd-logind to manage user access to hidraw with this file
|
||||
# On most systems, this file should be installed to /etc/udev/rules.d/72-yuzu-input.rules
|
||||
# Consult your distro if this is not the case
|
||||
|
||||
# Switch Pro Controller (USB/Bluetooth)
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", KERNELS=="*057e:2009*", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Joy-Con L (Bluetooth)
|
||||
KERNEL=="hidraw*", KERNELS=="*057e:2006*", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Joy-Con R (Bluetooth)
|
||||
KERNEL=="hidraw*", KERNELS=="*057e:2007*", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Joy-Con Charging Grip (USB)
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="200e", MODE="0660", TAG+="uaccess"
|
Loading…
Reference in a new issue