LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   console:switching to colour frame buffer device 128x48 while kernel boot 2.6.33-smp (https://www.linuxquestions.org/questions/slackware-14/console-switching-to-colour-frame-buffer-device-128x48-while-kernel-boot-2-6-33-smp-794283/)

matters 03-09-2010 01:10 PM

console:switching to colour frame buffer device 128x48 while kernel boot 2.6.33-smp
 
hi!

in lilo.conf i do have specified vga normal

but while booting the system screen resolution changes and it says
Code:

Console:Switching to colour frame buffer device 128x48
what is causing this? how can i prevent this from happening again?

this only happens when i do have 2.6.33 predefined kernels installed.

Thanks alot!

eddyvp 03-10-2010 01:33 AM

hi,
Are you running slackware-current?
Blacklisting the nouveau driver (and using the nvidia driver) solved the problem for me.

JZL240I-U 03-10-2010 03:01 AM

As I understand it, something was changed in the KBM (kernel based mode setting), that thingy which prevents flickering of the display during boot and changes of resolution. Maybe it is just a side effect...

matters 03-10-2010 04:39 AM

yes slackware-current.im using intel 865g onboard chipset i tried blacklisting by specifying blacklist nouveau anyway to see no matter because its nvidia and no joy for me.

adamk75 03-10-2010 08:01 AM

If it is related to KMS (not KBM), you can disable it at boot by passing the 'nomodeset' option to the kernel. Mind you, I doubt X will start on intel GPUs without KMS enabled :-)

EDIT: Alright, so X will still work if you disable KMS on Slackware 13.0. What I've heard, though, is that it will not work on -current. I can't confirm this personally, though:

http://www.linuxquestions.org/questi...normal-792873/

JZL240I-U 03-10-2010 08:09 AM

Quote:

Originally Posted by adamk75 (Post 3892859)
...KMS (not KBM)...

Darned acronyms ;) :p

Thanks for the correction.

matters 03-10-2010 05:21 PM

@JZL240I-U and adam yes that fixes the problem.

jzl where did you get the info from that its about kms ?

when i disable kms while in X windows i can change console with ctrl+alt+f1-f6 no problem but if kms is enabled then when i try to switch back to consoles with ctrl+alt+f1-f6 it gives black screen and i cant use ctrl+alt+backspace no more.

also xorgsetup when trying to detect hardware gives black screen no matter if kms is enabled or disabled. im wondering what cause that it gives black screen?, im wondering how xorgsetup operate? does it operate in a way that its trying to start a xorg server when detecting hardware?

i saved xorg.conf from previous xorg server from slack13

and tried to start x to see what happens.
i get this:

/usr/lib/xorg/modules/intel_drv.so: undefined symbol: resVgaShared

because at the moment im unable to get proper resolution in X windows. i see that many ppls say that driver that i have installed is conflict with x-org server or does not support xorg server that im running, so i will see about it.

thats why i would like to know how xorgsetup operate when detecting hardware through hal?

thanks guys

JZL240I-U 03-11-2010 06:24 AM

Quote:

Originally Posted by matters (Post 3893491)
...jzl where did you get the info from that its about kms ? ...

That was a guess founded on your description of the problem.

Quote:

Originally Posted by matters (Post 3893491)
...if kms is enabled then when i try to switch back to consoles with ctrl+alt+f1-f6 it gives black screen and i cant use ctrl+alt+backspace no more....

For a controlled reboot use <Alt> + <SysReq> + REISUB (typing the (small) characters in this sequence)

http://kember.net/articles/231/reisu...-linux-restart
http://www.definition-of.com/REISUB

For this the SysRq feature must be turned on, i.e. "cat /proc/sys/kernel/sysrq" issues "1".

Quote:

Originally Posted by matters (Post 3893491)
...thats why i would like to know how xorgsetup operate when detecting hardware through hal...

I have no answer for this, sorry.

Didier Spaier 03-11-2010 07:00 AM

If I wouldn't want frame buffer I'd just blacklist the relevant module; lsmod|grep fb would tell me which one.

matters 03-11-2010 08:44 AM

@jzl sysrq codes works perfecly. thanks for info!

lets wait and see that someone reply whys that happening when kms is enabled and while in X windows when switching to consoles ctrl+alt+f1-f6 gives black screen? what causes that?

and no matter if kms is enabled or disabled in lilo xorgsetup gives black screen while trying to detect hardware ? what causes this?


wondering how xorgsetup operate when trying to detect hardware?

another thing about inteldrmfb would like to know how its related to kms?

Intel_ 03-11-2010 12:08 PM

And I have that problem, but I am not using any drivers for the video card. So, before slackware start on the lilo prompt to type nomodeset, and I should turn off kms from lilo.conf? But after that X may not work?

