Quantcast
Channel: MobileRead Forums - Kobo Developer's Corner
Viewing all 1561 articles
Browse latest View live

Mini New to Kobo, Need help with some stuf.

$
0
0
First, let me thank You for taking the time to read my post, I really appreciate it!

About a week ago I bought a kobo Mini, and have decided to hack it.
I decided a nice place to start would be trying the weather display thing.
I've spent quite a few hours reading through this forum, and have a few questions:

First Question: From what I have read, when a Kobo finds a archive named KoboRoot.tgz in its .kobo directory it will extract the contents to it's root, adding new files and replacing old ones, Am I correct?

2nd Question: I have been reading this guide, and have gotten confused at some parts.
Most tutorials say that You have to factory reset your kobo to start hacking, is this necessary for any other reason then to get the default KoboRoot.tgz file?

Question 3: The tutorial I mentioned says to add the code
Code:

/mnt/onboard/run.sh &
to the file /etc/init.d/rcS "BEFORE the call to nickel". I'm not very good with Linux, and have no idea where the "Call to nickel" is.
I'm guessing that nickel would start after everything else is done,
so I guess that
Code:

/usr/local/Kobo/nickel -qws &
(Near the end of the file) would be it, but I don't want to unnecessarily brick my device because of it. Could someone please help?
(I was thinking of putting the line right under the hashbang, but I'm not certain if any directories need to be mounted or whatnot; I also thought of putting the line above the first time nickel was mentioned, would that be safe, or still with the directories?)

Q4: After editing the file rcS, the tutorial says to run the command
Code:

tar czf KoboRoot.tgz etc/init.d/rcS
This leaves me with a KoboRoot.tgz with nothing in it but etc/init.d/rcS, and all the other files are missing. Do I need all the other files in KoboRoot.tgz, or do I update everything BEFORE editing rcS?
(Is Updating before hacking even necessary if I'm running the latest firmware?


Again, Thank you for taking the time to read through this, I'm truly greatfull!

Glo How to register button press on Glo?

$
0
0
Hi Guys,

I just looked around the forum and I didn't find very much regarding that matter. If there is a thread about it, just point me in the right direction and I'll stand corrected ;)

Anyways... How can I register button presses using QT 4.8 on my Glo? I don't mean the touchscreen, I mean the light and on/off-buttons. So far my application has a main window/widget derived from the QLabel-class. QLabel::keyPressEvent(...) however is not triggered when I press the light or the on/off-button. So my guess is that either I need something like a global hook or more likely I just don't have the right "keyboard"-driver loaded. Adding

Code:

export QWS_KEYBOARD=imx508kbd:/dev/input/event0
to the sh-script starting my application did not work, though.

Any suggestions?

Mini Odd components on mini PCB and serial link

$
0
0
Hello everyone, I got a kobo mini a couple of weeks ago with the intention of using it as the display for an alarm clock. It'll be connected to other stuff eventually, and run a small program that does display, handles input and triggers other bits of kit (lamp, buzzer, radio etc).

I've used the great hacking guides here on the forum to telnet in - thank you all very much for posting those. I've also opened it up to solder in a header to the serial pins. Does anybody have any experience of reading / writing info from those pins? Does the serial port show up by default in the OS, or will I have to do some tinkering to get it visible?

The other this was that looking at the PCB, the outside edge is lined with what appear to be LEDs. The top and right edge have clear packages and are labelled D<number>, and the bottom and left edge are dark, like IR receivers of some sort, and labelled Q<number>.







They are definitely optical components but I can't see what they do. The case has a series of scalloped lenses inside it, that match up to the components. I can't see anything similar in any teardown pics of other e-ink devices, so I'm guessing it's something to do with the touch sensors? Puzzled. Any ideas? I'm just curious really.

sandy

Touch Google Drive on Kobo Touch

Touch Kobo Touchpad

$
0
0
I just started coding some python scripts to control your mousepointer from the Kobo and use it as a wifi-touchpad.

Update1:
Now supports left and right mousebuttons and a very quick restarting to nickel.

At the moment its not really fast and works only on Windows.
For left mousebutton use the homebutton, right mousebutton is not yet implemented.

You need python 2.7 and pywin32 for it to work and a working telnet on your Kobo.

Place screen in the rootfolder of your kobo and the scripts in a folder on your pc and start them both with run.bat after you changed the ip in both .py scripts to your kobo-ip.

Enjoy!

credits to www.chauveau-central.net/pub/KoboTouch for really useful informations.

https://github.com/The1andONLYdave/kobo-touchpad

Attached Files
File Type: zip kobo-touchpad.zip (13.5 KB)

Kobo Tweaks

$
0
0
Since I recently updated my Touch to 2.4.0 and missed my beloved adblocker, I fixed up Kobo Tweaks and got it running again. Many thanks to ikarus9999 for the updates for firmware 2.x, they were really helpful.

It's still a bit rough, but I think it's already useful and I'd rather release this now than letting it rot away on my harddrive again.

So, what's new?
  • Improved plugin loading. It should work with SD cards and in the future also load automatically. It actually already worked automatically and is already loaded on boot, but Kobo improved the home screen so you need to open something and go back to the homescreen before anything there is changed.
  • Nice GUI to setup everything. I actually had this sitting around for more than half a year, but now it's actually in there :). Due to the new homescreen behavior you might have to reboot for now to see some changes. Also, the menu customization is yet to come.
  • Major code cleanup. This is probably not very visible to you but means that it's fun again to work on it :).

I took the great idea of custom commands from the other plugin, but implemented it using QtScript, since that's already included with Qt. This means that the syntax slightly changed:
Quote:

[CustomCommands]
Reboot=tweaks.executeSystemCmd(\"busybox reboot\")
Note that you have to escape the " like this: \”. Oh, and the filename changed to kobotweaks.ini to avoid a name clash.

There's more to come as I find some more time to work on it. I'm especially thinking about some way to better integrate the weather display, chess, etc. applications with nickel. Maybe it's possible to start an external application and display just a white (or black) screen so it can use the display (but keep nickel running) until some signal is received that the application terminated.

Also, the Qt based applications should be able to integrate directly with nickel just as the settings do. Oh yeah, and about the settings, I have no idea how well they fit on the larger screens. I designed them before the Glo even existed.

Download: http://andreas.heider.io/kobo/tweaks-13-02-18.zip
The source is at https://github.com/ah-/koboplugins

Glo how can I change kobo web browser font?

$
0
0
I'm using kobo glo in korea. because kobo doesn't support korean, I installed korean fonts to folder. It works fine. when I use extra web browser to read news in korean, text doesn't appear. how can I install korean fonts in web browser? kobo doesn't officially support for extra apps. so may many people who is speaking other languages be needed for your help such as me. sorry for my deficient english and thx for your help.

Mini ADE epub problem: missing text size icon

$
0
0
Greetings, esteemed developers!
I've recently purchased a Kobo Mini-- already have a couple of Nooks & an iPad. I'm not much of a coder, but thought I'd bring my problem here. Haven't seen this issue addressed elsewhere.

I just downloaded a couple of library epub titles via Adobe Digital Editions. They don't display the icon for changing text size. Kobo support recommended a reset-- didn't help.

Checked and upgraded to latest ADE, but the problem remains for 2 of 3 library epubs. The books are unreadable as is, and the zoom function is too clunky to be a workable alternative.

Thanks for any insights. [This forum really helped me out when I first tried rooting a color Nook a while back-- hope someone can help!]

Connecting external mini speakers to koboarc

$
0
0
I would be grateful for help in adding mini speaker to kobo arc for audio books.

At the shop where I bought koboarc they checked with tech dept who said mini external speakers would work but JVC SP-A120 is not working at the moment.
Are there any other settings which would enable JVC to work, this model has batteries which you can turn on if necessary to boost.

The JVC SP-A120 works beautifully with kindle touch

Glo Memory Upgrade Mod Guide (With Pictures)

$
0
0
Hello! Welcome to my Kobo Glo Memory Upgrade Guide!

I'm going to show you how I upgraded the internal memory to my KoboGlo!
The pictures aren't from when I actually did it, but have been recreated for this guide but that doesn't change how awesome it is! They will all be in the second post in this thread.

I will include all links to where I got this information on the 3rd post in this thread. I found most of it here within this forum, which is why I'm posting this guide here.

Is it worth it?: If you're asking yourself this, it probably isn't worth it. It already has an external slot while giving you access to an internal slot. It's illogical at best given that no one has 64 gigs of ebooks, and if you did it would probably explode the Kobo when all the storage is full. Or at least just be VERY slow.

That being said, the people coming here already want to do this and don't need or even want someone else telling them why they should void their warranty!

Given that I was opening this up, I went all out and put a class 10 32 gig microsd card
into it! I figure the faster and the bigger the better! (well maybe not bigger in this case)

First things first, might as well collect the software needed for this.
I will amend this guide in future to include the known linux commands, as well as to test them from terminal in Mac (Lion).
This is all free 3rd party software I have NOTHING to do with. Worked for me, but use at your own risk.

Partition software:
http://www.partitionwizard.com/free-...n-manager.html
"Free Partition Software - MiniTool® Partition Wizard Home Edition 7.8"

These two tools are standalone and require no installation:
For ripping images from the SD Card:
http://www.vconsole.com/client/?page=page&id=28
"Flash Drive Image Creator"

For writing images to the SD Card:
http://www.vconsole.com/client/?page=page&id=29
"Flash Drive Image Writer"

Make sure your Kobo is FULLY off and not just in sleep mod. So long slide over and hold till it's powered down.

Step 1. Opening your Glo:
I used a bus pass, any thin card will do.

I pushed at the Kobo first where the back and outer casing meet, parallel to the device, with a card right between the LED and the light button. I did this because of that single clip you can see in the picture below.
Once I got under the lip of the back case, I then pried the outer case out while pushing the card to be perpendicular to the Kobo. This separates the back from the top. You'll have to repeat at the right side of the top.

Once you have done this there should be a visible separation at the top. Pick a side, left or right, and work the card in again right at the top corner on the long side this time. Again go from parallel to perpendicular with the card and push it down this time, so the card is against the inside side and front. Slide the card down like you're swiping an actual magnetic strip reader (like your bank card). Do so gently!

This should free one side, one corner completely.

Repeat this exact process on the other side of the case. I'm right handed so I did the right side first without thinking.

Now you can get to the bottom where you will take it off similar to the top, basically not sliding the card past the port.

Now you have done the hardest part which is removing the back!

You'll be amazed to see a simple microSD card slot. So crazy!
My card came with a white dot, I assume they all do from the factory. I think it possibly is a moisture detection or just to mark their own sd cards.

Step 2. Copying the SD Card:
Make sure your Kobo is FULLY off, AGAIN. So long slide over and hold till it's powered down. Just in the event you turned it on opening the case without noticing.

Now slide the SD card out very carefully.
Load it up in your PC.
Ignore/dismiss ALL prompts. DON'T format it.
Once you dismiss everything that pops up when you added the SD card, you use your "Flash Drive Image Creator" you downloaded to clone the SD card. To do this, run the program selecting the SD card as well as setting an output location. The desktop will do if it's temporary. C:\KoboSD\ will work great if it's to be kept as a backup. Make certain you select Entire Disk for what to backup.

Remove the old MicroSD card. You are completely done with it from this point forward. I'd suggest putting it into a plastic bag in the original Kobo box for safe keeping.

Place your new MicroSD card into your computer. Again dismiss any prompts that popup.

Next, open up "Flash Drive Image Writer". Here you will select the .img file you just created from the Creator program. Either from C:\KoboSD\ or the desktop. Also select your destination drive. Click Write Image. Read the prompt and click yes if you want to format the destination SD and continue.

You’ve now completely cloned the original SD Card.

Step 3. Setting up the new SD Card:
Next load up “MiniTool® Partition Wizard Home Edition 7.8”.
In the main area (top half), select your newly setup SD card. To verify you have the right drive, it should be set up as follows, or something close: (Unallocated) 10MB, rootfs(EXT4) 256 MB..., recoveryfs(EXT4) 256MB.., KOBOeReader (FAT32) 1.33 GB.., (Unallocated) [however big the rest of your sd card is. 5.9GB for the 8GB card in the pictures].
Select the KOBOeReader drive (either in the upper or lower half).
Right click it and select Extend.
From here move the slider all the way to the right. You should see a total of both the unallocated space and the KOBOeReader partition. In the case of my pictures, it’s 7.19GB for the 8GB sd card.
You’ll see at the bottom of this window that the new size of Unallocated will be 0.00KB, that’s how you know you’ve done it right. Click OK.
Verify that the unallocated space at the end of the SD card is no longer there and that the KOBOeReader partition is taking up the bulk of the SD card.
Click Apply in the upper left of the application and yes to the prompt AFTER reading it ;-)
It will go through it’s process. It hangs a bit at the end, that’s normal. Click OK once it’s done.

Step 4. Reinstall SD Card, Finishing up!
Just re-insert the MicroSD card into its slot in the Kobo Glo. From there, just pop the case back on making certain which way is up. The bottom only has 1 gap in the middle for the USB port and the top has a gap along most of the one side with the LED and two buttons. Once it’s fully snapped together, power on your new beast!

You’re complete!
Everything should be perfect now!


After everything was A-OK, I placed my original 2gig MicroSD card into a bag and put it back into the original box for safe keeping. That way I know if I need I always have a clean untouched SD card to replace my big one if anything goes wrong. So far it's not been needed! This also means that the backup on your computer is a duplicate backup.

Battery Upgrade on KT, KG, KM Possible?

$
0
0
Searching the forum I could not find any information about the internal battery packs used in the Kobo e-ink line of ereaders.
Looking at mod and tear down pictures it seems to me that a polymer battery pack is used. Probably Li-ion. Can someone post more information about it?
I would like to knowthe specs of the standard battery packs used in the readers, like power, capacity, dimensions (length,width,height).

Can the battery be replaced with a higher capacity pack?

Update (based on comments in this thread).

Kobo Glo
Type: Li-ion
Power: 3.7V
Capacity: 1000 mAh
Dimensions: 54.5(L)×42.3(W)×3.8(T)mm
Manufacturer: Power Source Energy Co., Ltd.
Part number: H384355
Website: www.psebattery.com
Product link: H384355

Kobo Touch
To be posted (hopefully)

Kobo Mini
To be posted (hopefully)

Does kobo have function like "send to kindle"?

$
0
0
I'm considering to buy either kindle pw or kobo glo for my first e-book device. Because of the memory capacity and some other nice features, now I'm leaning to get kobo glo.

However there's only one thing makes me hesitating. That's the Kindle's 'send to kindle' function whic seems so attractive and convenient.

I wonder if the Kobo glo has similar function or is there possibility of something like firmware update or hacking that would make it possible.

Glo Kobo Glo: Need SD card image

How to mod the userStyle.css?

$
0
0
Based on this thread Where to put userStyle.css? (started by GeoffR). But as it is more of a dev/hack thing the question is better asked here. Applies to Touch, Glo and Mini.

Is there any way to modify the original userStyle.css? It is extracted to the device and placed in a unkown directory (at least for me as I don't have so much Linux skills) in the "hidden" system partition and therefore not directly accessable for more common users like me.
I would like to be able to modify the userStyle.css to tweak it to my personal preferences.

Some questions/ideas:
  • Can some one dump the orignial Kobo (RMSDK) userStyle.css. here?
  • Try to replace the orginal userStyle.css with an @import rule that refers to a editable user defined stylesheet that is placed somewhere else on the reader? Something like: @import {url("res:///userModStyle.css") all}, where "userModStyle.css" is actually placed in the root dirctory of the Kobo device. (Or use another file name and/or directory)

Quote:

Question:
How do I use the userStyle.css style sheet in order to change ePub properties?

Answer:
A good example to take a look at would be book2png. When the book2png sample is built, a folder named resources is created in its main directory. In there lies the userStyle.css file. The file is a regular style sheet file and can be modified in order to change the properties of the currently viewed ePub. The simplest way to try it out would be with the background-color:#b0c4de; property. This would change the background color to a light blue.

NOTE: for Android projects userSytle.css is located in project/assets/rmsdk/

[S-11411] (Source: Datalogics RMSDK)

[WIP] Samba share on the Kobo Glo (windows network share)

$
0
0
(this might work for other Kobo devices; I've only gotten it working on my own Glo)

Samba is an implementation of Windows networking features for Linux. With Samba, it's possible to create Windows network shares on Linux devices. I managed to get it running on my Kobo Glo, with a few limitations (no library update, no autostart). In this short guide, I'll show you how you can get it running as well.

NOTE: I literally got this working about an hour ago, using a random samba ARM build I found on the internet. Stability may be shitty, security may be awful, performance may be abysmal. Consider this your only warning ;)

Prerequisites
-SSH access to your device

Step 1: download required files
1) grab an ARM build of Samba. I used the prebuilt Samba from BeyondLogic (via this wiki article) which you can download here.
2) Connect your device with your PC and copy the .tar.bz2 to the device's internal storage

