Reply
 
Thread Tools Display Modes
  #51  
Old 03-10-2012, 01:59 PM
altavista altavista is offline
Junior Member
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default
my asus n73sv managed to start from livecd standart boot
due to wide screen or lack of drivers I can say its looking sligtly distorted,
and pcbsd was an only bsd distro manages to start with graphical de support(on my notebook)
due to modern hardware nature I think optimus support is one of most important things to be implemented.
Reply With Quote
  #52  
Old 03-16-2012, 10:25 AM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Hello guys,

Finally, I found a way to activate the kms support on my laptop. Unfortunatelly this works right now only on FreeBSD9.0 and only some part works as expected.

Here I am right now: the video card seems to be correctly initialized, but a lot of artifacts (random pixels) are shown in the top part of the screen. Also, the mouse clicks doesn't seems to work.

I'll post the tutorial with what I've done in order to obtain kms support. If you want to test for yourself, then follow the next steps:

1. Install the FreeBSD dvd standard version, only the system base (without X, ports, or something else, just a basic install)


2. Log in as root and type:
portsnap fetch extract


3. Install the portsmaster and the subversion:
cd /usr/ports/ports-mgmt/portmaster
make install clean
cd /usr/ports/devel/subversion
make install clean


4. type:
portmaster -a

then install the cvsup tool:

cd /usr/ports/net/cvsup-without-gui
make install clean


5. make a txt file called sources9.txt with this content:

*default host=cvsup.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default release=cvs tag=RELENG_9
*default delete use-rel-suffix compress

src-all


6. do this in order to get the all source code:
csup sources9.txt


7. edit manually (with vi or ee) the /usr/src/sys/dev/drm/i915_suspend.c file and modify it so that "$FreeBSD: blah[...]blah$" becomes "$FreeBSD$"

or call this command to automatically do that:

sed -i -e 's/FreeBSD: src.*Exp /FreeBSD/' /usr/src/sys/dev/drm/i915_suspend.c


8. cd to /root and get the kms patch form the tsatsenko website:

From /root directory, type this:

fetch http://tsatsenko.ru/files/all.13.5-stable-9.patch

**note: I used this patch wich is the newest one, buy maybe the artifacts problem cames from it - I don't know, I'll try with older patches because some people with videocards like me doesn't report that kind of problem (screen artifacts).

9. apply that patch to the kernel with:
patch -d /usr/src </root/all.13.5-stable-9.patch

**note: pray to God not to have *.rej files after applying the patch, because that case the kernel will not compile**


10. go to /usr/src directory and type:
make buildworld && make buildkernel && make installkernel

(reboot)


11. go to /usr/src directory and type:
make installworld

(reboot)


12. edit the /etc/make.conf file and add the following lines:
WITH_NEW_XORG="YES"
WITH_KMS="YES"

**note: if you don't have this file, you can create it with:
touch /etc/make.conf


13. install xorg

cd /usr/ports/x11/xorg
make install clean

(reboot)


14. get the xorgmerge script with:
fetch http://people.freebsd.org/~miwi/xorg/xorgmerge


15. get the 7_5_2 X version from svn. Go to /root and type:
svn co https://trillian.chruetertee.ch/svn/...ags/xorg_7_5_2


16. edit xorgmerge script with ee or vi and set the KDEDIR variable value to your xorg_7_5_2 path:

KDEDIR="/root/xorg_7_5_2"


17. call the script:
sh xorgmerge


18. call this to rebuild everything:
portmaster -Raf

19. edit /boot/loader.conf and add this:
drm_load="YES"

20. edit /etc/rc.conf and add this:
dbus_enable="YES"
hald_enable="YES"

(reboot)

21. from /root type this:
Xorg -configure
cp xorg.conf.new /etc/xorg.conf

22. add your favourite DE to .xinitrc file:
echo exec /usr/local/bin/twm > ~/.xinitrc

**Note: if you don't set any DE to start, you've got a blank screen when you startx.

23. startx

**Note:
All this process will take several hours. If you plan to do that, make all this stuff in a weekend day or take a vacation day (as me)

Anyway, I'll dig into this and then, if I can set correctly my video card I'll see if I can make the same thing for PC-BSD.

I'll keep in touch with my progress.

Cheers,
phpwolf

Last edited by phpwolf; 03-16-2012 at 02:03 PM. Reason: avoid possible missunderstandig
Reply With Quote
  #53  
