Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2015, 04:44 PM   #511
jbaumann
Zealot
jbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with others
 
Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
Ok, rebooted again, Kobo Glo with 3.15, Prep02d, executed both scripts again and all is well.

Went to Nickel, back to KSM, executed both scripts. All is well...

Cheers, Joe
jbaumann is offline   Reply With Quote
Old 08-18-2015, 04:44 PM   #512
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by tshering View Post
But even then, I do not understand, why the rotation issue does not occur earlier.
A simple way to test: does the rotation issue also occur when not calling pngshow at all (i.e. not displaying an image at all).

Yes: problem is elsewhere
No: pngshow is culprit after all
frostschutz is offline   Reply With Quote
Advert
Old 08-18-2015, 05:05 PM   #513
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by jbaumann View Post
Ok, rebooted again, Kobo Glo with 3.15, Prep02d, executed both scripts again and all is well.

Went to Nickel, back to KSM, executed both scripts. All is well...

Cheers, Joe
Thank you for testing! The rotation issue is only on some models. Touch, Mini, Glo are not concerned.
tshering is offline   Reply With Quote
Old 08-18-2015, 05:12 PM   #514
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Quote:
Originally Posted by tshering View Post
boriar, could you please check whether it makes a difference if you do the db check directly after reboot, or if you do it after returning from nickel?
Checked.
Two things here.
1. Both scripts do the same: Used directly from reboot -> flip screen, but using it after return from nickel -> ALL CORRECT.
2. I don't know if that meaning something but... when I use scripts before nickel I can see a white arrow over black screen, but if I use it after nickel I clearly can see a white arrow into a black circle over a grey screen.
boriar is offline   Reply With Quote
Old 08-18-2015, 05:15 PM   #515
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
A simple way to test: does the rotation issue also occur when not calling pngshow at all (i.e. not displaying an image at all).

Yes: problem is elsewhere
No: pngshow is culprit after all
boriar (or any H2O owner with the latest test version installed), could you please install the uploaded KoboRoot.tgz? This will introduce db_chk_integrity_nonanimation.sh in the same position as db_chk_integrity.sh is. Please test it.
Sorry for repeated inconvenience.
Attached Files
File Type: zip dbchecknoanimation.zip (586 Bytes, 172 views)
tshering is offline   Reply With Quote
Advert
Old 08-18-2015, 05:28 PM   #516
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Quote:
Originally Posted by tshering View Post
boriar (or any H2O owner with the latest test version installed), could you please install the uploaded KoboRoot.tgz? This will introduce db_chk_integrity_nonanimation.sh in the same position as db_chk_integrity.sh is. Please test it..
Checked in both situation (before and after nickel) and all perfect!

Quote:
Sorry for repeated inconvenience.
I know what's the meaning of doing test. Don't worry I'm always happy to aid you. My H2O love your KSM. to you
boriar is offline   Reply With Quote
Old 08-18-2015, 05:32 PM   #517
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by boriar View Post
Checked.
Two things here.
1. Both scripts do the same: Used directly from reboot -> flip screen, but using it after return from nickel -> ALL CORRECT.
This is a wonderful world indeed! (Since there is a cross posting: "both scripts" refer to those two scripts that display images.)
Quote:
Originally Posted by boriar View Post
2. I don't know if that meaning something but... when I use scripts before nickel I can see a white arrow over black screen, but if I use it after nickel I clearly can see a white arrow into a black circle over a grey screen.
I see this on Touch and Glo too.
For those how do not see it themselves. I display a tiny png showing a white arrow on a black disc. The image covers only a small part of the screen. The remaining part is displayed black. But if nickel was started and exited, the remaining part is grey.
Attached Thumbnails
Click image for larger version

Name:	arrow0.png
Views:	237
Size:	5.2 KB
ID:	141162  

Last edited by tshering; 08-18-2015 at 05:36 PM.
tshering is offline   Reply With Quote
Old 08-18-2015, 06:11 PM   #518
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by boriar View Post
Checked in both situation (before and after nickel) and all perfect!
Thank you! This confirms that without showing an image (with pickel or pngshow), there is no flipping. I can only hope that Frostschutz will have some idea what is going on. In the worst case I have to skip the animation in those two (and some other) situations.[/QUOTE]



Quote:
Originally Posted by boriar View Post
I know what's the meaning of doing test. Don't worry I'm always happy to aid you. My H2O love your KSM. to you
That's the spirit!
tshering is offline   Reply With Quote
Old 08-19-2015, 02:42 AM   #519
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Hi Tshering,

bad news, I installed the d version and removed (backuped) the /mnt/onboard/.adds/kbmenu/ directory.

Now when I try to start the vlasovsoftlauncher it tells me "unsupportef version of launcher".

koreader still works.

Just wanted to report this.

Norbert
norbusan is offline   Reply With Quote
Old 08-19-2015, 03:29 AM   #520
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by norbusan View Post
Hi Tshering,

bad news, I installed the d version and removed (backuped) the /mnt/onboard/.adds/kbmenu/ directory.

Now when I try to start the vlasovsoftlauncher it tells me "unsupportef version of launcher".

koreader still works.

Just wanted to report this.

Norbert
Did you change anything else since the last time vlasovsoftlauncher did work? I just renamed my /mnt/onboard/.adds/kbmenu/ directory, and vlasovsoftlauncher is still supported.

Edit: Is it possible that you deleted /mnt/onboard/.adds/vlasovsoft/launcher, and that KSM tries to start an older version that is in /mnt/onboard/.kobo/vlasovsoft/launcher?

