Bug 492752

Summary: Neon User Firefox hardware acceleration broken- live image OK, install not
Product: [KDE Neon] neon Reporter: Steve Zakulec <spzakulec>
Component: Live/Install imagesAssignee: Neon Bugs <neon-bugs-null>
Status: REPORTED ---    
Severity: major CC: jr, neon-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: firefox about:support from Neon Live
firefox about:support from installed version of Neon
firefox about:support from Neon Live, 20240905 ISO
firefox about:support from Neon Installed, 20240905 ISO

Description Steve Zakulec 2024-09-07 13:21:22 UTC
Created attachment 173402 [details]
firefox about:support from Neon Live

SUMMARY
KDE Neon User images have different behavior around Firefox hardware acceleration live (works) vs installed (doesn't).

STEPS TO REPRODUCE
1. Boot a Neon User live image (20240831-1334.iso & 20240905-0713.iso are ones I've used)
2. Connect to wifi, and open Firefox.
3. Go to about:support, and scroll down to Web GL 1 Driver Renderer, and note the driver name.
4. Install Neon to disk (I chose the replace a partition option because I have an existing Windows install).
5. Open Firefox
6.  Go to about:support, and scroll down to Web GL 1 Driver Renderer, and note the driver name.

OBSERVED RESULT
Neon User Live image shows my Intel card, and hardware acceleration works- confirmed by installing intel-gpu-tools, and running intel_gpu_top and observing that Video goes above 0% usage when playing videos on Youtube.
When I install Neon from the image, and then repeat this, Firefox instead shows me Mesa -- llvmpipe (LLVM 15.0.7, 256 bits) as the WebGL 1 Driver Renderer, and doesn't support hardware acceleration.

EXPECTED RESULT
Firefox should work the same as it does from the live image- hardware acceleration is supported & works, it just doesn't for unknown reasons once you install KDE Neon.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-40-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520, AMD Radeon M430 secondary in the laptop

ADDITIONAL INFORMATION
Lenovo Flex 4-1470 laptop
Tested with neon-user-20240831-1334.iso & neon-user-20240905-0713.iso.
I have installed enhance-h264ify, and switched just h264 & VP8 on (which doesn't seem to do much, because YouTube still offers AV1).
I've attached the output of Firefox about:support from live & installed.
Comment 1 Steve Zakulec 2024-09-07 13:22:31 UTC
Created attachment 173403 [details]
firefox about:support from installed version of Neon
Comment 2 Steve Zakulec 2024-09-07 13:23:20 UTC
Created attachment 173404 [details]
firefox about:support from Neon Live, 20240905 ISO
Comment 3 Steve Zakulec 2024-09-07 13:36:19 UTC
Created attachment 173406 [details]
firefox about:support from Neon Installed, 20240905 ISO
Comment 4 Steve Zakulec 2024-09-07 13:38:38 UTC
When I run firefox from Konsole as my user, this shows up:

[18640] Wayland Proxy [0x784f0d9bcf00] Error: StartProxyServer(): bind() error : Permission denied
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
Comment 5 Steve Zakulec 2024-09-14 23:18:00 UTC
Based on a comment I saw in this post: https://www.reddit.com/r/kdeneon/comments/1en8lf9/anyone_else_seeing_this_security_message_after/, I disabled the Firefox AppArmor profile, and after a reboot, Firefox now shows the expected hardware acceleration & proper graphics driver.