is 4k desktop possible on freebsd-12?

259 views
Skip to first unread message

tech-lists

unread,
Oct 10, 2018, 6:19:02 AM10/10/18
to freebsd-...@freebsd.org, freeb...@freebsd.org, freebsd...@freebsd.org
Hi,

I'm trying to get xorg to display 4k. The context is:

FreeBSD 12.0-ALPHA8 r339084 amd64
ports r481640
AMD RX580 GPU
Asus X99 Extreme3 mobo
cpu: intel e5-2699v4
48GB RAM
Samsung UE48JU6410U monitor connected via HDMI

drm-next-kmod-4.11.g20180822
libdrm-2.4.93,1
xf86-video-amdgpu-18.1.0
xf86-video-ati-18.1.0,1
xf86-video-openchrome-0.6.0_3
xf86-video-scfb-0.0.4_7
xf86-video-vesa-2.4.0_2
linux_base-c7-7.4.1708_6 and all its xorg/mesa libs

/var/log/Xorg.0.log has this:

[ 3470.966] (II) AMDGPU(0): Printing probed modes for output HDMI-A-0
[ 3470.966] (II) AMDGPU(0): Modeline "1920x1080"x60.0 148.50 1920
2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 3470.966] (II) AMDGPU(0): Modeline "1680x1050"x59.9 119.00 1680
1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 3470.966] (II) AMDGPU(0): Modeline "1600x900"x60.0 108.00 1600 1624
1704 1800 900 901 904 1000 +hsync +vsync (60.0 kHz e)

but further along we have this:

[ 3474.097] (II) AMDGPU(0): EDID vendor "SAM", prod id 3140
[ 3474.097] (II) AMDGPU(0): Using EDID range info for horizontal sync
[ 3474.097] (II) AMDGPU(0): Using EDID range info for vertical refresh
[ 3474.097] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 3474.098] (II) AMDGPU(0): Modeline "3840x2160"x0.0 297.00 3840 4016
4104 4400 2160 2168 2178 2250 +hsync +vsync (67.5 kHz eP)
[ 3474.098] (II) AMDGPU(0): Modeline "1920x1080"x0.0 148.50 1920 2008
2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 3474.098] (II) AMDGPU(0): Modeline "800x600"x0.0 40.00 800 840 968
1056 600 601 605 628 +hsync +vsync (37.9 kHz e)

and

[ 3474.211] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 3474.211] (II) AMDGPU(0): Modeline "3840x2160"x0.0 297.00 3840 4016
4104 4400 2160 2168 2178 2250 +hsync +vsync (67.5 kHz eP)
[ 3474.211] (II) AMDGPU(0): Modeline "1920x1080"x0.0 148.50 1920 2008
2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 3474.211] (II) AMDGPU(0): Modeline "800x600"x0.0 40.00 800 840 968
1056 600 601 605 628 +hsync +vsync (37.9 kHz e)

so would this indicate the card is 4k capable but the HDMI port on the
card is not? Or the port on the monitor? Or something else?

thanks,

--
J.
_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "freebsd-x11...@freebsd.org"

Slawa Olhovchenkov

unread,
Oct 10, 2018, 8:48:32 AM10/10/18
to tech-lists, freebsd-...@freebsd.org, freeb...@freebsd.org, freebsd...@freebsd.org
On Wed, Oct 10, 2018 at 11:17:03AM +0100, tech-lists wrote:

>
> so would this indicate the card is 4k capable but the HDMI port on the
> card is not? Or the port on the monitor? Or something else?

for 4K@60FPS you need DP connection.
_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Johannes Lundberg

unread,
Oct 10, 2018, 9:02:47 AM10/10/18
to tech-...@zyxst.net, x11-list freebsd, freebsd-current, freebsd-...@freebsd.org
Hi

What is the actual problem? Do you get any 4K modes listed when you run
'xrandr' ?
I've been running 4K@60FPS on an external display for a long time on my
Intel laptops. However, that requires DP output. Your HDMI output is most
likely limited to 30 FPS (but should still display 4K resolution...).

thanks,
>
> --
> J.
> _______________________________________________
> freebsd...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

tech-lists

unread,
Oct 10, 2018, 9:58:22 AM10/10/18
to Johannes Lundberg, freebsd-...@freebsd.org, x11-list freebsd, freebsd-current
On 10/10/2018 14:00, Johannes Lundberg wrote:
> Hi
>
> What is the actual problem? Do you get any 4K modes listed when you run
> 'xrandr' ?

The problem is, I'd like 4k output but it seems I'm not getting it even
though the card and monitor are both capable of it. Problem also is my
lack of expertise in this area.

