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 10-05-2016, 06:03 AM   #256
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by baf View Post
That's clever idea, but the gain will be minimal. Average images folder size is 9 KB plus 10 KB of xml config. Removing two layouts you will save 40 KB.

Neither will it solve flashing problem. As we specify keyboard layout on command line kterm will just start with given config instead of default one. It won't be switched later.

I don't quite get what problems it could solve, but if there is need for kterm.sh script to accept the arguments that will be passed to kterm, the patch is trivial.
Code:
#!/bin/sh
EXTENSION=/mnt/us/extensions/kterm
DPI=`cat /var/log/Xorg.0.log | grep DPI | sed -n 's/.*(\([0-9]\+\), [0-9]\+).*/\1/p'`
#use different layouts for high resolution devices
if [ ${DPI} -gt 290 ]; then
  PARAM="-l ${EXTENSION}/layouts/keyboard-300dpi.xml"
elif [ ${DPI} -gt 200 ]; then
  PARAM="-l ${EXTENSION}/layouts/keyboard-200dpi.xml"
fi
${EXTENSION}/bin/kterm ${PARAM} "$@"
Instead of an update_*.bin, we could also have a "install" script. This would check the dpi and extract the appropriate image files. But again, won't be as user friendly as just extracting the kterm folder into /mnt/us/extensions.

baf is right in questioning the gains from removing the unused image files. Maybe just some perfectionism!

The "$@" solution is a simple way to make kterm.sh pass on parameters to the kterm executable.

As regards flashing - maybe i've been seeing too many versions on too many kindles.. but now i'm observing a distinct transition when the shift or function modifier key is pressed. In the case of pressing the shift key, only the labels change. The key borders remain constant. But when the function modifier key is pressed, I see not only the transition between the labels, but also the borders of all the keys change. And the height of the F1, F2... keys seems to be less than the height of the corresponding 1,2,3... keys!
nasser is offline   Reply With Quote
Old 10-05-2016, 07:22 AM   #257
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
As regards flashing - maybe i've been seeing too many versions on too many kindles.. but now i'm observing a distinct transition when the shift or function modifier key is pressed. In the case of pressing the shift key, only the labels change. The key borders remain constant. But when the function modifier key is pressed, I see not only the transition between the labels, but also the borders of all the keys change. And the height of the F1, F2... keys seems to be less than the height of the corresponding 1,2,3... keys!
You are right. It is a regression. I spoiled it somewhere between 2.0 and 2.2. Please check whether attached binary solves the problem.
Attached Files
File Type: zip kterm-2.3-beta.zip (341.2 KB, 184 views)
baf is offline   Reply With Quote
Advert
Old 10-05-2016, 08:32 AM   #258
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
Instead of an update_*.bin, we could also have a "install" script. This would check the dpi and extract the appropriate image files. But again, won't be as user friendly as just extracting the kterm folder into /mnt/us/extensions.
- - - -
It would be the same script, regardless of how called.
By within the processing of the update package or by user action.

@baf: I do not follow why it would be required to install files that do not match the devices dpi.
knc1 is offline   Reply With Quote
Old 10-05-2016, 09:28 AM   #259
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
@baf: I do not follow why it would be required to install files that do not match the devices dpi.
No such requirement. Of course it would be better to install only necessary files.

The only problem with such installer is that it requires maintenance, must be updated with every new device and so on.
baf is offline   Reply With Quote
Old 10-05-2016, 09:43 AM   #260
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by baf View Post
No such requirement. Of course it would be better to install only necessary files.

The only problem with such installer is that it requires maintenance, must be updated with every new device and so on.
I see, the major problem is the maintenance involved.

For instance,
If Amazon introduces a new model before NiLuJe returns, then we are going to have problems.
I do not think anyone has NiLuJe's build system duplicated to maintain the snapshot packages.
Although the key component of that, KindleTool, is in a public repository. That is the "must maintain" component of every package.

The introduction by Amazon of their next model will probably mark the end of this forum's usefulness. (Which only Alex will notice when his ad revenue takes a nose dive.)

With NiLuJe gone this forum is down to zero moderators.
And the single helpdesk regular (the other helpdesk helpers are gone) is running out of time to answer questions.

It may be close to the time for off-site, paid, Kindle support.

Last edited by knc1; 10-05-2016 at 10:13 AM.
knc1 is offline   Reply With Quote
Advert
Old 10-05-2016, 09:43 AM   #261
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by baf View Post
You are right. It is a regression. I spoiled it somewhere between 2.0 and 2.2. Please check whether attached binary solves the problem.
v2.3 fixes the key border flashing! Tested OK on PW1, PW3 and KT3. Thanks, baf!
Slight glitch in KT3 - after I copied over the new version, there was sluggish response when pressing the shift and function modifier keys. A restart fixed this.

