Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2024, 03:35 AM   #1366
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,247
Karma: 15499948
Join Date: Sep 2022
Device: Kobo Libra 2
As far as I can tell, Kobo's battery meter has significant drift based on your charging habits. If you try to follow the guidance of keeping the battery between 25 - 75%, the meter starts to think that 75% charged is 100% charged, because it never goes above that point. I now have a > 20% disparity between what the battery icon reports and what the voltage indicates about the charge level. I'll try doing a full charge next time to see if I can get them to line up again.
Aleron Ives is offline   Reply With Quote
Old 06-13-2024, 01:55 PM   #1367
WormGod
Member
WormGod began at the beginning.
 
Posts: 25
Karma: 32
Join Date: Oct 2020
Location: New York, USA
Device: Clara HD, PRS-350
Quote:
Originally Posted by DNSB View Post
Just curious as to whether anyone has modified the battcalc.sh script for other Kobo ereaders? As far as I can tell, the Clara HD and Sage only supply two of the values so not that informative.
I've been playing around with it off and on on the Clara HD, and it looks like the values that it has are:

-rw-r--r-- 1 root root 4096 Jun 7 09:47 uevent
-r--r--r-- 1 root root 4096 Jun 7 09:48 status
-r--r--r-- 1 root root 4096 Jun 7 09:48 time_to_full_now
-r--r--r-- 1 root root 4096 Jun 7 09:48 capacity
-r--r--r-- 1 root root 4096 Jun 7 09:48 voltage_now
-rw-r--r-- 1 root root 4096 Jun 7 09:48 voltage_min_design
-r--r--r-- 1 root root 4096 Jun 7 09:48 type
-r--r--r-- 1 root root 4096 Jun 7 09:48 time_to_empty_now
-r--r--r-- 1 root root 4096 Jun 7 09:48 temp
-r--r--r-- 1 root root 4096 Jun 7 09:48 technology
-r--r--r-- 1 root root 4096 Jun 7 09:48 present
drwxr-xr-x 2 root root 0 Jun 7 09:48 power
-r--r--r-- 1 root root 4096 Jun 7 09:48 health
-r--r--r-- 1 root root 4096 Jun 7 09:48 current_now

Unfortunately, no voltage_max or charge_full.
WormGod is offline   Reply With Quote
Old 06-14-2024, 06:05 PM   #1368
jillmess
Enthusiast
jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.
 
jillmess's Avatar
 
Posts: 46
Karma: 500000
Join Date: Dec 2011
Device: Kobo Libra 2
Quote:
Originally Posted by Aleron Ives View Post
I made an update for my battery statistics calculation script.
I have obviously missed doing something basic in trying to set this up on my libra 2. What am I doing wrong?
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	122
Size:	472.2 KB
ID:	208867  
jillmess is offline   Reply With Quote
Old 06-14-2024, 06:24 PM   #1369
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,247
Karma: 15499948
Join Date: Sep 2022
Device: Kobo Libra 2
My guess would be that you copied the script into a text editor that uses Windows line endings (CRLF), instead of Linux line endings (LF). You need to use a different text editor, such as Notepad++, to convert the script to Linux line endings. I use MadEdit for such purposes, myself.
Aleron Ives is offline   Reply With Quote
Old 06-14-2024, 08:54 PM   #1370
jillmess
Enthusiast
jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.jillmess ought to be getting tired of karma fortunes by now.
 
jillmess's Avatar
 
Posts: 46
Karma: 500000
Join Date: Dec 2011
Device: Kobo Libra 2
Quote:
Originally Posted by Aleron Ives View Post
My guess would be that you copied the script into a text editor that uses Windows line endings (CRLF), instead of Linux line endings (LF). You need to use a different text editor, such as Notepad++, to convert the script to Linux line endings. I use MadEdit for such purposes, myself.
I did use notepad++ but will check the line endings. Thanks.

Edit: Telnet to my libra 2 shows the file structure to be similar to the Clara HD listed a couple of posts above.

Last edited by jillmess; 06-15-2024 at 04:14 AM.
jillmess is offline   Reply With Quote
Old 06-16-2024, 06:41 PM   #1371
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,177
Karma: 4236616
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Here is what is available for Kobo Clara HD in battcalc.sh:

Code:
# Battery Statistics Calculator 1.1 (2024-05-25) by Aleron Ives
# Modified for Kobo Clara HD by mergen3107
# This script calculates battery statistics for the Kobo Libra 2.
# Check the contents of /sys/class/power_supply/ if you use a different
# model to ensure that the statistics you want to track are available.
#
# You can use NickelMenu to invoke this script like so:
# menu_item :main :Battery :cmd_output :500 :/mnt/onboard/.adds/battcalc.sh

