View previous topic :: View next topic |
Author |
Message |
widremann Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Sat Mar 27, 2010 5:54 pm Post subject: KMS doesn't seem to kick in until after init starts |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
VoidMage Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/16259984764821973534cdc.gif)
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Mar 27, 2010 6:13 pm Post subject: |
|
|
If your video card is compiled as a module, that's probably
what causes your "problem". |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rexilion Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/13156532244b6fe587ac03b.jpg)
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Sun Mar 28, 2010 11:48 am Post subject: |
|
|
You could (maybe) partially work around it by preloading the module in an initramfs ![Question :?:](images/smiles/icon_question.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
widremann Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Sun Mar 28, 2010 3:08 pm Post subject: |
|
|
Rexilion wrote: | You could (maybe) partially work around it by preloading the module in an initramfs ![Question :?:](images/smiles/icon_question.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
s4e8 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Jul 2006 Posts: 311
|
Posted: Mon Mar 29, 2010 2:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Rexilion Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/13156532244b6fe587ac03b.jpg)
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Mon Mar 29, 2010 3:20 pm Post subject: |
|
|
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 ![Embarassed :oops:](images/smiles/icon_redface.gif)
Last edited by Rexilion on Mon Mar 29, 2010 6:56 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pigeon768 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 02 Jan 2006 Posts: 683
|
Posted: Mon Mar 29, 2010 5:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|