Step 2: installing & configuring Samba
1) SSH to your device
2) Execute the following commands to extract Samba:
Code:

cd /mnt/onboard/
mkdir samba_test
cd samba_test
tar -xvzf ../samba-3.6.3-arm-none-linux-gnueabi.tar.bz2

3) create a 'logs' folder where samba server logs will be placed
Code:

cd /mnt/onboard/samba_test/var
mkdir logs

4) Link some required library files so that the samba server binary can start correctly by executing the following commands:
Code:

ln -s /mnt/onboard/samba_test/lib/libtalloc.so.2.0.5 /lib/libtalloc.so.2
ln -s /mnt/onboard/samba_test/lib/libtdb.so.1.2.9 /lib/libtdb.so.1

5) Create a Samba configuration file in /etc/smb.conf containing the following text:
Code:

[global]
workgroup = WORKGROUP
netbios name = SAMBA_FS
username map = /mnt/onboard/samba_test/var/username.map
smb passwd file = /mnt/onboard/samba_test/private/smbpasswd
private dir = /mnt/onboard/samba_test/private/
usershare path = /mnt/onboard/samba_test/var/locks/usershares
log file = /mnt/onboard/samba_test/var/logs/log.%m
pid directory = /mnt/onboard/samba_test/var/locks/
lock directory = /mnt/onboard/samba_test/var/locks/
cache directory = /mnt/onboard/samba_test/var/locks/
state directory = /mnt/onboard/samba_test/var/locks/
[onboard]
path = /mnt/onboard
browsable = yes
writable = yes
[root]
path = /
browsable = yes
writable = yes

