Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

The Gentoo Framebuffer, Bootsplash & Grubsplash How-To

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
670 posts
  • Page 2 of 27
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 27
  • Next
Author
Message
darth
n00b
n00b
Posts: 3
Joined: Thu Apr 17, 2003 12:36 pm

Possible solution to missing /proc/splash

  • Quote

Post by darth » Sat Apr 26, 2003 10:35 pm

For all those people who couldn't get /proc/splash, I had the same problem at first then it dawned on me somehow to check if I am actually setting the right mode. And I wasn't!?

I checked this by doing:

Code: Select all

[18:17](darth@dagobah): dmesg| grep vesa                                                                                                                  
Kernel command line: root=/dev/hdb3 video=vesa:ywrap,mtrr vga=0x318
vesafb: framebuffer at 0xd0000000, mapped to 0xe0800000, size 32768k
vesafb: mode is 1024x768x32, linelength=2048, pages=0
...
Then I saw the "x32" and I said WTF? (really loud) So I looked at the mode table again *closely* and when I realized what I did I slapped my self on the forehead and put in 0x317 which gave me what I needed:

Code: Select all

[18:17](darth@dagobah): dmesg| grep vesa                                                                                                                  
Kernel command line: root=/dev/hdb3 video=vesa:ywrap,mtrr vga=0x317
vesafb: framebuffer at 0xd0000000, mapped to 0xe0800000, size 32768k
vesafb: mode is 1024x768x16, linelength=2048, pages=0
...
And the splash loaded...

In my haste to get the glorious bootsplash I incorrectly managed to see 16M as 16 bit (instead of 16 Million colors), duh?

It all works properly at 16 BIT so check if that might be your problem too! Bootsplash does not currently work at 32 bit yet so it will never load if you are at 32, or 8, or 24.

Cheers!

-D

PS - This was all done with gentoo-sources r3 which is already patched so all I had to do was emerge bootsplash, create the initrd and add it to the boot sequence.
Top
mojo
n00b
n00b
User avatar
Posts: 47
Joined: Thu Nov 21, 2002 7:47 pm
Location: Heidelberg, Germany

  • Quote

Post by mojo » Sat Apr 26, 2003 11:07 pm

when you are interested in a working progressbar keep an eye on this topic and its posts:

http://forums.gentoo.org/viewtopic.php?t=47612

maybe they will soon have a solution for the problem :)
Top
katharsis
n00b
n00b
Posts: 6
Joined: Tue Apr 22, 2003 3:23 am

  • Quote

Post by katharsis » Sun Apr 27, 2003 3:36 am

Well, you wanted screenshots, here's mine:

http://www.geoshock.com/console.png

Thanks for the help :)
Top
simcop2387
Apprentice
Apprentice
Posts: 200
Joined: Wed Aug 14, 2002 10:06 pm
Location: Galactic Sector ZZ9 Plural Z Alpha

Re: Possible solution to missing /proc/splash

  • Quote

Post by simcop2387 » Sun Apr 27, 2003 12:30 pm

darth wrote:For all those people who couldn't get /proc/splash, I had the same problem at first then it dawned on me somehow to check if I am actually setting the right mode. And I wasn't!?
...
It all works properly at 16 BIT so check if that might be your problem too! Bootsplash does not currently work at 32 bit yet so it will never load if you are at 32, or 8, or 24.
THANK YOU i've been trying to figure this out myself, never realized that it doesn't work at 16 bit, i'll have to go and patch everything up so that it'll work at 32bit eventually, if i can figure it out that is....
Top
mojo
n00b
n00b
User avatar
Posts: 47
Joined: Thu Nov 21, 2002 7:47 pm
Location: Heidelberg, Germany

  • Quote

Post by mojo » Sun Apr 27, 2003 2:51 pm

So guys this is for everyone who wants to have a progressbar at boottime

D-e-e wrote:

Code: Select all

I added the following into the function eend in the file /sbin/functions.sh.
Code:

if [ "${BOOT}" = "yes" ] && [ -z "${EBUILD}" -a -w /proc/splash ] && [ -s /dev/shm/ ]
    then
        if ! [ -e /dev/shm/progress_bar_counter ] ; then echo 0 > /dev/shm/progress_bar_counter ; fi
        NEW_VALUE=$(( `cat /dev/shm/progress_bar_counter` + 2849 ))
        echo "$NEW_VALUE" > /dev/shm/progress_bar_counter
        echo "show $NEW_VALUE" > /proc/splash
