Solved [Solved] Display drivers not working correctly please help

Well I switched to FreeBSD from Linux to see what's up and I really want to get this running correctly. I have it installed just fine using Openbox and the thing is I am stuck at 1024x768 resolution when my laptop's native resolution is 1366x768 and on top of that the refresh rate is messed up too.

I have edited the xorg.conf to change the resolution to my laptop's native but it didn't show in xrandr. The thing is, it works just fine in PC-BSD so I know I am missing something.

-------------Here is xorg.conf:

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/local/lib/xorg/modules"
	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/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "dri"
	Load  "dri2"
	Load  "extmod"
	Load  "record"
	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 "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
	Identifier  "Card0"
	Driver      "vesa"
	VendorName  "Intel Corporation"
	BoardName   "Core Processor Integrated Graphics Controller"
	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

-------------rc.conf:

Code:
hostname="desbsd"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
hald_enable="YES"
dbus_enable="YES"

-------------Here is pciconf -l -v:

Code:
root@desbsd:/usr/home/destreza # pciconf -l -v
hostb0@pci0:0:0:0:	class=0x060000 card=0x033d1025 chip=0x00448086 rev=0x12 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x030000 card=0x033d1025 chip=0x00468086 rev=0x12 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Integrated Graphics Controller'
    class      = display
    subclass   = VGA
none0@pci0:0:22:0:	class=0x078000 card=0x033d1025 chip=0x3b648086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset HECI Controller'
    class      = simple comms
ehci0@pci0:0:26:0:	class=0x0c0320 card=0x033d1025 chip=0x3b3c8086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:	class=0x040300 card=0x033d1025 chip=0x3b568086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset High Definition Audio'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:	class=0x060400 card=0x033d1025 chip=0x3b428086 rev=0x05 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset PCI Express Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:1:	class=0x060400 card=0x033d1025 chip=0x3b448086 rev=0x05 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset PCI Express Root Port 2'
    class      = bridge
    subclass   = PCI-PCI
ehci1@pci0:0:29:0:	class=0x0c0320 card=0x033d1025 chip=0x3b348086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib3@pci0:0:30:0:	class=0x060401 card=0x033d1025 chip=0x24488086 rev=0xa5 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Mobile PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x033d1025 chip=0x3b098086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 5 Series Chipset LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:	class=0x010601 card=0x033d1025 chip=0x3b298086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset 4 port SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
none1@pci0:0:31:3:	class=0x0c0500 card=0x033d1025 chip=0x3b308086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none2@pci0:0:31:6:	class=0x118000 card=0x033d1025 chip=0x3b328086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset Thermal Subsystem'
    class      = dasp
bge0@pci0:2:0:0:	class=0x020000 card=0x033d1025 chip=0x169214e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'NetLink BCM57780 Gigabit Ethernet PCIe'
    class      = network
    subclass   = ethernet
ath0@pci0:4:0:0:	class=0x028000 card=0x663211ad chip=0x002a168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = 'AR928X Wireless Network Adapter (PCI-Express)'
    class      = network
hostb1@pci0:255:0:0:	class=0x060000 card=0x80868086 chip=0x2c628086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor QuickPath Architecture Generic Non-core Registers'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:255:0:1:	class=0x060000 card=0x80868086 chip=0x2d018086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor QuickPath Architecture System Address Decoder'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:255:2:0:	class=0x060000 card=0x80868086 chip=0x2d108086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor QPI Link 0'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:255:2:1:	class=0x060000 card=0x80868086 chip=0x2d118086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor QPI Physical 0'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:255:2:2:	class=0x060000 card=0x80868086 chip=0x2d128086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Reserved'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:255:2:3:	class=0x060000 card=0x80868086 chip=0x2d138086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Reserved'
    class      = bridge
    subclass   = HOST-PCI

-------------And here is the xorg.conf that worked in PC-BSD:

