Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-02-2018, 03:50 PM   #196
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by ItalianUruguayan View Post
Is there any way to add custom menu entries, like the nickel/koreader/pbchess/plato ones?
Put a script with a name like "my_special_script.sh" into .adds\kbmenu_user\scripts. This will create the menu entry "my special script.sh" under (ksm main) > "user scripts".
tshering is offline   Reply With Quote
Old 04-02-2018, 03:54 PM   #197
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Quote:
Originally Posted by tshering View Post
Put a script with a name like "my_special_script.sh" into .adds\kbmenu_user\scripts. This will create the menu entry "my special script.sh" under (ksm main) > "user scripts".
Thank you very much

And is there any way to specify the icon of each entry? I would like to add some icons to them.

Last edited by ItalianUruguayan; 04-02-2018 at 03:57 PM.
ItalianUruguayan is offline   Reply With Quote
Advert
Old 04-02-2018, 04:09 PM   #198
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by cvarrick View Post
Touch in the KSM menu is not working on my H20v2 ("snow",).
I am sorry to hear this.
Quote:
Originally Posted by cvarrick View Post
The web interface does work so I am happy to provide any debug from that interface.
Let us see whether KSM does identify the device correctly. Press the button "basic info" and see the values for PRODUCT and PRODUCT_ID.
Then check which touch driver KSM is trying to use. Type/copy
Code:
echo "$ksmroot/Qt/plugins/mousedrivers/$mousedriver"
into the white input field and press the button "execute". The expected result is "/adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so".
Next check whether the driver is available, by executing
Code:
ls -l "$ksmroot/Qt/plugins/mousedrivers/$mousedriver"
tshering is offline   Reply With Quote
Old 04-02-2018, 07:56 PM   #199
cvarrick
Junior Member
cvarrick doesn't littercvarrick doesn't litter
 
Posts: 9
Karma: 110
Join Date: Mar 2018
Device: Kobo H202
Quote:
Originally Posted by tshering View Post
Let us see whether KSM does identify the device correctly. Press the button "basic info" and see the values for PRODUCT and PRODUCT_ID.
Code:
PRODUCT=snow, PRODUCT_ID=unknown, CPU=mx6sll, PLATFORM=mx6sll-ntx,
WIFI_MODULE=8189fs, WIFI_MODULE_PATH=/drivers/mx6sll-ntx/wifi/8189fs.ko
uname=Linux (none) 4.1.15-00104-gcd6a6a6 #9 SMP PREEMPT Wed Nov 15 15:40:03 CST 2017 armv7l GNU/Linux, FW=4.6.10197
I can see that PRODUCT_ID is set by getmodelnr.sh which reads /mnt/onboard/.kobo/version, which is this:

Code:
N867832001697,4.1.15,4.6.10197,4.1.15,4.1.15,00000000-0000-0000-0000-000000000378
So PRODUCT_ID = 378

Quote:
Then check which touch driver KSM is trying to use.
Code:
/adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so
Quote:
Next check whether the driver is available,
Code:
-rwxr-xr-x    1 root     root         26180 Apr  2 19:19 /adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so

Last edited by cvarrick; 04-02-2018 at 08:07 PM.
cvarrick is offline   Reply With Quote
Old 04-02-2018, 09:16 PM   #200
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
tshering, sorry if I'm making too many questions. I am trying KSM for the first time and I am really curious on how things work. If you don't have time to reply to this just ignore me.

I have seen that KSM seems to have a basic HTML renderer in order to show the pages downloaded by wget. Is that true? And if so, how is that renderer invoked? Is it a standalone binary? If I wanted to run that renderer independently of KSM, would it work?

EDIT: Is kbmessage the binary I'm looking for?

Last edited by ItalianUruguayan; 04-03-2018 at 01:18 AM.
ItalianUruguayan is offline   Reply With Quote
Advert
Old 04-03-2018, 04:08 AM   #201
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by ItalianUruguayan View Post
Thank you very much

And is there any way to specify the icon of each entry? I would like to add some icons to them.
You can. But you have to create the menu entries yourself. This is an example:
Code:
selection=$($ksmroot/kobomenu.sh give_me_coffee:gear.png give_me_tea:execute.png )
case $selection in
  give_me_coffee )
   // Do here something, for instance call a script that orders coffee.
  ;;
  give_me_tea )
   // Do here something, for instance call a script that orders tea.
  ;;
