1bce5
![]() |
|
|
|
|
|||||||
| Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment. |
![]() |
|
|
Thread Tools | Display Modes |
|
#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? |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
Is the addition of WITH_NEW_XORG=yes and WITH_KMS=yes to make.conf still needed, or is this already the default now?
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
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 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 |
|
#6
|
||||
|
||||
|
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 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. |
|
#7
|
|||
|
|||
|
Just tried on fresh install. First I edited /etc/make.conf with the two lines mentioned. Then, I ran
Code:
make kernel Next I ran Code:
portsnap fetch extract At that point, I went into /usr/ports/x11-servers/xorg-server but when I ran Code:
make install 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. |
|
#8
|
||||
|
||||
|
I just used the standard ports tree. But adding RANDOMIZE_MASTER_SITES=yes to /etc/make.conf might have helped to find the distfiles.
|
|
#9
|
|||
|
|||
|
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. Code:
make kernel Ran Code:
portsnap fetch extract Code:
make fetch So, it's either the Code:
RANDOMIZE_MASTER_SITES=yes Code:
portsnap fetch extract Once again, many thanks. We now have somewhat of an answer to the issue. |
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
|||
|
|||
|
KMS is already included in the 9.1 kernel by default (AFAIK).
__________________
May the source be with you! |
| The Following User Says Thank You to Beastie For This Useful Post: | ||
MasterOne (January 14th, 2013) | ||
|
#12
|
||||
|
||||
|
I had not even considered that, but yes. So even less to do.
|
|
#13
|
|||
|
|||
|
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?)
|
|
#14
|
|||
|
|||
|
It still goes just black, console is not included in KMS.
|
|
#15
|
|||
|
|||
|
Quote:
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 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. |
| The Following User Says Thank You to scottro For This Useful Post: | ||
wblock@ (January 15th, 2013) | ||
|
#16
|
|||
|
|||
|
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 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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |