| Main > Main Forum |
| Any way to fix the constantly changing controller IDs in MAME? |
| (1/3) > >> |
| Shoegazer:
Hey fellow cab owners, Anyone here know if there's a way to get MAME to stop assigning seemingly random controller IDs every time I unplug/plug something in? For example, I have two LCD Topguns that I use with MAME and they keep getting seen as one of "mouse2", "mouse3", "mouse5", "mouse6" etc. and i have to recalibrate MAME games every time i connect/disconnect the USB hub from the PC... I should mention that these devices are all plugged into a 7-port USB hub, which is connected to a laptop that powers the cabinet. This is very convenient, since I use the laptop for other purposes and am frequently removing it from the cab, so I can't really change it. Nevertheless there *should* be a way to get either WinXP (using SP2) or MAME to "lock" device or controller IDs to a specific device. Right? Hopefully there's a way to do this either through WinXP Device Manager or MAME that I'm missing due to extreme blindness? :) Thanks for your help, everyone! Shoegazer |
| NickG:
What happens if you turn off "plug and play OS" in the bios (if that's possible in your laptop bios,) plug the hub in while the laptop is completely powered off, then turn the laptop on? This might let the laptop bios, instead of Windows, configure the devices every time. Will the bios always do the same thing if Windows will not? ...or are USB devices not configured at all by the bios/chipset without the OS..? Aaggh. nevermind all that, have you tried this one: --- Quote from: The Old New Thing url=http://blogs.msdn.com/oldnewthing/archive/2004/11/10/255047.aspx ---create a binary key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags that has the form IgnoreHWSerNumVVVVPPPP. Here VVVV is the 4 hex digits of the vendor id and PPPP is the 4 digits of the product id. Creating this and setting the value to 01 means that windows will ignore the serial number and act as if the device never had one at all. Doing this causes windows to then use the connection number to discriminate between different devices which works fine. --- End quote --- Well, that is really just to get around lockups/reboots for devices that have identical serial numbers, which is probably not applicable here. Nevermind on that one, too. Have you tried (hot)plugging the separate devices into the same ports in the same order everytime instead of plugging unplugging/plugging the hub; waiting for the plug and play / hardware wizard / usb device manager thing to completely install each device before plugging in the next device? |
| Shoegazer:
Thanks for the help, Nick. I did contemplate trying to plug in each device separately, but I'd rather not have to reach inside the cab and plug/unplug all seven of my USB cables every time I want to use the cab - which these days, is just about every day. Right now I've got it so that I just put the whole laptop in the sliding keyboard tray, slap in a few cables, and (aside from this problem) I'm up and running in less than 10 seconds. Pretty neat, and if I could only fix this annoyance I'd be all set. Thanks again! Shoegazer |
| fatfingers:
Is your 7-port USB hub self-powered or powered from your computer? |
| Fozzy The Bear:
--- Quote from: Shoegazer on January 28, 2007, 08:22:00 am ---Anyone here know if there's a way to get MAME to stop assigning seemingly random controller IDs every time I unplug/plug something in? --- End quote --- The short answer is NO!..... The problem with USB controller ID's is not a problem with Mame. The problem lies with Windows XP. XP Uses a dynamic controller assignment. So whatever you do XP will always remap all of the USB devices when one of them changes. The fix for this is not to run the memory hogging thing, slow as a piece of very slow stuff, with extra slow go go juice, designed by Mr Thicky McSlow from Slowville commonly known as Windows XP. Run Win98SE on your cab and the problems with this will vanish. Newer, in terms of an OS, doesn't necessarily mean better or faster. Best Regards, Julian (Fozzy The Bear) |
| Navigation |
| Message Index |
| Next page |