01-01-2012, 06:54 AM | #1 |
Member
Posts: 11
Karma: 548
Join Date: Dec 2011
Device: Sony prs-t1
|
Page Turn Buttons on Rooted PRS-T1
I'm rather interested in what use we make of the T1's hardware page turn buttons. Within the confines of the Sony interface, the buttons serve to not only turn pages, but also skip tracks in the audio player and "page-down" in the stock web browser. I'd be nice to give those keys added live in the rooted world. So here are my thoughts and discoveries as I've been trying to learn a bit about this issue.
The page turn arrows are, to the Android system, buttons 105 and 106 and are mapped as DPAD_LEFT and DPAD_RIGHT. The Sony apps are written in such a way that these "keyboard" commands have meaning. Most other apps don't give them a roll or at least a useful one, though someone has been kind enough to tweak FBReader to use them (see the Rooting and Modding Wiki). One thought I had was to remap the buttons as volume up and down buttons, since many Android apps use these controls for scrolling and turning pages (for example the Kindle, InstaFetch, and Google Reader apps on my reader). Another idea is to remap the buttons as "spacebar" and "shift + spacebar", which Android itself recognizes as page down/up on web pages and unpaginated documents (so other apps would work like the stock T1 browser). This might be the more beneficial use for me since I don't mind horizontal swiping to turn pages but definitely dislike vertical animated scrolling on Eink. Obviously, for many of us, it would be nice to retain the function of the buttons in Sony's reading app as well as gain use in other apps. I really don't know how easy or possible it would be for the buttons to fire simultaneous commands or commands based on the app being used. I played around with an app called ButtonRemapper that was developed a year or so ago but never left beta. I managed to change the keymap with it but didn't really get to see any results, which might have been related to the fact that it locked up and I had to hard reset and then factory reset after that. Perhaps manually changing things in the keylog file is the way to go, but I'll have to do some more research before I dive back in (burn me once...). Here is some reading on keymaps. And the XDA thread for ButtonRemapper. If anyone else has any resources or experience to share or want to try their hand at a button-hacking solutions, please do. |
01-05-2012, 07:05 AM | #2 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
This is really a great discovery!! I'd also love to have the page turn buttons circumvent flashy finger scrolling in many apps / menus.
|
Advert | |
|
01-05-2012, 09:54 AM | #3 |
Member
Posts: 14
Karma: 10
Join Date: Jan 2012
Device: Sony PRS-T1
|
In my opinion it is not a good idea to remap the hardware page turn buttons, as they won't be usable in the original sony apps anymore.
One of the first versions of porkupans minimal root set remapped the buttons to volume up/down, and if I remember correctly there was some discussion about the benefits and downsides of remapping the keys in the original rooting thread. Sony's implementation is everything but straightforward: We know the scancodes (105 and 106), but the keycode for both buttons is 0. This the reason why we can't use FBReader's integrated key bindings settings. Fortunately porkupan provided us with a patched version. As far as I know, only Cool Reader has native support for the page turn buttons. And regarding the fact that the T1 is an e-ink device, only a limited number of apps can be used on it (at least I don't use it for anything but reading). It might thus be worth to talk to app developers and ask them to include support for the T1's hardware buttons. There was a similar discussion for the Nook Touch some months ago. |
01-06-2012, 05:29 AM | #4 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
Thank's for the hint to the rooting thread. Here is the related post:
https://www.mobileread.com/forums/sho...ey#post1805119 So, all you need to do is navigate to /system/usr/keylayout/ via root explorer, remount as r/w and append the following lines to gpio-keys.kl: Code:
key 105 SPACE SHIFT key 106 SPACE For myself, I don't care about Sony Apps as they can be controlled via touch screen. And I frequently use apps like Dolphin Browser, iRealb and Bible Reader which greately benefit from page turns. Last edited by uboot; 01-06-2012 at 10:56 AM. |
01-06-2012, 02:17 PM | #5 |
Member
Posts: 11
Karma: 548
Join Date: Dec 2011
Device: Sony prs-t1
|
uboot, we are kindred spirits. I implemented this a few days ago and wrote essentially the same reply as you yesterday, but it was lost after I got distracted for a while and then submitted it after I'd been auto-logged-out. My current compromise differs only in that I've mapped the page-left (105) button to SPACE and left the right one as is.
Not the most elegant solution but it is quite functional and well worth the loss of "page-back" functions, since I tend read in a mostly front to back fashion and there's always the touch screen for back-tracking. As jr points out this is purely a matter of preference and I'm sure many will elect to keep the stock keys. For me though, the primary benefit of remapping is that the keys can be used to minimize scrolling and turning animations and imprecision in several apps I use. My current button uses: Stock page-forward (106): Turn pages in Sony Reader and CoolReader, and page-down in stock browser. Remapped SPACE button (105): page turn in Kindle App, next item in Google Reader/Gmail, and general page-downing in pages and lists (especially useful for me in root explorer and various menus). |
Advert | |
|
01-07-2012, 09:57 AM | #6 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
Good point! I think _this_ is really the best compromise now!
Until we find a tool that auto-remaps page turn buttons depending on current foreground app, of course... |
01-15-2012, 04:21 AM | #7 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2011
Device: prs 600
|
i have a question. Is not posible to add some on-screen button to fast foward? That because i don´t want to lose the option to turn the pages.
I really need a method to reduce the flashing of the sreen, even tough is only for one app (i want to use a feed reader whitout the flashing when i scroll the page) |
01-16-2012, 06:03 PM | #8 | |
Enthusiast
Posts: 33
Karma: 10
Join Date: Jan 2012
Device: Sony PRS-T1
|
Quote:
It would be nice that when the hardware button is pressed, the normal event is fired, but if it isn't handled, another event is fired (for example the space button, of whatever button is mentioned in the older posts)... => however, I don't know if that would be possible (to check if an event is handled by the application; maybe the system "handles" it itself ) |
|
01-23-2012, 11:04 AM | #9 | |
Connoisseur
Posts: 68
Karma: 100498
Join Date: Jul 2011
Device: prs-500
|
Quote:
Would someone please write such an app? |
|
01-23-2012, 11:52 AM | #10 | |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Quote:
|
|
01-23-2012, 12:22 PM | #11 | |
Connoisseur
Posts: 68
Karma: 100498
Join Date: Jul 2011
Device: prs-500
|
Quote:
What I would like to have is an app that doesn't remap buttons, but listens for button presses and, depending on the current foreground app, fires another corresponding button (for example: listens for the "page forward" button and activates "volume up" in one app, and in other app activates "shift+space" depending on user preferences). Last edited by darseno; 01-23-2012 at 02:20 PM. |
|
01-24-2012, 11:42 AM | #12 |
Connoisseur
Posts: 68
Karma: 100498
Join Date: Jul 2011
Device: prs-500
|
Here's an app for Windows Mobile that does what I'm looking for. We need something like this for Android.
http://aeinc.ru/aebplus.php |
01-25-2012, 03:24 AM | #13 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
Aebplus does not work on a per app basis
|
04-30-2012, 09:54 AM | #14 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2012
Device: Sony PRS-T1
|
Hello
New user here. I've rooted my Sony PRS-T1 (bought in March) thanks to this wonderful message board and now I've achieved almost everything that I wanted: I now have a decent RSS-reader app + a low refresh rate + Tapatalk (app to read forums). The only thing i'm searching for is a way to remap the page turn buttons. I read this topic and tried to understand what to do, but when I get to the gpio-keys file, I don't see buttons 105 & 106. I see: 28, 103, 126, 108, 125, 102, 357, 158, 114 & 115. I've already tried changing the ones with DPAD_UP, DPAD_RIGHT, VOLUME_UP, VOLUME_DOWN to SPACE but nothing happened. Then I tried adding 105 but no result as well. Normally this would stop the function in the web browser, no? Can someboy help me with this matter? Thx in advance. Edit: nvm => reset did the trick Last edited by Prince Coco; 04-30-2012 at 12:26 PM. |
Tags |
buttons, hacking, keymaps, modding, prs-t1 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Ks physical page turn buttons? | lunixer | Amazon Kindle | 6 | 09-28-2011 07:54 PM |
Holding the Kindle (page turn buttons) | McNutt | Amazon Kindle | 25 | 07-24-2011 09:59 AM |
Kindle 3 page-turn buttons | jesse | Amazon Kindle | 8 | 09-11-2010 07:17 PM |
Those page-turn buttons are going to take some getting used to... | WilliamG | Amazon Kindle | 22 | 08-29-2010 04:28 PM |
PRS-600 Sticky Page Turn Buttons | just_kev | Sony Reader | 6 | 03-31-2010 06:37 AM |