# Gather the necessary statistics
meter=$(cat /sys/class/power_supply/mc13892_bat/capacity)
v_now=$(cat /sys/class/power_supply/mc13892_bat/voltage_now)
health=$(cat /sys/class/power_supply/mc13892_bat/health)
temp=$(cat /sys/class/power_supply/mc13892_bat/temp)

# Format the statistics
let v_now/=1000;
let temp/=10;

echo Capacity: $meter %
echo Voltage: $v_now mV
echo Health: $health
echo Temperature: $temp °C
"Health" is only a word ("Good" in my case).

Thanks everyone for NickelMenu and this script!
mergen3107 is offline   Reply With Quote
Old 06-16-2024, 07:25 PM   #1372
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,247
Karma: 15499948
Join Date: Sep 2022
Device: Kobo Libra 2
What does the voltage claim to be if you charge to 100% and then use the Clara for a little while? You'll probably see a nonsensical value like 4.8 V at first, but once it drops, you may be able to estimate what v_max is in order to do the voltage calculations.
Aleron Ives is offline   Reply With Quote
Old 06-17-2024, 08:57 AM   #1373
baursak
Connoisseur
baursak began at the beginning.
 
Posts: 87
Karma: 10
Join Date: Mar 2024
Location: Saint Petersburg, Russia
Device: Kindle Paperwhite (2021) Signature Edition
Rescan books (full)

I see two possible options in NickelMenu Documentation for 'to rescan books'
Code:
menu_item : library : Import books : nickel_misc : rescan_books_full
Code:
menu_item : library : ??? : nickel_misc : rescan_books
What shall I use to get rid of errors during USB connect with Calibre on PC?
baursak is offline   Reply With Quote
Old 06-17-2024, 09:39 AM   #1374
hatuluang
Zealot
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 109
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by baursak View Post
I see two possible options in NickelMenu Documentation for 'to rescan books'
Code:
menu_item : library : Import books : nickel_misc : rescan_books_full
The structure of the code:
menu_item:<location>:<label>:<action>:<arg>

menu_item
Adds a menu item.

<label>
you can give a name for the item (command/shortcut), e.g. Import Books

<location>
You can choose where to put the location of the item
main - a new item will be added to the tabs on the bottom-right of Kobo main page/homepage
reader - the overflow menu in the reader/reading page
browser - the menu in the bottom-right of the web browser
library - the menu in the filter bar for the "My Books" and "My Articles" library

<action>
nickel_misc

<arg>
rescan_books_full

so,
Code:
 menu_item : library : Import books : nickel_misc : rescan_books_full
The command import books will be located in my books and my articles pages.
The command rescan_book_full means that Kobo will scan all its folders to display the new file if exist.
This action imitates Kobo's action when ejected from the PC after sideloading book or after take a screenshot.

Quote:
What shall I use to get rid of errors during USB connect with Calibre on PC?
When you are disconnecting/eject your Kobo from PC, wait until the Kobo homepage appear and the window preview pop-up to inform that Computer detected, you will ask to connect to PC or cancel. You can choose cancel and safely unplug the USB cable from your PC

You may use USB connect without have to unplug/replug, use the following in Nickelmenu:

Code:
Code:
menu_item : main    : USB Connect        : nickel_misc    : force_usb_connection
Attached Thumbnails
Click image for larger version

Name:	windows preview on Kobo homepage.png
Views:	54
Size:	268.2 KB
ID:	208948  

Last edited by hatuluang; 06-17-2024 at 09:55 AM.
hatuluang is offline   Reply With Quote
Old 06-17-2024, 09:52 AM   #1375
baursak
Connoisseur
baursak began at the beginning.
 
Posts: 87
Karma: 10
Join Date: Mar 2024
Location: Saint Petersburg, Russia
Device: Kindle Paperwhite (2021) Signature Edition
Quote:
Originally Posted by hatuluang View Post
Code:
 menu_item : library : Import books : nickel_misc : rescan_books_full
The command import books will be located in my books and my articles pages.
The command rescan_book_full means that Kobo will scan all its folders to display the new file if exist.
This action imitates Kobo's action when ejected from the PC after sideloading book or after take a screenshot.
Thank you
1. What does the command 'rescan_books' mean?
2. Is there any possibility to tell NickelMenu that scanning should be done in a particular folder only? (I would like to hide from NickelMenu a folder with FB2 books for KOReader)
baursak is offline   Reply With Quote
Old 06-17-2024, 10:04 AM   #1376
hatuluang
Zealot
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 109
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by baursak View Post
Thank you
1. What does the command 'rescan_books' mean?
2. Is there any possibility to tell NickelMenu that scanning should be done in a particular folder only? (I would like to hide from NickelMenu a folder with FB2 books for KOReader)
1. Already explain in the previous comment:
The command rescan_book_full means that Kobo will scan all its folders to display the new file if exist.
This action imitates Kobo's action when ejected from the PC after sideloading book or after take a screenshot