Old 03-18-2012, 12:53 PM
{OdS} {OdS} is offline
Junior Member
 
Join Date: Oct 2011
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks for your efforts! I hope to be able to test this as soon as I can, unfortunately, my laptop is needed for real life matters these days. Anyway, thank you again!

Christian
Reply With Quote
  #54  
Old 04-04-2012, 08:58 AM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
With all.13.7-stable-9.patch from tsatsenko, the X works almost great. For those who want to try this, I must say that my previous steps to enable kms support remains the same. Now I have a FreeBSD9 + dri patches and 3D acceleration on my laptop. My problem is partially solved, I'm happy and I will try to do the same thing on a clear PC-BSD9 installation. I don't know if the result can be packaged somehow, but I can make a bash script in order to automatically do that. And finally, I want to thanks to Toto from FreeBSD Forum who helped me to solve this problem and, of course, a big thanks to kib who actually make the real work on kms support by releasing these patches.
Reply With Quote
  #55  
Old 04-06-2012, 02:02 PM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Ok, so I write some bash scripts that builds the kms support for PC-BSD9, in order
to automatize the building process. Attached is a .zip archive with these scripts.


WARNING!!
These scripts will work only with PC-BSD9. I found that they are some differences between FreeBSD and PC-BSD regarding the default installed packages so you shouldn't check these scripts on another BSD distribution because you can get a lot of errors.

Here is what you can do if you have an Optimus video card:

1. Install a normal PC-BSD9 system using the liveDVD or the default DVD, but DO NOT install ports or portsjail. If you use the normal DVD version, don't forget to check "Development" support at the installation time.

2. Download kmsscripts_001.zip and copy it to /root

3. Log in as root and unpack the archive:
unzip kmsscripts_001.zip

4. run the part1.sh and follow the instructions. You can also check the README.TXT file to see more informations about the installation process.

Note: if you encounter errors, don't forget to attach the log.txt file to the report.

Good luck!
Attached Files:
File Type: zip kmsscripts_001.zip (5.9 KB, 6 views)
Reply With Quote
  #56  
Old 04-09-2012, 07:30 AM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
New version of script.
Attached Files:
File Type: zip kmsscripts_002.zip (5.9 KB, 11 views)

Last edited by phpwolf; 04-09-2012 at 07:34 AM.
Reply With Quote
  #57  
Old 04-14-2012, 01:49 PM
Solaris Solaris is offline
Junior Member
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
New patch file
Code:
http://tsatsenko.ru/files/all.14.3-stable-9.patch
Reply With Quote
  #58  
Old 04-15-2012, 09:38 AM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by Solaris View Post
New patch file
Code:
http://tsatsenko.ru/files/all.14.3-stable-9.patch
This patch seems to be much stable then the older ones. I found that using this patch, the X is up and running for a long period of time compared to the old patches.

Some important notes about 14.3 patch:

1 - before apply the patch, edit /usr/src/sys/dev/drm/i915_mem.c and modify
the line:

#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/sys/dev/drm/i915_mem.c,v 1.4.4.1 2011/09/23 00:51:37 kensmith Exp $");

to

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

to be sure that the patch are applied correctly, otherwise you will find a *.rej on this file. It seems like Kib removed some memory functions from this file and probably that's why this patch is much stable then the older ones.


2 - there still are some stability problems. For example, when you stress enough the video board with 3D content the system hangs up (it seems like the neverball game is the best stress test for the kms support )
Reply With Quote
  #59  
Old 05-03-2012, 04:53 PM
phpwolf phpwolf is offline
Member
 
Join Date: Mar 2011
Location: Romania, Bucharest
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default
version testing log:

all.14.5-stable-9.patch 29-Apr-2012 12:13 2010272

You should try it because is much stable than the previous versions. I can play neverputt for ~3mins without crashes. Same method for applying this patch as for 14.3 and 14.4, no problems on that side.
Reply With Quote
  #60  
Old 09-16-2012, 03:58 PM
Sfourman Sfourman is offline
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default
ok I have a Asus N53sv-xr1, that has nvidia optimius, I am able to get freebsd 10 working on it.. and load xorg but only if the intel driver is specified in xorg.conf.

it wont work in vesa mode.. so the question is how do I install PC-BSD 9.1?

i wish there was a way to build a custom USB install stick that defaulted to the intel driver and already had a xorg.conf file xorg -configure didnt work for me..

any ideas?
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


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.