This configuration creates two Samba shares: one points to the onboard 'public' storage (the one you can access via USB), the other points to the root of the filesystem. If you don't want to enable root fs access, just remove the 'root' group.
6) allow the root user to access Samba shares by setting its password:
Code:

/mnt/onboard/samba_test/bin/smbpasswd -a
(you'll be prompted to set a password for the root user; this password is only used for Samba, not for SSH, so make it anything you want)

Running Samba & testing
Now that Samba is configured, we can test it out!
1) Turn on Wireless on your Kobo device
2) Run /mnt/onboard/samba_test/sbin/smbd, either via SSH or by adding an smbd entry to your Kobo Tweaks .ini file
3) Navigate to \\<IP address of your device>\ using Windows Explorer or something else that can access Samba shares. You'll be prompted for a username/password, so enter the username 'root' and the password you set earlier.
If it doesn't work, check your wireless connection or look at the log file(s) in /mnt/onboard/samba_test/var/log.

That's it!

Shell for e-ink device?

Touch event handling on new Kobo Reader for iOS Japanese

$
0
0
I am testing a scripted book on the new Kobo Reader for iOS, Japanese version. I find that touch events, even when I explicitly try to stop propagation with stopPropagation or preventDefault (which works fine on iBooks), nevertheless make their way to the top level, where they are re-interpreted as commands to flip to the previous page (if towards the left side of the screen) or right page (if towards the right side of the screen). Needless to say, this makes the book completely useless.

