Difference between revisions of "PND nub modes"

From Pandora Wiki
Jump to: navigation, search
(Other Notes: cat)
(formating)
Line 1: Line 1:
{{IntroNote | This page is a work in progress, the instructions in here may or may not work for you (They were copied from [http://boards.openpandora.org/index.php?/topic/2860-tutorial-how-to-have-your-nubs-change-modes-upon-launching-of-a-pnd/page__view__findpost__p__49157 here]. For an introduction to PNDs, see [[PND_quickstart|the quickstart]]. }}
+
{{IntroNote | This page is a work in progress, the instructions in here may or may not work for you (They were copied from [http://boards.openpandora.org/index.php?/topic/2860-tutorial-how-to-have-your-nubs-change-modes-upon-launching-of-a-pnd/page__view__findpost__p__49157 here]. For an introduction to PNDs, see [[PND quickstart]]. }}
  
 
== Rationale ==
 
== Rationale ==
Why would you want to do this? Simple; at least one person has reported that, when playing a natively-ported FPS (like Duke Nukem or Quake, but not GoldenEye) on he Pandora, using the right nub as the mouse has proven to be more comfortable and less awkward. But switching nub modes manually is annoying; so let's have Linux do it for you!
+
Why would you want to do this? Simple; at least one person has reported that, when playing a natively-ported FPS (like Duke Nukem or Quake, but not GoldenEye) on the Pandora, using the right nub as the mouse has proven to be more comfortable and less awkward. But switching nub modes manually is annoying; so let's have Linux do it for you!
  
 
== Tutorial ==
 
== Tutorial ==
 
=== Step 1 ===
 
=== Step 1 ===
You must download sebt3's new pnd_run.sh installer and run it. Get it [http://sebt3.openpandora.org/pnd/pnd_run_installer.pnd here].
+
You must download sebt3's new [[pnd_run.sh]] installer and run it. Get it [http://sebt3.openpandora.org/pnd/pnd_run_installer.pnd here].
  
 
=== Step 2 ===
 
=== Step 2 ===
 
Open a text editor and copy/paste this:
 
Open a text editor and copy/paste this:
  
<pre>cat /proc/pandora/nub0/mode > /tmp/nub0mode_before
+
<source lang="bash">cat /proc/pandora/nub0/mode > /tmp/nub0mode_before
 
cat /proc/pandora/nub1/mode > /tmp/nub1mode_before
 
cat /proc/pandora/nub1/mode > /tmp/nub1mode_before
  
 
echo "mbuttons" > /proc/pandora/nub0/mode
 
echo "mbuttons" > /proc/pandora/nub0/mode
echo "mouse" > /proc/pandora/nub1/mode</pre>
+
echo "mouse" > /proc/pandora/nub1/mode</source>
  
This will back up your current nub modes, then switch them; the left will act as the mouse buttons, the right will act as the mouse. If you'd like, you can substitute "scroll" or "absolute" (joystick) in, depending on how you like your nubs. But you must save this as "PND_pre_script.sh" (sans quotes). Save it wherever you'd like, you will be moving it elsewhere later.
+
This will back up your current nub modes, then switch them; the left will act as the mouse buttons, the right will act as the mouse. If you'd like, you can substitute "scroll" or "absolute" (joystick) in, depending on how you like your nubs. But you must save this as '''PND_pre_script.sh'''. Save it wherever you'd like, you will be moving it elsewhere later.
  
 
=== Step 3 ===
 
=== Step 3 ===
 
Copy/paste this into the editor again. Different file this time.
 
Copy/paste this into the editor again. Different file this time.
  
<pre>cat /tmp/nub0mode_before > /proc/pandora/nub0/mode
+
<source lang="bash">cat /tmp/nub0mode_before > /proc/pandora/nub0/mode
 
cat /tmp/nub1mode_before > /proc/pandora/nub1/mode
 
cat /tmp/nub1mode_before > /proc/pandora/nub1/mode
  
rm /tmp/nub0mode_before /tmp/nub1mode_before</pre>
+
rm /tmp/nub0mode_before /tmp/nub1mode_before</source>
  
This will restore your nub modes to what they were before, and delete the temporary files used to store them. You must save it as "PND_post_script.sh", without the quotes.
+
This will restore your nub modes to what they were before, and delete the temporary files used to store them. You must save it as '''PND_post_script.sh'''.
  
 
=== Step 4 ===
 
=== Step 4 ===
 
Simply copy these files into the appdata folder of your program of choice! Now you're done. If you want to test it, drag these files into the appdata of a program that runs windowed (like [[Comix|Comix]] or [[Deadbeef|Deadbeef]]), so you can test with the mouse. Simply delete the files if you no longer desire their effects.
 
Simply copy these files into the appdata folder of your program of choice! Now you're done. If you want to test it, drag these files into the appdata of a program that runs windowed (like [[Comix|Comix]] or [[Deadbeef|Deadbeef]]), so you can test with the mouse. Simply delete the files if you no longer desire their effects.
  
== Other Notes ==
 
(None)
 
  
 
[[Category:PND]]
 
[[Category:PND]]
[[Category:Development]
+
[[Category:Development]]
 
[[Category:Keyboard]]
 
[[Category:Keyboard]]

Revision as of 06:25, 23 April 2011

This page is a work in progress, the instructions in here may or may not work for you (They were copied from here. For an introduction to PNDs, see PND quickstart.

Rationale

Why would you want to do this? Simple; at least one person has reported that, when playing a natively-ported FPS (like Duke Nukem or Quake, but not GoldenEye) on the Pandora, using the right nub as the mouse has proven to be more comfortable and less awkward. But switching nub modes manually is annoying; so let's have Linux do it for you!

Tutorial

Step 1

You must download sebt3's new pnd_run.sh installer and run it. Get it here.

Step 2

Open a text editor and copy/paste this:

cat /proc/pandora/nub0/mode > /tmp/nub0mode_before
cat /proc/pandora/nub1/mode > /tmp/nub1mode_before

echo "mbuttons" > /proc/pandora/nub0/mode
echo "mouse" > /proc/pandora/nub1/mode

This will back up your current nub modes, then switch them; the left will act as the mouse buttons, the right will act as the mouse. If you'd like, you can substitute "scroll" or "absolute" (joystick) in, depending on how you like your nubs. But you must save this as PND_pre_script.sh. Save it wherever you'd like, you will be moving it elsewhere later.

Step 3

Copy/paste this into the editor again. Different file this time.

cat /tmp/nub0mode_before > /proc/pandora/nub0/mode
cat /tmp/nub1mode_before > /proc/pandora/nub1/mode

rm /tmp/nub0mode_before /tmp/nub1mode_before

This will restore your nub modes to what they were before, and delete the temporary files used to store them. You must save it as PND_post_script.sh.

Step 4

Simply copy these files into the appdata folder of your program of choice! Now you're done. If you want to test it, drag these files into the appdata of a program that runs windowed (like Comix or Deadbeef), so you can test with the mouse. Simply delete the files if you no longer desire their effects.