Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting fbsplash to work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
japtar10101
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2009
Posts: 103

PostPosted: Sun May 24, 2009 3:16 am    Post subject: Getting fbsplash to work Reply with quote

I've used this guide to install and setup fbsplash:
http://en.gentoo-wiki.com/wiki/Fbsplash

Unforutnately, I'm stuck at:
Code:
splash_geninitramfs --verbose --res NxN --generate /boot/initramfs-bootsplash theme

Because, surprise, splash_geninitramfs doesn't exist. What exists are:
Code:
splash_util
splash_manager
splashy2fbsplash.py 
splash_resize

Am I supposed to use any of these to generate a splash? Or do I really have to install splash_geninitramfs, and if so, how (emerge splash_geninitramfs?).

Additionally, I have grub.conf set as follows:
Code:
default 0
timeout 60
splashimage=(hd0,2)/boot/grub/grub-splash-wide.xpm.gz

title Gentoo Linux 2.6.28-r5 Version 3
root (hd0,2)
kernel /boot/kernel-2.6.28-gentoo-r5-ver3 root=/dev/sdb6 video=vesafb:1400x900-32,ywrap splash=silent,fadein,theme:natural_gentoo console=tty1

Is this fine?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Sun May 24, 2009 9:35 pm    Post subject: Reply with quote

I have splash_geninitramfs on my system in the /usr/sbin directory. If that directory is not in your $PATH then just use the absolute path to the executable.. It was part of the media-gfx/splashutils package. I'm using version 1.5.4.2 with these USE flags: fbcondecor gpm mng png truetype.
Back to top
View user's profile Send private message
japtar10101
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2009
Posts: 103

PostPosted: Sun May 24, 2009 11:01 pm    Post subject: Reply with quote

BitJam wrote:
I have splash_geninitramfs on my system in the /usr/sbin directory. If that directory is not in your $PATH then just use the absolute path to the executable.. It was part of the media-gfx/splashutils package. I'm using version 1.5.4.2 with these USE flags: fbcondecor gpm mng png truetype.
Oh, hey there it is.
So, I've manaeged to create a splash image:
Code:
$ sudo /usr/sbin/splash_geninitramfs --verbose --res 1440x900 --generate /boot/initramfs-bootsplash natural_gentoo
o Creating directory structure..
o Copying //sbin/fbcondecor_helper..
o Copying themes..
  - natural_gentoo
o Creating initramfs image..
But the theme fails to load, according to the terminal output. More interesting is where splash_manager fails:
Code:
sudo splash_manager --theme=natural_gentoo --cmd=set --tty=1
Can't open /dev/fb0 or /dev/fb/0
Error: Theme 'natural_gentoo' doesn't seem to provide a config file for the current resolution ().
What can I do to fix this?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Sun May 24, 2009 11:37 pm    Post subject: Reply with quote

Definitely get splash_manager to work before you work on the initramfs stuff.

I've got my own script to manually set the console background:
Code:
#!/bin/bash

spl_decor=/sbin/fbcondecor_ctl.static

case $# in
    1 ) term=$(fgconsole); theme="$1";;
    2 ) term="$1"; theme="$2";;

    * ) echo "usage: splash_term [1-6] theme"
        echo "Sets the fbsplash theme on specified vconsole or current one."
        echo "themes:"
        ls /etc/splash
        exit
esac
echo "term=$term  theme=$theme"

${spl_decor} --tty="${term}" -t "${theme}" -c setcfg
${spl_decor} --tty="${term}" -t "${theme}" -c setpic
${spl_decor} --tty="${term}" -c on

#fbcondecor_set_theme "$theme" "$term"

#/sbin/splash_util --tty=$term -m v -t "$theme" -c setcfg
#/sbin/splash_util --tty=$term -m v -t "$theme" -c setpic
#/sbin/splash_util --tty=$term -c on

For some reason, Spock keeps changing the UI so I just have to change this one script once instead of learn a new UI each time.

I use the following kernel options in my grub.conf to get the console backgrounds to work:
Code:
console=tty1 video=vesafb vga=0x31a fbcon=scrollback:64k

I don't think the scrollback option is required. The 0x31a sets my resolution to 1280x1024. I've also used 0x317 which set the resolution to 1024x768.

The error message you got indicates that there is no config file for the theme you chose for the resolution your console is at. The themes should be under /etc/splash. So:
Code:
$ ls /etc/splash/natural_gentoo
 1024x768.cfg  1280x1024.cfg  1280x800.cfg  1440x900.cfg  1600x1200.cfg  1680x1050.cfg  800x600.cfg  images/

shows that I have config files for the natural_gentoo theme at many different resolutions. I've confirmed that I can use the natural_gentoo theme at 1280x1024. That config file is part of the media-gfx/splash-themes-gentoo-20080914 package. Perhaps all you need to do is emerge this package (if you haven't done so already).

HTH
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Mon May 25, 2009 3:04 am    Post subject: Reply with quote

Also, make sure that dev/fb* exists. On my system:
Code:
$ ls /dev/fb*
/dev/fb@  /dev/fb0  /dev/fbcondecor

If the device does not exist, the problem lies in your kernel config or in the parameters you send to the kernel at boot-time, usually in /boot/grub/grub.conf.
Back to top
View user's profile Send private message
japtar10101
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2009
Posts: 103

PostPosted: Thu May 28, 2009 12:52 am    Post subject: Reply with quote

BitJam wrote:
Also, make sure that dev/fb* exists. On my system:
Code:
$ ls /dev/fb*
/dev/fb@  /dev/fb0  /dev/fbcondecor

If the device does not exist, the problem lies in your kernel config or in the parameters you send to the kernel at boot-time, usually in /boot/grub/grub.conf.
I just noticed there was more to that wiki page, including the fact that I was supposed to set a directory for initramfs. Will get back later when I bump into trouble again.
Back to top
View user's profile Send private message
japtar10101
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2009
Posts: 103

PostPosted: Fri May 29, 2009 10:46 pm    Post subject: Reply with quote

japtar10101 wrote:
BitJam wrote:
Also, make sure that dev/fb* exists. On my system:
Code:
$ ls /dev/fb*
/dev/fb@  /dev/fb0  /dev/fbcondecor

If the device does not exist, the problem lies in your kernel config or in the parameters you send to the kernel at boot-time, usually in /boot/grub/grub.conf.
I just noticed there was more to that wiki page, including the fact that I was supposed to set a directory for initramfs. Will get back later when I bump into trouble again.
dev/fb* still doesn't exist. I was following these instructions: http://en.gentoo-wiki.com/wiki/Initramfs#Kernel_Configuration
Am I missing something?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri May 29, 2009 11:09 pm    Post subject: Reply with quote

The /dev/fb* devices are for the framebuffer and have nothing directly to do with initramfs. In other words, you can use initramfs with or without the framebuffer and you can use the framebuffer either with or without initramfs.

You probably want to search for "Gentoo Framebuffer" to get instructions for enabling the framebuffer. On my system with a linux-2.6.28-gentoo-r5 kernel, I've enabled the following framebuffer options:
Code:
$ grep -i fb .config | grep ^C
CONFIG_FB=y
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y
CONFIG_FB_CON_DECOR=y
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum