Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867385 - games-util/joycond-0.1.0_p20210730-r1: Access to /dev/uinput is needed to pair the Switch Pro Controller as virtual device
Summary: games-util/joycond-0.1.0_p20210730-r1: Access to /dev/uinput is needed to pai...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-29 23:39 UTC by Christian Widmer
Modified: 2022-12-08 21:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Widmer 2022-08-29 23:39:33 UTC
Trying to pair a Switch Pro Controller as a virtual device by pressing + and - (which is needed to make the controller work with Steam) with joycond-0.1.0_p20210730-r1 does not work. Joycond logs an error about failing to open uinput with errno 1 (EPERM), the LEDs keep blinking and a virtual device is not created. This is caused by the unit file (as per the systemd-paranoia patch) not allowing access to /dev/uinput. Adding DeviceAllow=/dev/uinput to the unit file fixes the issue.
Comment 1 Khumba 2022-12-08 03:43:31 UTC
I can confirm this bug, and also that the fix works for plugging in Joycons with a grip via USB.  I would much appreciate if this allow rule could be added!
Comment 2 Larry the Git Cow gentoo-dev 2022-12-08 21:40:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c9535541920a5bc381834743b1fc0eaa8017477

commit 4c9535541920a5bc381834743b1fc0eaa8017477
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2022-12-08 21:37:30 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2022-12-08 21:37:30 +0000

    games-util/joycond: Allow /dev/uinput in systemd unit
    
    Closes: https://bugs.gentoo.org/867385
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-util/joycond/files/joycond-systemd-paranoia.patch | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)