fix(linux): update sunshine rules (#3748)
Co-authored-by: ABeltramo <beltramo.ale@gmail.com>
This commit is contained in:
parent
937615c8e6
commit
2cd4b1b3ad
4 changed files with 21 additions and 2 deletions
|
|
@ -118,6 +118,16 @@ system. You may also want to enable decoders, however that is not required for S
|
||||||
```
|
```
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### Input not working
|
||||||
|
After installation, the `udev` rules need to be reloaded. Our post-install script tries to do this for you
|
||||||
|
automatically, but if it fails you may need to restart your system.
|
||||||
|
|
||||||
|
If the input is still not working, you may need to add your user to the `input` group.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo usermod -aG input $USER
|
||||||
|
```
|
||||||
|
|
||||||
@note{Other build options are listed in the
|
@note{Other build options are listed in the
|
||||||
[meson options](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/meson_options.txt) file.}
|
[meson options](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/meson_options.txt) file.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ echo Sunshine User Service has been removed.
|
||||||
|
|
||||||
# Udev rule
|
# Udev rule
|
||||||
flatpak-spawn --host pkexec sh -c "rm /etc/udev/rules.d/60-sunshine.rules"
|
flatpak-spawn --host pkexec sh -c "rm /etc/udev/rules.d/60-sunshine.rules"
|
||||||
echo Mouse permission removed. Restart computer to take effect.
|
echo Input rules removed. Restart computer to take effect.
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace platf::gamepad {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto create_ds5() {
|
auto create_ds5() {
|
||||||
return inputtino::PS5Joypad::create({.name = "Sunshine DualSense (virtual) pad", .vendor_id = 0x054C, .product_id = 0x0CE6, .version = 0x8111});
|
return inputtino::PS5Joypad::create({.name = "Sunshine PS5 (virtual) pad", .vendor_id = 0x054C, .product_id = 0x0CE6, .version = 0x8111});
|
||||||
}
|
}
|
||||||
|
|
||||||
int alloc(input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue) {
|
int alloc(input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue) {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,11 @@
|
||||||
|
# Allows Sunshine to acces /dev/uinput
|
||||||
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
|
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
|
||||||
|
|
||||||
|
# Allows Sunshine to access /dev/uhid
|
||||||
KERNEL=="uhid", TAG+="uaccess"
|
KERNEL=="uhid", TAG+="uaccess"
|
||||||
|
|
||||||
|
# Joypads
|
||||||
|
KERNEL=="hidraw*" ATTRS{name}=="Sunshine PS5 (virtual) pad" MODE="0660", TAG+="uaccess"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Sunshine X-Box One (virtual) pad", MODE="0660", TAG+="uaccess"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Sunshine gamepad (virtual) motion sensors", MODE="0660", TAG+="uaccess"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Sunshine Nintendo (virtual) pad", MODE="0660", TAG+="uaccess"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue