<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dudestatus</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dudestatus"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Dudestatus"/>
	<updated>2026-04-16T02:00:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=User:Dudestatus&amp;diff=12779</id>
		<title>User:Dudestatus</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=User:Dudestatus&amp;diff=12779"/>
		<updated>2011-02-02T07:03:08Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: Created page with 'James Frier  [https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B1GIwJHS7BnCNzg2ZGVjNTMtMjM2OC00NTdhLWEwYjEtZWZjMjYyNTgyYzFk&amp;amp;hl=en resume]'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;James Frier&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B1GIwJHS7BnCNzg2ZGVjNTMtMjM2OC00NTdhLWEwYjEtZWZjMjYyNTgyYzFk&amp;amp;hl=en resume]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=NES_and_GameBoy_Emulators&amp;diff=7755</id>
		<title>NES and GameBoy Emulators</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=NES_and_GameBoy_Emulators&amp;diff=7755"/>
		<updated>2009-12-09T04:08:29Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: added links to original pages' troubleshooting options&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After some talk in Precentral, some of us agreed that this easier setup should go on the wiki. This method will allow you to play Gameboy and NES roms on the Pre without knowing almost anything of Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the complete process go to [[Application:Gnuboy|GnuBoy]] setup and [[Nintendo|NES]] setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First of all, you'll need to install Nodoze and Terminal apps, available on [[Preware|Preware]]. Then go [http://forums.precentral.net/canuck-software/206905-webos-quick-install-v2-9-a.html here] and download WebOS Quick Install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Download this [http://www.megaupload.com/?d=2GD0QL6S package]&lt;br /&gt;
# Open the rar and you'll see 2 files: debiansmall.img and deb.sh&lt;br /&gt;
# Unrar debiansmall.img to your Pre's USB Drive and deb.sh to your desktop.&lt;br /&gt;
# Open WebOS Quick Install and send the deb.sh to /var/home/root/ by selecting &amp;quot;Tools&amp;quot; &amp;quot;Send File&amp;quot;&lt;br /&gt;
# Open Nodoze and then Terminal app&lt;br /&gt;
# Type chmod 755 ./deb.sh&lt;br /&gt;
# Type ./deb.sh in the terminal and press enter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ROMS ==&lt;br /&gt;
&lt;br /&gt;
First mount the debian image by going to Terminal app and type ./deb.sh and press enter.&amp;lt;br/&amp;gt;&lt;br /&gt;
Then, the easier way is to open WebOS Quick Install, select &amp;quot;Tools&amp;quot; &amp;quot;Send File&amp;quot; select your rom and send it to &amp;quot;Destination Folder&amp;quot;: /media/cf/&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Everytime you want to play, activate Nodoze and open the terminal app.&lt;br /&gt;
# Type ./deb.sh and press enter.&lt;br /&gt;
## To play gameboy games type ./gb.sh romname.gbc OR, for playing with no sound, type ./nosnd.sh romname.gbc - Press enter.&lt;br /&gt;
## To play NES games type ./nes.sh romname.nes and press enter.&lt;br /&gt;
&lt;br /&gt;
The default keys are:&amp;lt;br/&amp;gt;&lt;br /&gt;
Up- W&amp;lt;br/&amp;gt;&lt;br /&gt;
Down- S&amp;lt;br/&amp;gt;&lt;br /&gt;
Left- A&amp;lt;br/&amp;gt;&lt;br /&gt;
Right- D&amp;lt;br/&amp;gt;&lt;br /&gt;
B- J&amp;lt;br/&amp;gt;&lt;br /&gt;
A- K&amp;lt;br/&amp;gt;&lt;br /&gt;
Start- Enter&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To quit press the orange key.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For those who are having sound problems, simply type inside the debian chroot:&amp;lt;br/&amp;gt;&lt;br /&gt;
apt-get install libsdl1.2debian-all&amp;lt;br/&amp;gt;&lt;br /&gt;
Press Enter&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more troubleshooting options, see the notes section in the [[Application:Gnuboy|GnuBoy]] and [[Nintendo|NES]] pages.&lt;br /&gt;
&lt;br /&gt;
== Contributions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dudestatus, of course, and all the Precentral Forum guys.&lt;br /&gt;
&lt;br /&gt;
Please feel free to get this tutorial better, this is my first wiki page,&lt;br /&gt;
&lt;br /&gt;
glorifiedg&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7729</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7729"/>
		<updated>2009-12-07T13:10:26Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* To experiment with different gnuboy settings, see the gnuboy [http://www.sourcefiles.org/Emulators/Videogames/gnuboy-1.0.3.tar.gz.shtml readme].&lt;br /&gt;
* Might seem obvious, but gnuboy will crash if you misspell your ROM name.  Recommended you rename your ROM files to something simpler.&lt;br /&gt;
* A quick hack to fix the yellow half screen on the bottom is to set the terminal colors to a red background with white text in preferences, and scroll down at initial game startup.  Another hack is to try adding &amp;quot; 2&amp;gt;debug&amp;quot; to the last line of the launcher script, and to refrain from doing anything to prompt a Luna redraw, such as touching the screen, receiving notifications/calls etc. In the second case, putting the phone in airplane mode can be helpful.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7727</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7727"/>
		<updated>2009-12-07T07:57:25Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* To experiment with different gnuboy settings, see the gnuboy [http://www.sourcefiles.org/Emulators/Videogames/gnuboy-1.0.3.tar.gz.shtml readme].&lt;br /&gt;
* A quick hack to fix the yellow half screen on the bottom is to set the terminal colors to a red background with white text in preferences, and scroll down at initial game startup.  Another hack is to try adding &amp;quot; 2&amp;gt;debug&amp;quot; to the last line of the launcher script, and to refrain from doing anything to prompt a Luna redraw, such as touching the screen, receiving notifications/calls etc. In the second case, putting the phone in airplane mode can be helpful.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7726</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7726"/>
		<updated>2009-12-07T07:56:03Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: changed notes to troubleshooting and put on bottom, was getting to big.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* To experiment with different gnuboy settings, see the gnuboy [http://www.sourcefiles.org/Emulators/Videogames/gnuboy-1.0.3.tar.gz.shtml readme].&lt;br /&gt;
* A quick hack to fix the yellow half screen on the bottom is to set the terminal colors to a red background with white text in preferences, and scroll down at initial game startup.  Another hack is to try adding &amp;quot; 2&amp;gt;debug&amp;quot; to the last line of the launcher script, and to refrain from doing anything to prompt a Luna redraw, such as touching the screen, receiving notifications/calls etc. In the second case, putting the phone in airplane mode can be helpful.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7725</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7725"/>
		<updated>2009-12-07T07:52:02Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* To experiment with different gnuboy settings, see the gnuboy [http://www.sourcefiles.org/Emulators/Videogames/gnuboy-1.0.3.tar.gz.shtml readme].&lt;br /&gt;
* A quick hack to fix the yellow half screen on the bottom is to set the terminal colors to a red background with white text in preferences, and scroll down at initial game startup.  Another hack is to try adding &amp;quot; 2&amp;gt;debug&amp;quot; to the last line of the launcher script, and to refrain from doing anything to prompt a Luna redraw, such as touching the screen, receiving notifications/calls etc. In the second case, putting the phone in airplane mode can be helpful.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7724</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7724"/>
		<updated>2009-12-07T04:30:30Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: added link to readme&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* To experiment with different gnuboy settings, see the gnuboy [http://www.sourcefiles.org/Emulators/Videogames/gnuboy-1.0.3.tar.gz.shtml readme].&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application_talk:Gnuboy&amp;diff=7711</id>
		<title>Application talk:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application_talk:Gnuboy&amp;diff=7711"/>
		<updated>2009-12-07T00:09:41Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maybe start from scratch with a fresh image, only do 'apt-get update' before attempting&lt;br /&gt;
to install the packages mentioned in the wiki.  Another thing you can try is following the &lt;br /&gt;
alternative instructions [[NES_and_GameBoy_Emulators | here]], &lt;br /&gt;
which has a link to a Debian image with everything already installed.&lt;br /&gt;
------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
it doesnt work on my phone.&lt;br /&gt;
&lt;br /&gt;
It was hard to get the right direct-framebuffer deb-files, i had to use new ones:&lt;br /&gt;
libxcb-xlib0_1.1-1.2_armel.deb  &lt;br /&gt;
libxcb1_1.1-1.2_armel.deb&lt;br /&gt;
x11-common_7.3+20_all.deb&lt;br /&gt;
&lt;br /&gt;
i get sound and keys work but no screen. Thanks for the help!&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
     =======================|  DirectFB 1.0.1  |=======================&lt;br /&gt;
&lt;br /&gt;
          (c) 2001-2007  The DirectFB Organization (directfb.org)&lt;br /&gt;
&lt;br /&gt;
          (c) 2000-2004  Convergence (integrated media) GmbH&lt;br /&gt;
&lt;br /&gt;
        ------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(*) DirectFB/Core: Single Application Core. (2008-08-18 13:04) &lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4642)...&lt;br /&gt;
(*) DirectFB/Input: headset (1) 0.1 (directfb.org)&lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4643)...&lt;br /&gt;
(*) DirectFB/Input: gpio-keys (2) 0.1 (directfb.org)&lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4644)...&lt;br /&gt;
(*) DirectFB/Input: maxim_keypad (3) 0.1 (directfb.org)&lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4645)...&lt;br /&gt;
(*) DirectFB/Input: hsdl9100_proximity (4) 0.1 (directfb.org)&lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4646)...&lt;br /&gt;
(*) DirectFB/Input: temt6200_light (5) 0.1 (directfb.org)&lt;br /&gt;
(*) Direct/Thread: Running 'Linux Input' (INPUT, 4647)...&lt;br /&gt;
(*) DirectFB/Input: kxsd9_accelerometer (6) 0.1 (directfb.org)&lt;br /&gt;
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)&lt;br /&gt;
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)&lt;br /&gt;
SDL DirectFB_SetVideoMode: 320x480@16, flags: 0x90000001&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7710</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7710"/>
		<updated>2009-12-06T23:57:43Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: added link to new setup page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: To successfully follow these instructions, you should know a bit of Linux.  If you're uncomfortable with Linux, alternative instructions are available [[NES_and_GameBoy_Emulators|here]].&lt;br /&gt;
