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 06-03-2022, 01:43 PM   #1
WildBill1941
Junior Member
WildBill1941 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2012
Device: Amazon Kindle Oasis
Gargoyle on KOA - firmware 5.14.2 - keyboard is not present

Hi folks;

Just found out there's a jailbreak for the Kindle Oasis running 5.14.2 - I've got KUAL on my Oasis, and I can successfully run KUAL and some extensions (Kterm works, BatteryStatus works, as do others.)

I've just installed Gargoyle for some Infocom nostalgia, and I can't seem to get the keyboard to appear. The file load dialog box works, and I can load every z-machine file I've tested so far, but I have no keyboard. Suspecting it may have something to do with this line in gargoyle.sh, but I'm not sure...

lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0

Anyone got any tips or suggestions here? Thanks!
WildBill1941 is offline   Reply With Quote
Old 07-04-2022, 12:17 AM   #2
spinda
Member
spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.
 
spinda's Avatar
 
Posts: 12
Karma: 7954
Join Date: Dec 2014
Device: Kindle PW1/2/3/4/5, KV, KT2, K2
I ran into the same problem setting up my new PW5 today. A quick patch to gargoyle.sh fixes the issue:

Code:
#!/bin/sh
set -m
EXTENSION=/mnt/us/extensions/gargoyle
cd ${EXTENSION}/dist/
lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0
SAVED_GAMES=/mnt/us/extensions/gargoyle/saved_games \
GAMES=/mnt/us/extensions/gargoyle/games \
LD_LIBRARY_PATH=${EXTENSION}/dist \
PATH=$PATH:${EXTENSION}/dist \
GTK2_RC_FILES=${EXTENSION}/dist/gtkrc \
./gargoyle &
sleep 1
lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0
fg
lipc-set-prop -s com.lab126.keyboard close net.fabiszewski.gargoyle
This starts the "gargoyle" binary, sends it to the background, waits a second for the app to start, pokes the keyboard, and brings "gargoyle" back to the foreground again. Adjust "sleep 1" as needed, if Gargoyle takes longer to start up on your device.
spinda is offline   Reply With Quote
Advert
Old 07-04-2022, 12:53 AM   #3
spinda
Member
spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.spinda knows the square root of minus one.
 
spinda's Avatar
 
Posts: 12
Karma: 7954
Join Date: Dec 2014
Device: Kindle PW1/2/3/4/5, KV, KT2, K2
Actually, that only works when running "./gargoyle.sh" directly when SSH'd into the Kindle. The following version will also work when launched from KUAL:

Code:
#!/bin/sh
EXTENSION=/mnt/us/extensions/gargoyle
cd ${EXTENSION}/dist/
lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0
(while true; do sleep 3 && lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.gargoyle:abc:0; done) &
bg_pid=${!}
trap "trap - SIGTERM && kill -- ${bg_pid}" SIGINT SIGTERM EXIT
SAVED_GAMES=/mnt/us/extensions/gargoyle/saved_games \
GAMES=/mnt/us/extensions/gargoyle/games \
LD_LIBRARY_PATH=${EXTENSION}/dist \
PATH=$PATH:${EXTENSION}/dist \
GTK2_RC_FILES=${EXTENSION}/dist/gtkrc \
./gargoyle
lipc-set-prop -s com.lab126.keyboard close net.fabiszewski.gargoyle
This starts a background task before launching the "gargoyle" binary. The background task pokes the keyboard every three seconds while Gargoyle is running, and is killed when the script exits.

A better fix would involve modifying Gargoyle itself. Wouldn't be too hard, I think - just run the lipc-set-prop command after launching the file-chooser dialog and again after starting a game. I'll look into it later if I get the time.

On another note, typing commands on the PW5 is dramatically more responsive that I'm used to from using the Kindle Gargoyle port on previous devices. The experience of playing interactive fiction on this device is truly delightful, particularly when combined with pete330's scrolling patches.

Last edited by spinda; 07-04-2022 at 12:56 AM.
spinda is offline   Reply With Quote
Old 07-08-2022, 01:04 PM   #4
WildBill1941
Junior Member
WildBill1941 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2012
Device: Amazon Kindle Oasis
Got it working, thank you so much for the patch (and tips!) And this is REALLY cool. You're right, it's pretty delightful to play these games on the kindle. Thanks again!
WildBill1941 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gargoyle Binaries – IF player pete330 Kindle Developer's Corner 13 04-27-2025 02:40 AM
Gargoyle – another IF player baf Kindle Developer's Corner 152 02-19-2022 08:29 PM
Firmware Update Kindle Keyboard - not registering and no 3G, will a firmware fix it? allanmartins Amazon Kindle 8 08-06-2014 09:27 AM
Kindle Keyboard (K3) gets firmware update pdurrant News 93 09-19-2012 12:09 AM
Interactive Fiction with Gargoyle for the Iliad Adam B. iRex 68 09-01-2011 04:49 AM


All times are GMT -4. The time now is 08:55 PM.


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