thetictacaddict
Still Fresh
I downloaded the USB serial program a few days ago, and it's fun to poke around the file system. For one, it's easy to copy files to NAND (I copied the CPU/LCD tweaker and Serial program there. Also mplayer_tv.gpu, because I'm using firmware 1.1.0 and don't want to upgrade because of Video Sync issues in later firmware).
The main thing I want to do, though, is to run the LCD tweaker at bootup. I'm pretty sure that I've heard this can't be done. If that's the case, maybe someone can give me some reasons why the methods I tried didn't work.
I noticed that when I mounted the SD card without specifying the file system type, it used msdos instead of vfat, and when browsing for files with the music player etc, files and folders had their names shortened (using that thing with the ~). I don't think that's relevent, but I thought it was interesting.
I wanted to run the LCD tweaker using command line arguments and exit, so I included a command like this, similar to the one in the readme: "/mnt/sd/cpu_speed.gpe 1 2 200 > /mnt/sd/output.txt". UPLL, timing prescaler at 2 and CPU frequency 200Mhz.
First, I came accross /etc/rc.d/rc.local and added that command at the end. It didn't work. This leads me to believe that rc.local isn't run at startup, /mnt/nand isn't mounted yet (although mount doesn't show anything mounted to that directory), or I'm overlooking something. Could I safely put the command in rc.sysetm or something else?
The other thing I tried was to to rename "/usr/gp2x/gp2xmenu" and replace it with a script called gp2xmenu that would run the CPU/LCD tweaker then, cd to /usr/gp2x and exec /usr/gp2x/gp2xmenu. The script executed fine (once I remembered to make it executable) when I specifically ran it, but didn't run when I rebooted. Apparently, running /usr/gp2x/gp2xmenu isn't the only way to bring the menu up. It occurs to me now that when I run programs like the video player or image viewer from the USB serial terminal, they exit back to the USB serial program. By the way, if I mess up or delete some important system files, will a firmware upgrade set me straight?
So, er, any ideas? Other comments on the USB serial program?
The main thing I want to do, though, is to run the LCD tweaker at bootup. I'm pretty sure that I've heard this can't be done. If that's the case, maybe someone can give me some reasons why the methods I tried didn't work.
I noticed that when I mounted the SD card without specifying the file system type, it used msdos instead of vfat, and when browsing for files with the music player etc, files and folders had their names shortened (using that thing with the ~). I don't think that's relevent, but I thought it was interesting.
I wanted to run the LCD tweaker using command line arguments and exit, so I included a command like this, similar to the one in the readme: "/mnt/sd/cpu_speed.gpe 1 2 200 > /mnt/sd/output.txt". UPLL, timing prescaler at 2 and CPU frequency 200Mhz.
First, I came accross /etc/rc.d/rc.local and added that command at the end. It didn't work. This leads me to believe that rc.local isn't run at startup, /mnt/nand isn't mounted yet (although mount doesn't show anything mounted to that directory), or I'm overlooking something. Could I safely put the command in rc.sysetm or something else?
The other thing I tried was to to rename "/usr/gp2x/gp2xmenu" and replace it with a script called gp2xmenu that would run the CPU/LCD tweaker then, cd to /usr/gp2x and exec /usr/gp2x/gp2xmenu. The script executed fine (once I remembered to make it executable) when I specifically ran it, but didn't run when I rebooted. Apparently, running /usr/gp2x/gp2xmenu isn't the only way to bring the menu up. It occurs to me now that when I run programs like the video player or image viewer from the USB serial terminal, they exit back to the USB serial program. By the way, if I mess up or delete some important system files, will a firmware upgrade set me straight?
So, er, any ideas? Other comments on the USB serial program?