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

Ubuntu 22.04.3切换至X11后双显示器失效的解决需求(兼顾Upwork截图功能)

Ubuntu 22.04.3切换至X11后双显示器失效的解决需求(兼顾Upwork截图功能)

Hey there, let's work through this problem together—you need both monitors to run smoothly and get Upwork's screenshot feature working, right? Here are a few practical approaches to try:

方案1:给Upwork单独启用XWayland兼容(无需切换整个桌面到X11)

Wayland supports most X11 apps via XWayland, and Upwork (being an Electron app) can leverage this to fix the screenshot issue without breaking your dual-monitor setup. Here's how:

  • Open a terminal and launch Upwork with this command:
    GDK_BACKEND=x11 upwork
    
  • Test the screenshot feature—if it works, you can make this permanent by editing Upwork's desktop shortcut:
    • Copy Upwork's .desktop file to your local applications folder to avoid modifying system files:
      cp /usr/share/applications/upwork.desktop ~/.local/share/applications/
      
    • Open the copied file with a text editor (like Gedit):
      gedit ~/.local/share/applications/upwork.desktop
      
    • Find the line starting with Exec=upwork and change it to:
      Exec=env GDK_BACKEND=x11 upwork
      
    • Save the file, then launch Upwork from your app menu—screenshots should work, and your dual monitors will stay functional under Wayland.

方案2:修复X11下的Intel Arc显卡驱动配置

If you prefer switching the entire desktop to X11, the issue is likely that Xorg isn't properly detecting your Intel Arc A750's HDMI output. Let's fix that:

  1. Update your Intel Arc drivers:
    Run these commands in terminal to ensure you have the latest drivers:
    sudo apt update && sudo apt upgrade
    sudo apt install intel-media-va-driver-non-free
    
  2. Generate and adjust Xorg configuration:
    • Generate a base Xorg config file:
      sudo Xorg -configure
      
    • Copy the generated file to the X11 config directory:
      sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
      
    • Restart GDM to apply changes:
      sudo systemctl restart gdm3
      
  3. If the monitor still isn't detected:
    • Run xrandr in terminal to list all available display ports (your Arc A750's HDMI might show up as HDMI-2 or similar).
    • Manually enable the secondary monitor with a command like this (adjust the port names and position to match your setup):
      xrandr --output HDMI-2 --auto --right-of HDMI-1
      
    • You can save this command as a startup script to run automatically when you log into X11.

方案3:重新配置X11登录后的显示设置

Sometimes the issue is just a misconfigured display setting after switching to X11:

  • Log out, then select "Ubuntu on Xorg" from the gear icon on the login screen.
  • After logging in, open Settings > Displays—check if your secondary monitor is listed here. If yes, reconfigure its resolution and position, then click "Apply" to save.
  • If the monitor isn't listed, use the xrandr command from方案2 to manually enable it as described.

备注:内容来源于stack exchange,提问作者Ashif

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.20 10:14:40