You are not logged in.

#1 2011-07-22 22:00:58

lang2
Member
Registered: 2006-02-10
Posts: 386

VGA monitor out of range error

Hello all,

I'm putting together a new computer with an oldish VGA only monitor. I used the latest installation disk. Installation went fine. I then did pacman -Syu of course. After that, whenever I boot my computer, it boots the kernel and shortly afterwards (before the login prompt) cause the monitor to go "out of range". I've tested the monitor with a Windows laptop and it seems fine. My question is: why did the VGA mode change during boot? How do I avoid that? If I can get a prompt and install X it'll be one step anyway. Thanks,

Offline

#2 2011-07-22 22:03:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

Need more info: are you using KMS? Do you boot straight to X or log into console?

Offline

#3 2011-07-22 22:04:53

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

Kernel mode setting? I don't think so. At least I didn't explicitly configured the system to use it.
X is not even installed so it's console only.

Offline

#4 2011-07-22 22:07:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

lang2 wrote:

Kernel mode setting? I don't think so. At least I didn't explicitly configured the system to use it.
X is not even installed so it's console only.

So you don't have any graphics drivers installed?
Can you post the logs?

Offline

#5 2011-07-22 22:21:04

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

I'm assuming you meant kernel log. I had to enable sshd and login remotely to get it:

http://pastebin.com/QQwM99L3

Offline

#6 2011-07-22 22:25:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

lang2 wrote:

I'm assuming you meant kernel log. I had to enable sshd and login remotely to get it:

http://pastebin.com/QQwM99L3

The problem:

[    4.544007] [drm] Initialized drm 1.1.0 20060810
[    4.674859] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    4.674863] i915 0000:00:02.0: setting latency timer to 64
[    4.706140] mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining
[    4.706142] [drm] MTRR allocation failed.  Graphics performance may suffer.
[    4.706393] i915 0000:00:02.0: irq 41 for MSI/MSI-X
[    4.706396] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    4.706397] [drm] Driver supports precise vblank timestamp query.
[    4.736280] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    4.922865] checking generic (e0000000 fff0000) vs hw (e0000000 10000000)
[    4.922868] fb: conflicting fb hw usage inteldrmfb vs VESA VGA - removing generic driver
[    4.922883] Console: switching to colour dummy device 80x25
[    4.923077] fbcon: inteldrmfb (fb0) is primary device
[    5.083490] Console: switching to colour frame buffer device 240x67
[    5.195838] fb0: inteldrmfb frame buffer device
[    5.195839] drm: registered panic notifier
[    5.195954] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

Maybe removing the vga part would help:

[    0.000000] Command line: root=/dev/sda3 ro vga=773

but I'm basically guessing here.

Offline

#7 2011-07-22 22:31:47

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

hmmmm. Looks like kernel enabled fb by itself?
I added vga=773 when the default command line didn't work, hoping to forcing it to use a good VGA mode. sad
Is it because of the relatively new intel hd 2000 graphics core?

Offline

#8 2011-07-22 22:35:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

After googling "[drm] MTRR allocation failed.  Graphics performance may suffer." I found https://bbs.archlinux.org/viewtopic.php?id=87556

Last edited by karol (2011-07-22 22:43:16)

Offline

#9 2011-07-22 22:42:29

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

Looks quite interesting although it's from 2009. I'll read through it carefully. Thanks very much.

Offline

#10 2011-07-22 22:43:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

Maybe try disabling KMS with i915.modeset=0 on the kernel bootline.

Another fix (from Ubuntu) https://bugs.launchpad.net/ubuntu/+sour … bug/709677 - see comment #7:

GRUB_CMDLINE_LINUX="enable_mtrr_cleanup mtrr_spare_reg_nr=1"
solves the issue...

Don't ask me where do you need to put it ;P


lang2 wrote:

hmmmm. Looks like kernel enabled fb by itself?

KMS is now enabled by default in the kernel, although not every graphics driver uses it (nvidia does not).

Offline

#11 2011-07-22 22:57:18

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

I've got my console login prompt after i915.modeset=0!!! Thanks very much. Hopefully I'll get X working soon.

Offline

#12 2011-07-22 23:51:54

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VGA monitor out of range error

You need KMS for X. And you shouldn't be using vesafb, which means no 'vga=' on the kernel commandline. Shouldn't actually be a problem, because vesafb supports hading over control to a different (KMS in our case) driver, but you never know. Also, that MTRR message is harmless, the intel driver uses PAT instead, which is available on all modern machines (wow, I've just called the Pentium M not modern...).

What's the resolution of the display? inteldrmfb sets the console to 240x67, that seems too high to me.

Offline

#13 2011-07-22 23:54:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

The wiki on Intel drivers and X should tell OP all he needs to know.

Offline

#14 2011-07-23 00:25:40

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VGA monitor out of range error

karol wrote:

The wiki on Intel drivers and X should tell OP all he needs to know.

No necessarily. I don't see anything in there about misbehaving VGA screens.

Offline

#15 2011-07-25 21:30:24

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: VGA monitor out of range error

This is getting strange. I just tried the same Arch installation on my 32 inch LG TV and everything worked without a problem - and no tweaking. I didn't have to do anything with KMS. I also tried to install WinXP and my LCD monitor seems to be half broken: it won't go to it's optimum resolution which is 1920x1080. 1366x768 works fine though. So I don't know what it is..... My new PC is already an accident and I don't want to buy a new monitor.

Offline

#16 2011-07-25 21:45:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: VGA monitor out of range error

Gusar wrote:
karol wrote:

The wiki on Intel drivers and X should tell OP all he needs to know.

No necessarily. I don't see anything in there about misbehaving VGA screens.

Sorry, I meant that, if what's in the wiki is not enough, it's either a PEBKAC or a hardware issue.

Offline

Board footer

Powered by FluxBB