Screen recognition.

22 views
Skip to first unread message

David

unread,
Jan 4, 2023, 3:03:33 AM1/4/23
to freebsd-...@freebsd.org
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 Friedman

unread,
Jan 4, 2023, 8:10:53 AM1/4/23
to David, freebsd-...@freebsd.org
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
--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

Steve O'Hara-Smith

unread,
Jan 4, 2023, 9:23:24 AM1/4/23
to David, freebsd-...@freebsd.org
On Wed, 4 Jan 2023 18:03:04 +1000
David <fre...@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

This looks like your video card is being driven in VESA mode, you
should probably (AMD or Intel video) install the drm-kmod package and set up
the appropriate kld_list line in /etc/rc.conf (see the package message for
details tl;dr one of "amdgpu", "i915kms" or "radeonkms" depending on
chipset). It's been a while since I've had any nVidia hardware so I'll defer
to others on that.

--
Steve O'Hara-Smith <st...@sohara.org>

Tomek CEDRO

unread,
Jan 4, 2023, 10:57:52 AM1/4/23
to David, freebsd-...@freebsd.org
On Wed, Jan 4, 2023 at 9:03 AM David wrote:
> 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.

For AMD or Intel you need to build and install
/usr/ports/graphics/drm-510-kmod/ (as root)

cd /usr/ports/graphics/drm-510-kmod/; make install

Then modesetting driver should work out of the box.

For nvidia you need to install one of the nvidia binary drivers
nvidia-driver-XXX where XXX matches your GPU generation (see all with
pkg search -x nvidia).

> 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.

For PCI(-E) devices:

pciconf -lv

For USB devices:

usbconfig

usbconfig dump_all_desc

Have fun :-)

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Graham Perrin

unread,
Jan 4, 2023, 11:17:01 AM1/4/23
to ques...@freebsd.org
On 04/01/2023 08:03, David wrote:
… I've tried placing a file in /usr/local/etc/X11/xorg.conf.d/

Try removing that file.

Then, if you have not already done so, install software for your graphics hardware.

<https://wiki.freebsd.org/Graphics#Hardware_Support>

OpenPGP_signature

David

unread,
Jan 4, 2023, 5:30:34 PM1/4/23
to freebsd-...@freebsd.org
Thanks Steve, Tomek, and Graham.

That sorted things out nicely.

Cheers!


David.


Reply all
Reply to author
Forward
0 new messages