LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-31-2016, 07:07 PM   #1
tauro_kpo
Member
 
Registered: Feb 2007
Distribution: Debian
Posts: 113

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.

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

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

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

And

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

To enable it back again.
 
  


Reply

Tags
controller, joypad, joystick, xorg.conf



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 05:13 PM
Disable Second Mouse without xorg.conf cupofnestor Linux - Desktop 1 03-15-2010 09:51 AM
Mouse frozen. Is it an xorg.conf problem? kenyon Slackware 17 07-13-2006 11:08 AM
Can someone post their xorg.conf mouse settings for mx310 please Old_Fogie Linux - Hardware 3 05-03-2006 11:34 AM
Mouse with Scroll button (FreeBSD 5.3) xorg.conf x86br *BSD 6 10-20-2004 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

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