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
.desktopfile 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=upworkand 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.
- Copy Upwork's
方案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:
- 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 - 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
- Generate a base Xorg config file:
- If the monitor still isn't detected:
- Run
xrandrin terminal to list all available display ports (your Arc A750's HDMI might show up asHDMI-2or 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.
- Run
方案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
xrandrcommand from方案2 to manually enable it as described.
备注:内容来源于stack exchange,提问作者Ashif
相关产品推荐
相关产品推荐

