Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2024, 04:19 PM   #1396
silvern0va
Junior Member
silvern0va began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
Quote:
Originally Posted by lumping-sugar66 View Post
If you're comfortable building NickelMenu from source, the latest master branch in the official repository has "bluetooth on/off" instructions implemented.

Code:
                  nickel_bluetooth   - one of:
                                         enable   (4.34.20097+)
                                         disable  (4.34.20097+)
                                         toggle   (4.34.20097+)
                                         check    (4.34.20097+)
                                         scan     (4.34.20097+)
Or maybe @geek1011 can make a release of NickelMenu 0.5.5
Yeah I would prefer if we could get a new release. I tried compiling it and maybe it's because I'm on Windows but it is NOT working.
silvern0va is offline   Reply With Quote
Old 08-28-2024, 08:30 PM   #1397
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,435
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
I've made another update to my battery statistics calculation script. Version 1.2 brings a few improvements:
  • The v_pct divisor is now calculated automatically from v_max and v_min, rather than using a hardcoded value.
  • v_now no longer displays nonsensical values like 4.8 V.

I had hoped to use bc to do proper floating-point arithmetic, but it seems that Kobo's version of BusyBox doesn't have it, so instead I've resorted to manipulating v_now, v_min, and v_max as strings, which avoids doing any actual arithmetic for the units conversion.

Remember that if you have the Libra Colour, you must replace:

/sys/class/power_supply/battery/
with
/sys/class/power_supply/bd71827_bat/

in order for the script to work. Other Kobo models may require greater changes, as some statistics may not be available.

Code:
# Battery Statistics Calculator 1.2 (2024-08-28) by Aleron Ives
#
# 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/battery/capacity)
v_now=$(cat /sys/class/power_supply/battery/voltage_now)
v_min=$(cat /sys/class/power_supply/battery/voltage_min)
v_max=$(cat /sys/class/power_supply/battery/voltage_max)
c_now=$(cat /sys/class/power_supply/battery/charge_now)
c_full=$(cat /sys/class/power_supply/battery/charge_full)
c_dfull=$(cat /sys/class/power_supply/battery/charge_full_design)

# Format the statistics

let c_now/=1000; let c_full/=1000; let c_dfull/=1000 # Convert to mAh
let charge=$c_now*100/$c_full     # Calculate charge percentage from mAh
let c_health=$c_full*100/$c_dfull # Calculate health percentage from mAh
let v_div=$v_max-$v_min; let v_div/=100    # Calculate charge percentage from V
let v_pct=$v_max-$v_now; let v_pct/=$v_div # "
let v_pct=100-$v_pct                       # "
v_nowr=$(echo $v_now | cut -b 2-4) # Simulate floating-point arithmetic
v_now=$(echo $v_now | cut -b 1)    # "
v_minr=$(echo $v_min | cut -b 2-3) # "
v_min=$(echo $v_min | cut -b 1)    # "
v_maxr=$(echo $v_max | cut -b 2-3) # "
v_max=$(echo $v_max | cut -b 1)    # "

# Display the results

echo Capacity: $c_now mAh / $charge% / $meter%
echo Voltage: $v_min.$v_minr V / $v_now.$v_nowr V / $v_max.$v_maxr V / $v_pct%
echo Health: $c_full mAh / $c_dfull mAh / $c_health%
If you download the attached version, remember to remove the .txt extension! The forum doesn't allow uploading text files with the .sh extension.
Attached Thumbnails
Click image for larger version

Name:	battcalc.png
Views:	92
Size:	26.4 KB
ID:	210465  
Attached Files
File Type: txt battcalc.sh.txt (1.7 KB, 61 views)

Last edited by Aleron Ives; 08-28-2024 at 08:40 PM.
Aleron Ives is offline   Reply With Quote
Advert
Old 08-29-2024, 09:17 AM   #1398
bohn
Member
bohn began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2018
Device: Libra 2
Quote:
Originally Posted by silvern0va View Post
Yeah I would prefer if we could get a new release. I tried compiling it and maybe it's because I'm on Windows but it is NOT working.
yeah, me too.
bohn is offline   Reply With Quote
Old 08-30-2024, 02:37 AM   #1399
NeoGenesisX
Junior Member
NeoGenesisX began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2023
Device: PPW5, Scribe
Quote:
Originally Posted by bohn View Post
yeah, me too.
The lastest build from master branch, not tested yet.

https://drive.filen.io/f/d0f6be6c-e5...bUIFbgLUJuttaY
NeoGenesisX is offline   Reply With Quote
Old 08-30-2024, 03:17 AM   #1400
bohn
Member
bohn began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2018
Device: Libra 2
Quote:
Originally Posted by NeoGenesisX View Post
The lastest build from master branch, not tested yet.

