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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2012, 02:23 PM   #61
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
First generation Kobo doesn't seem to have an internal SD-Card but rather a Samsung flash memory component: see https://www.mobileread.com/forums/showthread.php?t=83612
This being said, when I plug it to USB, it opens a drive with an architecture that seems very similar to the Kobo WiFi, including the .kobo folder... Too bad I cannot run any command, like "fbset" to learn more about it.
mougino is offline   Reply With Quote
Old 12-09-2012, 02:30 PM   #62
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
It is possible to boot from external SD-Card on the 1st gen as well. There were already some (light) hackings done: http://code.google.com/p/kobo-hacks/wiki/README
Booting from external SD should allow me testing hacks without injuring the Kobo too much, I guess?
mougino is offline   Reply With Quote
Old 12-10-2012, 11:39 AM   #63
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by mougino View Post
It is possible to boot from external SD-Card on the 1st gen as well. There were already some (light) hackings done: http://code.google.com/p/kobo-hacks/wiki/README
Booting from external SD should allow me testing hacks without injuring the Kobo too much, I guess?
Yep, booting from an external SD card would be pretty safe. If you set up your
Kobo to execute a runme.sh script then I'll see what I can do to help you get
python running on it.
KevinShort is offline   Reply With Quote
Old 12-11-2012, 05:26 PM   #64
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Well, I'm afraid I cannot do it
I downloaded the firmware update SD-Card content from https://www.mobileread.com/forums/showthread.php?t=94133 (second link from angusrobertson.com) and untared to an ext3 formatted SD-Card.
I booted my kobo 1st gen from the SD-Card with D-pad center button + power, but the kobo freezes after the 7th square has appeared in the lower right corner. I've waited up to 10mn, nothing occurs. Only way to exit is pressing center pad + power about 2 seconds, 2 times in a row to make the kobo reboot.
I have been fighting 2 straight days, trying everything: reformatting the SD-Card, modifying the /etc/init.d/rcS file (among others to run a runme.sh script at the base of SD-Card containing a simple "/bin/show_pic /pic/01.jpg"), keeping it intact, playing with "show_pic" and "led" but the result is always the same.
I have the latest kobo 1st gen firmware 1.8.3 and it seems the "boot from SD-Card" functionality has been deactivated in this version
mougino is offline   Reply With Quote
Old 12-12-2012, 02:33 PM   #65
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Oops it seems I spoke too fast Third time's a charm. I reformatted and untared under Linux, did the changes directly in VI (and not under windows with an ext3 driver) and I am able to run a script and display an image now!

What's the next step? I will need help to install Python I guess. In the meantime I will learn Python not one of my languages but I learn fast. I will try to start with a simple script (write the date in the middle of the screen for example).
mougino is offline   Reply With Quote
Old 12-12-2012, 08:24 PM   #66
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Here is my goal of what I would like to obtain on the kobo 1st gen. The information needs to be clear, big and in b&w, nothing to distract and only relevant information for people who have cognitive disorders such as Alzheimer's.

Biggest fonts are used for name of the day and period of the day (morning/noon/afternoon/evening/night, should be configurable depending on country sun's hour and/or user habit, in an old people's home for example the evening is quite early!). Also the month appears in full letters.

I have already experimented with success on my grandmum, dedicated a very old laptop to that and it is very useful to her when she uses it. Problem is the laptop is now falling into pieces and the backlight forces her to close it every night and if we don't go there she forgets to open it the day after. Won't happen with the kobo.

Important thing: the program should be easily configurable for other languages (in my case I will use French) for all parts of labels and names of days of months and of seasons. Also time could be chosen to be set in 12 hours format or 24 hours format.
As for the screen refresh frequency, I was first thinking to do it every 5mn (would show 15:05 then 15:10 then 15:15...) but my motivation was to save battery and it is inconsistent with the Kobo being plugged at all time for a non-stop usage I guess.. so every minute will do
Attached Thumbnails
Click image for larger version

Name:	koboclock.png
Views:	554
Size:	21.4 KB
ID:	97619  

Last edited by mougino; 12-12-2012 at 08:26 PM.
mougino is offline   Reply With Quote
Old 12-13-2012, 05:43 AM   #67
jimmy.caille
Junior Member
jimmy.caille began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
Very good work for this weather app !

Can we do this on a Kobo Glo ?
jimmy.caille is offline   Reply With Quote
Old 12-14-2012, 08:30 AM   #68
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
@KevinShort I have installed Python on the SD-Card, changed all paths in the sh scripts and modified the crontab to update every minute. I am now making the Python script to display the perpetual calendar. I will keep you posted of how it goes.

