April 05, 2009

Framebuffer

My system is working, let's play with it. First: the framebuffer.

Here are the steps I followed to get it to work:
  1. Configure your kernel to hoave both uvesafb and viafb built in the kernel.
  2. emerge v86d
  3. Append video=uvesafb:1200x800-24,mtrr:3,ywrap to your kernel line in /boot/grub/grub.conf
  4. To install splash screen, do an emerge ">=media-gfx/splash-themes-gentoo-20090324" splashutils
  5. Generate the initrd: splash_geninitramfs -g /boot/fbsplash-natural_gentoo-1280x800 -r 1280x800 natural_gentoo
  6. Append splash=silent,fadein,theme:natural_gentoo console=tty1 to your kernel line in /boot/grub/grub.conf
Along with that, I discovered that the theme natural_gentoo had also a grub splash screen. To install it, go to the fbsplash website and download the archive for natural_gentoo. You will find a gentoo.xpm.gz file. Copy it in /boot/grub/ and change/add this line to your grub.conf: splashimage=(hd0,X)/grub/gentoo.xpm.gz. Now your have a new theme for your grub!

By the way, if you want to be able to use your trackpad in terminals, do this:
  1. rc-update add gpm default
  2. /etc/init.d/gpm start