2012-05-04, 10:09
(2012-04-30, 23:39)Hack_kid Wrote:Code:Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Actually, it is best to simply turn those options off before starting ZSNES and then turn them back on when you leave. That way your PC can still suspend and you don't have to muck with xorg.conf.
Make the script:
Code:
$ vi launchZSNES.sh
Insert:
Code:
#!/bin/bash
# turn off screensaver/screenblank
xset s off
# turn off dpms
xset -dpms
# run ZSNES
/usr/bin/zsnes -m -s -v 22 "$1"
# turn on dpms
xset +dpms
# turn on screensaver/screenblank
xset s on
Make the script executable:
Code:
$ chmod +x launchZSNES.sh
In Advanced Launcher, change the program to "launchZSNES.sh" and change the arguments to "%rom%" (including quotes).
Also, if you are using a MCE Remote, the "Clear" key (equivalent to ESC) will exit ZSNES if you supply the -m option. If you have the GUI on, it will bring up the GUI and you can exit from there with the arrow buttons and select.