Last edited by mougino; 12-14-2012 at 08:36 AM.
mougino is offline   Reply With Quote
Old 12-14-2012, 09:47 AM   #69
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by jimmy.caille View Post
Very good work for this weather app !

Can we do this on a Kobo Glo ?
It could be done on a Glo. The script just needs to be updated for the Glo's higher-resolution screen.

Quote:
Originally Posted by mougino View Post
@KevinShort I have installed Python on the SD-Card, changed all paths in the sh scripts and modified the crontab to update every minute. I am now making the Python script to display the perpetual calendar. I will keep you posted of how it goes.
Great! Sorry I haven't gotten back to you sooner, but here's a small python script
that creates an image with the text "Hello" in the upper-left corner and then calls
the Kobo's "show_pic" command to display the image. If that script works, then
creating the display you want won't be hard at all.
KevinShort is offline   Reply With Quote
Old 12-14-2012, 09:55 AM   #70
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
One question: the main difference between the weather app and my app is that my app is in landscape. Will it work if I define a
Code:
pygame.Surface((800, 600))
then use a
Code:
convert_to_raw(screen)
and finally call the .python/display_raw.sh ?
mougino is offline   Reply With Quote
Old 12-14-2012, 10:55 AM   #71
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Nevermind, found the answer: need to do a
Code:
    finalscreen = pygame.transform.rotate(screen, -90)
    convert_to_raw(finalscreen)
mougino is offline   Reply With Quote
Old 12-14-2012, 01:06 PM   #72
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Quote:
Originally Posted by KevinShort View Post
here's a small python script
that creates an image with the text "Hello" in the upper-left corner and then calls
the Kobo's "show_pic" command to display the image. If that script works, then
creating the display you want won't be hard at all.
Thanks! I think I have a potential problem when calling python from SD-Card. I based my work on what you did and before calling Python with your test script as argument, I need to do a
Code:
echo 1 > /sys/class/graphics/fb0/rotate
The problem is that the /sys folder on my SD-Card is empty... How to proceed?
mougino is offline   Reply With Quote
Old 12-14-2012, 01:38 PM   #73
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,119
Karma: 73448614
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The /sys is I believe a "pseudo" file system; it's not actually files or directories on any file system; rather it's an interface into the Linux O/S on the Kobo.
PeterT is offline   Reply With Quote
Old 12-14-2012, 02:28 PM   #74
mougino
Member
mougino began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
Another question: in install-python.sh, there is a
Code:
for i in /mnt/onboard/.python/pygamelibs/*; do mv $i /usr/lib; done
Is /usr/lib supposed to be a folder?? Because it doesn't exist on my SD-Card, so as a result all the files from pygameslib/ are concatenated in a single "lib" file in the /usr folder. Is that supposed to happen, or should I create a /usr/lib folder and install Python again?
mougino is offline   Reply With Quote
Old 12-15-2012, 08:57 AM   #75
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by mougino View Post
Another question: in install-python.sh, there is a
Code:
for i in /mnt/onboard/.python/pygamelibs/*; do mv $i /usr/lib; done
Is /usr/lib supposed to be a folder?? Because it doesn't exist on my SD-Card, so as a result all the files from pygameslib/ are concatenated in a single "lib" file in the /usr folder. Is that supposed to happen, or should I create a /usr/lib folder and install Python again?
Yes, /usr/lib is supposed to be a folder.

Quote:
Originally Posted by mougino View Post
Thanks! I think I have a potential problem when calling python from SD-Card. I based my work on what you did and before calling Python with your test script as argument, I need to do a
Code:
echo 1 > /sys/class/graphics/fb0/rotate
The problem is that the /sys folder on my SD-Card is empty... How to proceed?
The echo command actually isn't needed anymore. It only makes a difference
on Wifi's that have an 8-bit framebuffer, but since I edited the script to work
on all Wifis the echo command could be removed completely.
KevinShort is offline   Reply With Quote
Reply

Tags
hacking, kobo wifi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd; Kobo-purchased book reads fine on Desktop, WiFi and Sony -but not on Kobo Touch. beautifulsoup Kobo Reader 4 07-17-2012 09:29 AM
Kobo Touch in cold weather Judsuw General Discussions 15 06-02-2012 06:23 PM
Sync epubs between Kobo app and Kobo wifi? emilikins Kobo Reader 1 11-17-2011 04:12 PM
Kobo Desktop App v1.7 onboard Kobo WiFi ZombWii Kobo Reader 6 10-20-2010 12:24 PM
Forrester upgrades sales forecast by 50% xoox News 0 10-10-2009 04:11 AM


All times are GMT -4. The time now is 01:54 AM.


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