Does anyone have any experience with the touch event handling logic and its interaction with event handling logic in user scripts in the Kobo code base?

Touch Kobo Touch : Need SD card image

$
0
0
Hello from France,
I accidentally destroyed the SD card.:oops2:
Is it possible to get an image to fix it?:help:
Thank you in advance.
Greetings.:hatsoff:
(I use the Google translation)

How to remove "finished" flag

$
0
0
When you finish a book, it is flagged as finished and removed from the home. Do you know which file I must edit to remove that flag?

I finished by mistake a test book I'm using as a workaround for a Launcher bug.

HOWTO: make your kobo faster by modifying filesystem options

$
0
0
It is documented elsewhere on the internet that by using non-standard ext4 filesystem options, a linux machine -- such as our kobo -- can potentially run its filesystem faster.

So, what options does it run by default?
Code:

[root@(none) /]# mount
rootfs on / type rootfs (rw) /dev/root on / type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)

Some are good, some are not what that blog recommends.

So, I decided to try to change it and share how to.

What you'll need is:
- ftp and telnet/ssh access to the device. The guides on the internet aren't perfect, if you want I can make a better todo (where better means it was easier for me...).
- a cross-compiled tune2fs with dependencies. I'm attaching those files which I scavenged from pre-compiled rmps openmamba repository. You can cross-compile them yourself, find them pre-compiled yourself (7zip opens rpms), or just get them from the zip I'll attach.

