LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2012, 01:36 PM   #16
0mani
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled

Quote:
Originally Posted by adamk75 View Post
You won't be able to get KMS working "straight from the lilo getgo." KMS is part of the linux kernel and lilo launches before the kernel. If you build KMS into the kernel, however, you can get it to load within the first few seconds of the kernel loading.

Adam
Ok, I see.

So you saying I'm forced to use vesa at 1024x768 from the lilo getgo? Or is there a way?

The way I figured it was that when lilo starts, and i hit enter to load the kernel, it loads said kernel, and in turn would load any drivers and framebuffers I have installed. I guess i am missing some thing fundamental here.

Last edited by 0mani; 03-30-2012 at 01:40 PM.
 
Old 03-30-2012, 02:46 PM   #17
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by 0mani View Post
Ok, I see.

So you saying I'm forced to use vesa at 1024x768 from the lilo getgo? Or is there a way?

The way I figured it was that when lilo starts, and i hit enter to load the kernel, it loads said kernel, and in turn would load any drivers and framebuffers I have installed. I guess i am missing some thing fundamental here.
No, you pretty much understand it. But when you say "from the lilo getgo" I assume you mean you want lilo at that resolution. Since that's before the kernel loads, the kernel drivers have no control over the resolution when lilo is on the screen.

If you don't want the kernel to switch to the vesa framebuffer console before then switching to the inteldrmfb console, and you want the inteldrmfb console to start right away, you will either need to add the intel DRM driver to an initrd (as well as any firmware that the DRM code depends on) or you will need to compile the intel DRM driver into the kernel.

Adam
 
Old 03-30-2012, 02:58 PM   #18
0mani
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by adamk75 View Post
No, you pretty much understand it. But when you say "from the lilo getgo" I assume you mean you want lilo at that resolution. Since that's before the kernel loads, the kernel drivers have no control over the resolution when lilo is on the screen.

If you don't want the kernel to switch to the vesa framebuffer console before then switching to the inteldrmfb console, and you want the inteldrmfb console to start right away, you will either need to add the intel DRM driver to an initrd (as well as any firmware that the DRM code depends on) or you will need to compile the intel DRM driver into the kernel.

Adam
I don't want 1366x768 at the lilo prompt, but rather after the kernel has been loaded by lilo.
I have compiled DRM driver in to the kernel, when lilo has loaded the kernel, a few lines fly by (at 800x600) and then DRM driver kicks in (1366x768). This is what im trying to fix, the lilo resolution support, as it seems to be using vesa still, after the kernel has loaded.
Maybe there is some kind of kernel driver initialisation priority (even if there is no module, it's built in)?

This is a Intel i5 M2430 Sandy Bridge. I can't seem to wrap my head around this. All I want is the kernel to kick in DRM right after I have loaded it via lilo.

Last edited by 0mani; 03-30-2012 at 03:01 PM.
 
Old 03-30-2012, 03:45 PM   #19
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
The intel DRM fb console should kick in within seconds of the kernel loading. On my laptop, with the intel DRM compiled in and KMS enabled, you can see that the kernel is switching to the intel DRM framebuffer console between 1 and 2 seconds after the kernel loads:

Code:
[    1.354396] fbcon: inteldrmfb (fb0) is primary device
[    1.355265] [drm] Changing LVDS panel from (+hsync, -vsync) to (-hsync, +vsync)
[    1.957129] fb0: inteldrmfb frame buffer device
[    1.957131] drm: registered panic notifier
[    2.000370] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
I doubt very much you can get it to switch faster than that. What does your dmesg show?

Adam
 
Old 03-30-2012, 04:04 PM   #20
0mani
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by adamk75 View Post
The intel DRM fb console should kick in within seconds of the kernel loading. On my laptop, with the intel DRM compiled in and KMS enabled, you can see that the kernel is switching to the intel DRM framebuffer console between 1 and 2 seconds after the kernel loads:

Code:
[    1.354396] fbcon: inteldrmfb (fb0) is primary device
[    1.355265] [drm] Changing LVDS panel from (+hsync, -vsync) to (-hsync, +vsync)
[    1.957129] fb0: inteldrmfb frame buffer device
[    1.957131] drm: registered panic notifier
[    2.000370] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
I doubt very much you can get it to switch faster than that. What does your dmesg show?

Adam
Code:
[    1.459204] Linux agpgart interface v0.103
[    1.459327] agpgart-intel 0000:00:00.0: Intel Sandybridge Chipset
[    1.459463] agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
[    1.460506] agpgart-intel 0000:00:00.0: detected 65536K stolen memory
[    1.460730] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
[    1.460890] [drm] Initialized drm 1.1.0 20060810
[    1.460978] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.461058] i915 0000:00:02.0: setting latency timer to 64
[    1.477935] i915 0000:00:02.0: irq 41 for MSI/MSI-X
[    1.477939] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    1.478020] [drm] Driver supports precise vblank timestamp query.
[    1.478122] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    1.991767] fbcon: inteldrmfb (fb0) is primary device
[    2.023353] Refined TSC clocksource calibration: 2294.783 MHz.
[    2.023361] Switching to clocksource tsc
[    2.438501] Console: switching to colour frame buffer device 170x48
[    2.441468] fb0: inteldrmfb frame buffer device
[    2.441469] drm: registered panic notifier
[    2.451087] acpi device:33: registered as cooling_device0
[    2.451311] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input4
[    2.451358] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    2.451425] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

Last edited by 0mani; 03-30-2012 at 04:06 PM.
 
Old 03-30-2012, 04:10 PM   #21
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
So as you can see, the intel DRM framebuffer console kicks in around second 2.44. Seems perfectly normal and reasonable to me. I doubt there's much you could do to improve it as I'm not familiar with any method to force the kernel to load specific drivers first.

Adam
 
Old 03-30-2012, 04:18 PM   #22
0mani
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by adamk75 View Post
So as you can see, the intel DRM framebuffer console kicks in around second 2.44. Seems perfectly normal and reasonable to me. I doubt there's much you could do to improve it as I'm not familiar with any method to force the kernel to load specific drivers first.

Adam
Ok, well that cleared up a few things then. Thank you very much for your time Have a good one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to set video mode at boot user100 Slackware 10 10-15-2010 07:45 AM
Setting video mode on boot vs after?? coffeecoffee Linux - Newbie 3 10-08-2009 08:05 PM
Intel i810 video mode to use at boot prompt for high res video in Xwin will_kranz Linux - Newbie 0 02-17-2009 10:07 AM
Video mode boot message problem flowersrj Slackware 7 12-02-2006 05:52 PM
I want to boot my redhat8.0 in video mode,how to do it? prad Linux - General 11 12-12-2002 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration