Controller Mappings Lost Every Cold Boot

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

Hey guys. I'm having some issues with controller mappings on my Mister. I've searched and tried eveything I can think of but it's just not saving controller mappings upon cold reboot. Here's the situatoin:

I have an old USB converted NES controller, it works just fine, no matter the reboots, cold boots, anything, it's rock solid, in the main Mister menu or the NES core, no issues.

I have a Retrobit Genesis Mini 6 button USB controller. I plug it in, and in the main Mister menu define all the buttons it has, then in the Genisis Core define all the buttons it has (and hit save). I can then reboot the Mister from the menu (soft reboot) and no issues, the controller is remember in the main Mister Menu (I can use the "A" button to select a Core) as well as in the Genisis Core. However if I hard power the Mister off or cold reboot via the "press and hold" reboot, the only thing that works on the controller after the reboot is the D pad, I then have to redefine all the buttons or I can't use the A button (or any button for that matter) both in the main Mister menu, as well as again in the Genesis Core.

I have an old SixAxis Duel Shock 3 controller that I tried via USB, and it works just fine, no matter the reboot (cold reboot, hard power off),as well and an 8bitdo that works so is it just the retrobit usb controller? I really like the button placement on the Retrobit for Genesis but having to define the buttons each and every time gets old fast.
Genesis Mini 6 Button USB Controller Clear Blue.jpg
Genesis Mini 6 Button USB Controller Clear Blue.jpg (103.45 KiB) Viewed 2039 times
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MostroW »

when you map the controller in the core, do you save the settings when done?

if so you might want to check the mappings directory and delete some controller profiles manually that are not working and then restart that core and remap and save.
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

I do. And I actually went into the config directory and wiped everything out of that folder (backed it up first), and still no go.
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
User avatar
charmless
Posts: 183
Joined: Thu May 28, 2020 3:38 pm
Location: Stockholm, Sweden
Has thanked: 105 times
Been thanked: 30 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by charmless »

I don't have a solution to your problem. But I have the same controller (but the black one) and I tested it for the first time after reading your post. I mapped the controller both in the MiSTer main menu and then in the genesis core. Tried a game to make sure it worked and then did a cold reboot. Booted up the Genesis core again and tried a game, everything was still mapped and it worked fine.

tvspelsdagboken I run a video game site (in Swedish)

MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MostroW »

If you've cleared the directory from all mappings and then restarted the core, reassigned the buttons and saved those settings it should create a new mapping file, is that file correctly saved?
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

charmless wrote: Sat Aug 20, 2022 9:14 pm I don't have a sollution to your problem. But I have the same controller (but the black one) and I tested it for the first time after reading your post. I mapped the controller both in the MiSTer main menu and then in the genesis core. Tried a game to make sure it worked and then did a cold reboot. Booted up the Genesis core again and tried a game, everything was still mapped and it worked fine.
Hmm, might be my controller then.
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

MostroW wrote: Sat Aug 20, 2022 9:57 pm If you've cleared the directory from all mappings and then restarted the core, reassigned the buttons and saved those settings it should create a new mapping file, is that file correctly saved?
I got it!

So the first few times I was doing it I was using FileZilla to delete the directory contents. It would say it was deleted, even report an empty directory. Then after a reboot, it would have....109 files back in it...uh...that's not right.

So I popped the SD card out, put it in an SD Card reader, and deleted the directory contents via my PC, and voila! after that, it created and saved a new config file for the controller that works even after a hard power cycle.
GOT_IT.jpg
GOT_IT.jpg (31.68 KiB) Viewed 1955 times
Thanks guys, guess filezilla wasn't for some reason clearing the direcory? Despit it coping it to my PC for backup and reporting all files deleted when selected and SHIFT+DEL

Now it works in the Mister Main Menu as well as the Genisis core and is persistant.

Thanks again everyone!
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MostroW »

Good to hear you got it working again!

You potentially could use Putty to connect to your MiSTer using the network and use the terminal to do things, if you've got it hooked up to the network that is.
AngelicLiver
Top Contributor
Posts: 433
Joined: Fri May 29, 2020 8:50 am
Has thanked: 86 times
Been thanked: 120 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by AngelicLiver »

So the first few times I was doing it I was using FileZilla to delete the directory contents.
Avoid using FileZilla if you can; its default mode is known to corrupt data on the SD. You need to ensure the application is working in binary mode to avoid this.

The far safer tool to use for network file transfers to MiSTer is WinSCP on Windows.
FPGA64
Top Contributor
Posts: 937
Joined: Mon Mar 01, 2021 3:10 pm
Has thanked: 49 times
Been thanked: 374 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by FPGA64 »

Technically its not corrupting data in its default mode. Its transmiting binary data as text which is what was requested. Its user error not the application that it at fault when this occurs.
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

So it turns out it's not fixed. I just thought it was.

When I do the "configure joystick" on the MiSTer, the file is created, if I FTP in and save that file to my computer, then shut down the MiSTer, eject the SD Card, put it in my PC, and copy the file over (the file disapears upon shutdown), it's good from then on with that joystick. But the SD Card seems like volitile memory when it's in the MiSTer, file is created when it's on, and wiped upon cold reboot.
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
User avatar
MiSTerDolch
Posts: 18
Joined: Sat Jun 18, 2022 6:48 pm
Has thanked: 8 times
Been thanked: 10 times

Re: Controller Mappings Lost Every Cold Boot

Unread post by MiSTerDolch »

Finally! Fixed! After reading this thread viewtopic.php?t=5321 and realizing the issue was very similar, I disabled SAM on my MiSTer and all issues have disappeared. Ask my CORE settings now save, any controller I setup keeps it's settings after reboot. No more SAM on my MiSTer.
My MiSTer Dolch Pac:
viewtopic.php?p=54090#p54090
Post Reply