Quote:
Originally Posted by NiLuJe
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.