EEVblog Electronics Community Forum
Products => Computers => Programming => Topic started by: msuffidy on January 03, 2023, 03:31:02 am
-
In the past I have been using a gameport joystick in windows by using something called inpout32, that can directly access address in the computer.
Recently something went wrong with my setup that I think had to do with me switching over to EFI so I could enable Resizable Bar in my GPU. I went to test out the joystick and nothing happened. So I looked in the device manager and the gameport had a problem and was called 'PCI input device'. It is actually a function on a audigy2 pci card that is 8 bytes in size. It still works fine in Linux and is in fact supported. So I have been having trouble getting a driver to load on it and in the past it did not seem too hard because there was some creative inf file that made it allocate resources. So what I need is like some dummy driver that sets up the resources or make one so that I can access it again.
Also I could maybe make a gameport connection to an Arduino that sends back data through serial, In the end I was using something called vjoy that allows you to feed virtual controllers with axis values etc...
Oh well
-
I tried some more stuff and there is something deeply messed with the PCI pnp setup in my Windows 10. I don't know if I could get a physical address anywhere no matter what I did. I didn't mention that it says there are not enough resources and something else had to be removed. The only thing there is pcie switches and bridges.
**Back after some more ideas like turning on lock pci on boot in windows (which did worse). I am now looking into setting up the gameport pci device behind windows back with the direct hardware tool I was using before. I am reviewing the issue for viability.
-
REALLY THANKS GUYS, but no GOOD NEWS
All I had to do was get pciutils for Windows
Then in an admin dos box I type
setpci -s 05:05.1 BASE_ADDRESS-0=0000D040
setpci -s 05:05.1 COMMAND=1
and IT WORKS HOORAY
https://www.youtube.com/watch?v=4HQxRNNuWyc (https://www.youtube.com/watch?v=4HQxRNNuWyc)