esac
You can only use icons that are embedded in the binary file "kobomenu." You can see a list of all available icons by calling menu_icons.sh (Call it by selecting "scripts" > "tests.msh" > "menu icons.sh"; or similar. I do not have my reader with me, and cannot remember exactly.)
tshering is offline   Reply With Quote
Old 04-03-2018, 04:20 AM   #202
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by ItalianUruguayan View Post
tshering, sorry if I'm making too many questions. I am trying KSM for the first time and I am really curious on how things work. If you don't have time to reply to this just ignore me.

I have seen that KSM seems to have a basic HTML renderer in order to show the pages downloaded by wget. Is that true? And if so, how is that renderer invoked? Is it a standalone binary? If I wanted to run that renderer independently of KSM, would it work?

EDIT: Is kbmessage the binary I'm looking for?
kbmessage is the binary. It is not standalone, but dependent on several libraries. These libraries are borrowed from the pbchess package. So you would have to copy it from there or from KSM, and to export several variables containing the paths to libraries, plugins, fonts.
tshering is offline   Reply With Quote
Old 04-03-2018, 04:48 AM   #203
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by cvarrick View Post
Code:
PRODUCT=snow, PRODUCT_ID=unknown, CPU=mx6sll, PLATFORM=mx6sll-ntx,
WIFI_MODULE=8189fs, WIFI_MODULE_PATH=/drivers/mx6sll-ntx/wifi/8189fs.ko
uname=Linux (none) 4.1.15-00104-gcd6a6a6 #9 SMP PREEMPT Wed Nov 15 15:40:03 CST 2017 armv7l GNU/Linux, FW=4.6.10197
I can see that PRODUCT_ID is set by getmodelnr.sh which reads /mnt/onboard/.kobo/version, which is this:

Code:
N867832001697,4.1.15,4.6.10197,4.1.15,4.1.15,00000000-0000-0000-0000-000000000378
So PRODUCT_ID = 378


Code:
/adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so
Code:
-rwxr-xr-x    1 root     root         26180 Apr  2 19:19 /adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so
This is interesting. Your device has a different hardware from what we knew. Maybe we can try whether the non-h2o2 touch driver works on your device. I will try to post something this night (central european time).
Do you use the webinterface via wifi or usbnet?

You said you updated to the newest FW. Can you tell me your affiliate?

EDIT: I describe how to easily check whether your device works with the non-H2O2 touch driver here.

Last edited by tshering; 04-03-2018 at 04:38 PM.
tshering is offline   Reply With Quote
Old 04-03-2018, 09:53 AM   #204
bunglegrind
Member
bunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheese
 
Posts: 20
Karma: 1192
Join Date: Mar 2016
Device: Kobo Aura One
just installed ksm 9.002 on my kobo aura one (firmware 4.6.9995). Then I set - as ksm 8 - tools->activate->set runmenu settings.msh->always for starting ksm at every boot.

Well, I noticed that if I don't touch any item in the ksm root menu, after 10 secs nickel is starting...

I don't use nickel, is there away to avoid such behaviour?

Cheers
bunglegrind is offline   Reply With Quote
Old 04-03-2018, 10:17 AM   #205
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Quote:
Originally Posted by bunglegrind View Post
just installed ksm 9.002 on my kobo aura one (firmware 4.6.9995). Then I set - as ksm 8 - tools->activate->set runmenu settings.msh->always for starting ksm at every boot.

Well, I noticed that if I don't touch any item in the ksm root menu, after 10 secs nickel is starting...

I don't use nickel, is there away to avoid such behaviour?

Cheers
It's automatic for secure reason. You know, in case the touchscreen is unresponsive. The countdown is abort when you touch the first time.
You can change the countdown in:
configure>[general]>"ksmAutoselectafter=60". One minute without touch the screen at least one time is enough IMHO. Also KSM lack of standby mode so if you forget, the device go to nickel and after some time, go to standby mode.
boriar is offline   Reply With Quote
Old 04-03-2018, 11:35 AM   #206
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Quote:
Originally Posted by tshering View Post
kbmessage is the binary. It is not standalone, but dependent on several libraries. These libraries are borrowed from the pbchess package. So you would have to copy it from there or from KSM, and to export several variables containing the paths to libraries, plugins, fonts.
Thanks a lot for your thorough explanations. I have managed to make a simple calendar script with kbmessage: https://www.mobileread.com/forums/sh....php?p=3678029

