Ubuntu 22.04.1下Google Meet屏幕共享过暗问题的解决方法
Google Meet屏幕共享画面过暗的解决问题
问题描述
在Google Meet中共享屏幕、标签页或窗口时,画面显示过暗。该问题出现在Ubuntu 22.04.1(纯净最小化安装)环境下,使用最新版Firefox和Chrome均存在此现象。
已尝试的无效操作
- 更新GDM3自定义配置文件:
- 路径:
/etc/gdm3/custom.conf,取消注释#WaylandEnable=false以强制登录屏幕使用Xorg - 执行命令:
echo $XDG_SESSION_TYPE x11
- 路径:
- 安装并配置xcompmgr:
- 安装命令:
sudo apt install xcompmgr - 运行命令:
xcompmgr -c -l0 -t0 -r0 -o.00 - 编辑
~/.config/compton.conf,修改行:shadow-exclude = [ "name = 'cpt_frame_window' " ];
- 安装命令:
- 配置Chrome启动参数与WebRTC设置:
- 在
~/.local/share/applications/google-chrome.desktop中添加启动参数:google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland & - 在Chrome中设置
chrome://flags/#enable-webrtc-pipewire-capturer
- 在
- 配置PipeWire:
- 执行命令序列:
sudo mkdir -p /etc/pipewire/media-session.d/ sudo cp /usr/share/pipewire/media-session.d/media-session.conf /etc/pipewire/media-session.d/ sudo sed -i 's/#metadata/metadata/g' /etc/pipewire/media-session.d/media-session.conf
- 执行命令序列:
以上操作均多次尝试,包含注销、重启,但均无效。
可行解决办法
方法1:调整系统显示与色彩设置
- 检查系统屏幕亮度:通过系统设置→显示,拖动亮度滑块至合适数值,避免处于低亮度模式。
- 关闭色彩校正:进入系统设置→辅助功能→色彩校正,关闭所有启用的色彩过滤选项。
方法2:禁用浏览器硬件加速
Chrome/Edge:
- 打开
chrome://settings/system - 关闭「使用硬件加速模式(如果可用)」,重启浏览器后测试共享效果。
Firefox:
- 打开
about:preferences#general - 滚动至「性能」区域,取消勾选「使用推荐的性能设置」,再关闭「启用硬件加速」,重启浏览器。
方法3:调整PipeWire屏幕捕获参数
- 编辑PipeWire配置文件:
sudo nano /usr/share/pipewire/pipewire.conf.d/50-portal.conf - 添加或修改以下参数,强制捕获原始亮度画面:
[portal] capture-screen-cursor = true capture-screen-dmabuf = false - 重启PipeWire服务:
systemctl --user restart pipewire pipewire-media-session
方法4:切换Xorg会话并配置窗口管理器
- 登录时,点击登录界面用户名右下角的齿轮图标,选择「Ubuntu on Xorg」登录。
- 安装
picom替代xcompmgr:sudo apt install picom - 创建
~/.config/picom.conf,添加内容禁用共享窗口阴影:shadow-exclude = [ "name = 'Google Meet - Screen Sharing'" ]; shadow-exclude = [ "class_g = 'Google-chrome' && name *= 'Screen Sharing'" ]; shadow-exclude = [ "class_g = 'Firefox' && name *= 'Screen Sharing'" ]; - 设置开机自启:在「启动应用程序」中添加条目,命令为
picom --config ~/.config/picom.conf。
内容的提问来源于stack exchange,提问作者MarkoftheKanes
相关产品推荐
相关产品推荐

