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, 03:19 PM   #1396
silvern0va
Junior Member
silvern0va began at the beginning.
 
Posts: 8
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, 07: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,345
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:	35
Size:	26.4 KB
ID:	210465  
Attached Files
File Type: txt battcalc.sh.txt (1.7 KB, 19 views)

Last edited by Aleron Ives; 08-28-2024 at 07:40 PM.
Aleron Ives is offline   Reply With Quote
Old 08-29-2024, 08:17 AM   #1398
bohn
Member
bohn began at the beginning.
 
Posts: 20
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, 01:37 AM   #1399
NeoGenesisX
Junior Member
NeoGenesisX began at the beginning.
 
Posts: 4
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, 02:17 AM   #1400
bohn
Member
bohn began at the beginning.
 
Posts: 20
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
Old 08-30-2024, 04: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, 05:45 PM   #1402
star-soup
Junior Member
star-soup began at the beginning.
 
Posts: 1
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 Today, 07:21 PM   #1403
kusanagi
Junior Member
kusanagi began at the beginning.
 
Posts: 1
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 Today, 07: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: 39,054
Karma: 153098470
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, 2 views)

Last edited by DNSB; Today at 07:58 PM. Reason: Added link to KFMon uninstaller
DNSB 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 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 11:30 PM.


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