Ok. Let's try this procedure to help resolve these two issues:
[ERROR:ev_root_ca_metadata.cc(162)] Failed to decode OID: 0
[ERROR:gpu_blocklist.cc(71)] Unable to get GPU adapter
Follow these steps to fix certificate decoding problems and GPU-related issues.
Step 1: Fix Certificate Decoding Issues
The certificate decoding error is often caused by missing or improperly linked root CA certificates.
1.1 Install and Update Certificates
Install or update the required CA certificates:
sudo pkg install ca_root_nss
1.2 Link CA Certificates
Ensure Ungoogled Chromium can access system certificates:
mkdir -p ~/.pki/nssdb
ln -sf /usr/local/share/certs/ca-root-nss.crt ~/.pki/nssdb/cert9.db
1.3 Force System Certificates
Run Ungoogled Chromium using the system certificates:
ungoogled-chromium --use-system-certificates
1.4 Reset Ungoogled Chromium Profile (Optional)
If errors persist, reset the profile:
mv ~/.config/ungoogled-chromium ~/.config/ungoogled-chromium_backup
Step 2: Resolve GPU Adapter Issues
The GPU adapter error often stems from misconfigured drivers or Ungoogled Chromium’s GPU blocklist.
2.1 Verify GPU Drivers
Check GPU detection:
pciconf -lv | grep -A2 VGA
2.2 Bypass Ungoogled Chromium GPU Blocklist
Force Ungoogled Chromium to ignore the GPU blocklist:
ungoogled-chromium --ignore-gpu-blocklist
2.3 Disable GPU Acceleration
Test Ungoogled Chromium without GPU acceleration:
ungoogled-chromium --disable-gpu
2.4 Test OpenGL Backends
Try different OpenGL rendering modes:
Step 3: Test Video Acceleration
Enable and test hardware video decoding using VAAPI.
3.1 Install VAAPI Libraries
Install libva
and VAAPI drivers:
sudo pkg install libva libva-intel-driver
3.2 Enable VAAPI in Ungoogled Chromium
Launch Ungoogled Chromium with VAAPI enabled:
ungoogled-chromium --enable-features=VaapiVideoDecoder
3.3 Verify Media Decoding
- Open
chrome://media-internals
in Ungoogled Chromium.
- Play a video and confirm that hardware decoding is in use.
Step 4: Enable Logs for Debugging
- Enable Ungoogled Chromium Logs:
ungoogled-chromium --enable-logging=stderr --v=1
Check GPU Status: Open chrome://gpu
and review the "Graphics Feature Status."
Inspect System Logs:
dmesg | grep drm
Step 5: Rebuild Ungoogled Chromium (Optional)
If issues persist, rebuild ungoogled-chromium
from ports with system-specific patches:
sudo pkg install ports
cd /usr/ports/www/ungoogled-chromium
sudo make install clean
Common Problems and Solutions
Problem: Certificate errors persist
Solution: Reset Ungoogled Chromium profile and ensure ca_root_nss
is correctly linked.
Problem: GPU blocklist issues
Solution: Force --ignore-gpu-blocklist
and verify drivers are installed correctly.
Problem: VAAPI not working
Solution: Ensure libva
and drivers are installed, and enable VAAPI with **--enable-features=VaapiVideoDecoder
.
Problem: Hardware acceleration disabled in chrome://gpu
Solution: Test OpenGL backends using --use-gl=desktop
or --use-gl=egl
.
Comprehensive Launch Command
To combine all solutions, launch Ungoogled Chromium with the following:
ungoogled-chromium --disable-gpu --use-system-certificates --ignore-gpu-blocklist --use-gl=desktop --enable-features=VaapiVideoDecoder
Verification
- Open
chrome://gpu
to confirm hardware acceleration features are enabled.
- Play a YouTube video and check
chrome://media-internals
for video decoding logs.
- If errors persist, share your logs for further assistance.