Forums » General StepMania » Linux USB Flash drive help (i know, sorry).

1
So i've scoured various forums everywhere to try to get my arcade cab to recognize USB flash drive insertion, and while i've made some progress, I'm still being stymied for a final successful result.

There are two separate issues that i'm coming across. First should be relatively simple:

1. The front USB ports (this is a Pump it Up Pro 2 FX cabinet) were not initially being recognized by stepmania (or indeed, linux at all) until i found this thread that had this code to run in terminal:

echo 1 > /sys/class/leds/piuio::output27/brightness


Once that code is input, then the front USB ports are recognized and fine - however, this is not a setting that appears to save, so i have to execute this every time i boot up the machine. Can i just execute this in a startup script in /etc/rc.local or something? (i'm a linux newbie, still learning about basic autoexec/startup equivalents.)

2. In trying to get SM to recognize the inserted USB drives, i've done the following:
a. modified the /etc/fstab file to force USB drives to mount as 'media' by adding the following lines:

/dev/sdb1 /media/sdb1 vfat auto,rw,sync,users 0 0

/dev/sdc1 /media/sdc1 vfat auto,rw,sync,users 0 0


b. modified the preferences.ini file regarding USB mounting the following way:

MemoryCardOsMountPointP1=/media/sdb1

MemoryCardOsMountPointP2=/media/sdc1
MemoryCardUsbBusP1=-1
MemoryCardUsbBusP2=-1
MemoryCardUsbLevelP1=-1
MemoryCardUsbLevelP2=-1
MemoryCardUsbPortP1=-1
MemoryCardUsbPortP2=-1
MemoryCards=1


This has *kind* of worked in that now stepmania recognizes that cards are there (albeit sporadically - sometimes it works, other times it does not), but it gives me a ? 'card check' error and can't create or load a user profile.

any advice would be greatly appreciated.

(by the way, just doing /dev/sdb1 and /dev/sdc1 in those mount points did *not* work, not sure why. i think i could also be missing something regarding file access/permsisions as my home user profile vs root?...)

thanks all. happy july.

Last edited: 6 July 2015 10:03pm

-dn0

(i.e. darknote before it became an icelandic death metal band)
Reply
I have a boot up script that doesn't enable the usb ports until stepmania is actually starting.

For the usb port configurations we need to know what version of linux are you using?
What you need to do is find the per port usb device listing and put that into the configuration. I don't remember how to find it off the top of my head but will boot up my mk6 when I get home to find the commands you need.

Reply
So here's how I did it. (this is on ubuntu 14.04 btw) This is only for the memory card. not other tricks like autolog in and no window manager to save memory.

First I enable the usb ports by putting the following in my .profile file:


echo 1 > /sys/class/leds/piuio\:\:output27/brightness



Then I put a drive in one of the usb ports and ran ls /dev/disk/by-path/.


piu@piu:~$ ls /dev/disk/by-path/
pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0 pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1
piu@piu:~$


I repeat for the second usb port. Assuming thet data I wanted was in the first partition I edited the /etc/fstab and put in the following:


/dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0-part1 /mnt/p2 vfat nobootwait,rw,sync,users,uid=1000,gid=1000 0 0
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1 /mnt/p1 vfat nobootwait,rw,sync,users,uid=1000,gid=1000 0 0



I made the /mnt/p1 and /mnt/p2 directories.

in the preferences.ini I have the following:


MemoryCardOsMountPointP1=/mnt/p1
MemoryCardOsMountPointP2=/mnt/p2
MemoryCardProfileImportSubdirs=
MemoryCardProfileSubdir=StepMania 5
MemoryCardProfiles=1
MemoryCardUsbBusP1=-1
MemoryCardUsbBusP2=-1
MemoryCardUsbLevelP1=-1
MemoryCardUsbLevelP2=-1
MemoryCardUsbPortP1=-1
MemoryCardUsbPortP2=-1
MemoryCards=1


When stepmania first starts it won't recognize the key the very first time if it's already plugged in. but unplugging and replugging it will fix it.

Hope this helps.
Reply
it does indeed help. i'll give this a shot and see what happens. many thanks!
-dn0

(i.e. darknote before it became an icelandic death metal band)
Reply