Linux HOW-TO The Complete Linux N00bs' Guide To Installing ZSNES on XMBCbuntu
#13
(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.
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Reply


Messages In This Thread
RE: HOW-TO The Complete Linux N00bs' Guide To Installing ZSNES on XMBCbuntu - by Plaguester - 2012-05-04, 10:09
. - by User 102910 - 2013-02-27, 15:43
Logout Mark Read Team Forum Stats Members Help
HOW-TO The Complete Linux N00bs' Guide To Installing ZSNES on XMBCbuntu4