2. When you install KOReader, I hope you make a step to prevent Nickel from scanning *nix hidden folders. So Kobo won't scan the folder like .adds folder (KOReader folder is located under .adds folder)
hatuluang is offline   Reply With Quote
Old 06-17-2024, 11:11 AM   #1377
baursak
Connoisseur
baursak began at the beginning.
 
Posts: 87
Karma: 10
Join Date: Mar 2024
Location: Saint Petersburg, Russia
Device: Kindle Paperwhite (2021) Signature Edition
Quote:
Originally Posted by hatuluang View Post
1. ... The command rescan_book_full means ...
- OK, I saw your information about 'rescan_books_full' command. - But there is also 'rescan_books' command, which meaning I don't know. - Would you please clarify this command?

Quote:
2. When you install KOReader, I hope you make a step to prevent Nickel from scanning *nix hidden folders. So Kobo won't scan the folder like .adds folder (KOReader folder is located under .adds folder)
- Some people do not advise to put books into folders that can be deleted during software automatic update (e.g. '.adds/koreader'). - How can I modify the RegExp line of code below (in '.kobo/Kobo/Kobo eReader.conf') so that to stop NickelMenu from scanning some user created folder in the Kobo eReader root directory? - Say, '/Showcase' or '/Stack'? - Such a choice might seem odd, however I simply would like to avoid any folder name containing 'book'.
Code:
[FeatureSettings]
ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)
- Some people recommend to put in books' folder an empty file '.nomedia', which hopefully may prevent NickelMenu from scanning its contents. - What do you think?
baursak is offline   Reply With Quote
Old 06-17-2024, 12:20 PM   #1378
hatuluang
Zealot
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 109
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
rescan_books: forces nickel to rescan books (4.13.12638+)
rescan_books_full: forces a full usb connect/disconnect cycle (4.13.12638+)
Kindly refer to PGaskin document for Nickelmenu configuration: https://github.com/pgaskin/NickelMen...master/res/doc

The update of koreader only updates the koreader-related settings folder and files, it does not touch the user library folder on .adds/koreader.
Ref: Backing up your KOReader settings on https://koreader.rocks/user_guide/#tips

Kobo firmware update:
You may need to update kfmon on Koreader after the Kobo firmware update if you use kfmon as KOReader launcher (OCP KOReader installation).
Nickelmenu survives the Kobo firmware update

Quote:
- How can I modify the RegExp line of code below (in '.kobo/Kobo/Kobo eReader.conf') so that to stop NickelMenu from scanning some user created folder in the Kobo eReader root directory? - Say, '/Showcase' or '/Stack'? - Such a choice might seem odd, however I simply would like to avoid any folder name containing 'book'.
- Some people recommend to put in books' folder an empty file '.nomedia', which hopefully may prevent NickelMenu from scanning its contents. - What do you think?
For this I don't know, maybe others can give you the exact answer.
hatuluang is offline   Reply With Quote
Old 06-17-2024, 02:42 PM   #1379
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,852
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by baursak View Post
- Some people do not advise to put books into folders that can be deleted during software automatic update (e.g. '.adds/koreader'). - How can I modify the RegExp line of code below (in '.kobo/Kobo/Kobo eReader.conf') so that to stop NickelMenu from scanning some user created folder in the Kobo eReader root directory? - Say, '/Showcase' or '/Stack'? - Such a choice might seem odd, however I simply would like to avoid any folder name containing 'book'.
Code:
[FeatureSettings]
ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)
You could add the folder name at the end of the exclusions. For instance, if you are using the screensaver toggle and renaming the screensaver directory from screensaver to screensaver_old, the following keeps it from being rescanned:
Code:
ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)|(screensaver_old)
Personally, I just use the same library for Nickel/KOReader/Plato. Since Kobo will not see an FB2 book as a known format, they will not show in Nickel.

Quote:
Originally Posted by baursak View Post
Some people recommend to put in books' folder an empty file '.nomedia', which hopefully may prevent NickelMenu from scanning its contents. - What do you think?
AFAIK, that does not work though the last time I saw it mentioned in connection with a Kobo was 6 years ago and a reply to the OP stated it did not work for the poster.
DNSB is online now   Reply With Quote
Old 06-17-2024, 03:49 PM   #1380
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,491
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Also, as it pertains to the original worry, (mostly, see next §) nothing will ever actually delete stuff in .adds automatically besides a factory reset, so I dunno why you'd ever be worried about updates.

More importantly, since the `ExcludeSyncFolders` stuff became necessary, actually putting book content in a non-standard folder like .adds *will* put it at risk of Nickel cleaning it up if you ever bork your regexp.

TL;DR: Yeah, don't do that on current FW versions.

Last edited by NiLuJe; 06-17-2024 at 03:53 PM.
NiLuJe is offline   Reply With Quote
Reply

Tags
kobo, launcher, ldpreload, nickel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:59 PM.


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