![]() |
#1456 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,184
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I looked at that and it was easier just to reboot before connecting since the databases would normally show the -wal and -shm files when they were open and in use. There was no way to tell if the databases would be properly closed during the USB connect process. I did try closing the databases to write the information to the database clearing the -wal and -shm files but there was no way to guarantee they would not be re-opened before I triggered the USB connect.
|
![]() |
![]() |
![]() |
#1457 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If this does get written, then we can recruit some using a Kobo Libra Colour and the latest firmware to test this. |
|
![]() |
![]() |
![]() |
#1458 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,184
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Jon, please read what I wrote! The -wal and -shm files are normally present when the databases are open since the database are opened in journaled mode. You would need to hook into the USB connection process after the database close code for information about the database close state to be meaningful. Looking at the .kobo directory using ssh or telnet will show the -wal and -shm files are present. The size of them is somewhat important since larger files will take longer to merge into the database during the database close which is why I suspect that the reboot keeps the database corruption error message from happening.
So you check from the home screen. The databases will be open in journaled mode. The -wal and -shm files will be present and your logic says to reboot. Here's a look at the .kobo directory on my Sage over the network: Code:
kobo login: admin Password: login: can't change directory to '/home/admin' [root@kobo ~]# cd /mnt/onboard/.kobo [root@kobo .kobo]# ls -al total 283024 drwxr-xr-x 17 root root 16384 Jan 24 20:58 . drwxr-xr-x 13 root root 16384 Dec 31 1969 .. -rwxr-xr-x 1 root root 1061888 Jan 24 20:57 BookReader.sqlite -rwxr-xr-x 1 root root 32768 Jan 25 15:08 BookReader.sqlite-shm -rwxr-xr-x 1 root root 85968 Jan 25 15:08 BookReader.sqlite-wal -rwxr-xr-x 1 root root 287318016 Jan 24 12:57 KoboReader.sqlite -rwxr-xr-x 1 root root 32768 Jan 25 15:08 KoboReader.sqlite-shm -rwxr-xr-x 1 root root 876160 Jan 25 15:08 KoboReader.sqlite-wal [root@kobo .kobo]# Code:
-rwxr-xr-x 1 root root 1062912 Jan 25 2025 BookReader.sqlite -rwxr-xr-x 1 root root 32768 Jan 25 15:19 BookReader.sqlite-shm -rwxr-xr-x 1 root root 0 Jan 25 15:19 BookReader.sqlite-wal -rwxr-xr-x 1 root root 287362048 Jan 25 2025 KoboReader.sqlite -rwxr-xr-x 1 root root 32768 Jan 25 15:19 KoboReader.sqlite-shm -rwxr-xr-x 1 root root 8416 Jan 25 15:19 KoboReader.sqlite-wal Last edited by DNSB; 01-25-2025 at 06:24 PM. |
![]() |
![]() |
![]() |
#1459 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Quote:
|
|
![]() |
![]() |
![]() |
#1460 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 01-26-2025 at 10:00 AM. |
|
![]() |
![]() |
![]() |
#1461 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,184
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The size of the -wal file depends on writing to the database. When it is first opened, the Write Ahead Logging file will start at 0 bytes. In contrast the SHared Memory file starts at 32KB and seldom grows larger. When the last connection to a database closes, that connection does one last checkpoint and then deletes the WAL and SHM file, to clean up the disk. If you see those files when USB connected, it tells you the database was not properly closed. The -wal file will not grow endlessly, the default is 1000 pages or ~4MB though there are several situations in which the file will grow past that.
|
![]() |
![]() |
![]() |
#1462 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#1463 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,184
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#1464 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
If you look at the udev script on the Kobo that is launced when a USB connection is made, it does an unmount of both the file system that contains the Kobo database and the (no longer supported on new hardware) external SD card. Simply put the ONLY option might be a modification to the udev script to perform some checking on the size of the wal and shm files, and if non-zero prevent the dismount. |
|
![]() |
![]() |
![]() |
#1465 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
As I mentioned I'm off the opinion that the post wireless sync of importing data had not completed before the second connection. |
|
![]() |
![]() |
![]() |
#1466 |
Connoisseur
![]() Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
|
Anyone know where I can get the stock icons from so I can use three dots for NickleMenu?
Also is menu_main_15505_icon_active still disabled I wouldn't mind having that option to match the red used on colour Kobos Cheers |
![]() |
![]() |
![]() |
#1467 |
Member
![]() ![]() ![]() Posts: 11
Karma: 206
Join Date: Nov 2024
Device: Kobo Libra Colour / Kindle PWSE
|
![]()
Hi everyone, I need some help getting this NickelMenu config working.
I can't get the "dbg_msg" to display after the menu_item command is executed. The command works and makes the change to my test.conf, I just want a msg to appear to let you know that the kobo will reboot. Currently it just reboots no message is shown but command is done properly this are the 6 combination that I have tried. Number 6 is what I think the closest. If I remove the "reboot" from the chain, I see the message as intended, with "reboot" as part of the chain, it seems to ignore that "dbg_msg". What am I missing? TIA ![]() Code:
#=================================================================================================================================================# # TEST #1 - Fails to display "dbg_msg" but Command is successful and Reboots #=================================================================================================================================================# menu_item : main : Sync "ON": cmd_spawn: quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_success : cmd_spawn : dbg_msg: Sync with ********************** Enabled - Rebooting to complete. chain_success : power : reboot menu_item : main : Sync "OFF": cmd_spawn: quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_success : cmd_spawn : dbg_msg: Sync with ********************** Disabled - Rebooting to complete. chain_success : power : reboot #=================================================================================================================================================# # TEST #2 - Fails to display "dbg_msg" but Command is successful and Reboots --- Used "chain_always" #=================================================================================================================================================# menu_item : main : Sync "ON" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : cmd_spawn : dbg_msg : Sync with ********************** Enabled - Rebooting to complete. chain_success : power : reboot menu_item : main : Sync "OFF" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : cmd_spawn : dbg_msg : Sync with ********************** - Rebooting to complete. chain_success : power : reboot #=================================================================================================================================================# # TEST #3 - Fails to display "dbg_msg" but Command is successful and Reboots --- Used "chain_always" -- Removed "cmd_spawn" #=================================================================================================================================================# menu_item : main : Sync "ON" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : dbg_msg : Sync with ********************** Enabled - Rebooting to complete. chain_success : power : reboot menu_item : main : Sync "OFF" : cmd_spawn: quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : dbg_msg : Sync with ********************** Disabled - Rebooting to complete. chain_success : power : reboot #=================================================================================================================================================# # TEST #4 - Fails to display "dbg_msg" but Command is successful and Reboots -- Used "chain_success" -- Removed "cmd_spawn" #=================================================================================================================================================# menu_item : main : Sync "ON" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_success : dbg_msg : Sync with ********************** Enabled - Rebooting to complete. chain_success : power : reboot menu_item : main : Sync "OFF": cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_success : dbg_msg: Sync with ********************** Disabled - Rebooting to complete. chain_success : power : reboot #=================================================================================================================================================# # TEST #5 - Displays a PID msg instead of "dbg_msg" Command is successful --- Used "chain_always" -- used "cmd_spawn" -- Disabled "Reboot" chain #=================================================================================================================================================# menu_item : main : Sync "ON" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : cmd_spawn : dbg_msg: Sync with ********************** Enabled - Rebooting to complete. #chain_success : power : reboot menu_item : main : Sync "OFF" : cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : cmd_spawn : dbg_msg: Sync with ********************** - Rebooting to complete. #chain_success : power : reboot #=================================================================================================================================================# # TEST #6 - Displays "dbg_msg" Command is successful --- Used "chain_always" -- Removed "cmd_spawn" -- Disabled "Reboot" chain #=================================================================================================================================================# menu_item : main : Sync "ON": cmd_spawn: quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : dbg_msg: Sync with ********************** Enabled - Rebooting to complete. #chain_success : power : reboot menu_item : main : Sync "OFF": cmd_spawn : quiet:/bin/sed -i 's|**********************|' '/mnt/onboard/Test/Test.conf' chain_always : dbg_msg: Sync with ********************** Disabled - Rebooting to complete. #chain_success : power : reboot |
![]() |
![]() |
![]() |
#1468 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 20980
Join Date: Oct 2020
Device: Kobo Aura One, Aura HD (R.I.P.) :(
|
Quote:
Use notepad++ to create the script but from the menu bar select 'Edit' then 'EOL Conversion' and select the 'Unix (LF)' option. The NickelMenu syntax might be; Code:
chain_success :cmd_spawn :quiet :/mnt/onboard/.adds/ndbus/NDBus_Reboot.sh Last edited by Rid; 01-31-2025 at 02:28 AM. Reason: Added NM syntax |
|
![]() |
![]() |
![]() |
#1469 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#1470 | |
Member
![]() ![]() ![]() Posts: 11
Karma: 206
Join Date: Nov 2024
Device: Kobo Libra Colour / Kindle PWSE
|
Separate approach.
Quote:
I'll give that a shot, Thank you for the info and the script snippet, looks simple for someone like me to maybe figure out or else I'll be back for more help ![]() |
|
![]() |
![]() |
![]() |
Tags |
kobo, launcher, ldpreload, nickel |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo eReaders and Heat | PeterT | Kobo Reader | 13 | 08-02-2014 04:35 AM |
kobo arc launcher not working | lana loves books | Kobo Tablets | 8 | 03-21-2014 06:40 AM |
Orginization on kobo ereaders | crochetgeek2010 | Kobo Reader | 7 | 09-03-2013 02:13 PM |
Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US | markemark | News | 1 | 04-02-2013 01:46 PM |
Ereaders with Integrated Dictionary | poohbear_nc | Which one should I buy? | 4 | 04-08-2010 06:42 AM |