You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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:

  1. 打开chrome://settings/system
  2. 关闭「使用硬件加速模式(如果可用)」,重启浏览器后测试共享效果。

Firefox:

  1. 打开about:preferences#general
  2. 滚动至「性能」区域,取消勾选「使用推荐的性能设置」,再关闭「启用硬件加速」,重启浏览器。

方法3:调整PipeWire屏幕捕获参数

  1. 编辑PipeWire配置文件:
    sudo nano /usr/share/pipewire/pipewire.conf.d/50-portal.conf
    
  2. 添加或修改以下参数,强制捕获原始亮度画面:
    [portal]
    capture-screen-cursor = true
    capture-screen-dmabuf = false
    
  3. 重启PipeWire服务:
    systemctl --user restart pipewire pipewire-media-session
    

方法4:切换Xorg会话并配置窗口管理器

  1. 登录时,点击登录界面用户名右下角的齿轮图标,选择「Ubuntu on Xorg」登录。
  2. 安装picom替代xcompmgr:
    sudo apt install picom
    
  3. 创建~/.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'" ];
    
  4. 设置开机自启:在「启动应用程序」中添加条目,命令为picom --config ~/.config/picom.conf。

内容的提问来源于stack exchange,提问作者MarkoftheKanes

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.21 22:42:24