Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2019 12:29:13 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        Greg V <greg@unrelenting.technology>, Jan Beich <jbeich@FreeBSD.org>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: sway and libinput initialization failed + audio issue
Message-ID:  <bf29f995-d4c7-2895-68ff-21d7846a468b@gjunka.com>
In-Reply-To: <8269A3A7-BB71-4455-BACF-B49BB1346702@unrelenting.technology>
References:  <c033f9e8-e179-86c1-6c91-5062f7ad9692@gjunka.com> <1558889689.59447.0@unrelenting.technology> <d1d41fcc-8838-0307-c35f-8d8ac350ed91@gjunka.com> <2E74BE3C-43D2-42C4-82F7-204B30F08D9E@unrelenting.technology> <5032d5b0-b165-8d1f-df45-403c3e3a6733@gjunka.com> <9E14501A-ADF5-4E4A-B10A-2E8BEDE2BCE9@unrelenting.technology> <v9xm-nzwj-wny@FreeBSD.org> <8269A3A7-BB71-4455-BACF-B49BB1346702@unrelenting.technology>

next in thread | previous in thread | raw e-mail | index | archive | help

On 04/06/2019 00:27, Greg V wrote:
> On June 4, 2019 12:05:00 AM GMT+03:00, Jan Beich<jbeich@FreeBSD.org>  wrote:
>> Greg V<greg@unrelenting.technology>  writes:
>>
>>> On May 28, 2019 2:40:45 AM GMT+03:00, Grzegorz Junka
>> <list1@gjunka.com>  wrote:
>>>> However, the graphics seems to be not-accelerated (there is
>> noticeable
>>>> "drag" when moving windows around). I am running generic kernel
>>>> 12-RELEASE and up to date port (kld_list="amdgpu" in rc.conf). The
>>>> graphics card is Radeon RX Vega 64. Should the hardware acceleration
>>>> work, and if yes, is there any way to verify hardware acceleration is
>>>> working as expected in either waylaynd or xorg?
>>> Sway does not have software rendering at all, IIRC llvmpipe software
>>> OpenGL wouldn't work either. So if sway is running, it's
>>> accelerated. Run sway with the --verbose flag and read the output, it
>>> will show the used renderer. (In the virtual console… but you'll see
>>> it after quitting sway)
>> Xwayland requires LIBGL_DRI3_ENABLE=1 defined via environ(7) in order
>> to
>> to use (E)GL acceleration. It's a quirk not present in upstream Mesa or
>> your graphics/mesa-dev port.
> Right, good reminder. Doesn't apply to native Wayland apps. Might help with KDE on Xorg though?? Maybe KWin does not auto enable compositing without DRI3… maybe.
>
The issue with acceleration in KDE was due to this bug 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235195

I followed the solution they posted and the speed and responsiveness 
have much improved! However, the issue didn't go away completely. For 
example, when watching a video the playback stops for a split of a 
second every couple of seconds. It seems that the bigger the resolution 
of a video the more often it stutter. I added a comment and can do some 
more investigation if needed.

But I have another question with which you may be able to help. With the 
current driver is it possible to play sound on my monitor through 
Display Port? It was certainly possible on my other desktop with NVidia 
proprietary driver and it's also possible on Linux. I have two monitors 
connected, one through DP and one through HDMI. This list is the same 
even if I disconnect the HDMI monitor:

root@venus:~ # dmesg | grep pcm
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
pcm3: <ATI R6xx (HDMI)> at nid 9 on hdaa0
pcm4: <ATI R6xx (HDMI)> at nid 11 on hdaa0
pcm5: <ATI R6xx (HDMI)> at nid 13 on hdaa0
pcm6: <Realtek ALC1220 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 
on hdaa1
pcm7: <Realtek ALC1220 (Front Analog)> at nid 27 and 25 on hdaa1
pcm8: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa1

Another weird thing is that VLC doesn't show any audio devices in its 
Audio menu. On my NVidia system I could select one of the available 
audio channels without having to switch the default channel.

So, is audio supposed to work on amdgpu driver?

GrzegorzJ





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bf29f995-d4c7-2895-68ff-21d7846a468b>