LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Frame Buffer Console (http://www.linuxquestions.org/questions/slackware-14/frame-buffer-console-879289/)

michijo 05-06-2011 10:32 PM

Frame Buffer Console
 
Having some trouble with Frame Buffer Console and 256 colors. When I boot, there are two penguins at the type, signifying 256 colors. These sit up there for a few while text scrolls, then suddenly the screen blacks, and returns, penguins vanished, and the system boots normally, but with a vga error in the Linux console. No 256. The error has to do with inteldrmfb versus VESA. If I do 'cat /proc/fb', it returns '0 inteldrmfb'. I think VESA starts and has the penguins, then inteldrmfb cuts in. Otherwise, startx works and the X server works fine.

Didier Spaier 05-07-2011 03:04 AM

I have a nVidia GPU, not an Intel one, but a similar event occur during boot sequence.

Less than one second after booting, the VESA frame buffer (vesafb) is loaded, because I have "vga = 873" in lilo.conf :
Code:

[    0.413714] vesafb: framebuffer at 0xd5000000, mapped to 0xf8080000, using 13781k, total 14336k
[    0.413723] vesafb: mode is 1680x1050x32, linelength=6720, pages=1
[    0.413729] vesafb: protected mode interface info at c000:d050
[    0.413735] vesafb: pmi: set display start = c00cd0b3, set palette = c00cd10e
[    0.413741] vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da
[    0.413763] vesafb: scrolling: redraw
[    0.413768] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.522650] Console: switching to colour frame buffer device 210x65
[    0.623470] fb0: VESA VGA frame buffer device

Later in the boot process, the handover occur, i.e. the Nouveau frame buffer driver (nouveaufb) take over the console and vesafb is unloaded:
Code:

[  49.337655] fb: conflicting fb hw usage nouveaufb vs VESA VGA - removing generic driver
[  49.337721] Console: switching to colour dummy device 80x25

When this occur, the screen is redrawn.

This is perfectly normal.

If I want to avoid that I can blacklist the Nouveau module, as anyhow it will be automatically loaded at X startup.

I am not sure that you can do the same with the Intel driver, but you may try.

BTW the two penguins don't mean 256 colors, but only that you have a dual core CPU. And they disappear when the screen is full in all cases.

gnashley 05-07-2011 05:17 AM

I believe in both cases that what you are seeing is the kernel modesetting taking place.

adamk75 05-07-2011 07:26 AM

Quote:

Originally Posted by Didier Spaier (Post 4349024)
If I want to avoid that I can blacklist the Nouveau module, as anyhow it will be automatically loaded at X startup.

I am not sure that you can do the same with the Intel driver, but you may try.

If the OP does anything to prevent KMS from activating, X will not start on an Intel GPU.

Adam

Didier Spaier 05-07-2011 08:38 AM

Quote:

Originally Posted by adamk75 (Post 4349156)
If the OP does anything to prevent KMS from activating, X will not start on an Intel GPU.

Adam

That would be adding "Append=nomodeset" to the kernel command line, or (in the case of Nouveau) using the "modeset=0" module parameter.

I didn't advise the OP to do that ;)

michijo 05-07-2011 09:35 AM

In any case, I cannot view images in the linux console with seejpeg. I have tried altering '/etc/vga/libvga.config' and '/etc/lilo.conf' to no avail. Its not a big deal, but I thought it could be interesting to see an image in the linux console prior to running startx. Perhaps that would lead me to use the console more often instead of running an Xserver. Is modesetting preventing images from being displayed there? Isnt modesetting supposed to help graphics?

https://fedoraproject.org/wiki/Featu...nelModesetting

michijo 05-07-2011 09:43 AM

intel
 
Quote:

Originally Posted by Didier Spaier (Post 4349024)
Code:

[  49.337655] fb: conflicting fb hw usage nouveaufb vs VESA VGA - removing generic driver
[  49.337721] Console: switching to colour dummy device 80x25

When this occur, the screen is redrawn.

This is perfectly normal.

That is basically what happens but with Intel vs VESA.

slacktroll 05-07-2011 10:07 AM

the fbdev driver should work.
just tried with zgv. and that ends up with a segfault :D

ahh. it changes to some other colour depth.. interesting!

adamk75 05-07-2011 10:26 AM

Quote:

Originally Posted by Didier Spaier (Post 4349196)
That would be adding "Append=nomodeset" to the kernel command line, or (in the case of Nouveau) using the "modeset=0" module parameter.

I didn't advise the OP to do that ;)

But KMS is provided by the intel DRM. If you blacklist the intel DRM, there's no KMS :-)

slacktroll 05-07-2011 11:18 AM

Long story short. Forget about seejpeg. It would probably need some patching to use fbdev directly instead of svgalib->fbdev. It actual search for modes and want's to set a mode. and it does not find any. mplayer worked fine with -vo fbdev but bugged out if i changed the -bpp switch. From my experience i would go with fbida directly. You will get a binary called fbi. In my case i did fbi *jpg and had a picture of usama bin laden. :D

git clone git://git.kraxel.org/fbida
make
make install
Works out of the box with i915 loaded with modeset=1

Url to homepage
http://www.kraxel.org/blog/linux/fbida/

Best Regards
Chris

michijo 05-07-2011 07:30 PM

FBI
 
Quote:

Originally Posted by slacktroll (Post 4349318)
Long story short. Forget about seejpeg. It would probably need some patching to use fbdev directly instead of svgalib->fbdev. It actual search for modes and want's to set a mode. and it does not find any. mplayer worked fine with -vo fbdev but bugged out if i changed the -bpp switch. From my experience i would go with fbida directly. You will get a binary called fbi. In my case i did fbi *jpg and had a picture of usama bin laden. :D

git clone git://git.kraxel.org/fbida
make
make install
Works out of the box with i915 loaded with modeset=1

Url to homepage
http://www.kraxel.org/blog/linux/fbida/

Best Regards
Chris

Awesome! Thanks for that tip. I saw my first console buffer jpg of a picture of wontons! Fbi works great and is easy to remember due to its similarity to the other FBI. Guess seejpeg doesnt work on my machine. I did try some image editing as well with ImageMagick, did composite overlapping and viewing with fbi, and found the mime settings in another thread to set fbi for elinks, so now can see images directly from elinks. Interested also in Links2. Havent installed yet.

Didier Spaier 05-08-2011 05:07 AM

FYI, slackbuild.org host a slackbuild for fbida.


All times are GMT -5. The time now is 06:02 AM.