View previous topic :: View next topic |
Author |
Message |
japtar10101 Tux's lil' helper
Joined: 12 Apr 2009 Posts: 103
|
Posted: Sun May 24, 2009 3:16 am Post subject: Getting fbsplash to work |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sun May 24, 2009 9:35 pm Post subject: |
|
|
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 |
|
|
japtar10101 Tux's lil' helper
Joined: 12 Apr 2009 Posts: 103
|
Posted: Sun May 24, 2009 11:01 pm Post subject: |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sun May 24, 2009 11:37 pm Post subject: |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Mon May 25, 2009 3:04 am Post subject: |
|
|
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 |
|
|
japtar10101 Tux's lil' helper
Joined: 12 Apr 2009 Posts: 103
|
Posted: Thu May 28, 2009 12:52 am Post subject: |
|
|
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 |
|
|
japtar10101 Tux's lil' helper
Joined: 12 Apr 2009 Posts: 103
|
Posted: Fri May 29, 2009 10:46 pm Post subject: |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Fri May 29, 2009 11:09 pm Post subject: |
|
|
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 |
|
|
|