xrandr output:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected primary (normal left inverted right x axis y
axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected 1920x1080+0+0 (normal left inverted right x axis y
axis) 1872mm x 1053mm
1920x1080 60.00*
1680x1050 59.88
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x800 59.91
1152x864 75.00
1280x720 60.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32
640x480 75.00 72.81 66.67 59.94
720x400 70.08
DVI-D-0 disconnected (normal left inverted right x axis y axis)
$

> I've been running 4K@60FPS on an external display for a long time on my
> Intel laptops. However, that requires DP output. Your HDMI output is
> most likely limited to 30 FPS (but should still display 4K resolution...).

Would that work at 30 fps given that Xorg.0.log shows the following:

[ 3474.097] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 3474.098] (II) AMDGPU(0): Modeline "3840x2160"x0.0 297.00 3840 4016
4104 4400 2160 2168 2178 2250 +hsync +vsync (67.5 kHz eP)

[ 3474.211] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 3474.211] (II) AMDGPU(0): Modeline "3840x2160"x0.0 297.00 3840 4016
4104 4400 2160 2168 2178 2250 +hsync +vsync (67.5 kHz eP)

ie, 4k @67.5kHz card output if I'm understanding correctly.

tech-lists

unread,
Oct 10, 2018, 9:59:59 AM10/10/18
to Slawa Olhovchenkov, freebsd-...@freebsd.org, freeb...@freebsd.org, freebsd...@freebsd.org
On 10/10/2018 13:45, Slawa Olhovchenkov wrote:
> for 4K@60FPS you need DP connection.

problem is monitor only has HDMI. I'm not sure it'll 4k@30fps is an
acceptable mode for it; need to check

--
J.

Paul Pathiakis via freebsd-x11

unread,
Oct 10, 2018, 10:20:31 AM10/10/18
to Slawa Olhovchenkov, tech-lists, freeb...@freebsd.org, freebsd...@freebsd.org, freebsd-...@freebsd.org
Hi,
The HDMI 2.1 specification (need cables and ports at that level).  It goes to 10K (really) at 120 HZ.    I believe 1.4 supports 60 HZ but FPS tends to be limited to 30 at 4K resolution.  (this is limit of my understanding at this point)
P

On Wednesday, October 10, 2018, 10:01:38 AM EDT, tech-lists <tech-...@zyxst.net> wrote:

On 10/10/2018 13:45, Slawa Olhovchenkov wrote:
> for 4K@60FPS you need DP connection.

problem is monitor only has HDMI. I'm not sure it'll 4k@30fps is an
acceptable mode for it; need to check

--
J.
_______________________________________________

To unsubscribe, send any mail to "freebsd-x11...@freebsd.org"

| | Virus-free. www.avg.com |

_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11

To unsubscribe, send any mail to "freebsd-x11...@freebsd.org"

Slawa Olhovchenkov

unread,
Oct 10, 2018, 10:26:52 AM10/10/18
to tech-lists, freebsd-...@freebsd.org, freeb...@freebsd.org, freebsd...@freebsd.org
On Wed, Oct 10, 2018 at 02:57:39PM +0100, tech-lists wrote:

> On 10/10/2018 13:45, Slawa Olhovchenkov wrote:
> > for 4K@60FPS you need DP connection.
>
> problem is monitor only has HDMI. I'm not sure it'll 4k@30fps is an
> acceptable mode for it; need to check

You need check HDMI 2.0 available on video card and monitor.
For HDMI 1.4 you need check of support both card and monitor support 4K@24.

cpghost

unread,
Oct 10, 2018, 11:17:28 AM10/10/18
to freebsd...@freebsd.org
On 10/10/18 4:24 PM, Slawa Olhovchenkov wrote:
> On Wed, Oct 10, 2018 at 02:57:39PM +0100, tech-lists wrote:
>
>> On 10/10/2018 13:45, Slawa Olhovchenkov wrote:
>>> for 4K@60FPS you need DP connection.
>>
>> problem is monitor only has HDMI. I'm not sure it'll 4k@30fps is an
>> acceptable mode for it; need to check
>
> You need check HDMI 2.0 available on video card and monitor.
> For HDMI 1.4 you need check of support both card and monitor support 4K@24.

And you need a high quality HDMI 2.0 cable which is not too long.
All too often, people can't get 4K on HDMI because of bad cables.

-cpghost.

tech-lists

unread,
Oct 11, 2018, 4:58:16 AM10/11/18
to Slawa Olhovchenkov, freeb...@freebsd.org, freebsd...@freebsd.org, freebsd-...@freebsd.org
On 10/10/2018 15:24, Slawa Olhovchenkov wrote:
> You need check HDMI 2.0 available on video card and monitor.
> For HDMI 1.4 you need check of support both card and monitor support 4K@24.

Yes, the card, cable and monitor are all capable of 4k@30fps. The cable
and monitor were tested by connecting a laptop running linux mint. This
gave a 4k display @ 30fps. So for some reason, the card (AMD RX580)
isn't sending 4k.

Is there a resource explaining how/can anyone tell me how to make the
card send 4k? The xorg section of the handbook unfortunately hasn't been
much help.

thanks,
--
J.
_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "freebsd-x11...@freebsd.org"

Johannes Lundberg