fi

Place the above code at the begining of the eend(){} function, so that it executes before the rest of the function does.

I came up with the number "2849" by adding the number of scripts that were called after the shared memory (/dev/shm) was mounted, added one to that number, and divided 65536 by it. Eg. 65536/(number_of_scripts + 1).

With this additon the progress bar animates smoothly without any hitches. Must have the following code in your fstab to mount /dev/shm
Code:
none                    /dev/shm        tmpfs           defaults               0 0

This code will only move the progress bar during BOOT. 

you must do one change to the bootsplash init script to export the correct bootslpash image to console 2-5 and not the silent bootsplash:

Code: Select all

you will find in the start subsection in /etc/init.d/bootsplash this line:
 /sbin/splash -s -u $TTY /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg

you have only to add a "-n" (without the "") after $TTY:

/sbin/splash -s -u $TTY -n /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
Top
bcore
n00b
n00b
User avatar
Posts: 59
Joined: Wed Apr 09, 2003 1:51 am
Location: Toronto

  • Quote

Post by bcore » Sun Apr 27, 2003 6:25 pm

fyi: The code in step #10 of the instructions has a typo (bootplash instead of bootsplash)

:)
MR DOWNY: BISCUIT BRAAAAAAAAAAA
YUO: LOL!!!!!
Top
danb
n00b
n00b
Posts: 9
Joined: Sun Apr 27, 2003 8:58 pm
Location: Austin, TX
Contact:
Contact danb
Website

  • Quote

Post by danb » Sun Apr 27, 2003 9:26 pm

here is a little visual inspiration from last xmas break when i was playing around with framebuffer a bit:

http://www.cs.utexas.edu/~danb/screenshots/fb1.png
http://www.cs.utexas.edu/~danb/screenshots/fb2.png
http://www.cs.utexas.edu/~danb/screenshots/fb3.png
http://www.cs.utexas.edu/~danb/screenshots/fb4.png
http://www.cs.utexas.edu/~danb/screenshots/fb5.png
http://www.cs.utexas.edu/~danb/screenshots/fb6.png
http://www.cs.utexas.edu/~danb/screenshots/fb7.png
http://www.cs.utexas.edu/~danb/screenshots/fb8.png

to achieve the cool feathered dark box thing, i used the gimp to create a completely black image and a simple mask (the cool feathered box thing), and then used composite (from imagemagick) in combination with an image of my choice to apply the blackness to the chosen image, masked through the mask

if you want to play with the idea:
http://www.cs.utexas.edu/~danb/splash/black.bmp
http://www.cs.utexas.edu/~danb/splash/mask.bmp
http://www.cs.utexas.edu/~danb/splash/create

enjoy :)

...and dont be an ass; leave my aim friends alone :P
Last edited by danb on Thu May 13, 2004 8:12 pm, edited 2 times in total.
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Mon Apr 28, 2003 3:40 pm

I've got it working, now I can see I'm going to spend hours and hours looking for the perfect splash image to use. Lovely!

Actually, this was fairly painless, the painful part of my latest kernel modifications was that ACPI breaks networking in 2.4.20 for some reason. I'm sure it was fine in 2.4.19... ah well.

Excellent instructions.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
scocou
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Fri Aug 16, 2002 7:58 am
Location: Pacific NW, Canada

  • Quote

Post by scocou » Mon Apr 28, 2003 11:35 pm

Works great! I might add that scroll-back buffering DOES work <shift+PgUp> as expected (not to be contrary ;) ). I think links looks beautiful using the fb driver, as well as lynx on the console... here's a few pics; http://members.shaw.ca/sbc/pics
Top
jondkent
Apprentice
Apprentice
User avatar
Posts: 289
Joined: Fri Jul 26, 2002 12:13 pm
Location: London

  • Quote

Post by jondkent » Tue Apr 29, 2003 8:34 am

Got it working fine with the latest XFS kernel, no patching required either for that kernel btw :D

grub config is:

Code: Select all

kernel /boot/bzImage root=/dev/hda4 video=mtrr,vesa:1024x768 vga=0x317
Gonna play around with frame buffer apps when I get a minute

Cheers for the howto
Top
moonclimber
n00b
n00b
Posts: 24
Joined: Tue Feb 25, 2003 4:53 am
Location: NUPT NanJing China

  • Quote

Post by moonclimber » Tue Apr 29, 2003 2:39 pm

