![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 12
Join Date: Jul 2012
Device: kindle touch
|
Detecting headphone events on kindle touch
Where am I able to detect certain events on the kindle? I would like to make a script that listens for these events. One event I would be interested in is when a headphone jack is inserted.
|
![]() |
![]() |
![]() |
#2 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
while :;do waitforkey;done It will show unique keycodes for headphone insertion and removal. On 5.0.x firmware (which booted up with the accelerometer enabled), waiforkey will even show keycodes for rotation events. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,016
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Cross posted: https://www.mobileread.com/forums/sho...52#post2150952
|
![]() |
![]() |
![]() |
#4 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
It appears that in main (K3 and K5), events like headphone insert/remove are not detected. It would be interesting to see if copying waitforkey from K5 diags to other bootmodes or devices would work. I just copied the K5 diags waitforkey to /mnt/us, then I rebooted to main. From main, the diags waitforkey does not return headphone events, so it must depend on library or kernel support. Bummer... ![]() Last edited by geekmaster; 07-15-2012 at 10:23 AM. |
|
![]() |
![]() |
![]() |
#5 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Since it's now using X, anyone checked if X gets any of these events (via something like xev)?
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre isn't detecting new nook simple touch with glow light | Tarry | Devices | 15 | 02-07-2017 11:33 AM |
Free (Kindle) Reconstructing 3/11: Earthquake, Tsunami... [Japan Recent Events] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 06-11-2012 03:54 PM |
Touch uinput : send simulated touch/key events to Kobo ? | Rom1 | Kobo Reader | 0 | 06-08-2012 08:50 AM |
Touch screen events | Ehhh | Kindle Developer's Corner | 3 | 05-16-2012 02:33 PM |