# Joystick driver

**URL:** https://psychtoolbox.discourse.group/t/joystick-driver/5237
**Category:** Programming Help
**Tags:** linux
**Created:** [January 19, 2024, 2:50am UTC](https://psychtoolbox.discourse.group/t/joystick-driver/5237 "2024-01-19T02:50:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gopie](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gopie](https://psychtoolbox.discourse.group/u/gopie)
#### Post date: [January 19, 2024, 2:50am UTC](https://psychtoolbox.discourse.group/t/joystick-driver/5237/1 "2024-01-19T02:50:20Z")

</div>

Hi All,

I’m attempting to install the joystick driver on a 22.04 version of linux that has the hwe installed. However, running the command provided in the instructions (_sudo apt install xserver-xorg-input-joystick-hwe-22.04_) returns the following error:

_E: Unable to locate package xserver-xorg-input-joystick-hwe-22.04_  
_E: Couldn’t find any package by glob ‘xserver-xorg-input-joystick-hwe-22.04’_

After searching for the package, I can only find _xserver-xorg-input-joystick-hwe-18.04_. Just wondering if this is the correct package? This is my first dive into linux, so apologies if if Ive missed something obvious. Thanks in advance.

cheers,

George

---

<div class="post-metadata">

### Author: ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)
#### Post date: [January 19, 2024, 6:30pm UTC](https://psychtoolbox.discourse.group/t/joystick-driver/5237/2 "2024-01-19T18:30:41Z")

</div>

Try xserver-xorg-input-joystick, seems to be same driver for hwe vs. non-hwe since a while.

Edit: Thanks for the feedback, will fix this documentation bug for an upcoming release.

---

<div class="post-metadata">

### Author: ![KenRoy](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@KenRoy](https://psychtoolbox.discourse.group/u/KenRoy)
#### Post date: [October 24, 2025, 9:47pm UTC](https://psychtoolbox.discourse.group/t/joystick-driver/5237/3 "2025-10-24T21:47:00Z")

</div>

Hi gopie.  
Could you show the script where you access the joysticks?

---

<div class="post-metadata">

### Author: ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)
#### Post date: [October 27, 2025, 5:30am UTC](https://psychtoolbox.discourse.group/t/joystick-driver/5237/4 "2025-10-27T05:30:15Z")

</div>

There isn’t a specific demo script doing that. ‘help GamePad’ gives usage instructions.
