Hello Community,
I am new to FreeBSD and have a problem with the nVidia-driver for Xorg. Yesterday I installed FreeBSD-10.3-RELEASE on my laptop (MSI CX61 with NVIDIA GeForce 820M) and build Xorg form the Ports Collection. Then I created the configuration files for the keyboard and for the screen resolution in
/usr/local/etc/X11/xorg.conf.d/
as described in section 5.4 of the handbook. The command
/usr/local/ports/x11/nvidia-driver
didn't cause any problems (to setup the nvidia-driver, I read this tutorial: Thread HOWTO: Setup Xorg with NVIDIA's driver.52311 ).
However, after I created /usr/local/etc/X11/xorg.conf.d/nvidia-driver.conf with the content
I get a black screen after starting Xorg with
to my /boot/loader.conf didn't help. Here is my loader.conf:
and the /etc/rc.conf:
This problem doesn't occur when I delete /usr/local/etc/X11/xorg.conf.d/nvidia-driver.conf, so maybe I don't need the file to use the graphic card? Otherwise I have no idea how to solve this problem. This is the output of
and the directory /etc/X11/ ist empty. If I failed to include important information, please let me know.
Thanks for reading and for you help.
I am new to FreeBSD and have a problem with the nVidia-driver for Xorg. Yesterday I installed FreeBSD-10.3-RELEASE on my laptop (MSI CX61 with NVIDIA GeForce 820M) and build Xorg form the Ports Collection. Then I created the configuration files for the keyboard and for the screen resolution in
/usr/local/etc/X11/xorg.conf.d/
as described in section 5.4 of the handbook. The command
startx
starts Xorg and its default window manager TWM, so everything worked fine. Even the nvidia-driver installation from /usr/local/ports/x11/nvidia-driver
didn't cause any problems (to setup the nvidia-driver, I read this tutorial: Thread HOWTO: Setup Xorg with NVIDIA's driver.52311 ).
However, after I created /usr/local/etc/X11/xorg.conf.d/nvidia-driver.conf with the content
Code:
Section "Device"
Identifier "NVIDIA Card"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
Driver "nvidia"
Option "NvAGP" "1"
# Option "AccelMethod" "none"
# Option "TripleBuffer" "True"
# Option "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection
startx
. So I looked for a solution in this thread Thread nvidia-driver crashes computer on X start.3065/, but adding
Code:
machdep.disable_mtrrs="1"
Code:
kern.vty="vt" # german charset (umlaute)
if_urtwn_load="YES" # WLAN-driver
legal.realtek.license_ack="1"
nvidia_load="YES" # nvidia-driver
machdep.disable_mtrrs="1" # to prevent blackscreens in Xorg
Code:
hostname="laptop.c0gito.de"
ifconfig_alc0="DHCP"
sshd_enable="YES"
powerd_enable="YES"
# The console-font (iso8859-15)
font8x16="iso15-8x16"
font8x14="iso15-8x14"
font8x8="iso15-8x8"
keymap="german.iso"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
# Linux-Emulator for the nVidia-driver
linux_enable="YES"
# WLAN-Configuration
wlans_urtwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
# for Mate-desktop
moused_enable="YES"
dbus_enable="YES"
hald_enable="YES"
# slim_enable="YES"
Xorg -configure
in /root/xorg.conf:
Code:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/misc/"
FontPath "/usr/local/share/fonts/TTF/"
FontPath "/usr/local/share/fonts/OTF/"
FontPath "/usr/local/share/fonts/Type1/"
FontPath "/usr/local/share/fonts/100dpi/"
FontPath "/usr/local/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "DRI" # <str>
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card1"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Thanks for reading and for you help.