Code:
# XFree86 configuration file for RoFreeSBIE
     
    Section "ServerLayout"
            Identifier     "XFree86 Configured"
            Screen      0  "Screen0" 0 0
            InputDevice    "Mouse0" "CorePointer"
            InputDevice    "Keyboard0" "CoreKeyboard"
    EndSection
     
    Section "Files"
            ModulePath   "/usr/local/lib/modules"
            ModulePath   "/usr/local/lib/xorg/modules"
            FontPath     "/usr/local/lib/X11/fonts/cyrillic/"
            FontPath     "/usr/local/lib/X11/fonts/TrueType/"
            FontPath     "/usr/local/lib/X11/fonts/illinoy/"
            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/Speedo/"
            FontPath     "/usr/local/lib/X11/fonts/Type1/"
            FontPath     "/usr/local/lib/X11/fonts/CID/"
            FontPath     "/usr/local/lib/X11/fonts/75dpi/"
            FontPath     "/usr/local/lib/X11/fonts/100dpi/"
            FontPath     "/usr/local/lib/X11/fonts/dejavu/"
            FontPath     "/usr/local/lib/X11/fonts/cyrillic/"
            FontPath     "/usr/local/lib/X11/fonts/hebrew/"
            FontPath     "/usr/local/lib/X11/fonts/vietnamese/"
            FontPath     "/usr/local/lib/X11/fonts/indic/"
            FontPath     "/usr/local/lib/X11/fonts/fonts-indic/"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/AAHS"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/AGA"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/FS"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/Kasr"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/MCS"
            FontPath     "/usr/local/lib/X11/fonts/ae_fonts1/Shmookh"
            FontPath     "/usr/local/lib/X11/fonts/local/"
    EndSection
     
    Section "Module"
            Load  "extmod"
            Load  "record"
            Load  "dbe"
            Load  "glx"
            Load  "dri"
            Load  "dri2"
    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"
    EndSection
     
    Section "Screen"
            Identifier "Screen0"
            Device     "Card0"
            Monitor    "Monitor0"
    EndSection
     
    Section "Device"
            Identifier      "Card0"
            Driver          "intel"
            BusID           "0:2:0"
    EndSection

Forgive me if I am doing something wrong §jr
 
Re: Display drivers not working correctly please help

Have a look here: https://wiki.freebsd.org/Graphics

The trick is probably to rebuild your Xorg with WITH_NEW_XORG set. Can you post your /var/log/Xorg.0.log on pastebin (or a similar service)? It will help us figure out what's being detected.
 
Re: Display drivers not working correctly please help

wblock@ said:
It is using the vesa driver for whatever mysterious Intel graphics are provided in that unnamed Intel processor. Install the KMS ports as shown at https://wiki.freebsd.org/Graphics#Installing_KMS_Ports.

I did try to install KMS ports at one point yesterday and I got an error when I got to the portmaster graphics/libdrm graphics/libGL graphics/dri x11-servers/xorg-server part of the instructions on that page.

So, I tried again on a fresh install and here is that same error: (At the end of this log)

http://pastebin.com/Qv52ZMVC#
 
Re: Display drivers not working correctly please help

Likely some steps from /usr/ports/UPDATING missed.
 
Re: Display drivers not working correctly please help

So I installed the KMS port. Or, at least I think I have it installed using the steps on that page.

But the native resolution is still not showing, and still crappy refresh rate. Am I missing something?

I updated pkg and port tree like you said.
 
Re: Display drivers not working correctly please help

As you see here the problem still persists:
iKtd3Xe.png


Here is another Xorg log if needed:
http://pastebin.com/yxCrg8au#
 
Re: Display drivers not working correctly please help

Good, now you have the KMS drivers. It is still using the vesa driver because that has been specified in xorg.conf.

There does not appear to be anything necessary in your xorg.conf. I recommend you rename or delete it and let Xorg autoconfig.

It would be useful to know whether the laptop has a Haswell processor. If so, you're stuck with vesa for now. Almost all of the Intel graphics prior to the Haswell processors will work.
 
Re: Display drivers not working correctly please help

wblock@ said:
Good, now you have the KMS drivers. It is still using the vesa driver because that has been specified in xorg.conf.

There does not appear to be anything necessary in your xorg.conf. I recommend you rename or delete it and let Xorg autoconfig.

It would be useful to know whether the laptop has a Haswell processor. If so, you're stuck with vesa for now. Almost all of the Intel graphics prior to the Haswell processors will work.

Oh, wow thanks it works now. Thank you so much everyone.

Marking as solved.
 
Back
Top