12-09-2012, 03:23 PM | #61 |
Member
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. |
12-09-2012, 03:30 PM | #62 |
Member
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? |
Advert | |
|
12-10-2012, 12:39 PM | #63 | |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
Kobo to execute a runme.sh script then I'll see what I can do to help you get python running on it. |
|
12-11-2012, 06:26 PM | #64 |
Member
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 |
12-12-2012, 03:33 PM | #65 |
Member
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). |
Advert | |
|
12-12-2012, 09:24 PM | #66 |
Member
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 Last edited by mougino; 12-12-2012 at 09:26 PM. |
12-13-2012, 06:43 AM | #67 |
Junior Member
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 ? |
12-14-2012, 09:30 AM | #68 |
Member
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 09:36 AM. |
12-14-2012, 10:47 AM | #69 | ||
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
Quote:
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. |
||
12-14-2012, 10:55 AM | #70 |
Member
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)) Code:
convert_to_raw(screen) |
12-14-2012, 11:55 AM | #71 |
Member
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) |
12-14-2012, 02:06 PM | #72 | |
Member
Posts: 11
Karma: 10
Join Date: Dec 2012
Device: Kobo 1st gen
|
Quote:
Code:
echo 1 > /sys/class/graphics/fb0/rotate |
|
12-14-2012, 02:38 PM | #73 |
Grand Sorcerer
Posts: 12,904
Karma: 76440364
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
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.
|
12-14-2012, 03:28 PM | #74 |
Member
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 |
12-15-2012, 09:57 AM | #75 | ||
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
Quote:
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. |
||
Tags |
hacking, kobo wifi |
|
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 10:29 AM |
Kobo Touch in cold weather | Judsuw | General Discussions | 15 | 06-02-2012 07:23 PM |
Sync epubs between Kobo app and Kobo wifi? | emilikins | Kobo Reader | 1 | 11-17-2011 05:12 PM |
Kobo Desktop App v1.7 onboard Kobo WiFi | ZombWii | Kobo Reader | 6 | 10-20-2010 01:24 PM |
Forrester upgrades sales forecast by 50% | xoox | News | 0 | 10-10-2009 05:11 AM |