Help configuring SDL

Good evening all,

I’ve downloaded SDL 1.2.8 and built it on my Gentoo Linux box (2.6.11
version kernel).
It compiles fine. When I run the testvideoinfo program provided in the
/test/ directory it
can’t find the video hardware. I compiled in framebuffer support in the
kernel. It shows
the penguin when booting. I tested the framebuffer by running ‘cat
/dev/fb0 >xxx’ then
I could restore the screen by running ‘cat xxx >/dev/fb0’. I set the
environment variables
SDL_FBDEV=/dev/fb0 and SDL_VIDEODRIVER=directfb. I tried svgalib and fbcon
for the video driver but no joy. What should I be setting this too? Any
suggestions on
how to get it to recognize the framebuffer?

Thanks!

Uzik wrote:

Good evening all,

I’ve downloaded SDL 1.2.8 and built it on my Gentoo Linux box (2.6.11
version kernel).
It compiles fine. When I run the testvideoinfo program provided in the
/test/ directory it
can’t find the video hardware. I compiled in framebuffer support in
the kernel. It shows
the penguin when booting. I tested the framebuffer by running ‘cat
/dev/fb0 >xxx’ then
I could restore the screen by running ‘cat xxx >/dev/fb0’. I set the
environment variables
SDL_FBDEV=/dev/fb0 and SDL_VIDEODRIVER=directfb. I tried svgalib and
fbcon
for the video driver but no joy. What should I be setting this too?
Any suggestions on
how to get it to recognize the framebuffer?

The video driver you’re after is fbcon. Did you enable support for the
framebuffer driver in SDL ? That might explain the problems you’re seeing.

Stephane

Stephane Marchesin wrote:

Uzik wrote:

Good evening all,

I’ve downloaded SDL 1.2.8 and built it on my Gentoo Linux box (2.6.11
version kernel).
It compiles fine. When I run the testvideoinfo program provided in
the /test/ directory it
can’t find the video hardware. I compiled in framebuffer support in
the kernel. It shows
the penguin when booting. I tested the framebuffer by running ‘cat
/dev/fb0 >xxx’ then
I could restore the screen by running ‘cat xxx >/dev/fb0’. I set the
environment variables
SDL_FBDEV=/dev/fb0 and SDL_VIDEODRIVER=directfb. I tried svgalib and
fbcon
for the video driver but no joy. What should I be setting this too?
Any suggestions on
how to get it to recognize the framebuffer?

The video driver you’re after is fbcon. Did you enable support for the
framebuffer driver in SDL ? That might explain the problems you’re
seeing.

I just ran ./configure and trusted it to pick up the framebuffer support.
I’ll give that a try. Thank you Stephane.

Stephane Marchesin wrote:

Uzik wrote:

Good evening all,

I’ve downloaded SDL 1.2.8 and built it on my Gentoo Linux box (2.6.11
version kernel).
It compiles fine. When I run the testvideoinfo program provided in
the /test/ directory it
can’t find the video hardware. I compiled in framebuffer support in
the kernel. It shows
the penguin when booting. I tested the framebuffer by running ‘cat
/dev/fb0 >xxx’ then
I could restore the screen by running ‘cat xxx >/dev/fb0’. I set the
environment variables
SDL_FBDEV=/dev/fb0 and SDL_VIDEODRIVER=directfb. I tried svgalib and
fbcon
for the video driver but no joy. What should I be setting this too?
Any suggestions on
how to get it to recognize the framebuffer?

The video driver you’re after is fbcon. Did you enable support for the
framebuffer driver in SDL ? That might explain the problems you’re
seeing.

like this?

make clean uninstall
./configure --enable-video-fbcon
make
make install

Makes no difference.

Stephane Marchesin wrote:

Uzik wrote:

Good evening all,

I’ve downloaded SDL 1.2.8 and built it on my Gentoo Linux box (2.6.11
version kernel).
It compiles fine. When I run the testvideoinfo program provided in
the /test/ directory it
can’t find the video hardware. I compiled in framebuffer support in
the kernel. It shows
the penguin when booting. I tested the framebuffer by running ‘cat
/dev/fb0 >xxx’ then
I could restore the screen by running ‘cat xxx >/dev/fb0’. I set the
environment variables
SDL_FBDEV=/dev/fb0 and SDL_VIDEODRIVER=directfb. I tried svgalib and
fbcon
for the video driver but no joy. What should I be setting this too?
Any suggestions on
how to get it to recognize the framebuffer?

The video driver you’re after is fbcon. Did you enable support for the
framebuffer driver in SDL ? That might explain the problems you’re
seeing.

I seem to have other problems. I run
fbset -g 640 480 640 480 24
and the box locks up.