sway and libinput initialization failed + audio issue

Grzegorz Junka list1 at gjunka.com
Tue Jun 4 12:29:46 UTC 2019


On 04/06/2019 00:27, Greg V wrote:
> On June 4, 2019 12:05:00 AM GMT+03:00, Jan Beich<jbeich at FreeBSD.org>  wrote:
>> Greg V<greg at unrelenting.technology>  writes:
>>
>>> On May 28, 2019 2:40:45 AM GMT+03:00, Grzegorz Junka
>> <list1 at 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 at 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




More information about the freebsd-x11 mailing list