tomsom / yoga-linux

Run Linux on the Lenovo Yoga 7 14 (14ARB7) with AMD Ryzen 6800U (Rembrand).
https://github.com/tomsom/yoga-linux/wiki
56 stars 2 forks source link

Hardware Acceleration in Wayland #41

Open ZakariaBouzouf opened 1 year ago

ZakariaBouzouf commented 1 year ago

I'm struggling to make the Hardware accelereation works in wayland . I tried Fedora and currently using Hyprland on Arch with different chromium Browser and even Firefox but nothing works . As soon as i start a Youtube video the usage CPU goes up and the fans goes on . Here is my vainfo `❯ vainfo Trying display: wayland libva info: Open new log file /tmp/libva.194711.thd-0x000312ba for the thread 0x000312ba libva info: LIBVA_TRACE is on, save log into /tmp/libva.194711.thd-0x000312ba libva info: VA-API version 1.18.0 libva info: User environment variable requested driver 'radeonsi' libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_18 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.18 (libva 2.18.2) vainfo: Driver version: Mesa Gallium driver 23.1.2 for AMD Radeon Graphics (rembrandt, LLVM 15.0.7, DRM 3.52, 6.3.6-arch1-1) vainfo: Supported profile and entrypoints VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileJPEGBaseline : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileAV1Profile0 : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc

` If someone have the same problem and found the solution please let me know

majid-iqbal-bw commented 1 year ago

If I play a YouTube video on Firefox, it uses between 2-3% CPU. So I guess hardware acceleration would be enabled for me?

Here is my vainfo

Trying display: wayland
vainfo: VA-API version: 1.18 (libva 2.18.1)
vainfo: Driver version: Mesa Gallium driver 23.0.2 for AMD Radeon Graphics (rembrandt, LLVM 15.0.7, DRM 3.52, 6.3.1-1-rt13-MANJARO)
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
ZakariaBouzouf commented 1 year ago

I think you are not using the GPU acceleration either, specially if you hear the fans ,because in windows 11 i don't hear them when watching youtube and when i use the Play with MPV plugin that allow you to play youtube videos in the MPV player my CPU doesn't goes over 0.8~0.9%.

stuarthayhurst commented 1 year ago

On Firefox, go to about:support, look for the 'Graphics' section, and if Compositing reports WebRender, hardware acceleration should be working. That should hopefully take any guesswork out of this. To be honest, there's probably not a lot that can be done here specifically, as I doubt your issue is specific to this laptop.

https://fedoraproject.org/wiki/Firefox_Hardware_acceleration#Web_page_rendering

ZakariaBouzouf commented 1 year ago

Sorry for the delay, but i already tested what is metionned in the topic without result .

stuarthayhurst commented 1 year ago

For @majid-iqbal-bw, this would help determine whether it's working or not, as he didn't sound sure

Akinzekeel commented 1 year ago

It says WebRender so to my understanding that means it's enabled.

image

stuarthayhurst commented 6 months ago

Can this be closed? It doesn't seem specific to this laptop / family, so it should probably be reported upstream instead.