unread,
Oct 11, 2018, 5:19:31 AM10/11/18
to tech-...@zyxst.net, x11-list freebsd, freebsd-current, freebsd-...@freebsd.org, s...@zxy.spb.ru
On Thu, Oct 11, 2018 at 9:58 AM tech-lists <tech-...@zyxst.net> wrote:

> On 10/10/2018 15:24, Slawa Olhovchenkov wrote:
> > You need check HDMI 2.0 available on video card and monitor.
> > For HDMI 1.4 you need check of support both card and monitor support
> 4K@24.
>
> Yes, the card, cable and monitor are all capable of 4k@30fps. The cable
> and monitor were tested by connecting a laptop running linux mint. This
> gave a 4k display @ 30fps. So for some reason, the card (AMD RX580)
> isn't sending 4k.
>
> Is there a resource explaining how/can anyone tell me how to make the
> card send 4k? The xorg section of the handbook unfortunately hasn't been
> much help.
>
>
Do you have anything configured in /etc/X11/xorg.conf? If so, remove the
file and let X auto configure.
Otherwise try switching DDX driver, modesetting or amdgpu

/etc/X11/xorg.conf:

Section "Device"
Driver "amdgpu"
EndSection

VS

Section "Device"
Driver "modesetting"
EndSection

tech-lists

unread,
Oct 11, 2018, 5:22:13 AM10/11/18
to Johannes Lundberg, x11-list freebsd, freebsd-current, freebsd-...@freebsd.org, s...@zxy.spb.ru
On 11/10/2018 10:18, Johannes Lundberg wrote:
> Do you have anything configured in /etc/X11/xorg.conf?

no. But there's a section in the handbook I missed; am reading it now

tech lists

unread,
Oct 16, 2018, 11:54:32 AM10/16/18
to freebsd-...@freebsd.org, freeb...@freebsd.org, freebsd...@freebsd.org
On 10/10/2018 11:17, tech-lists wrote:
> I'm trying to get xorg to display 4k. The context is:
>
> FreeBSD 12.0-ALPHA8 r339084 amd64
> ports r481640
> AMD RX580 GPU
> Asus X99 Extreme3 mobo
> cpu: intel e5-2699v4
> 48GB RAM
> Samsung UE48JU6410U monitor connected via HDMI
>
> drm-next-kmod-4.11.g20180822

Hi, just to follow up to this,

I'd run out of time to work on this so installed latest ubuntu desktop,
then ran xrandr and it showed 4k as the top resolution. I didn't have to
make any modifications:

[snip]
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x
axis y axis) 1872mm x 1053mm
3840x2160 30.00 + 25.00 24.00 29.97 23.98
4096x2160 30.00 25.00 24.00 29.97 23.98
[/snip]

and then, additionally, installed boinc-client-opencl and boinc was able
to see the GPUand use it for crunching.

On FreeBSD I couldn't see a way of making the boinc client OpenCL-aware.

On the plus side, FreeBSD was much more stable on this hardware than
Ubuntu. Had to disable hyperthreading in the BIOS to stop it crashing
every few hrs on Ubuntu.

It would be interesting to know, if possible, what Ubuntu is doing that
FreeBSD isn't on this hardware.

thanks to all who replied/tried to help,

Scott Bennett

unread,
Oct 17, 2018, 7:52:22 AM10/17/18
to tech-...@zyxst.net, freeb...@freebsd.org
Have you installed lang/clover? If not, then that may be why you don't
see any devices there. For Nvidia, it would be lang/beignet instead.
>
> On the plus side, FreeBSD was much more stable on this hardware than
> Ubuntu. Had to disable hyperthreading in the BIOS to stop it crashing
> every few hrs on Ubuntu.
>
> It would be interesting to know, if possible, what Ubuntu is doing that
> FreeBSD isn't on this hardware.


Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet: bennett at sdf.org *xor* bennett at freeshell.org *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good *
* objection to the introduction of that bane of all free governments *
* -- a standing army." *
* -- Gov. John Hancock, New York Journal, 28 January 1790 *
**********************************************************************

Greg V

unread,
Oct 17, 2018, 8:12:14 AM10/17/18
to Scott Bennett, freeb...@freebsd.org

beignet is for Intel.

If nvidia provides OpenCL for FreeBSD at all, it would be in
nvidia-driver.

(OP has an AMD Radeon RX 580, so clover indeed is the right one. Keep
in mind that clover is… not great, but boinc might work)

Also, boinc on FreeBSD apparently has some compatibility with
Linux-only compute jobs or something — OpenCL will only work with
FreeBSD-native ones.

Scott Bennett

unread,
Oct 17, 2018, 10:10:20 AM10/17/18
to gr...@unrelenting.technology, freeb...@freebsd.org
Oops. Thanks for the correction! I hadn't looked at it in a long time
and apparently misremembered what the lang/beignet/pkg-descr said.


Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet: bennett at sdf.org *xor* bennett at freeshell.org *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good *
* objection to the introduction of that bane of all free governments *
* -- a standing army." *
* -- Gov. John Hancock, New York Journal, 28 January 1790 *
**********************************************************************
Reply all
Reply to author
Forward
0 new messages