I am using lilo not grub, and I config my lilo.conf like this:

vga=0x317

image=/boot/my_kernel
append="video=vesa:1024x768@85"
.....

But in console mode , it seems useless for screen refreshing :(
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Tue Apr 29, 2003 4:12 pm

Got me a screenshot (not guaranteed to stay up for very long)

http://www.alledora.co.uk/images/fb0.jpg

Picture's from when I was playing with my camera in the park the other day.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
zenzei
n00b
n00b
Posts: 3
Joined: Mon Mar 24, 2003 11:19 am

Re: The Gentoo Framebuffer, Bootsplash & Grubsplash How-

  • Quote

Post by zenzei » Tue Apr 29, 2003 4:15 pm

Narada wrote: Trivia: Mplayer on framebuffer: Try 'emerge mplayer' and then 'mplayer -vo svga <filename>'. Have you managed to get mplayer working under framebuffer? If so, post details!
Lo all!

I use mplayer on my fbdev without any problems, and it looks very well! I use it on my laptop to watch movies, so the 60Hz problem isnt important for my LCD.

This is my commandline

Code: Select all

mplayer -ao alsa9 -sws 2 -autoq 100 -vo fbdev -zoom -fs -vop scale -xy 1024 some_video_file.avi 
important parameters:

-ao _whatever_your_sound_device_is(try help) and -vo fbdev

the rest is just for scaling fullscreen with good quality.
Ah! If possible (beware: doesnt work with bootsplash!) set your fb to 24bits, for better colors whenever you are watching a movie. (vga=792 for 1024x768x24bits)

My USE flags for my mplayer are:

[ebuild R ] media-video/mplayer-0.90_rc5 +dga +oss +jpeg -3dfx +sse -matrox +sdl +X +svga +ggi +oggvorbis +3dnow +aalib +gnome +xv +opengl +truetype +dvd +gtk +gif +esd +fbcon +encode +alsa +directfb +arts

you probably only need the fbcon directfb and your_sound_device flags for it to work. (plus anything you want - sse and 3dnow are nice for speeding up!)

Also, take note that I'm using 2.5.68 (tried and worked with 66-67 also); the latest kernels (2.5.XX, specially the 66,67,68) have a LOT of updates in the framebuffer area (check kernel.org changelogs); right now I can switch X to fbdev to X to fbdev+mplayer, fbdev+links, etc etc without any glitch. (and my external monitor is autodetected) - no luck with refresh rates yet though.

Greetings

Martin.
Top
iwasbiggs
Apprentice
Apprentice
Posts: 203
Joined: Fri Jan 17, 2003 9:24 am

  • Quote

Post by iwasbiggs » Wed Apr 30, 2003 1:35 am

Working in relatively minimal time. Thank you Neko K for that bugzilla link!! Without it I wouldn't have figured out the framebuffer problem!

No progress bar, but no big deal!

1 gig+ ram
msi geforce 4200ti
vanilla 2.40.20
www.ruinedsoft.com
Freeware development.
Top
TheEternalVortex
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Tue Oct 15, 2002 6:38 am
Location: San Jose, CA
Contact:
Contact TheEternalVortex
Website

  • Quote

Post by TheEternalVortex » Thu May 01, 2003 1:14 am

I finally had time to play around with it :), and I think it's not too bad at all.
-- Andy
Top
FormerSlacker
Guru
Guru
User avatar
Posts: 340
Joined: Tue Mar 11, 2003 3:03 am
Location: Toronto, ON. Canada
Contact:
Contact FormerSlacker
Website

Yet another sucess story :)

  • Quote

Post by FormerSlacker » Thu May 01, 2003 10:33 pm

Great article Narada! Followed it and low and behold, it works. I'm using kernel 2.4.20-gaming-r2.

Here are some screens of my configuration here and here.

Just one quirk, you list the command to create the initrd file as:

Code: Select all

/sbin/splash -s -f /etc/bootsplash/default/config/bootsplash-1280x1024.cfg > /boot/initrd-1280x1024
However, in your example grub.conf file, you give the root path for the initrd file.

Code: Select all

initrd=/initrd-1280x1024 
But following your splash example, it should be...

Code: Select all

initrd=/boot/initrd-1280x1024 
I had some problems myself until I added boot, then it all magicly worked :D
Top
Jimbow
Guru
Guru
User avatar
Posts: 597
Joined: Tue Feb 18, 2003 11:41 pm
Location: Silver City, NM

  • Quote