&lt;br /&gt;
=== Setup: ===&lt;br /&gt;
&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7682</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7682"/>
		<updated>2009-12-06T03:03:39Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes on Playability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
= Notes on Playability =&lt;br /&gt;
&lt;br /&gt;
Works with most games.  Some things that might help with speed:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. Use at your own risk. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* Comment out/remove the 'scaled=' line in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7681</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7681"/>
		<updated>2009-12-06T03:03:02Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes on Playability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
= Notes on Playability =&lt;br /&gt;
&lt;br /&gt;
Works with most games.  Some things that might help with speed:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. Use at your own risk. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* Comment out scaling in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7680</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7680"/>
		<updated>2009-12-06T03:02:53Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes on Playability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
= Notes on Playability =&lt;br /&gt;
&lt;br /&gt;
Works with most games.  Some things that might help with speed:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. Use at your own risk. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* comment out scaling in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7679</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7679"/>
		<updated>2009-12-06T03:02:28Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
= Notes on Playability =&lt;br /&gt;
&lt;br /&gt;
Works with most games.  Some things that might help with speed:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. Use at your own risk. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* disable scaling in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7678</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7678"/>
		<updated>2009-12-06T02:54:12Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* notes on speed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
= notes on speed =&lt;br /&gt;
&lt;br /&gt;
Some things that might help with speed and playability:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* disable scaling in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7677</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7677"/>
		<updated>2009-12-06T02:53:41Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;a, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== notes on speed ===&lt;br /&gt;
