Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KMS doesn't seem to kick in until after init starts
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
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sat Mar 27, 2010 5:54 pm    Post subject: KMS doesn't seem to kick in until after init starts Reply with quote

Or it doesn't set the mode to the correct resolution until after init/udev gets going. I see the 80x25 text console until that time. How can I get KMS to set the mode earlier?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Mar 27, 2010 6:13 pm    Post subject: Reply with quote

If your video card is compiled as a module, that's probably
what causes your "problem".
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Mar 28, 2010 11:48 am    Post subject: Reply with quote

You could (maybe) partially work around it by preloading the module in an initramfs :?:
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sun Mar 28, 2010 3:08 pm    Post subject: Reply with quote

Rexilion wrote:
You could (maybe) partially work around it by preloading the module in an initramfs :?:

I'll try that. I did try compiling it into the kernel directly, but that resulted in a lock up at boot.
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 311

PostPosted: Mon Mar 29, 2010 2:19 pm    Post subject: Reply with quote

If you use the nouveau driver in kernel 2.6.33, you need put some firmware blob to initramfs.
Or just waiting for 2.6.34.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Mar 29, 2010 3:20 pm    Post subject: Reply with quote

That's also the problem it hanged during start. You probably need to build the firmware *inside* the kernel.

EDIT: Discard this post, I read over it :oops: :oops: :oops:


Last edited by Rexilion on Mon Mar 29, 2010 6:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Mon Mar 29, 2010 5:52 pm    Post subject: Reply with quote

widremann wrote:
I'll try that. I did try compiling it into the kernel directly, but that resulted in a lock up at boot.
Yeah, that's your problem. The kernel can only run code that's loaded into it, either by compiling directly into the kernel, or by loading it as a module. If you go the module route, you won't get KMS until your userspace tools (udev, modprobe and friends) load it. I'm no expert at initramfs, but I believe initramfs won't make a difference - there still needs to be some sort of event that would make your kernel decide it needs to load and initialize the module. For a video card driver with an already running VGA console, that won't happen until udev tells your kernel to load the driver.

Out of curiosity, what's your setup? KMS works flawlessly with my intel card.
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