You are not logged in.

#1 2009-06-24 22:06:08

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

[solved] KMS not enabled?

Using an Intel 945GM, I have enabled KMS according to the Wiki (method 1), where there is suggested to change modprobe.conf and update mkinitcpio.conf (and of course, rebuilding it).
I use the latest xf86-video-intel and kernel26 packages from [testing]. Also, I don't have an xorg.conf.

Now, when I start my computer, starting X works impressively fast. However, I don't think KMS is activated. My VT does not appear to be in 1024*768 (my native resolution). Also, I cannot go between X and TTY (reverting to X after changing to TTY results in a black X, which I then have to restart).

In #linux on freenode somebody suggested to me to check for KMS the following way:

$ sudo cat /sys/module/i915/parameters/modeset
-1

Apparently, KMS is deactivated. I am now trying to figure out, why.

In kernel.log I receive the info that i915 is activated:

Jun 24 23:25:24 scimitar kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

However, I also get an error:

Jun 24 22:34:14 scimitar kernel: [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0

Any suggestions what I could try?

Here is the exact information of my chipset:

$ sudo lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
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)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 09)
15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)

EDIT: The solution can be found in post #9.

Last edited by Stalafin (2009-06-25 15:18:44)

Offline

#2 2009-06-25 00:00:03

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [solved] KMS not enabled?

what about the kernel boot parameters...? how are you booting the kernel?

Offline

#3 2009-06-25 00:17:58

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: [solved] KMS not enabled?

On xf86-video-intel 2.7.99.901-1, kernel 2.6.30-custom (with intel fb option loaded, did you enable this option at compilation time?)

[dubsteppz@myhost ~]$ sudo cat /sys/module/i915/parameters/modeset 
1

relevant kernel.log

Jun 25 01:01:41 myhost kernel: agpgart-intel 0000:00:00.0: Intel 965GM Chipset
Jun 25 01:01:41 myhost kernel: [drm] Initialized drm 1.1.0 20060810
Jun 25 01:01:41 myhost kernel: allocated 1280x800 fb: 0x007df000, bo f712f9c0
Jun 25 01:01:41 myhost kernel: Console: switching to colour frame buffer device 160x50
Jun 25 01:01:41 myhost kernel: [drm] LVDS-8: set mode 1280x800 15
Jun 25 01:01:41 myhost kernel: fb0: inteldrmfb frame buffer device
Jun 25 01:01:41 myhost kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

Yes, what about boot parameters? No boot parameters here. Just followed mentioned wiki page (method 1 also), and it worked. no problem.


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#4 2009-06-25 00:39:05

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: [solved] KMS not enabled?

After the modprobe update, I had to change my mkinitcpio.conf to

MODULES="intel_agp drm i915"
BINARIES=""
FILES="/etc/modprobe.d/modprobe.conf"
HOOKS="base udev autodetect sata keymap filesystems"

The thing to note is the location of the modprobe.conf file, that changed for me (obviously so, with the update)

and then my /etc/modprobe.d/modprobe.conf contains.

options i915 modeset=1

then just run

mkinitcpio -p kernel26

It should work fine after that.

Last edited by makimaki (2009-06-25 08:45:45)


====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

#5 2009-06-25 07:16:40

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [solved] KMS not enabled?

Hm, I use the default kernel from [testing], I didn't compile anything. I thought it would be activated by default?

Everything else is according to makimaki's config....

I checked kernel.log for all DRM entries; all I am getting is:

Jun 25 09:11:31 scimitar kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
Jun 25 09:11:47 scimitar kernel: [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0

does not look good, does it?

Offline

#6 2009-06-25 09:32:19

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: [solved] KMS not enabled?

KMS is not activated by default. You will have to do it yourself.

Offline

#7 2009-06-25 09:55:22

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [solved] KMS not enabled?

Nepherte wrote:

KMS is not activated by default. You will have to do it yourself.

What sort of redundant answer is that? Did you read anything I wrote? I am aware, that I have to "activate" it. That is why I am refering to the Wiki and writing the steps I took to activate it.

I was just not aware that I have to recompile the kernel in any way, because the Wiki does not mention it (and so far, I did not read about all people using KMS compiling new kernels all the time).

Offline

#8 2009-06-25 09:58:56

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] KMS not enabled?

Gentlemen, if you use testing, please use the subforum for it smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2009-06-25 12:21:08

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [solved] KMS not enabled?

instead of using modprobe.conf, edit /boot/grub/menu.lst, in the kernel line, after ro, add i915.modeset=1

remember NOT to have a vga=XXX entry there.

Last edited by eldragon (2009-06-25 12:21:31)

Offline

#10 2009-06-25 14:57:09

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: [solved] KMS not enabled?

B wrote:

Gentlemen, if you use testing, please use the subforum for it smile.

Stalafin uses the testing kernel, but I use the current core kernel. I have had a problem with the backlight since I turned on KMS in 2.6.28


====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

#11 2009-06-25 15:04:23

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: [solved] KMS not enabled?

Stalafin wrote:
Nepherte wrote:

KMS is not activated by default. You will have to do it yourself.

What sort of redundant answer is that? Did you read anything I wrote? I am aware, that I have to "activate" it. That is why I am refering to the Wiki and writing the steps I took to activate it.

I was just not aware that I have to recompile the kernel in any way, because the Wiki does not mention it (and so far, I did not read about all people using KMS compiling new kernels all the time).

My apologies, I was just answering your redundant question "I didn't compile anything. I thought it would be activated by default?" If you follow makimaki's steps (including mkinitcpio), you should be fine. If that's not the case, then there might be a problem with the package you use use from testing, which happens from time to time especially with kernel and intel driver packages as they are in constant heavy development..it's called testing for a reason.

Offline

#12 2009-06-25 15:18:02

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [solved] KMS not enabled?

eldragon wrote:

instead of using modprobe.conf, edit /boot/grub/menu.lst, in the kernel line, after ro, add i915.modeset=1

remember NOT to have a vga=XXX entry there.

Brilliant! That solved it! Interesting to know - how did you come up with that? Where did you get this information from? Maybe we should update the Wiki?


My respective output from kernel.log now looks like this:

Jun 25 17:05:56 scimitar kernel: [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
Jun 25 17:06:29 scimitar kernel: [drm] Initialized drm 1.1.0 20060810
Jun 25 17:06:29 scimitar kernel: [drm] LVDS-8: set mode 1024x768 13
Jun 25 17:06:29 scimitar kernel: fb0: inteldrmfb frame buffer device
Jun 25 17:06:29 scimitar kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
Jun 25 17:07:50 scimitar kernel: [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22

As one can see, KMS seems to be set; however, i still get those weird vblank errors.

Offline

#13 2009-06-25 15:30:17

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [solved] KMS not enabled?

well, i thought that info was in the wiki....thats how i always started kms. taken from the forums. maybe its not in the wiki since its a temp solution until kms is enabled by default.

the errors concerning vblank are from a known bug, check https://bugs.freedesktop.org/show_bug.cgi?id=22166

its safe to ignore those for now.

Last edited by eldragon (2009-06-25 15:30:53)

Offline

#14 2009-11-16 17:37:31

SanzFC
Member
Registered: 2009-11-16
Posts: 3

Re: [solved] KMS not enabled?

I'm trying to get KMS in my Arch x86_64 / Kernel 2.6.31 / xf86-video-intel 2.9.1 driver / Intel GMA X3100 (GM965) graphics card.

In dmesg output occurs this error:

[drm: i915_driver_load] *ERROR* Failed to map registers

Someone knows what means this error?

I think that solving this problem I can load the KMS normally!!!

PS: I'm a brazilian user, so excuse my bad english.

Offline

Board footer

Powered by FluxBB