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-10-2017, 08:33 AM   #1
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Sketch

I've written an alternative to Sketch Pad called Sketch.

It was tested on the Glo HD and the Aura ONE (firmware 4.3.9084).

The advantages over *Sketch Pad* are:
  • The entire display is used.
  • There's less latency.
  • The strokes are thinner.
Attached Files
File Type: zip sketch.zip (272.9 KB, 326 views)

Last edited by baskerville; 04-25-2017 at 05:26 AM.
baskerville is offline   Reply With Quote
Old 04-12-2017, 06:10 PM   #2
Nemo1984
Connoisseur
Nemo1984 began at the beginning.
 
Posts: 94
Karma: 10
Join Date: Jan 2017
Device: Kobo Glo HD
I tried it with pbchess launcher. It didn't work.
Nemo1984 is offline   Reply With Quote
Advert
Old 04-14-2017, 05:28 AM   #3
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
I personally use a modified version of koreader.sh as the launch script (and fmon as the launcher).

Please also note that there's no UI: all the meta-operations are performed with the power button.

Last edited by baskerville; 04-25-2017 at 05:43 AM.
baskerville is offline   Reply With Quote
Old 04-14-2017, 06:41 PM   #4
kido.resuri
Groupie
kido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura about
 
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
What are the advantages over the "stock" sketch app?
Please post what firmware version did you made it for.
kido.resuri is offline   Reply With Quote
Old 04-15-2017, 10:00 AM   #5
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by kido.resuri View Post
What are the advantages over the "stock" sketch app?
Please post what firmware version did you made it for.
I've added the answers in the original post.
baskerville is offline   Reply With Quote
Advert
Old 04-15-2017, 02:38 PM   #6
kido.resuri
Groupie
kido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura about
 
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
Nice work, didn't test it tho. Any plans of writing other apps for Kobo?
Would be nice to see.
kido.resuri is offline   Reply With Quote
Old 04-15-2017, 10:28 PM   #7
Nemo1984
Connoisseur
Nemo1984 began at the beginning.
 
Posts: 94
Karma: 10
Join Date: Jan 2017
Device: Kobo Glo HD
Quote:
Originally Posted by baskerville View Post
It only works in 16-bit mode.

I personally use a modified version of koreader.sh as the launch script (and fmon as the launcher).

Please also note that there's no UI: all the meta-operations are performed with the power button.
Could you share your method please? I didn't get around fmon yet.
Nemo1984 is offline   Reply With Quote
Old 04-19-2017, 06:41 AM   #8
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by kido.resuri View Post
Nice work, didn't test it tho. Any plans of writing other apps for Kobo?
I'd like to write a reader using sketch as a starting point.
baskerville is offline   Reply With Quote
Old 04-19-2017, 06:43 AM   #9
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by Nemo1984 View Post
Could you share your method please? I didn't get around fmon yet.
I've added installation instructions to my fmon rewrite and to sketch itself.
baskerville is offline   Reply With Quote
Old 04-19-2017, 03:10 PM   #10
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
I do not know whether sketch is expected to work on Kobo Touch. I am just reporting that it does not show any drawings on the screen. It does however create drawing-date_time.png files (EDIT: the show only a white screen).

It is in 16-bit mode
Code:
[root@(none) ~]# fbset

mode "800x600-0"
        # D: 0.033 MHz, H: 0.034 kHz, V: 0.055 Hz
        geometry 800 600 800 1280 16
        timings 30000000 8 164 4 18 4 1
        accel false
        rgba 5/11,6/5,5/0,0/0
endmode
tshering is offline   Reply With Quote
Old 04-20-2017, 06:27 AM   #11
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by tshering View Post
I do not know whether sketch is expected to work on Kobo Touch.
Thank you for reporting. I believe it might have something to do with the touch protocol used by the Touch. I'm only handling ABS_MT_POSITION_{X,Y} and the Touch might be emitting ABS_{X,Y} instead.

I've attached a debug version of Sketch that prints evdev events on standard output. Could you try that version and do something like:
  1. First finger down, second finger down.
  2. Move both fingers.
  3. Release first finger then second finger.

And post the content of crash.log?
Attached Files
File Type: zip sketch.zip (217.8 KB, 248 views)
baskerville is offline   Reply With Quote
Old 04-20-2017, 03:10 PM   #12
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
Here is the crash.log file.
Attached Files
File Type: txt crash.log.txt (10.9 KB, 268 views)
tshering is offline   Reply With Quote
Old 04-22-2017, 12:49 PM   #13
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 444
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Thanks, it was very useful: I didn't realize that both of my test devices were using what koreader refers to as the phoenix touch protocol. And according to koreader/frontend/device/kobo/device.lua, most of the devices are using this protocol.

I've added support for the old protocol in the version attached in the original post. But there might be another problem specific to the Touch: most of the devices have the x and y axes swapped, but koreader sets touch_switch_xy to false by default for the Touch.

Maybe there's a way to tell if a device has the x and y axes swapped based on its PCB?
baskerville is offline   Reply With Quote
Old 04-22-2017, 01:30 PM   #14
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,664
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Phoenix is the codename for the Kobo Aura, btw. It was the first device to use that protocol, hence the name.
Frenzie is offline   Reply With Quote
Old 04-22-2017, 05:36 PM   #15
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 baskerville View Post
But there might be another problem specific to the Touch: most of the devices have the x and y axes swapped, but koreader sets touch_switch_xy to false by default for the Touch.
My Touch displays that problem.

Quote:
Originally Posted by baskerville View Post
Maybe there's a way to tell if a device has the x and y axes swapped based on its PCB?
Maybe. KOReader developers tried to find a way and ended by making the user press the right bottom corner in order to establish whether xy has to be swapped.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Deleting sketch Chocky Kobo Reader 3 11-19-2012 08:32 AM
Police Sketch of the Count BenG Lounge 7 07-30-2012 06:51 PM
Touch Kobo Sketch Benjamin Buford Kobo Reader 23 01-12-2012 03:47 PM
Cannot scribble (sketch) on text lily77 Onyx Boox 5 07-12-2011 06:42 PM
Your 200,001st sketch Logseman Writers' Corner 2 04-10-2010 12:01 AM


All times are GMT -4. The time now is 09:23 PM.


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