From owner-freebsd-x11@freebsd.org Tue Jun 4 12:29:46 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33D3815AF2D8 for ; Tue, 4 Jun 2019 12:29:46 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1109A95733; Tue, 4 Jun 2019 12:29:44 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from venus.yoonka.com ([10.70.7.24]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x54CTDTd016952 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 4 Jun 2019 12:29:37 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host [10.70.7.24] claimed to be venus.yoonka.com From: Grzegorz Junka Subject: Re: sway and libinput initialization failed + audio issue To: Greg V , Jan Beich Cc: freebsd-x11@freebsd.org References: <1558889689.59447.0@unrelenting.technology> <2E74BE3C-43D2-42C4-82F7-204B30F08D9E@unrelenting.technology> <5032d5b0-b165-8d1f-df45-403c3e3a6733@gjunka.com> <9E14501A-ADF5-4E4A-B10A-2E8BEDE2BCE9@unrelenting.technology> <8269A3A7-BB71-4455-BACF-B49BB1346702@unrelenting.technology> Message-ID: Date: Tue, 4 Jun 2019 12:29:13 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <8269A3A7-BB71-4455-BACF-B49BB1346702@unrelenting.technology> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 1109A95733 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[gjunka.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[gjunka.com]; NEURAL_HAM_SHORT(-0.81)[-0.812,0]; IP_SCORE(-3.62)[ip: (-9.48), ipnet: 88.98.192.0/18(-4.74), asn: 56478(-3.79), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2019 12:29:46 -0000 On 04/06/2019 00:27, Greg V wrote: > On June 4, 2019 12:05:00 AM GMT+03:00, Jan Beich wrote: >> Greg V writes: >> >>> On May 28, 2019 2:40:45 AM GMT+03:00, Grzegorz Junka >> 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: at nid 3 on hdaa0 pcm1: at nid 5 on hdaa0 pcm2: at nid 7 on hdaa0 pcm3: at nid 9 on hdaa0 pcm4: at nid 11 on hdaa0 pcm5: at nid 13 on hdaa0 pcm6: at nid 20,22,21 and 24,26 on hdaa1 pcm7: at nid 27 and 25 on hdaa1 pcm8: 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