Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-31-2016, 08:07 PM   #1
Registered: Feb 2007
Distribution: Debian
Posts: 100

Rep: Reputation: 16
Question How to toggle xorg.conf joystick/mouse?

I'm using a specific configuration in /etc/X11/xorg.conf.d/50-joystick.conf to use my joypad to control the mouse, but sometimes I want to use it as a regular joypad, to play games.

Is there any way to switch between mouse and regular joypad on the fly? To toggle between them?

At the moment I'm forced to delete 50-joystick.conf and restart xorg, and when I finish playing, put the file back and restart xorg again.

Old 10-31-2016, 11:05 PM   #2
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,513

Rep: Reputation: Disabled
I think xinput is the tool for this.
Old 11-01-2016, 02:17 AM   #3
Registered: Feb 2007
Distribution: Debian
Posts: 100

Original Poster
Rep: Reputation: 16
Thumbs up

Thank you very much, that was it.

For the record now my method to disable the joypad as mouse is:

xinput set-prop 'Wireless Controller' 'Device Enabled' 0


xinput set-prop 'Wireless Controller' 'Device Enabled' 1

To enable it back again.


controller, joypad, joystick, xorg.conf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg.conf Mouse configuration issue HalKeenan Linux - Newbie 3 06-16-2013 06:13 PM
Disable Second Mouse without xorg.conf cupofnestor Linux - Desktop 1 03-15-2010 10:51 AM
Mouse frozen. Is it an xorg.conf problem? kenyon Slackware 17 07-13-2006 12:08 PM
Can someone post their xorg.conf mouse settings for mx310 please Old_Fogie Linux - Hardware 3 05-03-2006 12:34 PM
Mouse with Scroll button (FreeBSD 5.3) xorg.conf x86br *BSD 6 10-20-2004 07:33 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration