You are not logged in.

#1 2010-01-30 21:39:30

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Really slow rendering with Intel GMA X4500

Sometimes, when I boot the PC it is painfully slow and I have no composition in the windows.

As far I have seen the problem is that DRM is not properly initialized. Any idea to solve this?

The grub entry:

title  Arch Linux no KMS
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro i915.modeset=0 vga=795
initrd /boot/kernel26.img

If I activate the KMS I get a blank screen until X loads and virtual terminals are unusable

From dmesg:

[drm] Initialized drm 1.1.0 20060810
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:02.0: setting latency timer to 64
[drm:drm_fill_in_dev] *ERROR* Cannot initialize the agpgart module.
DRM: Fill_in_dev failed.
pci 0000:00:02.0: PCI INT A disabled
uhci_hcd: USB Universal Host Controller Interface driver
ACPI: SSDT 00000000bdced610 002AE (v01  PmRef  Cpu0Ist 00003000 INTL 20040311)
Marking TSC unstable due to TSC halts in idle
processor LNXCPU:00: registered as cooling_device0
ACPI: SSDT 00000000bdcedad0 00152 (v01  PmRef  Cpu1Ist 00003000 INTL 20040311)
input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input5
processor LNXCPU:01: registered as cooling_device1
agpgart-intel 0000:00:00.0: Intel G41 Chipset
agpgart-intel 0000:00:00.0: detected 32764K stolen memory

From Xorg.0.log:

(II) LoadModule: "intel"
(II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
(II) Module intel: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 2.9.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale
(II) Primary Device is: PCI 00@00:02:0
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/lib/xorg/modules/libvgahw.so
(II) Module vgahw: vendor="X.Org Foundation"
        compiled for 1.7.3.902, module version = 0.1.0
        ABI class: X.Org Video Driver, version 6.0
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
drmOpenDevice: node name is /dev/dri/card0
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card1
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card2
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card3
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card4
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card5
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card6
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card7
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card8
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card9
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card10
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card11
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card12
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card13
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card15
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: node name is /dev/dri/card3
drmOpenDevice: node name is /dev/dri/card4
drmOpenDevice: node name is /dev/dri/card5
drmOpenDevice: node name is /dev/dri/card6
drmOpenDevice: node name is /dev/dri/card7
drmOpenDevice: node name is /dev/dri/card8
drmOpenDevice: node name is /dev/dri/card9
drmOpenDevice: node name is /dev/dri/card10
drmOpenDevice: node name is /dev/dri/card11
drmOpenDevice: node name is /dev/dri/card12
drmOpenDevice: node name is /dev/dri/card13
drmOpenDevice: node name is /dev/dri/card14
drmOpenDevice: node name is /dev/dri/card15
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.
(**) intel(0): Depth 24, (--) framebuffer bpp 32
(==) intel(0): RGB weight 888
(==) intel(0): Default visual is TrueColor
(II) intel(0): Integrated Graphics Chipset: Intel(R) G41
(--) intel(0): Chipset: "G41"
(--) intel(0): Linear framebuffer at 0xD0000000
(--) intel(0): IO registers at addr 0xE1000000 size 4194304
(WW) intel(0): libpciaccess reported 0 rom size, guessing 64kB
(II) intel(0): No SDVO device is found in VBT
(II) intel(0): 2 display pipes available.
[...]
xf86TokenToOptinfo: table is NULL
[...]
xf86TokenToOptinfo: table is NULL
[...]
(II) intel(0): Comparing regs from server start up to After PreInit
(WW) intel(0): Register 0x61110 (PORT_HOTPLUG_EN) changed from 0x00000120 to 0x30000120
(WW) intel(0): Register 0x61114 (PORT_HOTPLUG_STAT) changed from 0x00000b00 to 0x00100b00
(==) Depth 24 pixmap format is 32 bpp
(II) intel(0): Kernel reported 963840 total, 1 used
(II) intel(0): I830CheckAvailableMemory: 3855356 kB available
(WW) intel(0): DRI2: failed to open drm device
(**) intel(0): Framebuffer compression disabled
(**) intel(0): Tiling enabled
(**) intel(0): SwapBuffers wait enabled
(EE) intel(0): Failed to initialize kernel memory manager
(==) intel(0): VideoRam: 262144 KB
(II) intel(0): Attempting memory allocation with tiled buffers.
(II) intel(0): Tiled allocation successful.
(II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(II) UXA(0): Driver registered support for the following operations:
(II)         solid
(II)         copy
(II)         composite (RENDER acceleration)
(==) intel(0): Backing store disabled
(==) intel(0): Silken mouse enabled
(II) intel(0): Initializing HW Cursor
(WW) intel(0): drmSetMaster failed: Bad file descriptor
[...]

Any idea on how to solve this?

I have seen that in Ubuntu this has happened too,  but the solution in that thread is to use a configuration guide for Ubuntu 9.10 but since they use diferent kernel and package versions, I don't think that it will be safe to follow it.

Anyway, the problem only happens from time to time (a reboot solves it)

Last edited by noalwin (2010-01-30 22:17:25)

Offline

#2 2010-02-05 22:37:21

kras1001
Member
From: Bulgaria
Registered: 2008-12-18
Posts: 39

Re: Really slow rendering with Intel GMA X4500

Offline

#3 2010-02-05 23:32:30

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Really slow rendering with Intel GMA X4500

Looking at the dmesg output it seems a different issue

Offline

#4 2010-02-06 07:32:09

linuxgod
Member
Registered: 2009-05-06
Posts: 50

Re: Really slow rendering with Intel GMA X4500

do the following:

pacman -S xf86-video-intel
gpasswd -a "your username" video

Add the intel_agp and i915 modules to the MODULES line in /etc/mkinitcpio.conf:

MODULES="intel_agp i915"

Now, regenerate the initramfs:

mkinitcpio -p kernel26

If you ever want to enable/disable KMS, you can change the i915.modeset option to 0/1 in GRUB's /boot/grub/menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/... i915.modeset=0 (or 1)
initrd /boot/kernel26.img

i also recommend you to add "i915.powersave=0" to kernel line in order to get better performance out of your X4500

Last edited by linuxgod (2010-02-06 07:41:35)

Offline

#5 2010-02-06 11:20:24

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Really slow rendering with Intel GMA X4500

I added the modules to the initcpio, but since it only happens from time to time, it may take some time to check if it worked.

About the modeset, I had this issue http://bbs.archlinux.org/viewtopic.php?id=87556 That's why I disable it

Offline

#6 2010-02-06 12:18:15

linuxgod
Member
Registered: 2009-05-06
Posts: 50

Re: Really slow rendering with Intel GMA X4500

why are you so afraid of disabling framebuffer?
it makes things go bad with kms

disable framebuffer, i mean you can safely remove "vga=xxx" line!!
you'll have nice monitor-native resolution with any monitor you plug in without need to set it manually each time, that's why i've chosen KMS.

I also have the same INtel GMA X4500 video chip

Offline

#7 2010-02-06 14:23:49

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Really slow rendering with Intel GMA X4500

Well, the only way to have native resolution that worked for me was using vga= and adding the 1280x1024 resolution in the xorg.conf. If not, the X run at 1024x768.

KMS without vga= means black screen until X starts.

Last edited by noalwin (2010-02-06 14:25:09)

Offline

#8 2010-02-06 14:30:17

kras1001
Member
From: Bulgaria
Registered: 2008-12-18
Posts: 39

Re: Really slow rendering with Intel GMA X4500

noalwin wrote:

Well, the only way to have native resolution that worked for me was using vga= and adding the 1280x1024 resolution in the xorg.conf. If not, the X run at 1024x768.

KMS without vga= means black screen until X starts.

Post replay from this command:
xrandr

Offline

#9 2010-02-06 14:45:38

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Really slow rendering with Intel GMA X4500

kras1001 wrote:
noalwin wrote:

Well, the only way to have native resolution that worked for me was using vga= and adding the 1280x1024 resolution in the xorg.conf. If not, the X run at 1024x768.

KMS without vga= means black screen until X starts.

Post replay from this command:
xrandr

The modes configured in the xorg.conf are "1280x1024" "1024x768" "800x600" "640x480"

$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
VGA connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1280x1024      75.0*+   60.0
   1600x1200      60.0
   1400x1050      60.0
   1280x960       60.0
   1152x864       75.0
   1024x768       75.0     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        72.8     75.0     59.9
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

I think that before I hadn't the  "1600x1200" "1400x1050" resolutions . And the 832x624 is the fisrt time that I see it.

My monitor doesn't support "1600x1200" "1400x1050"

I have to mention that I use a KVM yo connect two systems to the same monitor and I added 'Option     "NoDDC"' to the xorg.conf to avoid potential problems.

If I have some free time I'll recheck again with several configurations

Last edited by noalwin (2010-02-06 14:47:16)

Offline

#10 2010-02-06 15:11:45

kras1001
Member
From: Bulgaria
Registered: 2008-12-18
Posts: 39

Re: Really slow rendering with Intel GMA X4500

Try this:
1. Remove xorg.conf
2. remove "vga=xxx" line in GRUB, as 'linuxgod' said
3. add in GRUB:  i915.modeset=1
4. try add this in grub after previous:   enable_mtrr_cleanup
after start run:

xrandr --output VGA --mode 1280x1024 --rate 75

read here
https://wiki.ubuntu.com/X/Config/Resolution
and here
http://ubuntuforums.org/showthread.php?p=8595940

and tell us if you succeed!

Last edited by kras1001 (2010-02-06 15:12:52)

Offline

#11 2010-02-06 15:23:10

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Really slow rendering with Intel GMA X4500

I am already using "enable_mtrr_cleanup" (it solves a warning in dmesg)

Booting with
kernel /boot/vmlinuz26 root=/dev/sda2 ro enable_mtrr_cleanup
without xorg.conf and without the KVM (conecting the monitor directly to the graphics card)

[0][kaos@nx7 ~]$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*
   832x624        74.6
   800x600        85.1     85.1     72.2     75.0     60.3     56.2
   640x480        85.0     75.0     72.8     75.0     59.9     59.9
   720x400        85.0
   640x400        85.1
   640x350        85.1
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
[0][kaos@nx7 ~]$ xrandr --output VGA --mode 1280x1024 --rate 75
warning: output VGA not found; ignoring
[0][kaos@nx7 ~]$ xrandr --output VGA1 --mode 1280x1024 --rate 75
xrandr: cannot find mode 1280x1024
[1][kaos@nx7 ~]$

Of course, I can add the a mode to xrandr and use it (as explained on one of the links) but I find easier to have a xorg.conf (maybe because I'm used to it)

There are fewer modes in xrandr, i guess that it's due to the fact that I was using the NoDDC option in the xorg.conf

Last edited by noalwin (2010-02-06 15:43:58)

Offline

#12 2010-02-06 15:48:40

kras1001
Member
From: Bulgaria
Registered: 2008-12-18
Posts: 39

Re: Really slow rendering with Intel GMA X4500

OK if you do:
cvt 1280 1024
and then
xrandr --newmode "1280x1024" bla bla bla...
xrandr --addmode VGA 1280x1024
and then
xrandr --output VGA --mode 1280x1024 --rate 75 or 60
what's you problem?
Is everything work fine or not, and why you need xorg.conf?
Tell us what is you Motherboard, how much RAM do you have, Procesor...

Last edited by kras1001 (2010-02-06 15:51:14)

Offline

Board footer

Powered by FluxBB