Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel KMS + fbsplash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Thu Apr 01, 2010 4:34 pm    Post subject: Intel KMS + fbsplash Reply with quote

hey there,

I'm currently using xf86-video-intel-2.10.0 drivers from portage and have enabled KMS in kernel.

Code:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_VGASTATE is not set
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y


I have also enabled initrd support:

Code:

CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""


I have created an initramfs image for my resolution and added the following lines to my grub.conf:

Code:

title Gentoo Linux 2.6.33
root (hd0,0)
kernel /boot/kernel-2.6.33-gentoo root=/dev/sda4 rootfstype=ext4 video=1440x900@50 elevator=noop i915.modeset=1 splash=silent,fadein,theme:natural_gentoo console=tty1
initrd /boot/splash/initrd-spl-natural_gentoo-all


However, the splash is not displayed right after grub, but later when fbcondecor is started. I have tried different themes... What do I have to enable or configure to display the splash right after grub?

Thanks in advance,
trilexx
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1024

PostPosted: Thu Apr 01, 2010 4:58 pm    Post subject: Reply with quote

Do you have all the theme files inside the initramfs?
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Thu Apr 01, 2010 5:14 pm    Post subject: Reply with quote

Hello Rexilion,

I have used

Code:
splash_geninitramfs


so I think yes? Does this script sometimes create corrupt initrds?

trilexx
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1024

PostPosted: Thu Apr 01, 2010 5:59 pm    Post subject: Reply with quote

trilexx wrote:
Hello Rexilion,

I have used

Code:
splash_geninitramfs


so I think yes? Does this script sometimes create corrupt initrds?

trilexx


No, I thought in case you have created your own initramfs you might have forgotten to insert the themes (I made that mistake too and it took ages to find what was causing it :P ).

My second guess would be:

- add quiet to your kernel grub.conf line

and

- change console=tty1 to CONSOLE=tty1 (this makes a difference if I'm not mistaken)

Good luck!
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Sat Apr 03, 2010 10:51 am    Post subject: Reply with quote

hey,

CONSOLE and quiet did change something. It now suppresses some information and switches to the right resolution immediately. So thanks for that :) However, I still do not get the splash...

trilexx
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
v_andal
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 219
Location: Germany

PostPosted: Sat Apr 10, 2010 8:36 pm    Post subject: Reply with quote

As far as I know, splash does not work with KMS.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sun Apr 11, 2010 5:56 am    Post subject: Reply with quote

v_andal wrote:
As far as I know, splash does not work with KMS.


working fine here, though like the original poster mine does not start immediately after grub

This is about the best I ended up doing

Code:

# cat /proc/cmdline
root=/dev/sda3 splash=silent,theme:natural_gentoo console=tty1 rootfstype=ext4 quiet


I get my usual natural_gentoo splash, same as I did when I used FB and no KMS
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Sun Apr 11, 2010 2:36 pm    Post subject: Reply with quote

v_andal wrote:
As far as I know, splash does not work with KMS.


Taken from the official fbsplash faq (http://fbsplash.berlios.de/wiki/doku.php?id=docs:faq):

Quote:

Can fbsplash be used with KMS (Kernel Mode Setting)?

Absolutely! KMS provides a standard framebuffer device which allows fbsplash to operate in the usual fashion. In the case of Intel hardware, the framebuffer driver is called inteldrmfb, and is provided by the Intel DRM module, not by intelfb. In fact, you don't even need to have intelfb enabled if you're using KMS. This also means that in case you want to take advantage of the early silent splash feature (this requires the fbcondecor kernel patch), you need to have the Intel DRM module built into the kernel.


I do get the splash, but not right after grub...
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
v_andal
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 219
Location: Germany

PostPosted: Mon Apr 12, 2010 12:52 pm    Post subject: Reply with quote

Good news. Then I'll try to enable it on my system. Last time when I've tried to do it I was told that it won't work and it didn't :)
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1024

PostPosted: Mon Apr 12, 2010 2:38 pm    Post subject: Reply with quote

trilexx wrote:
I do get the splash, but not right after grub...


Hmm, right after grub is not possible now I think of it. You need to give the kernel at least a small moment to explore the available hardware :wink: . However, perhaps something is possible with grub2? It's the next version of grub with also supports framebuffers. It won't support fbsplash, but might accelerate the fbsplash start if you use it.
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Mon Apr 12, 2010 3:34 pm    Post subject: Reply with quote

Well, I get the splash when fbcondecor starts... using a initramfs it should appear earlier...
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
v_andal
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 219
Location: Germany

PostPosted: Sat Apr 17, 2010 7:54 am    Post subject: Reply with quote

I was able to get it almost right after the grub. There's still short moment (less than a second) when the messages appear in low resolution, but then the correct resolution is set and the splash is loaded. In order to get this I had to compile the intel driver into the kernel (not as module) and make sure that initram contains the configuration for exactly this resolution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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