Last edited by tshering; 08-19-2015 at 04:45 AM.
tshering is offline   Reply With Quote
Old 08-19-2015, 04:29 AM   #521
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
boriar,

Just to complete the information (my hope is that Frostschutz can make sense of the collected data), could you please
  • copy set_pngshow_rotation_hack_enable.sh from the uploaded archive to .adds\kbmenu_user\scripts
  • eject, disconnect, disable usb
  • reboot (just to make sure showpng was not yet running in the test session)
  • select user scripts > "set pngshow rotation hack enable.sh"
  • call "chk db integrity.sh" (in case something unexpected is happening, like no animation or distorted screen, do not power off immediately, give the integrity check or the back up sufficient time to finish)
The purpose of "set pngshow rotation hack enable.sh" is to prevent pngshow from temporarily changing the rotation settings. If there is no rotation issue after calling "chk db integrity.sh", could you please also start and exit nickel and call "chk db integrity.sh" again?


You might already have a large collection of database back ups, and might consider deleting them. They are located in .adds\kbmenu_user\backup, and the names look like KR.sql_150818_1414.gz.
Thank you again for your help!
Attached Files
File Type: zip set_pngshow_rotation_hack_enable.zip (244 Bytes, 143 views)

Last edited by tshering; 08-19-2015 at 04:33 AM.
tshering is offline   Reply With Quote
Old 08-19-2015, 04:57 AM   #522
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
@tshering

Checked.
Are the hack temporal?
I checked both scripts in both situations (before and after nickel) and all go well, but if I reboot then need to apply rotation hack again. Now the arrow is in bottom right corner
boriar is offline   Reply With Quote
Old 08-19-2015, 05:35 AM   #523
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by boriar View Post
@tshering

Checked.
Are the hack temporal?
I checked both scripts in both situations (before and after nickel) and all go well, but if I reboot then need to apply rotation hack again.
Hey, you are quick! Yes this is only temporal. Frostschutz explained that pngshow changes temporarily the rotation, when it is run for the first time after reboot, in order to "detect rotation inversion behaviour of the device" (and to take countermeasures against it, I guess). When it does it, it creates a file /tmp/pngshow_rotation_hack_enable, so that it does not have to repeat this procedure each time pngshow is called again.
It seems that this temporal rotation change, and maybe the steps that follow in order to repair a detected rotation inversion behaviour, combined with whatever the Qt programs (I guess the screen driver used by them) does, result in the the rotation flipping.

set_pngshow_rotation_hack_enable.sh creates for test purposes the file /tmp/pngshow_rotation_hack_enable, in order to prevent pngshow to do the detection thing. Since the content of the /tmp folder does not survive a reboot, you have to apply it each time. As you supposed, this is only a temporary hack.

Let us wait what Frostschutz is saying. Maybe he could introduce a argument to skip the temporary rotation change. On could also try to figure out what the Qt screen driver is doing and whether one can change this, but I do not have any knowledge about that kind of stuff. I am not a programmer after all!


Quote:
Originally Posted by boriar View Post
Now the arrow is in bottom right corner
We prevented pngshow from checking so it does not know the rotation. This will in most cases not be very useful, but for the on-animation it is acceptable. Maybe showpng could read the rotation value without changing the rotation, in case it is called with the -skiptemporaryrotation argument.

Last edited by tshering; 08-19-2015 at 05:43 AM.
tshering is offline   Reply With Quote
Old 08-19-2015, 05:52 AM   #524
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by tshering View Post
Maybe showpng could read the rotation value without changing the rotation
That's what it does, when either /tmp/pngshow_rotation_hack_enable or /tmp/pngshow_rotation_hack_disable exists. If the wrong file exists pngshow will show everything upside-down.

I'll see if I can test this later, on my own H2O. I'm not using KSM myself, never installed it so far, but I'll put it on another SD card.
frostschutz is offline   Reply With Quote
Old 08-19-2015, 06:11 AM   #525
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
That's what it does, when either /tmp/pngshow_rotation_hack_enable or /tmp/pngshow_rotation_hack_disable exists. If the wrong file exists pngshow will show everything upside-down.
So I would have to create one of the two files depending on the hardware after boot. Right?


Quote:
Originally Posted by frostschutz View Post
I'll see if I can test this later, on my own H2O. I'm not using KSM myself, never installed it so far, but I'll put it on another SD card.
I appreciate that. This is the link to the version we are currently talking about. In order to exit from nickel back into KSM (if you need this for your testing) you would have to have kbmenupngs with its content in /mnt/onboard, and follow step one of "First time installation" in the first post before actually installing KSM. Alternatively, you could call /adds/kbmenu/fmonsh/exit_nickel.sh via telnet in order to return to KSM, though I never tried this myself. I think this is better, since you use KSM only temporarily.

Last edited by tshering; 08-19-2015 at 07:33 AM.
tshering is offline   Reply With Quote
Reply

Tags
koreader/nickel, ksm 07


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo-Adding alternative readers using Kobo Start Menu Ken Maltby KOReader 75 01-10-2020 01:35 PM
Kobo Start Menu tshering Kobo Developer's Corner 918 10-12-2017 02:32 PM
QT Browser for Kobo Start Menu? gloriousglib Kobo Developer's Corner 1 05-24-2014 03:59 AM
kobo menu and message tshering Kobo Developer's Corner 26 01-15-2014 09:18 AM
Calibre start menu icon Cy1clown Calibre 1 02-06-2010 02:10 PM


All times are GMT -4. The time now is 06:19 AM.


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