&lt;br /&gt;
Some things that might help with speed and playability:&lt;br /&gt;
&lt;br /&gt;
* Overclock your pre. See [[Patch_webOS_CPU_Frequency_or_Voltage_Scaling]]&lt;br /&gt;
* Experiment with different --frameskip values&lt;br /&gt;
* disable scaling in directfbrc&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7673</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7673"/>
		<updated>2009-12-06T01:46:20Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching Gnuboy from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the functionality in the Webos app [http://www.precentral.net/homebrew-apps/nodoze NoDoze], or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]]).&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7671</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7671"/>
		<updated>2009-12-05T22:15:42Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* If you notice poor performance on the pre, do a full shutdown and power back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7670</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7670"/>
		<updated>2009-12-05T22:03:01Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Download the source.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
wget &amp;quot;http://softlayer.dl.sourceforge.net/project/fceultra/Source Code/2.1.2 src/fceux-2.1.2.src.tar.bz2&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.2.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.2.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7669</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7669"/>
		<updated>2009-12-05T21:55:32Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: removed 404 old link and replaced with new link to the same stuff.  this is because the fceux site changed its structure.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/download.html FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7668</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7668"/>
		<updated>2009-12-05T20:25:03Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the 'gnuboy-sdl' package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7667</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7667"/>
		<updated>2009-12-05T20:23:22Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the gnuboy package, run &amp;quot;apt-get update&amp;quot;.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7666</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7666"/>
		<updated>2009-12-05T20:22:57Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have problems installing the gnuboy package, Run &amp;quot;apt-get update&amp;quot;&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7643</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7643"/>
		<updated>2009-12-03T23:31:57Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use SSH and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up SSH see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7642</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7642"/>
		<updated>2009-12-03T23:26:29Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a USB drive after mounting debian, you can still use ssh and a SFTP program such as WinSCP to and drag and drop files onto your Pre.  To set up ssh see [[Next_steps]].  In this case, USB drive functionality is returned by turning off your Pre with the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7641</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7641"/>
		<updated>2009-12-03T23:20:30Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a usb drive after mounting debian, you can still gain access to your pre files with ssh, and drag and drop files to it by using an SFTP program such as WinSCP.  To set up ssh see [[Next_steps]].  USB drive functionality is returned by choosing the remove battery/turn off option, and then turning the Pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7640</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7640"/>
		<updated>2009-12-03T23:20:10Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a usb drive after mounting debian, you can still gain access to your pre files with ssh, and drag and drop files to it by using an SFTP program such as WinSCP.  To set up ssh see [[Next_steps]].  USB drive functionality is returned by choosing the remove battery/turn off option, and then turning the pre back on.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7638</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7638"/>
		<updated>2009-12-03T22:56:41Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a usb drive after mounting debian, you can still gain access to your pre files with ssh, and drag and drop files by using an SFTP program such as WinSCP.  To set up ssh see [[Next_steps]].  &lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7637</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7637"/>
		<updated>2009-12-03T22:55:08Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Notes */   notes on possible usb drive failure at debian mount,  and ssh access&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* If you have trouble using your Pre as a usb drive after mounting debian, you can still get access to your pre with ssh, and drag and drop files by using an SFTP program such as WinSCP.  To set up ssh see [[Next_steps]].  &lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7601</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7601"/>
		<updated>2009-12-02T02:43:46Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching gnuboy from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching Gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the Gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7600</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7600"/>
		<updated>2009-12-02T02:43:18Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching gnuboy from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button or the gnuboy quit button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7598</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7598"/>
		<updated>2009-12-02T02:42:06Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching gnuboy from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  &lt;br /&gt;
&lt;br /&gt;
However, with Luna on, the Webos GUI functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or use the &amp;quot;More Standby Times&amp;quot; patch that can also be applied using [[Preware|Preware]] (original patch notes [[Patch_webOS_Changing_the_&amp;quot;Turn_off_after_X&amp;quot;_time| available here]].&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7575</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7575"/>
		<updated>2009-12-01T08:42:58Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games with two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7574</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7574"/>
		<updated>2009-12-01T08:37:30Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh YOURROMFILE.GBC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7573</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7573"/>
		<updated>2009-12-01T08:36:20Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
1. go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7572</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7572"/>
		<updated>2009-12-01T08:35:43Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7571</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7571"/>
		<updated>2009-12-01T08:35:26Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./debian.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7570</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7570"/>
		<updated>2009-12-01T08:34:38Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1&lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
./debian.sh&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7569</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7569"/>
		<updated>2009-12-01T08:31:13Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --density=2 --scale=2 --sound=0 --bind q quit --bind e +up --bind s +left --bind f +right --bind d +down --bind o +a --bind p +b $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
./debian.sh&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7568</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7568"/>
		<updated>2009-12-01T08:30:14Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Scripts for quick launch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then do the command:&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --density=2 --scale=2 --sound=0 --bind q quit --bind e +up --bind s +left --bind f +right --bind d +down --bind o +a --bind p +b $ROM &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
do command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
./debian.sh&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7567</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7567"/>
		<updated>2009-12-01T08:29:08Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching gnuboy from within Webos */  added scripts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Scripts for quick launch ===&lt;br /&gt;
make a script to launch debian, and call it debian.sh.&lt;br /&gt;
&amp;quot;&lt;br /&gt;
mount -o loop /media/internal/debsmall.img /media/cf&lt;br /&gt;
mount --bind /dev /media/cf/dev&lt;br /&gt;
mount -t devpts none /media/cf/dev/pts&lt;br /&gt;
mount -t proc none /media/cf/proc&lt;br /&gt;
/usr/sbin/chroot /media/cf #Just that easy!&lt;br /&gt;
&amp;quot;&lt;br /&gt;
then do the command:&lt;br /&gt;
chmod 755 ./debian.sh&lt;br /&gt;
&lt;br /&gt;
then make a script to run the gameboy emulator.  call it gameboy.sh&lt;br /&gt;
&amp;quot;&lt;br /&gt;
export ROM=$1 &lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --density=2 --scale=2 --sound=0 --bind q quit --bind e +up --bind s +left --bind f +right --bind d +down --bind o +a --bind p +b $ROM &lt;br /&gt;
&amp;quot;&lt;br /&gt;
do command:&lt;br /&gt;
chmod 755 ./gameboy.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and now you can run gameboy games by running two lines.&lt;br /&gt;
&lt;br /&gt;
#go to debian script directory&lt;br /&gt;
./debian.sh&lt;br /&gt;
#go to gameboy script directory, with roms in that directory &lt;br /&gt;
./gameboy.sh &amp;lt;put_your_romfile_name_here.gbc&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7563</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7563"/>
		<updated>2009-12-01T01:20:22Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Video */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7562</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7562"/>
		<updated>2009-12-01T01:20:05Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Video */  added video link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
[http://www.youtube.com/watch?v=XtFEf6a0ZWQ Video] on Youtube&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7556</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7556"/>
		<updated>2009-11-30T14:10:47Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to return to normal Webos function.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7555</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7555"/>
		<updated>2009-11-30T14:10:29Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  To exit games when playing like this, press the orange button to normal Webos function.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7554</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7554"/>
		<updated>2009-11-30T14:03:48Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching gnuboy from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7553</id>
		<title>Application:Gnuboy</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Application:Gnuboy&amp;diff=7553"/>
		<updated>2009-11-30T14:03:26Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Launching gnuboy from within Webos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Setup: ===&lt;br /&gt;
1. Setup [[Debian|Debian]].&lt;br /&gt;
&lt;br /&gt;
2. Setup [[DirectFB|DirectFB]].&lt;br /&gt;
&lt;br /&gt;
Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Run, outside the chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI&amp;lt;/source&amp;gt;&lt;br /&gt;
4. Run, inside the debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install -y gnuboy-sdl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run: ===&lt;br /&gt;
&lt;br /&gt;
Get into the Debian chroot:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER=&amp;quot;directfb&amp;quot;&lt;br /&gt;
export SDL_NOMOUSE=1                    &lt;br /&gt;
sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* You will have to unzip your gameboy rom in order to work with gnuboy&lt;br /&gt;
* Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.&lt;br /&gt;
* If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot.  To disable sound in the emu, add --sound=0 as a launch parameter.&lt;br /&gt;
* Playability in this emulator is excellent.  Gameboy and Gameboy Color games run at full speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Launching from within Webos ===&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
[http://www.viddler.com/explore/MrPalmaser/videos/1/ Video] on Viddler&lt;br /&gt;
&lt;br /&gt;
[[Category:Games|Gnuboy]]&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7552</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7552"/>
		<updated>2009-11-30T14:01:08Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Demos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played. Launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7551</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7551"/>
		<updated>2009-11-30T14:00:24Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Demos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played, launched from Webos]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7550</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7550"/>
		<updated>2009-11-30T14:00:16Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Demos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played, launched from Webos&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7549</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=7549"/>
		<updated>2009-11-30T13:59:21Z</updated>

		<summary type="html">&lt;p&gt;Dudestatus: /* Demos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Nintendo.png|right]]&lt;br /&gt;
&lt;br /&gt;
NOTE: As of 2009/9/17 Directfb 1.2, SDL 1.2 and FCEUX 2.1.1 have ipks that can be installed using Preware! [[User:PuffTheMagic|PuffTheMagic]] 16:09, 17 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Nintendo emulation is now possible without having to run &amp;quot;Classic&amp;quot; for WebOS. Simply compile [http://fceux.com/web/htdocs/download.php FCEUltra] from within a Debian chroot.&lt;br /&gt;
&lt;br /&gt;
= Demos=&lt;br /&gt;
* [http://www.youtube.com/watch?v=lYxAEEHsmeE Video of game being played]&lt;br /&gt;
* [http://i40.tinypic.com/157fc45.png Unmodified version of image @ right]&lt;br /&gt;
* [http://www.youtube.com/watch?v=agBx8PHzW-k Video of games being played, launched from Webos]&lt;br /&gt;
&lt;br /&gt;
= Installation=&lt;br /&gt;
&lt;br /&gt;
1. Type the following in a [[Debian]] chroot, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install bzip2 gcc g++ scons libsdl1.2-dev libsdl1.2debian-esd liblua5.1-dev zlib1g-dev zenity&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the bz2 using bunzip2, then extract the tar by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
bunzip2 fceux-2.1.0a.src.tar.bz2&lt;br /&gt;
tar xvf fceux-2.1.0a.src.tar&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Switch to the source path:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
cd /fceu&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the program from source by typing the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
scons install&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done compiling, the program is copied to /usr/local/bin. When you first load the application, a configuration directory is created in your $HOME path. Modify this file as needed.&lt;br /&gt;
Using the instructions [[directfb | here]], install and configure directfb.  Some program specific notes about the directfbrc config file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode=320x480&lt;br /&gt;
scaled=320x480  #Insert this line to run games at full screen at the sacrifice of framerate.&lt;br /&gt;
primary-layer=00&lt;br /&gt;
pixelformat=ARGB&lt;br /&gt;
no-vt&lt;br /&gt;
no-cursor&lt;br /&gt;
bg-color=00000000&lt;br /&gt;
hardware&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export SDL_VIDEODRIVER='directfb'&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run the following command to configure the key mappings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --inputcfg gamepad /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Outside the Debian chroot, type the following command to shutdown the LunaSysMgr:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE WEBOS GUI.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Play your favorite games by typing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
fceux --sound 0 --bpp 8 --frameskip 2 /usr/games/&amp;lt;insert favorite nes.rom&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. When finished playing, you can re-enable the LunaSysMgr by typing the following outside the Debian chroot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
/sbin/initctl start LunaSysMgr&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Launching from within Webos =&lt;br /&gt;
&lt;br /&gt;
The emulator can be launched from the Mojo Webos [[Application:Terminal|Terminal]] app, which can be downloaded from [[Preware|Preware]].  The emulator even works with Luna on, meaning you can launch it from the Webos Terminal, and receive calls even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen &amp;amp; Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the &amp;quot;disable screen timer&amp;quot; functionality in the Webos app &amp;quot;Mytether&amp;quot;, or find some way to set the 'Turn Off After' parameter in 'Screen &amp;amp; Lock' to a higher option than those listed.&lt;/div&gt;</summary>
		<author><name>Dudestatus</name></author>
	</entry>
</feed>