meh. dunno what you are trying to do.
but this can totally work.
Will dig some stuff up.
CAVEAT: The attached thing IS NOT A FULLY POLISHED APP FOR THE k3. The menu wont work - you wont be able to exit easily blah blah blah.... it's just a POC for this person.... feel free to fix it and make it perfect.
Code:
[root@kindle root]# ls /var/tmp/root/.directfbrc
(nothing)
[root@kindle root]# finder directfbrc ( you don't have "finder" btw)
/etc/directfbrc
[root@kindle root]# cat /etc/directfbrc
no-vt
linux-input-devices=/dev/input/event0,/dev/input/event1
[root@kindle root]# cp /etc/directfbrc /var/tmp/root/.directfbrc
so copy the file like I show here to run custom directfb stuff... however, chances are it will look really rubbish as the screen will misreport the size and only show half the content (well 400 px spread over 800)
however I fixed this only this morning (somehow) will make a post on it briefly before I collapse.
EDIT:
Ah.. make this...
Code:
system = fbdev
fbdev = /dev/fb0
mode = 600x800
scaled = 600x800
depth = 8
pixelformat = LUT8
no-cursor # Disable Cursor
no-init-layer = 0 # Disable Layer Initialization
no-vt # Disable vt
no-vt-switch # Don't allow vt switching (redundant?) but meh .
smooth-upscale # Scaling
smooth-downscale
window-surface-policy = systemonly # Window surface swapping policy:
desktop-buffer-mode = backsystem # Desktop buffer mode:
linux-input-devices=/dev/input/event0,/dev/input/event1
and you will get nice output.
also you will need a:
Code:
echo 1 > /proc/eink_fb/update_display
personally I wrapped that in a timeout loop in the minesweeper app itself.
Code:
gboolean refresh_screen (gpointer data)
{
system("echo 1 > /proc/eink_fb/update_display");
/* Return true so the function will be called again; returning false removes
* this timeout function.
*/
return TRUE;
}
// and then... in the "main" loop add a:
/* Add a timeout to update the screen every 750 milliseconds or so */
gint func_ref = g_timeout_add (750, refresh_screen, vbox);
https://github.com/steshaw/gtk-examp...09.minesweeper for main code...
That should work for all simple gtk apps.
I simply compiled it with the 2007q3 arm softfloat toolchain.
I REPEAT:
CAVEAT: The attached thing IS NOT A FULLY POLISHED APP FOR THE k3. The menu wont work - you wont be able to exit easily blah blah blah.... it's just a POC for this person.... feel free to fix it and make it perfect.