Bug 492752 - Neon User Firefox hardware acceleration broken- live image OK, install not
Summary: Neon User Firefox hardware acceleration broken- live image OK, install not
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Live/Install images (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-07 13:21 UTC by Steve Zakulec
Modified: 2024-09-14 23:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
firefox about:support from Neon Live (35.01 KB, text/plain)
2024-09-07 13:21 UTC, Steve Zakulec
Details
firefox about:support from installed version of Neon (37.00 KB, text/plain)
2024-09-07 13:22 UTC, Steve Zakulec
Details
firefox about:support from Neon Live, 20240905 ISO (35.13 KB, text/plain)
2024-09-07 13:23 UTC, Steve Zakulec
Details
firefox about:support from Neon Installed, 20240905 ISO (34.99 KB, text/plain)
2024-09-07 13:36 UTC, Steve Zakulec
Details

Note You need to log in before you can comment on or make changes to this bug.
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.