• Xorg not finding video device

    From Winston@21:1/5 to Noel Hunt on Sun Mar 6 11:14:30 2016
    Noel Hunt <noel.hunt@gmail.com> writes:
    Can anyone help please?

    Not sure if this'll help ...

    If you haven't already done so, I suggest running "Xorg -configure".
    Start with the config file that produces and modify as desired.

    As to the xorg.config file content you posted, I see no ellipsis (...),
    so I can't tell whether what you posted is really your entire xorg.conf
    or was trimmed to the parts you think relevant. (For example, I see no InputDevices in your ServerLayout section.) My main concern would be
    whether something's missing or that the default value you get for
    unspecified values is something that doesn't work in your case.

    Xorg gives

    [ 7014.986] (EE) No devices detected.
    [ 7014.986] (EE) no screens found(EE)

    This could be a config problem rather than a hardware detection
    problem, in which case the lines before those in the log file should
    indicate what failed.
    -WBE

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Noel Hunt@21:1/5 to All on Sat Mar 5 16:05:59 2016
    I am running Xorg on an HP desktop machine with an Intel Q45/Q43
    video card (Solaris). Although HAL knows about this card, and what
    driver to use:

    udi = '/org/freedesktop/Hal/devices/pci_0_0/display_2_0'
    info.solaris.driver = 'i915' (string)
    solaris.devfs_path = '/pci@0,0/display@2' (string)
    info.product = 'VGA compatible controller' (string)
    info.udi = '/org/freedesktop/Hal/devices/pci_0_0/display_2_0' (string)
    info.parent = '/org/freedesktop/Hal/devices/pci_0_0_0' (string)

    Xorg gives

    [ 7014.986] (EE) No devices detected.
    [ 7014.986] (EE) no screens found(EE)

    I have a very straightforward xorg.conf:

    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    EndSection

    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Monitor "VGA screen"
    Device "Intel Q45/Q43"
    EndSection

    Section "Monitor"
    Identifier "VGA screen"
    VendorName "Hewlett-Packard"
    ModelName "HP L1910"
    # Option "PreferredMode" "1280x1024_75"
    Option "Enable" "true"
    EndSection

    Section "Device"
    Identifier "Intel Q45/Q43"
    Driver "intel"
    BusID "PCI:0:2:0"
    EndSection

    When I run Xorg and specify the 'vesa' driver, Xorg's log shows
    that it detects the card as

    [ 7084.222] (--) PCI:*(0:0:2:0) 8086:2e12:103c:3034 rev 3, Mem @ ...
    [ 7084.222] (--) PCI: (0:0:2:1) 8086:2e13:103c:3034 rev 3, Mem @ ...

    Since I am explicitly telling Xorg what to use I don't
    understand why it's failing.

    Can anyone help please?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Noel Hunt@21:1/5 to Winston on Sun Mar 6 17:58:02 2016
    Many thanks for your reply.

    On Monday, March 7, 2016 at 3:13:57 AM UTC+11, Winston wrote:

    If you haven't already done so, I suggest running "Xorg -configure".
    Start with the config file that produces and modify as desired.

    It's much worse than you imagine. 'Xorg -configure' fails with
    'number of created screens does not match number of detected
    devices'.

    There is something odd about the card---'scanpci' output:

    pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x8086 device
    0x2e12
    Intel Corporation 4 Series Chipset Integrated Graphics
    Controller

    pci bus 0x0000 cardnum 0x02 function 0x01: vendor 0x8086 device
    0x2e13
    Intel Corporation 4 Series Chipset Integrated Graphics
    Controller

    So, one card, two devices; but there is only one monitor. There
    is a VGA output and a DisplayPort output port, but I don't know
    if that has anything to do with the two detected devices. Xorg
    detects these devices:

    [ 144.787] (--) PCI:*(0:0:2:0) 8086:2e12:103c:3034 rev 3, Mem @
    0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00001230/8
    [ 144.787] (--) PCI: (0:0:2:1) 8086:2e13:103c:3034 rev 3, Mem @
    0xf0400000/1048576

    but if I specify 'intel' as the driver it fails.

    So, I have to use an xorg.conf which explicitly tells Xorg what
    device to use. One missing section you mention is:

    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    EndSection

    I don't have an InputDevice section; I am using HAL and HAL does
    seem to recognize the card (from 'lshal'):

    udi = '/org/freedesktop/Hal/devices/pci_0_0/display_2_0'
    info.solaris.driver = 'i915' (string)
    solaris.devfs_path = '/pci@0,0/display@2' (string)
    info.product = 'VGA compatible controller' (string)
    info.udi = '/org/freedesktop/Hal/devices/pci_0_0/display_2_0' (string)
    info.parent = '/org/freedesktop/Hal/devices/pci_0_0_0' (string)


    [ 7014.986] (EE) No devices detected.
    [ 7014.986] (EE) no screens found(EE)

    This could be a config problem rather than a hardware detection
    problem, in which case the lines before those in the log file should
    indicate what failed.

    I can't disagree with that but I can't see where the
    configuration is wrong.

    Perhaps needless to say the 'vesa' driver works and that is what
    I have been using for 2 years. I used to use FreeBSD but Xorg
    under that seemed to get the intel driver working properly, but I
    don't have any record of what xorg.conf was like for that. But
    again, Xorg -configure wouldn't work on FreeBSD for the same
    reason I mentioned above.

    Anyway, thanks for your suggestions.

    Noel Hunt

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Noel Hunt@21:1/5 to All on Mon Mar 7 14:33:24 2016
    Problem solved.

    For the sake of anyone else who might encounter this, the
    Intel card requires external kernel memory (so I read on
    the web), as opposed to other cards like Nvidia etc. which
    I believe have on-board memory.

    To provide this memory, the kernel has an 'agpgart'
    driver/module/frobboz, and this wasn't installed. The symptom
    was only a warning in /var/adm/messages:

    WARNING: [drm:drm_agp_init:472] failed to open /dev/agpgart, ret=19

    but this actually prevented the drm module from running.

    Once I installed the package, everything just worked.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Winston@21:1/5 to Noel Hunt on Mon Mar 7 20:11:42 2016
    Noel Hunt <noel.hunt@gmail.com> writes:
    There is something odd about the card---'scanpci' output:

    pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x8086 device
    0x2e12
    Intel Corporation 4 Series Chipset Integrated Graphics
    Controller

    pci bus 0x0000 cardnum 0x02 function 0x01: vendor 0x8086 device
    0x2e13
    Intel Corporation 4 Series Chipset Integrated Graphics
    Controller

    So, one card, two devices;

    Dual monitor support? IPMI support? One for control and one for data?
    I don't know either.

    Xorg detects these devices:

    [ 144.787] (--) PCI:*(0:0:2:0) 8086:2e12:103c:3034 rev 3, Mem @
    0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00001230/8
    [ 144.787] (--) PCI: (0:0:2:1) 8086:2e13:103c:3034 rev 3, Mem @
    0xf0400000/1048576

    but if I specify 'intel' as the driver it fails.

    With some chips, I've seen the vesa driver work better and be more
    capable than the manufacturer's driver, so unless you know the intel
    driver has something you want and can't get elsewhere, maybe just use
    vesa and don't worry about it too much.

    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    EndSection

    I don't have an InputDevice section; I am using HAL and HAL does
    seem to recognize the card (from 'lshal'):

    Actually, I had things like InputDevice Keyboard and Mouse in mind. :)

    Let's waste some USENET bandwidth... :-)

    Below is a longer xorg.conf. Edit as needed, especially the lines
    marked "====>". They need actual values, and I don't know what yours
    are. If Xorg -configure writes part of the conf file out before
    complaining, the strings may be in there. The Screen section below is
    probably wrong, but at this point the goal is to start up instead of
    exiting.

    ----------
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection

    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    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/dejavu/"
    FontPath "/usr/local/share/fonts/util/"
    EndSection

    Section "Module"
    Load "extmod"
    Load "freetype"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection

    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/sysmouse"
    EndSection

    Section "Monitor"
    Identifier "VGA screen"
    VendorName "Hewlett-Packard"
    ModelName "HP L1910"
    # Option "PreferredMode" "1280x1024_75"
    Option "Enable" "true"
    Option "DPMS"
    EndSection

    Section "Device"
    Identifier "Intel Q45/Q43"
    Driver "intel"
    ====> BusID "PCI:0:2:0" [and if that doesn't work, maybe try 0:2:1]
    ====> VendorName "Your vendor name here" Intel?
    ====> BoardName "Your board name here" Intel Corporation 4 Series Chipset Integrated Graphics Controller?
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Monitor "VGA screen"
    Device "Intel Q45/Q43"
    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"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1280x1024"
    EndSubSection
    EndSection

    ----------

    If that doesn't help, post not just the Xorg.0.log error lines but also
    the lines before it, since they often have clues.

    HTH,
    -WBE

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)