|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Xorg & i810 graphics / loader.conf / kldstat
Hi, I'm somewhat of a FreeBSD noob, but not a *nix noob.
I'm having problems getting Xorg to work properly with my hardware. I'm running 7.0 on an old Compaq Deskpro EN 733PIII. It has i815 Intel graphics, which is supported by the i810 driver packaged with 7.0. I've been reading copious amounts of documentation and experimenting to get this going. With both Gnome and KDE, I just get a messed up screen; I can see bits of each desktop environment and the mouse works, but they're unusable. I have my monitor settings perfect, including the arcane Modeline settings. Following the FreeBSD X11 config guide (http://www.freebsd.org/doc/en/books/.../x-config.html), I have set agp_load="YES" in /boot/loader.conf, but when I do a kldstat, the agp.ko module isn't listed. This agp.ko module is essential to getting the i810 driver to work. What gives? Why isn't agp.ko loaded, even though I've specified it in loader.conf??? - Ogre |
|
|||
Quote:
Indeed, you're right about the kldstat flag! There's my i810 driver! Code:
$ kldstat -v | grep agp 408 hostb/agp_ali 409 hostb/agp_amd 410 hostb/agp_amd64 411 hostb/agp_ati 412 vgapci/agp_i810 413 hostb/agp_intel 414 hostb/agp_nvidia 415 hostb/agp_sis 416 hostb/agp_via Monitor: Sceptre 19" 4:3 1280x1024 Video: Onboard Intel 815 4MB RAM. Max bit depth: 16 Here's my xorg.conf: Code:
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" RgbPath "/usr/local/share/X11/rgb" 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 "GLcore" Load "dbe" Load "dri" Load "extmod" Load "glx" Load "record" Load "xtrap" Load "freetype" Load "type1" 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" HorizSync 24-80 VertRefresh 50-75 ModeLine "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 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 "NoAccel" # [<bool>] #Option "SWcursor" # [<bool>] #Option "ColorKey" # <i> #Option "CacheLines" # <i> #Option "Dac6Bit" # [<bool>] #Option "DRI" # [<bool>] #Option "NoDDC" # [<bool>] #Option "ShowCache" # [<bool>] #Option "XvMCSurfaces" # <i> #Option "PageFlip" # [<bool>] Identifier "Card0" Driver "i810" VendorName "Intel Corporation" BoardName "82815 Chipset Graphics Controller (CGC)" BusID "PCI:0:2:0" VideoRam 4096 EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 16 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 Modes "1280x1024" "1024x768" "800x600" "640x480" #Virtual 1280 1024 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Code:
... drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed [drm] failed to load kernel module "i810" (EE) [drm] drmOpen failed. (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. ... - Ogre Last edited by OgreNaut; 6th November 2008 at 12:35 AM. |
|
||||
You should use intel driver instead of obsolete i810. In my experience one of the common
reason for failure of X server with intel driver that it supports only DefaultDepts up to 24 even though your hardware might support something higher (32). Force X server to use DefaultDepth 24 by editing xorg.conf file. Also try to increase vertical and horizontal refreshing rates. Finally put something reasonable for Modes "1024x768" comes to mind. And did I say that you sould read your xorg.log file:--) |
|
||||
If you're getting a "mixed up desktop" with multiple images showing, then your resolution and refresh rate are set incorrectly, which points to either an invalid ModeLine setting, or an incorrect resolution setting.
What happens if you comment the VertRefresh, HorizSync, and ModeLine lines? |
|
|||
Quote:
Code:
Fatal server error: AddScreen/ScreenInit failed for driver 0 (From my previously posted Xorg.0.log) Code:
[drm] failed to load kernel module "i810" |
|
|||
Quote:
HorizSync: 24-80 VertRefresh: 50-75 I checked it against the monitor's manual. |
|
|||
BTW Carpetsmoker, badass Rutger Hauer avatar.
- Ogre |
|
|||
Have you tried the "intel" driver yet? It really is recommended over the unsupported and unmaintained i810 driver.
Also, the i810 kernel module Xorg is trying to load is for 3D functionality. It really should not be impacting your normal gnome or KDE desktop. Adam Last edited by adamk; 6th November 2008 at 09:45 AM. |
|
|||
DRI/DRM is not enabled (causing various errors on screen)
Add this to your xorg.conf Code:
Section "DRI" Mode 0666 EndSection |
|
|||
Quote:
- Joe |
|
|||
The reason that DRI/DRM is not enabled is due to this:
Code:
[drm] failed to load kernel module "i810" Adam |
|
|||
You missed fact that following lines are displayed before error you mentioned.
Code:
drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed |
|
|||
To OP:
Make sure that drm.ko & i915.ko are displayed in kldstat output. |
|
|||
Quote:
Now what? Manually load those in loader.conf? - Ogre |
|
|||
Quote:
# kldload drm i915 and add following lines in /boot/loader.conf: Code:
drm_load="YES" i915_load="YES" $ dmesg|tail
Last edited by richardpl; 7th November 2008 at 11:10 AM. |
|
|||
That's the result of the i810 kernel module not being loaded and being unloadable.
|
|
|||
There is no i810 kernel module.
|
|
|||
That's my point :-) Which is one of the reasons I suggest he move to the "intel" driver... Well, other than the fact that the intel driver is newer and actually maintained.
|
|
|||
Quote:
-Ogre |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Xorg, i810, HP 533w | Mr-Biscuit | FreeBSD General | 4 | 23rd February 2009 11:22 PM |
nwn failed to initialize graphics | maxrussell | FreeBSD General | 8 | 22nd November 2008 08:52 PM |
difference between rc.conf and loader.conf | disappearedng | FreeBSD General | 5 | 3rd September 2008 05:54 AM |
Generate xorg.conf.new and black screen | aleunix | OpenBSD Packages and Ports | 2 | 4th June 2008 10:49 AM |
Xorg.conf w/Matrox g550 agp | WeakSauceIII | OpenBSD General | 4 | 20th May 2008 08:27 AM |