Blue Protoman
Well-Known Member
- Joined
- Mar 6, 2010
- Messages
- 4,117
Here, have a tutorial. Someone mind adding this to the Tweaks thread up top?
First off, 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!
Step 1
You must download sebt3's new pnd_run.sh installer and run it. Get it here.
This step is no longer required as of Hotfix 6 Alpha 1.
Step 2
Open Mousepad (the text editor), and copy/paste this;
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.
Step 3
Copy/paste this into Mousepad again. Different file this time.
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.
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.
And you're done! I can't take full credit for this; someone else wrote the original script, and I modified it. Don't remember who (sorry!).
First off, 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!
Step 1
You must download sebt3's new pnd_run.sh installer and run it. Get it here.
This step is no longer required as of Hotfix 6 Alpha 1.
Step 2
Open Mousepad (the text editor), and copy/paste this;
Code:
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" (sans quotes). Save it wherever you'd like, you will be moving it elsewhere later.
Step 3
Copy/paste this into Mousepad again. Different file this time.
Code:
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", without the quotes.
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.
And you're done! I can't take full credit for this; someone else wrote the original script, and I modified it. Don't remember who (sorry!).
Last edited by a moderator: