Solved Xorg graphics issues (Asus U36SD)

Hi all,

I'm trying to get FreeBSD 11.1 x64 with desktop environment runing on my ASUS U36SD laptop (laptop specs).
The laptop has dual graphic cards, intel and nvidia. I've looked at alot of the old posts, and I'm guessing that my problem stems from the nvidia optimus technology (Nvidia GPU specs).
I've looked in the BIOS to disable one or the other, as has been mentioned in other threads, but no such luck. But I thought I'd ask anyway.

I installed the following pkgs: pkg install xorg-server xf86-input-mouse xf86-input-keyboard xinit xauth xf86-video-intel nvidia-driver

pciconf -lv | grep VGA -A4 reports the following:
Code:
vgapci1@pci0:0:2:0:   class=0x030000 card=0x16821043 chip=0x01168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '2nd Generation Core Processor Family Integrated Graphics Controller'
    class      = display
    subclass   = VGA
--
vgapci0@pci0:1:0:0:   class=0x030000 card=0x16821043 chip=0x105010de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GF119M [GeForce GT 520M]'
    class      = display
    subclass   = VGA
Followed tobik@ howto Thread 52311, created /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf:
Code:
Section              "Device"
   Identifier        "nvidia"
   Vendorname        "NVIDIA Corporation"
   BoardName         "GF119M [GeForce GT 520M]"
   Driver            "nvidia"
   BusID             "PCI:1:0:0"
EndSection
Added nvidia-modeset to rc.conf: sysrc kld_list+="nvidia-modeset"

kldstat | grep nvidia reports the following:
Code:
11    1 0xffffffff82832000 b75cc    nvidia-modeset.ko
12    1 0xffffffff828ea000 b092ff   nvidia.ko
When I run startx it exits out to the commandline, Xorg.0.log reports the following: pastebin

dmesg: pastebin

EDIT:
Added intel conf to xorg.conf.d this time, although xorg still errors out.
Xorg.0.log: pastebin

Any help would be appreciated. Thanks in advance.

yass
 
Last edited:
The hardware doesn't give EDID information.
I guess you need a xorg.conf supplying that information.
The important snippet here:

Code:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
# Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection

The H and VSync values are common safe values, but might not be in the range your laptop uses.
The Modes line must be corrected to your display's native resolution.
 
The hardware doesn't give EDID information.
I guess you need a xorg.conf supplying that information.
The important snippet here:

Code:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
# Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection

The H and VSync values are common safe values, but might not be in the range your laptop uses.
The Modes line must be corrected to your display's native resolution.

Snurg: Tried the suggested snippets. The Nvidia GPU still doesn't find the laptop screen. Tried installing the full xorg pkg aswell, same results sadly, Xorg.0.log: pastebin.
 
Looks fine so far. The only error I see is this
Code:
[   328.303] (EE) config/devd: fail to connect to devd
So it now looks to me like that now the video driver is no longer the problem that stops X startup.
It looks like a devd problem. Maybe /etc/devd.conf needs to be modified in some way.

I have to apologize that I have no experience in the devd thing. Maybe other guys here can help.
 
not to dwell off-topic but a recent Xorg fixup had running
Code:
/sbin/devd
AFTER Xorg with no mouse working, reenabled the mouse from within an xterm without restarting X necc. [ this is from memory, though, the binary in /sbin could have been another... ]. It also needed a flip True> False or vice versa in xorg.conf...
 
To anyone else looking in on this tread. Due to the laptop having two graphic cards, and the nvidia card is with optimus technology. Xorg wont work with both cards at the same time, nor will it find the laptop screen when using nvidia drivers. Uninstalling the nvidia drivers and directing xorg to use intel drivers is the way to go.

Thanks again to the above users for help and feedback.
 
Back
Top