-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(packaging): ensure that uhid is loaded automatically #2906
base: master
Are you sure you want to change the base?
Conversation
Somehow I can no longer run the CI in my fork. It always fails at the Setup Release step:
I then modified the settings in my repository according to the message but that did not work. (Probably because on my fork it's a branch and not a pull request.) I don't know how to proceed to get this tested. |
My suggestion is to create a PR into your master branch and run the CI that way. |
Ah, in hindsight that's kind of obvious. Thanks! |
There are some comments here we may want to investigate: #1720 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good. I think rpm will be fine since it uses the same postinst
as deb (excluding rpm-ostree OSes).
This could probably be merged once these few things are addressed, and rebased.
docs/source/about/setup.rst
Outdated
@@ -235,6 +235,12 @@ Install | |||
Sunshine needs access to `uinput` to create mouse and gamepad virtual devices and (optionally) to `uhid` | |||
in order to emulate a PS5 DualSense joypad with Gyro, Acceleration and Touchpad support. | |||
|
|||
#. Ensure that `uhid` is loaded at boottime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this section out of the new docs, as all of our provided packages were taking care of this.
Maybe we should re-add it, but to the "building" section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should re-add it, but to the "building" section?
Yes, I think that's a good idea. Also, in the new docs, there is still the setcap step left, which could also be moved to the building section as it's taken care of by the regular (i.e. not flatpak or appimage) packages.
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
Quality Gate passedIssues Measures |
FYI: #3041 |
There were some updates related to this recently, I'm not sure if any of this is still needed? |
I'll have to (double) check but I'm unfortunately short on time. Yesterday, after distro-upgrading, I installed the latest published pre-release and quickly checked |
Okay, no problem. I'll mark this as draft for now. |
Description
There have been at least two reports of non-working DualSense5 emulation due to
uhid
not being loaded.With this PR we'll configure systemd to automatically load uhid. (I suppose that currently it depends on the distribution and on which other devices the user may have connected to the host. I'm not sure.)
Do note that I'm rather new to CMake.
I did a few local tests (mainly a brief test that the uhid config is put in place correctly and that the module is loaded). I did not test rpm but since it shares the postinst with the .deb it should be fine.
Screenshot
Issues Fixed or Closed
Type of Change
.github/...
)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.