randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
479 stars 56 forks source link

Problems with USB controllers on PI 3A+ #124

Open LukaszKaluzny opened 4 years ago

LukaszKaluzny commented 4 years ago

I've observed a few problems regarding working of USB controllers (since using 3.6 beta).

1st one: After booting up BMC64 with mouse connected to my Pi 3A+ then my keyboard doesn't work at all (but gamepad does). The same situation is when I'm connecting only mouse and keyboard.

I've spotted that when I'm botting Pi with premade settings where mouse is disabled in settings and I'm enabling mouse after botting up, then mouse, keyboard and gamepad are working correctly. But this doesn't always help.

I've tested it with various mouses (Logitech M185 and Logitech M310) and USB hubs and the result is the same.

2nd one (and way more weird one): After using gamepad for some time and after several reboots I've noticed that gamepad doesn't always work. And issue is starting to occurring often and often and finally gamepad is not reacting at all. After that I've checked it on my PC and situation is following: After connecting gamepad for the first time I'm getting prompt about device not recognized properly. After reconnecting it again to PC, then it works correctly. But whenever I try to connect it to PI again, then situation is the same: gamepad doesn't work on it and after connecting it to PC then the same prompt about device not recognized is displayed and gamepad is reacting after connecting it to PC again for the second time (I've tested that on my 2 PC laptops with Windows 10 and the situation is the same). But after a few more tries on PI my gamepad is dead and is not recognized even on my PC after several tries.

I've killed my 2 gamepads so far by trying using them on 3.6 beta.

I've tried with various usb hubs though and it doesn't help. Furthermore I've tried with various power connectors and the results is the same.

This situation is really weird...

I've attached vice.ini and settings.txt files.

attachments.zip

I've tested the same release (3.6 beta) and the same equipment on my Pi Zero and issue with connecting both keyboard and mouse doesn't occur at all. But when connecting keyboard, mouse and gamepad then my Pi Zero always hangs completelly after about 6 seconds counting from boot.

randyrossi commented 4 years ago

In your settings, I see you have the maxi keyboard mapping. Is this Pi inside a Maxi case?

It's strange that your gamepads don't work at all anymore even on a PC. 3.6-beta only added the shader so I doubt its related to that version. I know the Pi zero will crash on some USB gamepads and I opened a ticket with circle dev to see if he knows why. But I'm not sure how software could cause gamepads to stop working. What brand/make/model of gamepads were you using?

LukaszKaluzny commented 4 years ago

Hi rrossi. It's strange that I have maxi keyboard mapping, because BMC64 displays me Symbolic mapping in settings.

That broken gamepads are Esperanza EG-102 wired gamepad and the second one is the Argos DG-8178 wireless gamepad with 2.4ghz USB transmitter. And I want to mention that in case of dg-8178 broken is that USB transmitter. Gamepad can be turned on because his LEDs are blinking but for now it is unusable due to broken transmitter, which for now isn't blinking at all. That third gamepad, which I'm using is Esperanza EG102 - this is version with USB connector and additional connector for PlayStation 2. I have also joystick for thec64mini but I don't want to risk with connecting this joystick :-)

I've tested this equipment (gamepad, mouse and keyboard) with amiberry emulator built in retropie and I don't have any issues yet.