View Single Post
Old 05-21-2016, 03:03 PM   #23
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by NiLuJe View Post
If I ever find some time/motivation, one utility I'd like to do is a simple (i.e., no Qt) tool to print text messages to the framebuffer (for those familiar with it, we have eips on Kindles, and it's damn useful).
For instance, right now, hitting a SQL busy timeout can be a bit mystifying, since there's zero actual feedback besides the action not launching :/.
I did this before on my device using SDL_ttf. I hardcoded screen resolution and text position. Attached a demo video

SDL is broken on kobos because fbcon video driver relies on VT switching, so the binary can't be called directly (it waits forever on VT_WAITACTIVE).

Code:
[root@kobo ~]# zcat /proc/config.gz | grep CONFIG_VT
CONFIG_VT=y
# CONFIG_VT_CONSOLE is not set
# CONFIG_VT_HW_CONSOLE_BINDING is not set
Try to do a lsof for any of /dev/tty* and you'll find the same results for each of them.

The only solution I found is run the binary in bg and send a SIGTERM just after that.
Code:
#!/bin/sh
SDL_NOMOUSE=1
./fbprint $@ &
pid=$!
sleep 0.3
kill -15 $pid



I wonder if this does the trick for you.
Attached Files
File Type: avi test.avi (984.0 KB, 879 views)

Last edited by pazos; 05-21-2016 at 04:47 PM. Reason: more info
pazos is offline   Reply With Quote