Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-09-2013, 07:32 PM   #1
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
Kms: framebuffer change during boot

I really don't need help with this, although there probably is a better so im looking for advice as well this thread itself might help others altogether.

/* There could be an easier and cleaner fix although i have yet to understand why kms must load, had a look at kernel links to the module although no luck on making those modular themselves. */

With kernel mode settings being curial for many video cards i assume a lot of people are dealing with this as well. For people like me, that are annoyed that the bootup flashes and changes the fb to the kms fb upon loading the driver. I found what i think is the most reasonable fix. Essentially the modesetting will be done at the begging of the runlevel 4 start phase.

This could probably be also done with blacklisting and force loading of the module although i don't like the idea of force loading since there might be other reasons why a module should not be loaded ( conflict ? )

/* My video card is an intel although this should work for any other video card with respectful 'i915' sed's */

Primarily im booting with modesetting set to 0 and of course no vga fb, ( make sure to have no other frambuffer built into your kernel aswell )

append="i915.modeset=0 video=800x450"
then i find that the best place to change this setting ( allowing intel to be happy ) is in /etc/rc.d/rc.4 script, since this is when X will be called(linked) to start. I'm personally content being in a cli run level without a extra pretty fb.

simply i added this to the top of my rc.4:

# User Added
/sbin/rmmod i915
/sbin/modprobe i915 modeset=1
# End User Added

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."
and now everything works fine, then second you see the first flash the second one from X starting will kick ( assuming your default runlevel is 4 ). Really basic and ugly fix but I'm happier with it like this, so i decided to share.

/* Like i said if there is a better way please advise */
Old 01-10-2013, 12:28 PM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,284

Rep: Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053Reputation: 3053
Well, as the saying goes there is more than one way to skin a cat.

I personnally use run level 3 not 4 and have a nVidia GPU (using the nouveau driver), not an Intel one.

That said to avoid the screen handover during the boot sequence I just blacklist nouveau (and have set up VGA=normal in /etc/lilo.conf).

This doesn't hurt as nouveau will be automagically loaded at X startup anyway.

Last edited by Didier Spaier; 01-10-2013 at 12:30 PM.
Old 01-11-2013, 02:07 AM   #3
LQ Newbie
Registered: Jan 2007
Location: Pontianak, Indonesia
Distribution: Slackware64-14.0
Posts: 26

Rep: Reputation: 5
Hi maciuszek,
I have an i915 based graphic card too and this hack is what I'm looking for. One question.. Is there any chance to get the scrollback works on VT after the kernel module is loaded with modeset=1 option? Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
screen goes blank during boot as soon as drm (KMS) kicks in nass Slackware 1 05-14-2012 10:37 AM
black screen at boot when setting i915 kms crts Debian 2 08-20-2011 04:23 PM
Is there any way to get the penguin logo on boot with Intel KMS? (i915 driver) piratesmack Slackware 2 07-07-2010 08:31 AM
DISCUSSION: Howto: Change Font Size During Boot (Framebuffer Resolution) rickh LinuxAnswers Discussion 6 11-12-2009 02:11 AM
Linux KMS Intel 865G: Hacking KMS to use vesa... or disable hardware acceleration eantoranz Linux - Hardware 1 08-01-2009 12:58 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:23 PM.

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