https://drive.filen.io/f/d0f6be6c-e5...bUIFbgLUJuttaY
Thanks, this works.
bohn is offline   Reply With Quote
Advert
Old 08-30-2024, 05:06 AM   #1401
mooncatfairy
Junior Member
mooncatfairy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2023
Device: Kobo Elipsa
Quote:
Originally Posted by NeoGenesisX View Post
The lastest build from master branch, not tested yet.

https://drive.filen.io/f/d0f6be6c-e5...bUIFbgLUJuttaY
Usage examples:
menu_item :main :Bluetooth (enable) :nickel_bluetooth :enable
menu_item :main :Bluetooth (disable) :nickel_bluetooth :disable
menu_item :main :Bluetooth (toggle) :nickel_bluetooth :toggle
mooncatfairy is offline   Reply With Quote
Old 08-31-2024, 06:45 PM   #1402
star-soup
Junior Member
star-soup began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
Hello!
I found a guide on reddit for how to use NickelMenu to create a translation feature on Kobo. However, when I try to use it, I get the following error:
Quote:
/bin/sh: jq: not found
Anyone here know what this error is or how to fix it? For reference the original code to create the translation function was:
Quote:
menu_item :selection eepL Translation :cmd_output :9999:/usr/bin/wget --header='Authorization: DeepL-Auth-Key $MY_KEY' --post-data='target_lang=EN&text={1|S|%}' -qO - https://api-free.deepl.com/v2/translate | jq '.translations[0].text' | fold -s -w 55
star-soup is offline   Reply With Quote
Old 09-05-2024, 08:21 PM   #1403
kusanagi
Junior Member
kusanagi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2024
Device: kobo libra 2
Hello everyone, I have kobo libra 2, software version 4.38.23038
I have a small problem, I already done this part
Quote:
Installation

Connect your Kobo eReader to your computer over USB.
Download KoboRoot.tgz (release notes) into KOBOeReader/.kobo. You may need to show hidden files to see the folder.
Safely eject your eReader and wait for it to reboot.
Ensure there is a new menu item in the top-left main menu entitled NickelMenu (it will appear in the bottom-right on firmware 4.23.15505+).
But I'm a bit unsure what to do with this part https://github.com/pgaskin/NickelMen...v0.5.4/res/doc
That is something new for me...
I don't understand how all of this is supposed to look in the file "config" as the result, can someone with the libra 2 send me a config or nm folder file so I can understand how it's supposed to look in the end?

I want to install KOReader but as far as I understood, I first need to install NickelMenu and then install there KOReader
kusanagi is offline   Reply With Quote
Old 09-05-2024, 08:54 PM   #1404
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: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kusanagi View Post
I want to install KOReader but as far as I understood, I first need to install NickelMenu and then install there KOReader
Basically, if you install KOReader or Plato using the One Click Packages and the install script, the entries to launch them will be placed in the .adds/nm directory. See the One-Click Install Packages for KOReader & Plato thread with the package in the first message and the installer scripts in the second message. Those packages will install KFMON, NickelMenu, KOReader and/or Plato.

My preferred method is to use the installer then uninstall KFMon and delete the kfmon, koreader and plato files in the .adds/nm directory. The attached nm_kp.txt file has the entries to run KOReader and Plato directly from NickelMenu. Simply remove the # in front the menu-item for either or both and copy the file into .adds/nm where you should see that file and the doc file.

You can find the KFMON-Uninstaller link in this Kute File Monitor: A smarter file-trigger based launcher thread.
Attached Files
File Type: txt nm_kp.txt (4.3 KB, 42 views)

Last edited by DNSB; 09-05-2024 at 08:58 PM. Reason: Added link to KFMon uninstaller
DNSB is offline   Reply With Quote
Old 09-06-2024, 07:18 AM   #1405
kusanagi
Junior Member
kusanagi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2024
Device: kobo libra 2
Quote:
Originally Posted by DNSB View Post
Basically, if you install KOReader or Plato using the One Click Packages and the install script, the entries to launch them will be placed in the .adds/nm directory. See the One-Click Install Packages for KOReader & Plato thread with the package in the first message and the installer scripts in the second message. Those packages will install KFMON, NickelMenu, KOReader and/or Plato.
Well I saw that topic, but I've learned from experience and I'm not in a rush to install everything, because installing is much easier than getting rid of it later. I'm an experienced Windows user. Plato is a good reader? I need it for reading PDF books, but I was recommended KOREADER, it's the first time I've heard about Plato. I also read about cases where devices can be damaged by reading PDFs, but I was told that KOREADER is safe if properly configured.

Quote:
My preferred method is to use the installer then uninstall KFMon and delete the kfmon, koreader and plato files in the .adds/nm directory. The attached nm_kp.txt file has the entries to run KOReader and Plato directly from NickelMenu. Simply remove the # in front the menu-item for either or both and copy the file into .adds/nm where you should see that file and the doc file.
Thanks, so you are recommending using a script instead of a clean installation from scratch? Is KFMon some kind of file manager? Because I need something like that as well, basic navigation by authors and series is inconvenient for me. I would also like to add some kind of folder navigation
kusanagi is offline   Reply With Quote
Old 09-06-2024, 10:09 AM   #1406
Ceiyne
Enthusiast
Ceiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notesCeiyne can name that song in three notes
 
Posts: 36
Karma: 24602
Join Date: May 2015
Device: Kobo Glo HD
Quote:
Originally Posted by star-soup View Post
Hello!
I found a guide on reddit for how to use NickelMenu to create a translation feature on Kobo. However, when I try to use it, I get the following error:


Anyone here know what this error is or how to fix it? For reference the original code to create the translation function was:
This thread seems to have a solution to your issue; basically, you're missing jq and the thread says where to get it from. (I don't really know anything about this, so I don't think I'd be of further help. I just happened to see your post and I have an interest in translation stuff with the Kobo, so I did a little googling.)

https://github.com/pgaskin/NickelMen...ent-1546998211
Ceiyne is offline   Reply With Quote
Old 09-06-2024, 02:29 PM   #1407
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: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kusanagi View Post
Thanks, so you are recommending using a script instead of a clean installation from scratch? Is KFMon some kind of file manager? Because I need something like that as well, basic navigation by authors and series is inconvenient for me. I would also like to add some kind of folder navigation
The installer script does the same things you could do manually but without the risk of a typing error or skipping a step.

For folder navigation, you will need to use KOReader or Plato. Nickel does not have folder navigation. Personally, I use search since it is a lot faster than tapping my way through a directory structure. Nickel can search author, title, series, etc. while KOReader if the calibre generated metadata.calibre is present, can also do searching.

KFMon is a program launcher, for instance, you might see a KOReader png image displayed in your Kobo books. Tap on it and KFMon will launch KOReader. To learn more, check out NiLuJe's kfmon GitHub page.
DNSB is offline   Reply With Quote
Old 09-15-2024, 04:17 PM   #1408
Dirk-71
Zealot
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 145
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo Libra 2 & Aura One / Tolino Shine 5th Gen.
How is the command to simpy open the (general) settings

menu_item : reader: Settings : nickel_open : settings
.....doesn't work
Dirk-71 is offline   Reply With Quote
Old 09-15-2024, 04:32 PM   #1409
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: 146
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by Dirk-71 View Post
How is the command to simpy open the (general) settings

menu_item : reader: Settings : nickel_open : settings
.....doesn't work
See the doc configuration of Nickelmenu line 58-68, the use of nickel_settings
Code:
#                   nickel_setting     - <action>:<setting>
#                                        action is one of:
#                                          toggle  - toggles between true/false
#                                          enable  - sets to true
#                                          disable - sets to false
#                                        setting is one of:
#                                          invert          - FeatureSettings.InvertScreen
#                                          lockscreen      - PowerSettings.UnlockEnabled (4.12.12111+)
#                                          screenshots     - FeatureSettings.Screenshots
#                                          force_wifi      - DeveloperSettings.ForceWifiOn (note: the setting doesn't apply until you toggle WiFi)
#                                          auto_usb_gadget - Automatically enable USB mass storage on connection
and line 87 - 101, the use of nickel_open
Code:
#                   nickel_open        - one of:
#                                          discover:storefront       - Kobo Store
#                                          discover:wishlist         - Wishlist
#                                          library:library           - My Books (with last tab and filter)
#                                          library:all               - Books
#                                          library:authors           - Authors
#                                          library:series            - Series (4.20.14601+)
#                                          library:shelves           - Collections
#                                          library:pocket            - Articles
#                                          library:dropbox           - Dropbox (4.18.13737+)
#                                          reading_life:reading_life - Activity (with last tab)
#                                          reading_life:stats        - Activity
#                                          reading_life:awards       - Awards
#                                          reading_life:words        - My Words
#                                          store:overdrive           - OverDrive (4.10.11655+) (note: if you don't have an active OverDrive account, it will give you a "Network Error")
#                                          store:search              - Search
ref: https://pgaskin.net/NickelMenu
hatuluang is online now   Reply With Quote
Old 09-15-2024, 05:07 PM   #1410
Dirk-71
Zealot
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 145
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo Libra 2 & Aura One / Tolino Shine 5th Gen.
@hatuluang Ok, I don't find any command to open the settings. However thank you for your reply.
Dirk-71 is offline   Reply With Quote
Reply

Tags
kobo, launcher, ldpreload, nickel


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo eReaders and Heat PeterT Kobo Reader 13 08-02-2014 05:35 AM
kobo arc launcher not working lana loves books Kobo Tablets 8 03-21-2014 07:40 AM
Orginization on kobo ereaders crochetgeek2010 Kobo Reader 7 09-03-2013 03:13 PM
Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US markemark News 1 04-02-2013 02:46 PM
Ereaders with Integrated Dictionary poohbear_nc Which one should I buy? 4 04-08-2010 07:42 AM


All times are GMT -4. The time now is 09:06 PM.


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