<?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=Beakerboy</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=Beakerboy"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Beakerboy"/>
	<updated>2026-05-15T22:16:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=8183</id>
		<title>Nintendo</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Nintendo&amp;diff=8183"/>
		<updated>2010-01-07T14:48:18Z</updated>

		<summary type="html">&lt;p&gt;Beakerboy: without updating, user will be presented with errors&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 update&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>Beakerboy</name></author>
	</entry>
</feed>