当前位置:网站首页>Why does chrome video get stuck badly (by quqi99)
Why does chrome video get stuck badly (by quqi99)
2022-07-22 18:35:00 【quqi99】
author : Zhang hua Published in :2021-04-08
Copyright notice : You can reprint at will , When reprinting, please make sure to indicate the original source of the article, the author's information and this copyright notice in the form of hyperlinks
Ban Meltdown/Spectre promote CPU performance
A long-time problem has finally been solved ,t440p use chrome I always get stuck badly in meetings , Online search is all about GPU The problem of . It's not , Because Meltdown/Spectre Caused by the patch of CPU Sharp performance degradation . After disabling it, the problem disappears .
Linux The disabling method of is in grub Add :mitigations=off
Windows have access to inspectre To disable it - https://www.grc.com/inspectre.htm
GPU Accelerate video decoding
Of course , If your GPU Good enough , Hard decoding can also be set , see : https://my.oschina.net/chipo/blog/3030388
notes : Refer to the above page to use ‘ppa:saiarcot895/chromium-dev’ After providing some packages , quite a lot desktop All of them opengl Related errors (https://bbs.archlinux.org/viewtopic.php?id=265026), Searched for several days , Finally, it is proved that it has something to do with these packages (vdpauinfo libvdpau-va-gl1 vdpau-driver-all mesa-vdpau-drivers libvdpau1), Delete ppa from ubuntu Just reinstall the official library .
Of my machine GPU no way , Open the Video Decode And pass “–use-gl=desktop“ It will be stuck when starting , But not with –use-gl Starting seems much better ( But open Video Decode).
chrome://flags/#ignore-gpu-blocklist
chrome://flags/#enable-accelerated-video-decode
# chrome://gpu/
Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Skia Renderer: Enabled
Video Decode: Enabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Test integrated display and independent display
t440p The graphics card ( Centralized display yes HD 4600, Duxian is Nvidia GT730m) How about the performance , Test with the following methods :
sudo apt-get install glmark2
glmark2 --fullscreen --show-all-options
The result is :
- nvidia 422 branch - sudo prime-select nvidia
- intel 415 branch - sudo prime-select intel
- Ban nvidia drive 411 branch - rdblacklist=nouveau i965.modeset=1 nouveau.modeset
- There is also a ranking on the Internet - https://technical.city/zh/video/rating?pg=4#result128
upgrade CPU
next step , take t440p Self contained i5-4200M Upgrade to i7-4700mq, There is no change after the upgrade of centralized display or Intel HD Graphics 4600, but cpu Promoted (i7-4700mq The power consumption of 47w, i5-4200M yes 37w, i5-4200M It's two cores and four threads ,7-4700mq It's four cores and eight threads , The maximum frequency is also 3.1 mention 3.4), Theoretically, it should be able to alleviate the problem of cards , see :https://www.cpubenchmark.net/compare/Intel-i5-4200M-vs-Intel-i7-4700MQ/2016vs1923
Test a series desktop
ubuntu 20.04 The default is gnome 3, but syslog Always see the following errors :
libinput error: client bug: timer event25 debounce short: scheduled expiry is in the past (-14ms), your system is too slow
Switch to deepin The mistake remains :
Apr 9 19:52:16 t440p com.deepin.daemon.Accounts[2635]: libinput error: client bug: timer event25 debounce short: scheduled expiry is in the past (-14ms), your system is too slow
Then change to ubuntu-budgie But its dock There are always some problems and I don't know how to describe ,
Finally, I switched back to kde, kde At first, I felt great , But it took a day or two to find chrome cpu Also suddenly raised, the fan kept turning for a while, and he recovered , I don't know why .
No desktop is easy to use , Compared with before ubuntu-desktop It's good , So I finally went back to it , But now it also reports the following errors :
Apr 12 18:08:46 t440p gnome-shell[40666]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2c00008 specified for 0x2c00006.
Apr 12 18:08:55 t440p gnome-shell[40666]: message repeated 6 times: [ Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2c00008 specified for 0x2c00006.]
Apr 12 18:09:01 t440p gnome-shell[40666]: gdk_pixbuf_new_from_bytes: assertion 'width > 0' failed
Apr 12 18:09:01 t440p [email protected][40666]: unable to update icon for fcitx-qimpanel
# notes :ubuntu-appindicators Related errors can be found in gnome-tweak Lieutenant general Ubuntu appindicators Ban , perhaps
gnome-extensions disable [email protected]
Words , Switching to deepin When I met a pit , I am here ubuntu20.04 Always use hwe newest kernel Of , Switch to deepin The following error was encountered after :
[email protected]:~$ /usr/bin/deepin-anything-monitor
[2021-04-09, 16:53:33.874] [default-critical] [deepin_anything_server::Server::run: 54]: Failed on open: /proc/vfs_changes "No such file or directory"
This is because hwe The version of is too high to install deepin-anything-dkms Caused by the , So switch back 5.4.0-65 After the kernel is installed successfully with the following methods
sudo add-apt-repository ppa:ubuntudde-dev/stable
sudo apt install ubuntudde-dde -y
sudo dpkg-reconfigure lightdm
sudo apt remove startdde ubuntudde-dde
deb [by-hash=force] http://packages.deepin.com/deepin lion main contrib non-free
deb-src http://packages.deepin.com/deepin lion main contrib non-free
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51
sudo apt install linux-headers-$(uname -r) linux-tools-$(uname -r) -y
sudo apt install deepin-anything-dkms dde-file-manager ubuntudde-dde deepin-anything-server ubuntudde-desktop ubuntudde-dde-extras -y
sudo apt install deepin-anything-server deepin-anything-server-dev deepin-anything-libs deepin-anything-dkms deepin-anything-dev -y
sudo apt reinstall deepin-anything-dkms
install KDE
sudo apt install kubuntu-desktop kde-standard
install Ubuntu desktop, And use gnome-tweaks Set up ubuntu dock To always show
sudo apt install --reinstall ubuntu-desktop
ubuntu desktop There is no load to report the following problems , Is it cpu It's time to clear the dust ?
Apr 10 08:26:37 t440p kernel: [37334.508417] mce: CPU1: Core temperature above threshold, cpu clock throttled (total events = 36350)
Apr 10 08:26:37 t440p kernel: [37334.508420] mce: CPU0: Core temperature above threshold, cpu clock throttled (total events = 36348)
Apr 10 08:26:37 t440p kernel: [37334.508424] mce: CPU3: Package temperature above threshold, cpu clock throttled (total events = 43764)
install gnome 3
sudo apt install gnome-session gdm3 -y
install ubuntu-budgie
sudo apt install ubuntu-budgie-desktop
#sudo apt remove ubuntu-budgie-desktop ubuntu-budgie* lightdm
#sudo apt autoremove
#sudo apt install --reinstall gdm3
It may be smoother manjaro kde, I don't want to reload , give up !
summary
How to have a smooth ubuntu Office environment :
- GPU Acceleration is on , upgrade chrome Up to date 89 edition , There is that in this patch, So don't use ppa:saiarcot895/chromium-dev
- Use mitigations=off, And from i5 Upgrade to i7
- Use gnome, Don't use kde, ubuntu desktop, deepin Other desktop , Try it or gnome It is best to
- Use wayland Don't use xorg, Because there are two monitors used wayland Support sharing only a single screen ( notes :wayland still bug Too much , Sharing a single screen is black )
- Use lightdm Don't use gdm, because wayland+gdm3 The combination will result in chrome When copying often hang There , In addition, use gdm3 stay t440p It often happens on login loop The problem of ( On the desktop, because of a problem, you can only use gdm3, I forgot something )
- Ban gnome ubuntu-appindicators plugin, This plug-in is in syslog There are too many mistakes in the report .gnome-extensions disable [email protected]
- gedit Support recently opened files - gsettings set org.gnome.desktop.privacy remember-recent-files true
- Set Microsoft fonts
sudo apt-get install --reinstall ttf-mscorefonts-installer
sudo apt-get install xfonts-wqy # WenQuanYi - Dot matrix Tahoma
sudo apt-get install ttf-wqy*kk # WenQuanYi is in the dark
sudo fc-cache -f -s -v # Refresh font cache
# open gnome-tweak by gnome desktop Choose to use WenQuanYi constant width font
sudo apt-get install gnome-tweak-tool font-manager gnome-tweak
# Also in the chrome Search in settings “ typeface ” by chrome Set Microsoft fonts
# Or use Stylish Set font to Microsoft YaHei, see :https://blog.csdn.net/pyufftj/article/details/80712303
- Install some gnome plugin, And in gnome-tweak Plug in for , And install the lunar calendar plug-in
sudo apt install gnome-shell-extensions
sudo apt install chrome-gnome-shell
Install dependency first (apt install gir1.2-lunar-date-2.0), Then install the lunar calendar plug-in https://extensions.gnome.org/extension/675/lunar-calendar/ , Finally, you need to set ubuntu The language is Chinese, and the agricultural pressure display will not be garbled .
- other
Reference
[1] https://blog.csdn.net/quqi99/article/details/54950383
[2] https://blog.csdn.net/quqi99/article/details/98235190
[3] https://blog.csdn.net/quqi99/article/details/25320181
边栏推荐
- Internet Download Manager2022智能win最新版下载器
- PHP实现删除一维数组中某一个值
- 化繁为简,聊一聊复制状态机系统架构抽象
- The MySQL password is correct, but the startup error is unable to create initial connections of pool Access denied for user ‘root‘@‘localhost
- juju debug hacks (by quqi99)
- 24 SaaS thoughts
- Date对象简介
- 3.Transbot修改显示分辨率
- Le mot de passe MySQL est correct, mais une erreur de démarrage n'a pas été signalée pour créer des connexions initiales de pool. Accès refusé pour l'utilisateur 'root' @ 'localhost
- 小程序CMS动态处理数据之内容模型和内容集合的使用
猜你喜欢
主动降噪耳机排行榜10强,主动降噪耳机十大品牌
Fcntl function
Thread learning notes
Distsql deep parsing: creating a dynamic distributed database
云原生(十) | Kubernetes篇之Kubernetes简介
Copy of file descriptor
计算机网络学习笔记7-TCP编程流程及面试题
"Review of software engineering in Wuhan University of technology" Chapter III software requirements
2. Raspberry pie system backup
"Review of software engineering in Wuhan University of technology" Chapter 6 | coding specification
随机推荐
原型对象
[10:00 public class]: cloud video conference system privatization practice
PHP实现删除一维数组中某一个值
Reentrant function
2、 Notes
Codeforces Round #805 (Div. 3)(8/8)
第十二讲 MySQL之高可用组件MHA
Copy of file descriptor
Rocky基础练习题-shell脚本-1
批量查分爬虫
构造函数
C#入门系列(二十七) -- LINQ简析
Node generates and verifies tokens (typescript syntax)
"Review of software engineering in Wuhan University of technology" Chapter III software requirements
Date对象简介
[how to series] friends fission platform construction
Simplify the complexity and talk about the abstraction of replication state machine system architecture
H5 no scaling on the mobile terminal
三、泛型
水博士