Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 May 2019, 05:46
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
Wireless gamepads link in Windows but not in Linux (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 22 Dec 2018, 06:41    Post subject:  

If your dongle was a standard BT adapter, the kernel would detect it as such and auto-load the "btusb" module.

But your dongle is being detected as something more, and additional modules like joydev are being loaded. So it's not clear to me if your dongle is working as a BT device.

If it was recognized as a BT adapter, you would definitely need a BT subsystem on your computer to do the pairing.

For example, here is what happens on an XP system with a BT mouse. When you plug in a BT dongle, XP detects it and starts a BT process in the system tray. You then press the pairing button on the mouse and run the sequence in XP for adding a new BT device.

But you suggested that none of that happens when you plug your gamepad dongle into a Windows machine.

It sounds like the gamepad and dongle are doing their own pairing independent of the host OS. If that is the case, it shouldn't matter if the host OS is Linux.

Last edited by rcrsn51 on Sat 22 Dec 2018, 06:53; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11254

PostPosted: Sat 22 Dec 2018, 06:49    Post subject:  

Indeed.

The idea is to behave the same as a wired gamepad/joystick.

I have a wireless mouse that appears as a wired one.

it should make life simpler but is not in this case.

I am guessing that on windows either the dongle reacts to the OS , or the driver sends something to the dongle....but thats a laymans view of the process.

mike
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 22 Dec 2018, 06:55    Post subject:  

mikeb wrote:
I have a wireless mouse that appears as a wired one.

It's probably a 2.4 Ghz mouse with its own dedicated dongle. It does NOT work via BT.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 22 Dec 2018, 07:02    Post subject:  

So the question is whether Linux requires its own BT pairing operation to make your gamepad setup work.

Or maybe the dongle and gamepad have paired successfully on their own, but the Linux host needs additional drivers to make them work.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11254

PostPosted: Sat 22 Dec 2018, 12:55    Post subject:  

I have the answer which hopefully might help others.

The pairing is not allowed unless the dongle is being polled by the operating system. I suppose its a form of power saving approach.

I assume on windows polling happens continuously but on linux it would only happen with a game in progress.
A simple cat /dev/input/js0 made this evident.

Thanks to all who tried to help and once again the answer was simple in the end Very Happy

mike
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 22 Dec 2018, 13:00    Post subject:  

I don't understand. What changed to suddenly make the gamepad start working?

Did you have to start the game, then pair the gamepad and dongle?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11254

PostPosted: Sat 22 Dec 2018, 13:45    Post subject:  

Quote:
Did you have to start the game, then pair the gamepad and dongle?

In effect yes...anything that reads the joystick device.
Until something is using it it's dormant and the dongle will not pair up. Simply being powered up is not enough.

mike
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12143
Location: S.C. USA

PostPosted: Sat 22 Dec 2018, 22:41    Post subject:  

Not fare!
You found the answer to fixing it Laughing

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11254

PostPosted: Sun 23 Dec 2018, 05:02    Post subject:  

Quote:
Not fare!
You found the answer to fixing it Laughing


A lifetime of self sufficiency and stubbornness causes that ..

I am slipping...it took two pages of posts Evil or Very Mad

mike
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sun 23 Dec 2018, 08:59    Post subject:  

mikeb wrote:
In effect yes...anything that reads the joystick device.

So what specific instructions would you give to another user with this same problem?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11254

PostPosted: Mon 24 Dec 2018, 13:27    Post subject:  

Quote:
So what specific instructions would you give to another user with this same problem?


In essense run any software that uses a joystick/gamepad and then try to pair up.

In a terminal
cat /dev/input/js0
will simulate this and again allow pairing.
The actual device may vary.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0417s ][ Queries: 13 (0.0111s) ][ GZIP on ]