Post by Jimbow » Thu May 01, 2003 10:41 pm

It all depends on whether or not /boot is on a separate partition (and whether it was mounted when initrd was created :) ).
After Perl everything else is just assembly language.
Top
FormerSlacker
Guru
Guru
User avatar
Posts: 340
Joined: Tue Mar 11, 2003 3:03 am
Location: Toronto, ON. Canada
Contact:
Contact FormerSlacker
Website

  • Quote

Post by FormerSlacker » Thu May 01, 2003 10:45 pm

Jimbow wrote:It all depends on whether or not /boot is on a separate partition (and whether it was mounted when initrd was created :) ).
Good point :o
Top
coolvibe
n00b
n00b
Posts: 7
Joined: Fri May 02, 2003 1:34 am
Location: The Netherlands
Contact:
Contact coolvibe
Website

Another success story :)

  • Quote

Post by coolvibe » Fri May 02, 2003 1:37 am

This is indeed pretty cool...

Here's a dump of my console:

http://www.hackerheaven.org/screenshots/console.png

It's just the default 1024x786 config, supplied by the ebuild, I just replaced the image. Nothing fancy. I like this backdrop because it's nice and dark, and white text displays well on this.
dash dash space
Top
scosol
n00b
n00b
Posts: 6
Joined: Tue Dec 10, 2002 7:55 am
Location: San Jose, CA
Contact:
Contact scosol
Website

  • Quote

Post by scosol » Fri May 02, 2003 5:19 am

Werx for me- on a Fujitsu P2040:
http://www.thedenofsin.org/projects/msg ... e.jpg/view
Top
Jimbow
Guru
Guru
User avatar
Posts: 597
Joined: Tue Feb 18, 2003 11:41 pm
Location: Silver City, NM

  • Quote

Post by Jimbow » Fri May 02, 2003 6:33 am

I had something funny happen with the splash program. I was using it a lot to test out and edit bootsplash config files. After a while it started sending output to the screen each time it was run. I could not redirect this output to /dev/null, it seems it wasn't on stdout or stderr. After a reboot (laptop), it went back to silent mode.
After Perl everything else is just assembly language.
Top
beejay
Retired Dev
Retired Dev
User avatar
Posts: 924
Joined: Thu Oct 03, 2002 3:58 pm
Location: Flensungen (das liegt neben Merlau)
Contact:
Contact beejay
Website

Great but...

  • Quote

Post by beejay » Fri May 02, 2003 9:54 am

...you can't work with this flickering Picture. :oops:

But no matter what - here is mine :

http://www.judas-merlau.de/benni/screenshots/fb.png

Just default, just a test. :wink:

But Thanks Narada for this guide
Dort wo schwarzer Rauch aufsteigt, sich alsbald ein Fehler zeigt.
www.paludis-sucks.org | www.gentoo.de | www.gentoo-ev.org | www.gentoo.org
Top
moixa
n00b
n00b
Posts: 20
Joined: Fri May 02, 2003 1:37 pm
Contact:
Contact moixa
Website

This is cool!

  • Quote

Post by moixa » Fri May 02, 2003 1:40 pm

And works very nice for me.

Kernel xfs-sources-r3 does have the patch already included too.
Top
blscreen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Tue Mar 04, 2003 7:49 pm
Location: Innsbruck

  • Quote

Post by blscreen » Fri May 02, 2003 2:30 pm

It took me a while to get the point that this will only work with a 16 bpp framebuffer. With other colordepths /proc/splash will not appear => no bootsplash.
It is possible to use a framebuffer driver for specific hardware and to get nice refreshrates like 75 Hz, but for some reasons this seems not to work with matroxfb and initrd. When I try to boot into a 16 bpp framebuffer + initrd, the boot process just stops after displaying the kernel comandline parameters.... strange
Without initrd everything is fine, I can set the picture after booting with splash.
Top
uziel
n00b
n00b
User avatar
Posts: 32
Joined: Fri Feb 14, 2003 9:07 am

Thanks!

  • Quote

Post by uziel » Fri May 02, 2003 2:51 pm

Framebuffer erotica! Up and running in no time, kernel update was due anyway...
Thanks a lot for that howto!

Sincerely
Chris
Those who promise their way of freedom and peace still do not understand the meaning of the word...
Top
Post Reply

670 posts
  • Page 2 of 27
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 27
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy