Intel GMA

Internal storage, motherboards, PCI cards, stuff inside the case.

Intel GMA

Postby Xenon » 02 Nov 2011, 01:00

Hello everyone,

I decided to install FreeBSD 8.2 Generic to a machine I bought recently. Everything seems to be performing well except for the graphics card, which as you can see in the title, is an Intel HD GMA integrated graphics card. There are two video outputs, a VGA and an HDMI, I am currently using the HDMI output at 1280x768 resolution.

I've compiled Xorg (Just standard Xorg, NOT Xorg-server) from ports with no errors, which installed the x11-drivers/xf86-intel-video driver. Simply running a "startx", everything checks out fine. Resolution is okay, a little bit grainy, but okay.

So I then installed gnome2 from packages with "pkg_add -r gnome2". Starting GDM from the console worked fine, resolution is still okay. But I am finding that the graphics are VERY choppy. If I open Firefox, I can't move my mouse across the screen without it lagging. So I compiled Chromium from ports, thinking it could just be Firefox, but the same thing, with pretty much every program.

I tried to generate and edit my Xorg.conf file to no avail. Setting the Horizonal and Vertical refresh rates and the default depth and modes, all that. In my generated Xorg.conf, the driver listed as in use it "vesa".

Is my hardware just not very well supported, or did Xorg try to configure Xorg.conf with the wrong driver? I read in another thread that people were using Xorg-server with Mesa 7.x and they said they had no issues. Is my problem that I am using Xorg instead of Xorg-server and without Mesa?

Should I try and use Xorg-server with Mesa 7.x and xf86-intel-video? Or will that not make any real difference in performance at all? Any suggestions are appreciated, I've tried everything I can think of. I would just like some confirmation if Xorg-server and Mesa is the way to go or if I am stuck.

- Thanks.
Xenon
Junior Member
 
Posts: 5
Joined: 02 Nov 2011, 00:41
Location: United States

Postby wblock@ » 02 Nov 2011, 02:37

Xenon wrote:Hello everyone,

I decided to install FreeBSD 8.2 Generic to a machine I bought recently. Everything seems to be performing well except for the graphics card, which as you can see in the title, is an Intel HD GMA integrated graphics card. There are two video outputs, a VGA and an HDMI, I am currently using the HDMI output at 1280x768 resolution.

I've compiled Xorg (Just standard Xorg, NOT Xorg-server)


xorg-server is part of xorg.

from ports with no errors, which installed the x11-drivers/xf86-intel-video driver. Simply running a "startx", everything checks out fine. Resolution is okay, a little bit grainy, but okay.


It's using the vesa driver.

So I then installed gnome2 from packages with "pkg_add -r gnome2". Starting GDM from the console worked fine, resolution is still okay. But I am finding that the graphics are VERY choppy. If I open Firefox, I can't move my mouse across the screen without it lagging. So I compiled Chromium from ports, thinking it could just be Firefox, but the same thing, with pretty much every program.


The vesa driver is slow. The intel driver has acceleration but needs KMS, which is a work in progress on FreeBSD.

Is my hardware just not very well supported, or did Xorg try to configure Xorg.conf with the wrong driver? I read in another thread that people were using Xorg-server with Mesa 7.x and they said they had no issues. Is my problem that I am using Xorg instead of Xorg-server and without Mesa?


xorg-server is a major component of xorg, you're already using it. Mesa is for 3D acceleration. See http://wiki.freebsd.org/Intel_GPU for more information about the Intel KMS work.
User avatar
wblock@
Old Fart
 
Posts: 10199
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby SirDice » 02 Nov 2011, 12:33

Try [port]x11-drivers/xf86-video-intel29[/port], it's slightly newer then [port]x11-drivers/xf86-video-intel[/port].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16182
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby Xenon » 02 Nov 2011, 20:18

Okay, so the problem is the lack of KMS support and that the Vesa driver is just slow, then. I tried to deinstall the intel-2.7 driver and upgrade the intel-2.9 driver, now X doesn't start at all. I checked the Xorg logfile, and got a few errors, the main one of concern being:

"Failed to open DRM device on pci0000:02.0: File exists"

So, I then checked if the kernel modules were loaded using kldstat, both i915.ko and drm.ko were auto loaded. So I tried to unload and re-load them manually, then startx, same error from Xorg.

The other error Xorg spat out was:

"Screen(s) detected, but no useable configuration was found."

So, looks like I am waiting for new drivers then? The vesa driver isn't unusable, but it certainly is very slow.
Xenon
Junior Member
 
Posts: 5
Joined: 02 Nov 2011, 00:41
Location: United States

Postby wblock@ » 02 Nov 2011, 22:12

Please put [file]/var/log/Xorg.0.log[/file] on [url]pastebin.com[/url] and post a link here.
User avatar
wblock@
Old Fart
 
Posts: 10199
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby Xenon » 02 Nov 2011, 22:49

My [file]Xorg.0.log[/file] file:

http://pastebin.com/tAg8uSGA

The errors start to occur on line 154.
Xenon
Junior Member
 
Posts: 5
Joined: 02 Nov 2011, 00:41
Location: United States

Postby SirDice » 03 Nov 2011, 07:07

Can you post your [file]xorg.conf[/file] too?
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16182
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby Xenon » 03 Nov 2011, 23:17

I'm not currently using an Xorg configuration file. If I auto-generate one, the same errors occur and no difference is made.
Xenon
Junior Member
 
Posts: 5
Joined: 02 Nov 2011, 00:41
Location: United States

Postby T-Daemon » 04 Nov 2011, 10:42

http://pastebin.com/tAg8uSGA

Code: Select all
…
173. drmOpenDevice: [color="Red"]node name is /dev/dri/card0[/color]
174. Failed to change owner or group for file /dev/dri! 2: No such file or directory
175. [color="Red"]Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory[/color]
176. drmOpenDevice: open result is -1, (No such file or directory)
177. Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory
178. drmOpenDevice: open result is -1, (No such file or directory)
179. drmOpenDevice: Open failed
180. [drm] failed to load kernel module "i915"
181. (EE) intel(0): [drm] Failed to open DRM device for pci:0000:00:02.0: File exists
182. (EE) intel(0): Failed to become DRM master.
...


The device node for [FILE]card0[/FILE] isn't created. Try starting [FILE][SIZE="4"]X[/SIZE][/FILE] after creating it manual. Please search for it under [FILE]/dev[/FILE], if it's there, link to it. If it isn't there, create a device node. [man=8]mknod[/man]

[CMD="#"]mknod /dev/dri/card0 c 226 0[/CMD]

This is a temporal workaround. The node will be cleaned out after a reboot, but let's see if [file][SIZE="4"]X[/SIZE][/file] can be started. If it can't, paste [FILE]Xorg.0.log[/FILE] again on pastebin.com.
T-Daemon
Junior Member
 
Posts: 63
Joined: 09 Oct 2011, 19:10

Postby Xenon » 05 Nov 2011, 13:05

Well, now the problem has become that [FILE]/dev/dri[/FILE] isn't a directory, it can't be created, and therefore creating the device node fails. Any other suggestions? I switched back to the 2.7 driver for the moment...
Xenon
Junior Member
 
Posts: 5
Joined: 02 Nov 2011, 00:41
Location: United States


Return to System Hardware

Who is online

Users browsing this forum: No registered users and 1 guest