Re: Standard way of graphics in Linux



Bjoern Schliessmann wrote:
Herbert Kleebauer wrote:

This was my first idea. But when I looked at a framebuffer-howto
documentation, I got aware that you first have to compile the
kernel with framebuffer support. This means (if I interpret it
correct), that the graphics program will not run on Linux
installation with a kernel compiled without framebuffer support.

Yes.

You could also compile a kernel without IDE support, but who needs
this?

Then please enlighten the ignoramus. Where in Linux is the hardware
dependent code for the graphics card located? In the kernel and X
or svgalib uses the framebuffer device to access the graphics card
(but has itself no hardware dependent code)? This would mean, that
in any Linux with X or svgalib installed, the kernel is compiled with
framebuffer support. Or is the hardware specific code for the graphics
card part of X or svgalib and I can use only one of them at a time, either
framebuffer support or X or svgalib.

And what happens when I directly access the framebuffer on
a system with KDE installed.

Why would you use the framebuffer directly?

Because when the framebuffer device is available in any system
with X or svgalib and even in some systems without X or svgalib,
than this would be the method to make a program executable on
most Linux systems.


How can my program peaceful coexist with the graphics display of
KDE. This all isn't a problem in Windows, but I just don't see it
how to do it in Linux.

I can't quite believe that you always access the framebuffer
directly in Windows -- why would that be convenient (or even
possible in Windows NT and higher)?. What's wrong about the native
APIs?

In Windows I have GDI which is available in ANY 32 bit Windows.
And I'm looking for the counterpart in Linux which is available
in ANY Linux installation (on a 32 bit x86 PC mit a graphics card).
And I have no problem to go down to the framebuffer device level if
this is available in any system and can be used in a way so it
can peaceful coexist with other graphic applications like KDE.
But as a result of all the answers here, I think the only way
to go is, to rely on the existence of X.
.



Relevant Pages

  • Re: My project wish-list for the next 12 months
    ... > graphics framebuffer which is in Linux really kicked away ... We do definitely need framebuffer. ... trying to drag mode-setting code out of the X Server and into a userland ... rather than integrating it all into the kernel. ...
    (freebsd-current)
  • Re: Born again
    ... Tried to get some information about LINUX low level graphics ... Can you use a kernel with framebuffer support and X (and ...
    (alt.lang.asm)
  • Re: unified use of X11/frambuffer/console with nVidia/Matrox?
    ... > unify their X and console configurations by using framebuffer on both. ... You know that all the framebuffer support is broken in kernel 2.6.3, ...
    (comp.os.linux.x)
  • Re: Strange Kern.log Message And Im having Trouble On both Woody And Sarge
    ... > On woody bootup, bootmessages start and proceed for a while but degrade ... but still no ttys on either kernel bootup and no X on ... I would remove gpm as well, but it does sound like a framebuffer ... check the config file in /boot. ...
    (Debian-User)
  • Re: OpenGL-based framebuffer concepts
    ... are the best drivers we have. ... you forget everytime that the kernel ... Apparently with any framebuffer driver ... framebuffer graphics apps in the console except that I can't ...
    (Linux-Kernel)