Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2012, 05:15 AM   #1
acemutha
Junior Member
acemutha began at the beginning.
 
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
will work.
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
Playing with lipc I found out that putting kindle on and off from sleep state can also be done repeating twice the same command via:
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.
acemutha is offline   Reply With Quote
Old 01-11-2012, 02:22 PM   #2
dasmoover
Connoisseur
dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.
 
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.
dasmoover is offline   Reply With Quote
Advert
Old 01-12-2012, 12:36 AM   #3
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by dasmoover View Post
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.
I only see "booklet.home" events when my touch is awake (not in screensaver mode).

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.
geekmaster is offline   Reply With Quote
Old 01-12-2012, 01:44 AM   #4
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
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)
Update: here's some more verbose log.
Spoiler:

[root@kindle root]# udevadm monitor --property
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1326351109.292268] change /devices/platform/whitney-button/input/input3 (input)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/whitney-button/input/input3
SUBSYSTEM=input
PRODUCT=19/1/1/100
NAME="whitney-button"
PHYS="whitney-button/input0"
EV==3
KEY==40 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,kramlsfw
SEQNUM=2575

UDEV [1326351109.293482] change /devices/platform/whitney-button/input/input3 (input)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/whitney-button/input/input3
SUBSYSTEM=input
PRODUCT=19/1/1/100
NAME="whitney-button"
PHYS="whitney-button/input0"
EV==3
KEY==40 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,kramlsfw
SEQNUM=2575

KERNEL[1326351125.994871] online /devices/virtual/misc/yoshibutton (misc)
UDEV_LOG=3
ACTION=online
DEVPATH=/devices/virtual/misc/yoshibutton
SUBSYSTEM=misc
DEVNAME=yoshibutton
SEQNUM=2576
MAJOR=10
MINOR=158

UDEV [1326351125.995789] online /devices/virtual/misc/yoshibutton (misc)
UDEV_LOG=3
ACTION=online
DEVPATH=/devices/virtual/misc/yoshibutton
SUBSYSTEM=misc
DEVNAME=yoshibutton
SEQNUM=2576
MAJOR=10
MINOR=158

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.
ixtab is offline   Reply With Quote
Old 01-12-2012, 01:58 AM   #5
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ixtab View Post
Instead of showlog, you could try to run a little background script which monitors udev events.
Like the lipc event monitoring, udev events are only occuring when the kindle is awake.

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.
geekmaster is offline   Reply With Quote
Advert
Old 01-12-2012, 06:30 AM   #6
acemutha
Junior Member
acemutha began at the beginning.
 
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.
acemutha is offline   Reply With Quote
Old 01-12-2012, 10:05 AM   #7
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by acemutha View Post
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.
If it is a bad button, perhaps you could replace it with a similar switch.
geekmaster is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:32 PM.


MobileRead.com is a privately owned, operated and funded community.