Re: Screen recognition.

From: Aryeh Friedman <aryeh.friedman_at_gmail.com>
Date: Wed, 04 Jan 2023 13:10:23 UTC
Sometimes you need to manually specify the resolution in your
xorg.conf for example here is mine (see "screen" section):

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 470.86

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

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

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

On Wed, Jan 4, 2023 at 3:03 AM David <freebsd@telaman.net.au> wrote:
>
> Hullo,
>
>
> Struggling a bit with my first FreeBSD install.
>
> Mouse and keyboard are detected without any trouble, but the monitor, a
> Dahua LM24-S420, is not giving a lot of joy. This monitor usually works
> at 1920x1080 @ 60Hz, but is not delivering anything like that now.
> Current spec is 1024x768.
>
> xrandr states:
>
> xrandr: Failed to get size of gamma for output default
> Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
> default connected primary 1024x768+0+0 0mm x 0mm
>     1024x768       0.00*
>     800x600        0.00
>     848x480        0.00
>     640x480        0.00
>
>
> Showing, from what I can see, that no connection is recognised.
>
> So, there's nothing I can configure.
>
> I've tried placing a file in /usr/local/etc/X11/xorg.conf.d/
> (screen-resolution.conf) which achieves nothing
>
> The latest move is to create /root/xorg.conf.new, which advises, when
> tested:
>
>
> (EE)
> Fatal server error:
> (EE) no screens found(EE)
> (EE)
>
>
> If there was an equivalent to lshw that would give me information on the
> connection point, that might help, but that doesn't appear to be
> available as lshw.
>
> Can anybody give me any advice on where to go from here?
>
> Thanks for any trouble.
>
>
> David
>
>


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org