01-02-2018, 01:36 PM | #46 | ||
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Code:
[ "$(pidof nickel | wc -w)" == "0" ] && exit Code:
[ "$(pidof nickel | wc -w)" == "0" ] || [ "$(pidof plato | wc -w)" == "0" ] && exit Should I tread plato the same way as nickel in /usr/local/Kobo/udev/sd too? Quote:
Code:
insmod "$WIFI_MODULE_PATH" Last edited by tshering; 01-03-2018 at 09:12 AM. |
||
01-02-2018, 02:41 PM | #47 | |||
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
Quote:
Code:
pidof nickel plato > /dev/null || exit But I had something else in mind: - Don't change any script in /usr/local/Kobo/udev/. - Use the following function: Code:
toggle_nickel_hardware_status() { local fifo_path=/tmp/nickel-hardware-status local arg=$1 if [ "$arg" == on ] ; then while [ ! -p "$fifo_path" ] ; do rm "$fifo_path" mkfifo "$fifo_path" done elif [ "$arg" == off ] ; then while [ ! -L "$fifo_path" ] ; do rm "$fifo_path" ln -s /dev/null "$fifo_path" done else printf "toggle_nickel_hardware_status: invalid argument: '%s'." "$arg" >2 fi } My bad. Quote:
I'll amend the script accordingly. |
|||
Advert | |
|
01-02-2018, 03:41 PM | #48 | ||
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Quote:
Code:
+ lsmod + grep -q sdio_wifi_pwr + insmod /drivers/mx50-ntx/wifi/sdio_wifi_pwr.ko + insmod /drivers/mx50-ntx/wifi/dhd.ko + ifconfig eth0 up ifconfig: SIOCGIFFLAGS: No such device + wlarm_le -i eth0 up wlarm_le: wl driver adapter not found + pidof wpa_supplicant + wpa_supplicant -D wext -s -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -B + udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -b -q udhcpc: SIOCGIFINDEX: No such device Last edited by tshering; 01-02-2018 at 03:47 PM. |
||
01-02-2018, 04:43 PM | #49 |
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
|
01-02-2018, 05:12 PM | #50 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
|
Advert | |
|
01-03-2018, 01:54 PM | #51 |
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
I've released 0.3.1.
The installation instructions have changed slightly: there's one archive for the program and its support files, and one archive for each launcher. @tshering: Is the script packaged in plato-launcher-ksm-0.3.1.zip ok? |
01-03-2018, 04:58 PM | #52 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Spoiler:
so that you have to distribute only one version. KSM would call it with a wrapper script like this
Spoiler:
Are you certain that 3 is the correct rotate value for all models? |
|
01-03-2018, 07:01 PM | #53 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
On Kobo Glo, the menu (sandwich symbol) does not work. It registers the touch (becomes dark for a moment, but the menu does not open. It works however on the Kobo Touch (C).
|
01-04-2018, 09:41 AM | #54 |
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
I've ran top and noticed that the plato process is using 99% CPU in idle state. Don't use Plato until further notice!
|
01-04-2018, 10:00 AM | #55 |
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
Fortunately, I found the source of the problem quickly: reading from /tmp/nickel-hardware-status!
I will therefore drop the current approach (unless someone has an idea on how to properly poll the FIFO) and write something similar to libue instead. The problem exists since version 0.2.0. |
01-04-2018, 12:32 PM | #56 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Are you sure that there is a problem? I see 99.x% idle most of the time with plato running, falling to 86% idle while opening large books. Isn't this a good value?
Last edited by tshering; 01-04-2018 at 12:38 PM. |
01-10-2018, 01:33 PM | #59 | ||
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
Quote:
Quote:
|
||
01-10-2018, 01:40 PM | #60 | |
Evangelist
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
|
Quote:
Can you open the Sort by: … menu? or the frontlight dialog? Can you toggle the frontlight by holding your finger on the frontlight icon? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) | chrox | KOReader | 569 | 09-15-2024 10:13 AM |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 12:49 PM |
Kindle -- KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | KOReader | 1219 | 01-27-2024 03:29 PM |
v3 vs. v3+ as a pdf/DjVu reader | hedonism_bot | HanLin eBook | 7 | 11-02-2010 09:16 PM |