Hopefully you don't mind that I packed your binary there?
ItalianUruguayan is offline   Reply With Quote
Old 04-03-2018, 03:33 PM   #207
bunglegrind
Member
bunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheesebunglegrind can extract oil from cheese
 
Posts: 20
Karma: 1192
Join Date: Mar 2016
Device: Kobo Aura One
Quote:
Originally Posted by boriar View Post
It's automatic for secure reason. You know, in case the touchscreen is unresponsive. The countdown is abort when you touch the first time.
You can change the countdown in:
configure>[general]>"ksmAutoselectafter=60". One minute without touch the screen at least one time is enough IMHO. Also KSM lack of standby mode so if you forget, the device go to nickel and after some time, go to standby mode.
thank you very much for this precious information
bunglegrind is offline   Reply With Quote
Old 04-03-2018, 06:37 PM   #208
cvarrick
Junior Member
cvarrick doesn't littercvarrick doesn't litter
 
Posts: 9
Karma: 110
Join Date: Mar 2018
Device: Kobo H202
Quote:
Originally Posted by tshering View Post
This is interesting. Your device has a different hardware from what we knew. Maybe we can try whether the non-h2o2 touch driver works on your device. I will try to post something this night (central european time).
Do you use the webinterface via wifi or usbnet?

You said you updated to the newest FW. Can you tell me your affiliate?

EDIT: I describe how to easily check whether your device works with the non-H2O2 touch driver here.
I performed the experiment and responded in the linked post.

Right now I am using web interface via wifi, haven't been able to get usbnet to work but that may be an issue with the host machine (Arch Linux).

The affiliate is "Kobo".
At one point I did sideload the latest firmware, but subsequent factory resets seem to have removed that. Current FW is 4.6.10197 and device does not see any updates available.
cvarrick is offline   Reply With Quote
Old 04-03-2018, 11:17 PM   #209
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,803
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by cvarrick View Post
Code:
PRODUCT=snow, PRODUCT_ID=unknown, CPU=mx6sll, PLATFORM=mx6sll-ntx,
WIFI_MODULE=8189fs, WIFI_MODULE_PATH=/drivers/mx6sll-ntx/wifi/8189fs.ko
uname=Linux (none) 4.1.15-00104-gcd6a6a6 #9 SMP PREEMPT Wed Nov 15 15:40:03 CST 2017 armv7l GNU/Linux, FW=4.6.10197
I can see that PRODUCT_ID is set by getmodelnr.sh which reads /mnt/onboard/.kobo/version, which is this:

Code:
N867832001697,4.1.15,4.6.10197,4.1.15,4.1.15,00000000-0000-0000-0000-000000000378
So PRODUCT_ID = 378


Code:
/adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so
Code:
-rwxr-xr-x    1 root     root         26180 Apr  2 19:19 /adds/kbmenu/Qt/plugins/mousedrivers/libKoboTS_h2o2.so
May I please see your affiliate? It is in .kobo/Affiliate.conf.
geek1011 is offline   Reply With Quote
Old 04-03-2018, 11:24 PM   #210
cvarrick
Junior Member
cvarrick doesn't littercvarrick doesn't litter
 
Posts: 9
Karma: 110
Join Date: Mar 2018
Device: Kobo H202
Quote:
Originally Posted by geek1011 View Post
May I please see your affiliate? It is in .kobo/Affiliate.conf.
The affiliate is "Kobo".
cvarrick is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Start Menu 08 tshering Kobo Developer's Corner 1021 06-29-2020 04:59 PM
Kobo-Adding alternative readers using Kobo Start Menu Ken Maltby KOReader 75 01-10-2020 01:35 PM
Kobo Start Menu tshering Kobo Developer's Corner 918 10-12-2017 02:32 PM
Start KOReader automatically with Kobo Start Menu checcousero KOReader 2 03-07-2017 11:42 AM
Kobo Start Menu 07 tshering Kobo Developer's Corner 644 03-02-2017 06:40 AM


All times are GMT -4. The time now is 02:19 AM.


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