matters 03-11-2010 12:55 PM

im speaking in the name of intel chipset 865g, if you have slackware-current installed libdrm and xf86-video-intel-2.10 installed you can start X windows no matter if kms is enabled or disabled, but resolution wont be properly displayed, as i described earlier. however im still waiting for peoples to answer on my questions that i posted,

thanks guys

Intel_ 03-11-2010 02:22 PM

I have installed only libdrm, but as I said I don't use any drivers, but if I remove libdrm? This will break anything...

adamk75 03-11-2010 02:42 PM

What do you mean by "I am not using any drivers for the video card." ? Are you saying that you're not using Xorg? Because if you are using Xorg, then you're using drivers for your video card.

Adam

matters 03-11-2010 03:27 PM

to turn off kms in /etc/lilo.conf add the line
Code:

append = "nomodeset"
save /etc/lilo.conf,

then do :
Code:

/sbin/lilo
and reboot.thats how resolution came back to normal for me on 865g chipset.

if u want to turn on kms back just comment the line to be like this:
Code:

#append = "nomodeset"
save lilo.conf and start lilo with
Code:

/sbin/lilo
and reboot.


im wondering when i will get the answer on my questions :)

andrew.46 05-26-2010 06:41 PM

I have been bitten by the same irritating bug:

Code:

Console: switching to colour frame buffer device 100x37
and the various attempts I have made to get around it have failed. Adding append = "nomodeset" to lilo.conf certainly stopped the microscopic frame buffer output but X would not start. Selecting a better size frame buffer option in lilo.conf worked for the first few screens and then back to microfont. Repeatedly crashing my head into the keyboard also did not work...

My graphics are:

Code:

root@skamandros/home/andrew# lspci | grep Graphics
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

and I would love a bit of advice on how to get around this problem. Running Slackware 13.1 and 2.6.33.4-smp.

Andrew

adamk75 05-26-2010 07:00 PM

How did you set "a better frame buffer option" ? Simply using 'video=1024x768' (or whatever resolution you want) appended to the kernel boot line should force the framebuffer to use that resolution always.

Adam

andrew.46 05-26-2010 07:15 PM

Hi Adam,

Quote:

Originally Posted by adamk75 (Post 3982341)
How did you set "a better frame buffer option" ? Simply using 'video=1024x768' (or whatever resolution you want) appended to the kernel boot line should force the framebuffer to use that resolution always.

Hmmm... perhaps I have done this incorrectly? I simply added:

Code:

vga=771
and this is what I received for a few screens before being resized. Should this be added as append video=1024x768 in the top section? ??

Andrew

adamk75 05-26-2010 07:38 PM

I'm not in front of a slackware box at the moment, but as I recall there's already an append line, right? Just add video=1024x768 to it (make sure it's in the quotes already in that line).

vga=771 only works with the vesa/vga framebuffer, iirc. KMS uses the video option.

Adam

matters 05-27-2010 05:51 AM

I also have the problem although im using intel 865g
in lilo.conf i have added line exactly like this:
Code:

append = "video=1024x768"
and then executed :
Code:

/sbin/lilo
and rebooted but it dosent work for me either. Is there anything we missed?

adamk75 05-27-2010 06:07 AM

What happens when you booted up with that append line? Can you show us the output of 'dmesg | grep drm'?

Adam

matters 05-27-2010 06:30 AM

Code:

dmesg |grep drm
shows nothing, and with that append line i still have microcospic fonts

adamk75 05-27-2010 06:36 AM

Can you show the full output of 'dmesg' then? Is KMS even enabled in your kernel?

Adam

Didier Spaier 05-27-2010 06:52 AM

To double-check that vesa be not involved, at boot hit <tab> and type:
Code:

Linux vga=normal
If you still see the hight of characters changing on the console during startup, then another frame-buffer driver is involved. To know which one type:
Code:

lspci -k | grep -A3 VGA
and post the output here.

Now if you see a module name including "fb" in the output, then blacklist this module, reboot (still with vga=normal) and please tell us the outcome.

matters 05-27-2010 06:58 AM

guys you are fast either with append = "video=1024x768" and vga=normal same problem as with when i disable vga=normal and leave append = "video=1024x768"

drm in dmesg shows this :
Code:

drm] Initialized drm 1.1.0 20060810
[drm] set up 7M of stolen space
[drm] initialized overlay support
fb0: inteldrmfb frame buffer device
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

and heres
Code:

lspci -k | grep -A3 VGA
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
        Subsystem: ASRock Incorporation Device 2572
        Kernel driver in use: i915
        Kernel modules: i915


