*

Welcome, Guest. Please login or register.
Did you miss your activation email?

Pages: [1]
Print
Author Topic: Navigating Opera in tablet mode - a stopgap solution  (Read 7529 times)

Navigating Opera in tablet mode - a stopgap solution

Boone
Commenter

Posts: 18


December 29, 2007, 08:22:24 PM

Edit: I replaced the C files with the compiled binaries, so that my instructions can be, you know, actually followed.

When using Opera in tablet mode, the only thing you can do with the gamepad buttons is scroll.  I've rigged up a program that overcomes this limitation a little bit.  By following these instructions, you should be able to use the gamepad keys to do the following:

Scroll up/down/left/right - left gamepad buttons (just like the default setting)
Cycle through the links on a page - hold down the Circle button and use the left D-pad
Click a link - X button
Back - Square button
Forward - Check button

The procedure: (bold indicates Terminal commands; the rest is commentary)

(1) su
Log in as root/superuser

(2) wget http://www.qc.cuny.edu/~bgorges/operakeys
Download the program that remaps the gamepad keys.  This is based on the setolpckeys.c script that cmonkey described on this page.

(3) chmod u=rwx operakeys
This allows you to execute the operakeys program (my server doesn't seem to allow downloads of executable files...sorry about this extra step)

(4) ./operakeys /dev/input/by-path/platform-i8042-serio-0-event-kbd
This swaps out the default gamepad key mappings with the custom ones.

Now start Opera and browse away.

These changes will go away when you reboot the computer, so you'll need to repeat steps (1) and (3) each time you want to take advantage of this keymapping.  If you want to revert to the default keymapping without rebooting your XO, you'll need to replace the custom keymapping with the following commands:

su
wget http://www.qc.cuny.edu/~bgorges/setolpckeys
chmod u=rwx setolpckeys
./setolpckeys /dev/input/by-path/platform-i8042-serio-0-event-kbd


Enjoy!
« Last Edit: December 30, 2007, 07:09:07 AM by kachooney » Logged

#1 Re: Navigating Opera in tablet mode - a stopgap solution

standardhuman
New

Posts: 1


December 29, 2007, 10:27:28 PM

this will be great! now if i could just figure out what i'm doing wrong here...
i followed the instructions to a t, but after step 3 i keep getting

bash:  ./operakeys: no such file or directory

i've verified that the file is indeed there ith the dir command.
any help?

thanks!

brian
Logged

#2 Re: Navigating Opera in tablet mode - a stopgap solution

Moses_XO
Commenter

Posts: 5


December 29, 2007, 10:40:43 PM

Or an external mouse if you leave one antenna open,
then it is easy?
Logged

#3 Re: Navigating Opera in tablet mode - a stopgap solution

joshuajon
Contributor
*
Posts: 35


December 30, 2007, 04:05:21 AM

this will be great! now if i could just figure out what i'm doing wrong here...
i followed the instructions to a t, but after step 3 i keep getting

bash:  ./operakeys: no such file or directory

i've verified that the file is indeed there ith the dir command.
any help?

thanks

brian

The missing step is compiling operakeys.c and olpckeys.c.  Maybe the original poster would upload binaries?
Logged

#4 Re: Navigating Opera in tablet mode - a stopgap solution

Boone
Commenter

Posts: 18


December 30, 2007, 07:12:03 AM

OK, I uploaded binaries and edited the original post to reflect changes.  (Sorry about the confusion--I'm quite new to this.)  Now that the files are executable, though, my server keeps changing the file permissions to 664 before they can be downloaded.  So I've added a chmod step to the instructions above. 
« Last Edit: December 30, 2007, 12:00:03 PM by kachooney » Logged

#5 Re: Navigating Opera in tablet mode - a stopgap solution

Atif
Contributor
*
Posts: 97


January 03, 2008, 09:08:22 PM

The Opera wiki page now contains information on how to get Opera working in tablet mode by just setting certain things within Opera.  No more software or required, just Opera itself.  Here is the info:

http://wiki.laptop.org/go/Opera#Handheld_Mode
Logged

#6 Re: Navigating Opera in tablet mode - a stopgap solution

ashtond33
Contributor
*
Posts: 85



January 04, 2008, 09:13:44 AM

Correction: I followed the wiki instructions and everything works fine.
« Last Edit: January 04, 2008, 03:01:03 PM by ashtond33 » Logged

#7 Re: Navigating Opera in tablet mode - a stopgap solution

newbie
Senior Contributor
**
Posts: 126

Don't know much about computers but LOVE my Olpc.


January 10, 2008, 02:15:28 PM

Great! It works! It took me a while that you really have to make "new" Buttons for "open link" and "page back" - opera kept offering me existing ones.

I still hope that someone will figure out how to simply move the mouse with the gamepad but this is the next best thing.
Logged

#8 Re: Navigating Opera in tablet mode - a stopgap solution

unrequited
Senior Contributor
**
Posts: 120



January 11, 2008, 02:31:57 AM

Here's one quirk I've found... mapping all the gamepad directions and buttons works just fine if you go down to the "Advanced" part and then "Browser" except for the Square (left button). For that one key and one key only, I had to make a duplicate "Home" entry in the top "Application" section.

For the curious, I did my own bindings and here's what I came up with:

Up - Page Up
Down - Page Down
Left - Navigate Left
Right - Navigate Right

Circle (Up Button "PageUp") - Hightlight Previous URL
X (Down Button "PageDown") - Highlight Next URL
Square (Left Button "Home") - Back
Check (Right Button "End") - Open Link

This way you can navigate a website completely in tablet mode.
Open Link
Logged

-Unrequited

#9 Re: Navigating Opera in tablet mode - a stopgap solution

newbie
Senior Contributor
**
Posts: 126

Don't know much about computers but LOVE my Olpc.


January 11, 2008, 11:55:43 AM

Also a really good setup. Strangely enough, none of this works with the Google-reader. Does anyone have an idea how I can fix this?
Logged
Pages: [1]
Print
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
September 02, 2010, 01:46:31 PM

Login with username, password and session length
Recent Topics
[Today at 12:54:50 PM]

[September 01, 2010, 08:24:07 PM]

[August 31, 2010, 01:25:28 PM]

[August 30, 2010, 11:26:07 PM]

[August 30, 2010, 11:23:56 PM]

[August 30, 2010, 10:40:34 AM]

[August 28, 2010, 10:00:01 PM]

[August 25, 2010, 03:10:02 PM]

[August 22, 2010, 09:48:07 AM]

[August 21, 2010, 02:39:32 PM]
Members
Total Members: 4552
Latest: Richard Rowe
Stats
Total Posts: 31115
Total Topics: 3759
Online Today: 65
Online Ever: 220
(February 05, 2009, 11:29:32 AM)
Users Online
Users: 1
Guests: 46
Total: 47