One more thing: the layout shows "=" and "+" interchanged. Maybe you could correct this too? keyboard.xml file needs to be edited.

Last edited by nasser; 10-05-2016 at 09:48 AM.
nasser is offline   Reply With Quote
Old 10-05-2016, 10:03 AM   #262
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Thanks for testing!

Quote:
Originally Posted by nasser View Post
v2.3 fixes the key border flashing! Tested OK on PW1, PW3 and KT3. Thanks, baf!
Slight glitch in KT3 - after I copied over the new version, there was sluggish response when pressing the shift and function modifier keys. A restart fixed this.
I hope the KT3 problem was something temporary.

Quote:
Originally Posted by nasser View Post
One more thing: the layout shows "=" and "+" interchanged. Maybe you could correct this too? keyboard.xml file needs to be edited.
I will fix that.
baf is offline   Reply With Quote
Old 10-05-2016, 10:23 AM   #263
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
(Only tested on PW-3, 5.6.1.1)
There was a problem running 2.2 from the KUAL Booklet.
The first time, it appeared that the keyboard was not working and no response from the touch screen.
It only **appeared** to be hung - after a 3 or 4 minute delay, the characters previously entered showed up.

Problem cleared before I could get a clue of what was happening.

Note: The main screen of the Kindle is also a Booklet, and in the early days of the paperwhite series, you could input faster via the touchscreen than the Kindle could respond.
So the above might just be a reoccurrence of a previous system problem.

To answer my own question above:
The application start-up and response is noticeably faster under the KUAL booklet than under the KUAL document.
A note on that: You can install both, they do not conflict with each other.
knc1 is offline   Reply With Quote
Old 10-06-2016, 01:54 AM   #264
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
(Only tested on PW-3, 5.6.1.1)
There was a problem running 2.2 from the KUAL Booklet.
The first time, it appeared that the keyboard was not working and no response from the touch screen.
It only **appeared** to be hung - after a 3 or 4 minute delay, the characters previously entered showed up.

Problem cleared before I could get a clue of what was happening.

Note: The main screen of the Kindle is also a Booklet, and in the early days of the paperwhite series, you could input faster via the touchscreen than the Kindle could respond.
So the above might just be a reoccurrence of a previous system problem.

To answer my own question above:
The application start-up and response is noticeably faster under the KUAL booklet than under the KUAL document.
A note on that: You can install both, they do not conflict with each other.
Thanks! I will have to investigate it.
Does the problem repeat on each launch? Or did it occur only once?
Is it possible to test KUAL Booklet launching on KT?
baf is offline   Reply With Quote
Old 10-06-2016, 03:51 AM   #265
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by baf View Post
Thanks! I will have to investigate it.
Does the problem repeat on each launch? Or did it occur only once?
Is it possible to test KUAL Booklet launching on KT?
Do not bother. It was a one-time thing.
I can not get it to repeat (using 2.3-beta).

If your KT is running firmware version 5.1.2 or more recent, it will run the Booklet.
knc1 is offline   Reply With Quote
Old 10-09-2016, 08:38 AM   #266
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
kterm 2.3

I uploaded new release to github.
It mostly fixes small issues described in previous posts plus some other minor bugs that I discovered.
baf is offline   Reply With Quote
Old 10-09-2016, 08:52 AM   #267
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Thanks for sharing
Can you build the kual package?
encol is offline   Reply With Quote
Old 10-09-2016, 09:01 AM   #268
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by encol View Post
Thanks for sharing
Can you build the kual package?
KUAL packages are available at github releases page.
baf is offline   Reply With Quote
Old 10-09-2016, 09:16 AM   #269
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Thanks, works fine on my PW3!
encol is offline   Reply With Quote
Old 10-09-2016, 09:25 AM   #270
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by encol View Post
Thanks, works fine on my PW3!
Great, thanks!
baf is offline   Reply With Quote
Reply

Tags
kindle touch, kindle touch hacks, terminal emulator


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One more terminal emulator for kindle. Matan Kindle Developer's Corner 160 07-15-2025 12:43 AM
PRS-T1 Terminal Emulator in rupor-minimal jcromero Sony Reader Dev Corner 2 09-26-2012 02:07 PM
Anybody working on terminal for Kindle Touch? markatlnk Kindle Developer's Corner 3 06-02-2012 10:07 AM
Development Terminal Emulator oddity twichy enTourage Archive 5 05-01-2011 11:51 AM
DR800 rxvt (terminal emulator) for DR800 GregorRichards iRex 13 01-04-2011 06:56 AM


All times are GMT -4. The time now is 10:46 AM.


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