Didier Spaier 05-27-2010 07:00 AM

Then append following line at the end of /etc/modprobe.d/blacklist.conf:
Code:

blacklist inteldrmfb
reboot and see what happens.

matters 05-27-2010 07:37 AM

Quote:

Originally Posted by Didier Spaier (Post 3982827)
Then append following line at the end of /etc/modprobe.d/blacklist.conf:
Code:

blacklist inteldrmfb
reboot and see what happens.

blacklisting didnt help
although vga=normal i disabled in lilo.conf, and enabled append = "video=1024x768"

im wondering what adam will respond since my conclusion its something about kms related issue

adamk75 05-27-2010 07:48 AM

Well, first, inteldrmfb is not a module. It's part of the intel drm. Simply using "nomodeset" on the kernel boot line will disable KMS (including inteldrmfb). But, as I believe we've already confirmed earlier in the thread, X will then not work with the intel driver.

I'm sorry, but if adding video="1024x768" doesn't force the framebuffer resolution to 1024x768, I'm not sure what to try next. Can you boot up with that option, run 'fbset' in the console, and show us the output?

Adam

Didier Spaier 05-27-2010 08:06 AM

I suppose i915 is compiled as a module and KMS is enabled by default for it. At least this is the case for kernels shipped with 13.1

If you want to make sure that kernel modesetting be not used (though may be then X won't start as Adamk75 stated) you could try this as root

echo 'options i915 modeset=0' > /etc/modprobe.d/i915

and reboot.

matters 05-27-2010 08:11 AM

it gives :
Code:

mode "1024x768"
    geometry 1024 768 1024 768 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

one quick question what is relation between append = "video=1024x768" and vga=normal?
does both have to be enabled in lilo.conf?
im asking just to clarify

adamk75 05-27-2010 08:23 AM

Theoretically when KMS kicks in the vga/vesa console will hand control over to inteldrmfb, so you probably don't need vga=normal, but it can't hurt anything.

But your fbset output basically shows that it's working as expected. If you want a different resolution on the console (such as 800x600 or 640x480) just specify that with video= instead of 1024x768.

Adam

matters 05-27-2010 08:55 AM

Quote:

Originally Posted by adamk75 (Post 3982913)
Theoretically when KMS kicks in the vga/vesa console will hand control over to inteldrmfb, so you probably don't need vga=normal, but it can't hurt anything.

But your fbset output basically shows that it's working as expected. If you want a different resolution on the console (such as 800x600 or 640x480) just specify that with video= instead of 1024x768.

Adam

It worked and really vga=normal its not necessary, when i changed to 640x480 it gave big change, in opposite to 800x600.

can you tell me also where i can look for full list of switches for kernel options for append ?

adamk75 05-27-2010 09:01 AM

You'd have to check the documentation that comes with the kernel. There are probably thousands of options for the various kernel subsystems and drivers. The framebuffer documentation, unfortunately, is pretty out-of-date, actually. The only reason I know these options is from hanging on in various related channels on IRC.

Adam

Didier Spaier 05-27-2010 09:04 AM

See /usr/src/linux/Documentation/kernel-parameters.txt, provided a kernel-source package be installed, of course.

Be aware though that as stated in it "This document may not be entirely up to date and comprehensive".

You can "grep -r __setup /usr/src/linux/*" to find more parameters but it will take _some_time_ to complete ;)

matters 05-27-2010 09:15 AM

thanks to all.

adam: what are those channels if you dont mind sharing?

adamk75 05-27-2010 09:45 AM

#radeon, #dri-devel

There's an intel specific one that I don't spend much time in, though, called #intel-gfx

All three are on freenode.

Adam

allend 05-27-2010 10:15 AM

Quote:

one quick question what is relation between append = "video=1024x768" and vga=normal?
does both have to be enabled in lilo.conf?
im asking just to clarify
I have just been playing with this.
The 'vga=normal/ext/ask/n' is used by the kernel until the inteldrmfb is setup. Have a look at 'dmesg | less'.
The 'append = "intelfb:video=1024x768"' is used by the kernel to configure the framebuffer.

Apart from /usr/src/linux/Documentation/kernel-parameters.txt you can also take a look at /usr/src/linux/Documentation/fb/intelfb.txt

adamk75 05-27-2010 10:24 AM

The intelfb.txt document is largely not applicable to this situation since the OP isn't using intelfb. He's using inteldrmfb, a completely separate beast.

Adam

allend 05-27-2010 10:27 AM

It does give detail about the options though.

matters 05-27-2010 11:05 AM

hey allend both you and adam were right and its pleasure to learn from you :) i hope you upgraded intel driver since i had problems up untill several days ago :) thank you all


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