Gamepad: Difference between revisions

From Alpine Linux
(Initial page creation)
 
(Added →‎See also: section: Gaming on Alpine - Support Software section, 'qt5-qtgamepad' and 'razercfg'.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
== With [[Eudev|eudev]] ==
== With [[Eudev|eudev]] ==


By default, only members of the <code>input</code> group can access gamepad and joystick devices. However, making users members of the <code>input</code> has a negative security impact on which processes can obtain raw keyboard and mouse input.
By default, only members of the <code>input</code> group can access gamepad and joystick devices. However, making users members of the <code>input</code> group has a negative security impact on which processes can obtain raw keyboard and mouse input.


To grant members of the <code>plugdev</code> group access to gamepads, create an udev rule. For example, <code>/etc/udev/rules.d/90-joysticks.rules</code>:
To grant members of the <code>plugdev</code> group access to gamepads, create an udev rule. For example, {{Cat|/etc/udev/rules.d/90-joysticks.rules|<nowiki>
ACTION=="add", KERNEL=="js[0-9]*", SUBSYSTEM=="input", RUN+="/bin/chown root:plugdev /dev/input/js%n"</nowiki>}}


<pre>
Reload all rules with
ACTION=="add", KERNEL=="js[0-9]*", SUBSYSTEM=="input", RUN+="/bin/chown root:plugdev /dev/input/js%n"
</pre>


Reload all rules with
{{cmd|# udevadm control --reload}}


{{cmd|udevadm control --reload}}
Then (re)connect the game controller.


The (re)connect the game controller.
== See also ==
* [[Gaming_on_Alpine#Support_Software|Gaming on Alpine - Support Software section]].
* {{Pkg|qt5-qtgamepad}} - Adds support to get events from gamepad devices.
* {{Pkg|razercfg}} - Razer mouse configuration tool.


[[Category:Hardware]]
[[Category:Hardware]]
[[Category:Gaming]]

Latest revision as of 05:56, 15 February 2026

This article covers gamepads, joysticks and other game controllers.

With eudev

By default, only members of the input group can access gamepad and joystick devices. However, making users members of the input group has a negative security impact on which processes can obtain raw keyboard and mouse input.

To grant members of the plugdev group access to gamepads, create an udev rule. For example,

Contents of /etc/udev/rules.d/90-joysticks.rules

ACTION=="add", KERNEL=="js[0-9]*", SUBSYSTEM=="input", RUN+="/bin/chown root:plugdev /dev/input/js%n"

Reload all rules with

# udevadm control --reload

Then (re)connect the game controller.

See also