1bce5 IvyBridge graphics and FreeBSD 9.1 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Mobile Computing

Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Reply
 
Thread Tools Display Modes
  #1  
Old December 21st, 2012, 16:47
agottem agottem is offline
Junior Member
 
Join Date: Dec 2009
Location: Chicago, USA
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default IvyBridge graphics and FreeBSD 9.1

I have a laptop with an IvyBridge CPU and Intel HD 4000 Graphics. I previously tried installing FreeBSD 9.0 and was unable to get X working due to the lack of KMS support.

Will FreeBSD 9.1 support KMS and Intel HD graphics?
Reply With Quote
  #2  
Old December 21st, 2012, 16:54
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

It's been supported in STABLE for months, provided you build Xorg properly. And obviously 9.1 will include those changes.
__________________
May the source be with you!
Reply With Quote
  #3  
Old December 22nd, 2012, 08:41
MasterOne MasterOne is offline
Junior Member
 
Join Date: Jul 2011
Posts: 72
Thanks: 20
Thanked 5 Times in 2 Posts
Default

Is the addition of WITH_NEW_XORG=yes and WITH_KMS=yes to make.conf still needed, or is this already the default now?
Reply With Quote
  #4  
Old December 22nd, 2012, 17:05
zspider's Avatar
zspider zspider is offline
Member
 
Join Date: Jun 2010
Location: Sturgis, South Dakota
Posts: 243
Thanks: 101
Thanked 50 Times in 30 Posts
Default

It will work, but you need the relevant lines in /etc/make.conf, a few ports that are not presently mainstream, and a proper Xorg.conf. All of which can be found here, http://forums.freebsd.org/showthread.php?t=35623 post #8, I wrote this post from an Ivybridge laptop.
Reply With Quote
The Following 3 Users Say Thank You to zspider For This Useful Post:
ajith (January 15th, 2013), MasterOne (December 22nd, 2012), scottro (January 13th, 2013)
  #5  
Old January 13th, 2013, 21:07
scottro scottro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 25
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Following the linked post worked for me, thank you.

The steps I took.
I'd already installed x11-servers/xorg-server and a few others. I first deinstalled them all as I was running into errors, such as needing higher version of dri. I deinstalled xorg-server, xf86-video-intel the synaptics and keyboard drivers and graphics/dri and graphics/libGL. (I'm not sure how much of this was necessary.)

Added the two lines to /etc/make.conf

Code:
WITH_NEW_XORG=yes

WITH_KMS=yes
I then used svn as suggested at https://wiki.freebsd.org/Xorg

svn co https://trillian.chruetertee.ch/svn/ports/trunk

Then got the suggested merge script

fetch http://people.freebsd.org/~miwi/xorg/xorgmerge

Ran the script with sh xorgmerge. It then suggested running portmaster -a, which I did. (That's when I got a second error on one of the graphics programs mentioned above, the reason I ran make deinstall) Note this was on a very fresh install so there wasn't anything else to upgrade.)

Then, I reinstalled some of the ones I'd removed, which pulled in other necessarys. x11-servers/xorg-server, x11-drivers/xf86-video-intel, xf86-input-keyboard xf86-input-synatics. This pulled in the necessary graphics libraries that I'd deinstalled. I then installed a few fonts, as per http://forums.freebsd.org/showpost.p...1&postcount=11, a window manager, and all was good.

This is on a fairly new 9.1 RELEASE install. After that, it's worked without problems. (This is on a laptop, and I used the wiki post on synaptics for the trackpad, which involved enabling moused(8) and a line to loader.conf.

Also, though this might go without saying, made sure hald was running.

I've been away from FreeBSD for several years, so don't know how much could have been eliminated from what I did, but I'm now happily running dwm on the machine.

https://wiki.freebsd.org/SynapticsTouchpad

Last edited by scottro; January 14th, 2013 at 02:29. Reason: tags, please read http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #6  
Old January 13th, 2013, 23:49
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Very little of that is needed. With 9.1 or 9-STABLE, add to /etc/make.conf:
Code:
WITH_KMS=yes
WITH_NEW_XORG=yes
Rebuild and reinstall the kernel, reboot.
Update ports tree.
Rebuild graphics/drm.
Rebuild xf86-video and xf86-input ports. Maybe also x11-servers/xorg-server, I can't recall.

This worked. Unfortunately, my HD4000 was noticeably slower than a Radeon 4650, so I switched back.
Reply With Quote
  #7  
Old January 14th, 2013, 03:31
scottro scottro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 25
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Just tried on fresh install. First I edited /etc/make.conf with the two lines mentioned. Then, I ran
Code:
make kernel
and rebooted.

