![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2012
Device: kindle touch
|
[Kindle Touch]Remapping Home Button key?
Hi Guys,
my Kindle Touch had the power button defective on arrival. I have already JB it and see that running Code:
[root@kindle powerd]# lipc-set-prop com.lab126.powerd wakeUp 1 However I would like to avoid connecting it to a pc to awake it from sleep mode. Do you know if it is possible to assign the previous command to the Home Button (the only one working on my Kindle) together with the regular one: Code:
lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.home Code:
lipc-set-prop com.lab126.powerd powerButton 0 or lipc-set-prop com.lab126.powerd powerButton 1 Thanks in advance. Last edited by acemutha; 01-11-2012 at 06:15 AM. |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 26720
Join Date: Mar 2011
Device: Kindle 3 WIFI
|
You can write a small script that checks `showlog | tail -n 10` for "lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.home" and then execute "lipc-set-prop com.lab126.powerd wakeUp 1" when caught.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
When I press Home while it is awake, I get a pair of events in the log: lipc_id=com.lab126.booklet.home,state=GO_SENT followed by:lipc_id=com.lab126.booklet.home,state=STARTED I do not find the search string that you suggested anywhere in my logs.When I press Home while not awake, no new events go into the log. Last edited by geekmaster; 01-12-2012 at 12:44 AM. |
|
![]() |
![]() |
![]() |
#4 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Instead of showlog, you could try to run a little background script which monitors udev events. Here's some sample output (pressing the home button, followed by the power button).
Code:
[root@kindle root]# udevadm monitor --udev monitor will print the received events for: UDEV - the event which udev sends out after rule processing UDEV [1326350407.129921] change /devices/platform/whitney-button/input/input3 (input) UDEV [1326350412.356096] online /devices/virtual/misc/yoshibutton (misc) Spoiler:
This could also allow you to check if your power button is really broken, or if there's possibly just some configuration oddity (probably unlikely though). In any case, if I were you, I'd return the device to Amazon for exchange if the power button is broken. Keep in mind that if it doesn't work, you have to be extremely careful not to brick your device, because it's often enough the only button you have left once it is broken. Just saying. Last edited by ixtab; 01-12-2012 at 01:55 AM. |
![]() |
![]() |
![]() |
#5 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
When not awake, the power button is the only one to generate a udev event, and with that not working, you still need to wake it with usbnet. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2012
Device: kindle touch
|
Thank you all for the suggestions. The reason why I decided to to return it is that I am currently in Italy and sending it back is not very convenient.
I will then use usbnet to awake it. |
![]() |
![]() |
![]() |
#7 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
home button not working | aycn602 | Kobo Tablets | 2 | 01-12-2012 11:01 AM |
Troubleshooting Problem with Home Button | TallMomof2 | Amazon Kindle | 2 | 11-17-2011 09:23 PM |
home button? | taming | Kobo Tablets | 5 | 11-02-2011 11:41 AM |
Remapping "next page" to a keyboard key... | wellington | Kindle Developer's Corner | 1 | 06-21-2011 12:30 AM |
Remapping the spacebar key in PDF mode to "Next Page" | hmemcpy | Kindle Developer's Corner | 2 | 01-28-2010 06:20 AM |