Optimus VGA support in new release 9.1

Sam Fourman Jr. sfourman at gmail.com
Mon Dec 31 17:33:06 UTC 2012


> If the BIOS allows turning off the NVidia graphics, FreeBSD 9.1 has a KMS
> driver that will support the Intel graphics.


You don't even need bios to support turning off the nvidia card.. im
using a Asus N53SV-XR1
it has a nvidia optimus GT540M..
KMS works for the intel video card. so long as you dont use
packages... you have to compile xorg with
a few settings in your /etc/make.conf
as well as use the xorg intel driver, the vesa driver doesn't work and
will hard lock your system.

these settings go in /etc/make.conf
WITH_NEW_XORG=YES
WITH_KMS=YES


here is my xorg.conf

cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "Not X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Synaptics_Touchpad" "AlwaysCore"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/webfonts/"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/100dpi/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
	FontPath     "/usr/local/lib/X11/fonts/bitstream-vera/"
	FontPath     "/usr/local/lib/X11/fonts/Droid/"
	FontPath     "/usr/local/lib/X11/fonts/Liberation/"
	FontPath     "/usr/local/lib/X11/fonts/terminus-font/"
	FontPath     "/usr/local/lib/X11/fonts/LinLibertineG/"
        FontPath     "/usr/local/lib/X11/fonts/anonymous-pro/"
	FontPath     "/usr/local/lib/X11/fonts/GentiumBasic/"
EndSection

Section "Module"
	Load  "dri"
	Load  "freetype"
	Load  "extmod"
	Load  "glx"
	Load  "type1"
	Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier "Synaptics_Touchpad"
        Driver "Synaptics"
        Option "UseShm" "true"
        Option "SHMConfig" "on"
        Option "Protocol" "psm"
        Option "Device" "/dev/psm0"
        Option "SendCoreEvents" "true"
        Option "ZAxisMapping" "4 5 6 7"
        Option "FingerLow" "26"
        Option "FingerHigh" "51"
        Option "FingerPress" "254"
        Option "HorizEdgeScroll" "1"
        Option "MinSpeed" "0.10"
        Option "MaxSpeed" "0.20"
        Option "RTCornerButton" "2"
        Option "RBCornerButton" "3"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Intel nVidia Thingy"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
        Modes "1366x768"
        Virtual 1366 768
EndSubSection
EndSection


Sam Fourman Jr.


More information about the freebsd-questions mailing list