archlinux下開啟chrome的硬件加速


首先電腦配置

CPU: Intel i5-9300H (8) @ 4.100GHz

GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q

系統:

內核版本:5.16.0-arch1-1(64位)

圖形平台:X11

KDE Plasma版本:5.23.5

軟件:

顯卡驅動為nvidia私有驅動,版本為495.46

chrome版本:97.0.4692

1、安裝 libva-vdpau-driver-vp9-git

yay -S libva-vdpau-driver-vp9-git

2、在chrome地址欄中輸入chrome://flags/ 找到ignore-gpu-blocklistHardware decode acceleration for k-SVC VP9,均設置為Enabled

chrome設置里找到高級->系統->使用硬件加速,將選項打開

3、終端中輸入google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder啟動chrome,在地址欄中輸入chrome://gpu

可以看到視頻解碼已經在使用硬件加速

打開油管看一下

播放4k視頻時硬件加速已經啟用

每次打開瀏覽器使用終端比較麻煩,使用kde的可以將desktop文件從/usr/share/applications 復制到~/.local/share/applications,並將啟動命令修改為Exec=/usr/bin/google-chrome-stable -use-gl=desktop --enable-features=VaapiVideoDecoder %U這樣更新后就不會被覆蓋

chrome98之后還需在啟動時添加--disable-features=UseChromeOSDirectVideoDecoder


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM