Closed Tristor closed 2 months ago
~This is just a guess, I think the issue is in the webgpu_preferred_adapter
that was picked in in config/appearance.lua
line 11.~
~Try commenting that line and see if that works.~
I take back what I said.
I'm still not entirely sure what's happening but from what I understand is that it's an issue caused by Wayland and wgpu
's Vulkan support on AMD cards not playing nicely with each other.
If that is the case and the issue is simply limited to Vulkan and Wayland, there might be 2 solutions:
Probably the most straight forward solution.
Change the front_end
option from WebGpu
to OpenGL
or simply remove that option (the default is OpenGL
).
https://github.com/KevinSilvester/wezterm-config/blob/f330fa387db864b808333341c049276c15cc1df5/config/appearance.lua#L8
This will force WezTerm to render the GUI without relying on the wgpu
crate using its built-in OpenGL support.
Keep the front_end
option as is and force wgpu
to render the GUI using its own OpenGl support.
To do this, update the webgpu_preferred_adapter
option from:
gpu_adapters:pick_best()
-> gpu_adapters:pick_manual('Gl', 'Other')
https://github.com/KevinSilvester/wezterm-config/blob/f330fa387db864b808333341c049276c15cc1df5/config/appearance.lua#L10
I don't really have the means to test either of the solutions out, but I'm fairly confident solution 1 will be your best bet. Hope this helps :)
Thanks Kevin, I will give this a shot later this week. Thanks
Hey @Tristor, did you get a chance to try any of the solutions yet?
Hey @Tristor, did you get a chance to try any of the solutions yet?
Same situation. The second solution works for me. Haven't tried the first, but I suppose it would work too. Thx a lot.
no worries 😊
Hey @Tristor, it's been over a month since the issue was opened and I haven't heard a response in a while. Plus one of the solutions I posted seemed to have worked for @PACHAKUTlQ. So, with that, I'm going to close this issue.
If neither of the solutions doesn't work, feel free to re-open the issue, but at that stage, I do think this is beyond just a config tweak and more an upstream issue potentially with Wezterm, Wayland or AMDVLK
Description of Issue
I attempted to use this config with a fresh install of WezTerm on my Framework 13 AMD running Arch + Plasma-Desktop. Plasma6 uses the
linux-dmabuf
Wayland interface but the AMDVLK driver useswl_drm
in Wayland, which is a legacy interface. This is, I think, the cause of this interaction. I plan to test with a different compositor outside of Plasma6 to see if I can get this working. I found the following, I think related issue, https://github.com/GPUOpen-Drivers/pal/issues/96Error message logged to terminal: