Ubuntu 16.04系统Firefox在线全屏视频故障求助
Alright, let's break down this issue step by step since you've already narrowed it down to a potential link with ethminer—that's a great starting point! Here's how to tackle this:
Verify ethminer's resource consumption first
Open your system's task manager (Windows) or activity monitor (macOS/Linux). Runethminerwhile launching Firefox and playing an online video in full screen. Keep an eye on your integrated GPU's usage, CPU, and memory. Mining programs likeethminerare resource hogs, and if it's using your integrated GPU alongside Firefox's video decoding, they'll compete for the same hardware resources—this is almost certainly causing the freezes. If you see your integrated GPU maxed out while both are running, that's the core conflict.Force ethminer to use your discrete GPU
Since you're currently outputting via integrated graphics, reconfigureethminerto leverage your discrete GPU instead. Here's how:- For command-line setups: Add device-specific parameters to your
ethminerlaunch command. On Windows, this might look likeethminer -G --opencl-device 1(where1typically refers to the discrete GPU—adjust the number if needed, as0is often the integrated one). - For GUI mining tools: Look for a "GPU Selection" or "Device Priority" setting, then set your discrete GPU as the dedicated mining device. This leaves your integrated GPU free to handle video playback and system display.
- For command-line setups: Add device-specific parameters to your
Limit ethminer's resource footprint
If switching GPUs isn't an option right now, tone downethminer's resource usage to reduce competition:- For CPU-based mining: Right-click the
ethminerprocess in task manager, set its priority to "Low" or "Below Normal"—this lets Firefox's video processes take precedence. - For GPU-based mining: Use
ethminerparameters like--cuda-devices(NVIDIA) or--opencl-platform(AMD/Intel) to restrict its GPU utilization. Alternatively, use your graphics card's control panel (NVIDIA Control Panel, AMD Radeon Software) to set a lower power limit forethminer, cutting down on its resource hogging.
- For CPU-based mining: Right-click the
Tweak Firefox's video decoding settings
Since local videos play fine, the issue likely ties to online video's hardware acceleration clashing withethminer:- In Firefox's address bar, enter
about:config, then search formedia.hardware-video-decoding.enabledand ensure it's set totrue—this lets Firefox use hardware acceleration for video decoding, reducing CPU load. - For Intel integrated graphics (Linux/Windows), check
media.ffmpeg.vaapi.enabledand enable it if it's off. On Windows, also verifymedia.webrtc.hw.h264.enabledis enabled to optimize hardware decoding for web videos.
- In Firefox's address bar, enter
Double-check for plugin conflicts
You've already tested plugin combinations, but let's run a clean test to confirm:- Open Firefox in Private Browsing mode (Ctrl+Shift+P), enable only Flash Player, then play a full-screen online video while
ethminerruns. If the freezes stop, a third-party plugin is interacting withethminer—enable your plugins one by one to find the culprit. - Alternatively, create a fresh Firefox user profile via
about:profiles, install only essential plugins, and test again to rule out corrupted profile data.
- Open Firefox in Private Browsing mode (Ctrl+Shift+P), enable only Flash Player, then play a full-screen online video while
Since you noticed the issue correlates with ethminer, focusing on resource allocation between the mining program and your video playback is the key here. Most likely, ethminer is hogging your integrated GPU's resources that Firefox needs for hardware-accelerated video decoding in full screen.
内容的提问来源于stack exchange,提问作者Scorpion

