Now the question is does this really work anywhere but one my boxen. Hence the post. As a true color framebuffer is required, at least in the 'release' mode, and dimensions are hardcoded (but automatically), i've bundled a small thingy to probe.
While demo binary should work on any kernel >=2.4, you'll most certainly have to recompile the prober.
- Code: Select all
# ls -la sf4k
-rwxr-xr-x 1 tbp tbp 3861 2007-12-18 09:58 sf4k
# ./fbinfo
./fbinfo: going for /dev/fb0...
FBIOGET_FSCREENINFO
id [ VESA VGA]
type FB_TYPE_PACKED_PIXELS
visual FB_VISUAL_TRUECOLOR /* True color */
smem_start 0xf5000000
smem_len 10485760 / 10.000M
FBIOGET_VSCREENINFO
res (1280, 1024)
res virtual (1280, 1024)
offset ( 0, 0)
bits per pixel 32
components (offset, len, msb_right)
red (16, 8, 0)
green ( 8, 8, 0)
blue ( 0, 8, 0)
transp (24, 8, 0)