Next I ran
Code:
portsnap fetch extract
(I hadn't installed ports during installation.)

At that point, I went into /usr/ports/x11-servers/xorg-server but when I ran
Code:
make install
it was unable to fetch the distfile.

At that point, I once again checked out the subversion repo as mentioned in my previous post, along with downloading the merge script, also mentioned in the previous post, and running it too.

Remember, I hadn't yet installed any ports at all, including those for X.


So, after running subversion fetching the merge script and running that, running portmaster -a (which didn't find anything to be updated, I was able to install xorg-server

So, it seems that, at least for me, on a fresh 9.1 install, it was necessary to get the extra repository.

Therefore, I would think that soon enough, it will become transparent to the user.

Thanks for your help. (As I said, I've been away from FreeBSD for a few years, and am just doing some dabbling this weekend--in the course of reminding myself how to do things I've come across several of your posts and other writings, which have been of great help).

Last edited by scottro; January 14th, 2013 at 04:37.
Reply With Quote
  #8  
Old January 14th, 2013, 03:59
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

I just used the standard ports tree. But adding RANDOMIZE_MASTER_SITES=yes to /etc/make.conf might have helped to find the distfiles.
Reply With Quote
  #9  
Old January 14th, 2013, 04:44
scottro scottro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 25
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Well, it's getting late here, but I just tried another quick fresh install. Added the lines to /etc/make.conf, including
Code:
RANDOMIZE_MASTER_SITES=yes.
Ran
Code:
make kernel
and rebooted

Ran
Code:
portsnap fetch extract
Then, (as I said, it's getting late, so was just checking) ran
Code:
 make fetch
from /usr/ports/x11-servers/xorg-server and it worked.
So, it's either the
Code:
RANDOMIZE_MASTER_SITES=yes
or possibly the fact that last time, I downloaded ports before redoing the kernel. Though I did run
Code:
portsnap fetch extract
a second time after rebooting with the rebuilt kernel.
Once again, many thanks. We now have somewhat of an answer to the issue.
Reply With Quote
  #10  
Old January 14th, 2013, 09:31
MasterOne MasterOne is offline
Junior Member
 
Join Date: Jul 2011
Posts: 72
Thanks: 20
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Very little of that is needed. With 9.1 or 9-STABLE, add to /etc/make.conf:
Code:
WITH_KMS=yes
WITH_NEW_XORG=yes
Rebuild and reinstall the kernel, reboot.
Are you sure about that? On a fresh 9.1-RELEASE installation I just added the two lines to make.conf and then installed Xorg without any kernel rebuild, and it seemed to have worked just fine.
Reply With Quote
  #11  
Old January 14th, 2013, 14:13
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

KMS is already included in the 9.1 kernel by default (AFAIK).
__________________
May the source be with you!
Reply With Quote
The Following User Says Thank You to Beastie For This Useful Post:
MasterOne (January 14th, 2013)
  #12  
Old January 14th, 2013, 16:27
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

I had not even considered that, but yes. So even less to do.
Reply With Quote
  #13  
Old January 14th, 2013, 17:51
Davsjo Davsjo is offline
Junior Member
 
Join Date: Feb 2012
Location: Sweden
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

What happens when X is terminated now? Are you returned to console or does the screen go blank? (The latter has been the case earlier, hasn't it?)
Reply With Quote
  #14  
Old January 14th, 2013, 17:53
MasterOne MasterOne is offline
Junior Member
 
Join Date: Jul 2011
Posts: 72
Thanks: 20
Thanked 5 Times in 2 Posts
Default

It still goes just black, console is not included in KMS.
Reply With Quote
  #15  
Old January 15th, 2013, 02:35
scottro scottro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 25
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Very little of that is needed. With 9.1 or 9-STABLE, add to /etc/make.conf:
Code:
WITH_KMS=yes
WITH_NEW_XORG=yes
Rebuild and reinstall the kernel, reboot.
Update ports tree.
Rebuild graphics/drm.
This time, trying to do as little as possible, I did a fresh install, and added the above lines to make.conf. (Actually, I tried leaving out the KMS line, but although xorg-server installed successfully, xf86-video-intel failed--I've forgotten the listed error, possibly libdrm but I may be wrong.)

I didn't rebuild the kernel, and as I hadn't yet installed any ports, I didn't rebuild anything

So, did another fresh install, added both lines to /etc/make.conf.

Then ran
portsnap(8) fetch extract.
EDIT: I probably should have formatted the above as code, rather than the man tag for portsmap. The exact command is
Code:
portsnap fetch extract
After that, installing the various ports went without
error. In addition to the server and video driver, I also added some fonts, dwm, xterm and xinit

Everything worked without problems. At least for 9.1, it seems that all one has to do is add the two lines to make.conf, then install the needed ports. (If the ports have already been installed, I haven't confirmed which ones have to be reinstalled and which can be ignored.)

Last edited by scottro; January 15th, 2013 at 19:23.
Reply With Quote
The Following User Says Thank You to scottro For This Useful Post:
wblock@ (January 15th, 2013)
  #16  
Old January 17th, 2013, 02:59
scottro scottro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 25
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Having also tried with CURRENT, in my experience, one still has to add the KMS and NEW_XORG lines to make.conf for it to work. Can anyone confirm or contradict? This was on a fresh install of 9.1, including ports, which I used for subversion, then updating to CURRENT, reinstalling ports with
Code:
portsnap make extract
and then installing the various xorg packages, with, I would guess, xorg-server and xf86-video-intel being the relevant ones.

When I did this without adding the two lines to make.conf, I got the no screens found error. This was only tested on one install, but I'm guessing, (and looking at the wiki indicates this is the case) that the two lines are still needed in make.conf

Wiki link: https://wiki.freebsd.org/Intel_GPU

EDIT: I'm sleepy and using too much mental shorthand. I should point out that as long as the two lines are added to make.conf, X works fine with Ivy Bridge Intel in CURRENT.

Last edited by scottro; January 17th, 2013 at 04:27.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD Foundation's New Project: Implement GEM/KMS/DRI for Intel Graphics vermaden X.Org 179 November 6th, 2012 12:36
Intel IvyBridge HD 4000 graphics agottem Installing & Upgrading 1 July 15th, 2012 09:41
Unusual Graphics Resolution on FreeBSD 9 with Core I3 integrated graphics aatish910 X.Org 3 June 12th, 2012 16:57
[SOLVED] FreeBSD as a VM Host and x64 graphics drivers dcbdbis General 1 September 3rd, 2010 05:35
Why is there no graphics driver for my nvidia card in FreeBSD 8.0 - RELEASE i386? Lasse X.Org 6 December 18th, 2009 20:30


All times are GMT +1. The time now is 08:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0