Instructions:
1. FTP to your kobo and put the contents of my zip somewhere. Since those files won't be needed after you've finished all steps, I just dumped them to the root of kobo's filesystem.
2. telnet/ssh into your kobo (I used putty) and run the following commands:
Code:

chmod +x ./tune2fs # make the file executable
./tune2fs -o journal_data_writeback /dev/mmcblk0p1 # change the journaling mode to what that blog post suggests

3. Modify the mount instruction to activate all the other options the blog suggests. Kobo doesn't use fstab but instead executes the mount command directly from /etc/init.d/rcS (line 5). My procedure for modifying it is: get the file using ftp, edit it, upload it back using ftp.
Original is:
Code:

mount -o remount,noatime,nodiratime /dev/mmcblk0p1 /
Change it to:
Code:

mount -o remount,noatime,nodiratime,barrier=0,nobh /dev/mmcblk0p1 /
4. Reboot the device for those changes to take effect.

So, what's the result?
Code:

[root@(none) /]# mount
rootfs on / type rootfs (rw) /dev/root on / type ext4 (rw,noatime,nodiratime,barrier=0,nobh,data=writeback)

Works!

Is it any faster, I bet you'll ask? Well I can't tell... the book I'm reading definitely feels snappy flipping pages, but is it because of the book, because of the options, or just a placebo? I really don't have any serious tools to make a proper comparison.

Hopefully that helps!

Attached Files
File Type: zip tune2fs.zip (280.4 KB)
Viewing all 1561 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>