You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Ubuntu屏幕超时黑屏后维持RDP连接的解决方案咨询

Ubuntu屏幕超时黑屏后维持RDP连接的解决方案咨询

Hey there! Let's tackle this RDP issue you're having with Ubuntu 22.10—totally get wanting to keep your screen off or locked for privacy, but still access the machine remotely without having to physically log in every time. Here are a few tried-and-true fixes to make this work:

1. Adjust Remote Desktop Lock Screen Permissions

First, let's make sure your remote desktop settings allow connections even when the screen is locked:

  • Open Settings > Sharing > Remote Desktop
  • Confirm both Remote Desktop and Remote Control are toggled on
  • Click the small gear icon ⚙️ next to "Remote Desktop" to open advanced settings
  • Look for the option labeled "Enable remote control even when the screen is locked" and check it (this is often disabled by default, which causes the disconnect when locking)

2. Tweak Power Settings to Keep System Awake (But Screen Off)

You don't want the system to sleep (which would drop the network connection), but you can safely let the screen turn off:

  • Open Settings > Power
  • Under "Power Saving", set "Put computer to sleep when inactive for" to Never
  • Set "Turn screen off when inactive for" to your preferred timeout (e.g., 10 minutes)
  • This way, the screen will black out after inactivity, but the system stays running and maintains the RDP connection

3. Fix Wayland Compatibility Issues (If Needed)

Ubuntu 22.10 uses Wayland by default, which can sometimes interfere with remote desktop connections when the screen is locked. Switching to Xorg might resolve this:

  • Open a terminal and run sudo nano /etc/gdm3/custom.conf
  • Find the line #WaylandEnable=false and remove the # to uncomment it
  • Save the file (press Ctrl+O, then Enter) and exit nano (Ctrl+X)
  • Reboot your Ubuntu machine for the change to take effect

4. Verify Remote Desktop Service Configuration

If the above steps don't work, you can directly adjust the GNOME remote desktop daemon settings via the command line:

  • Open a terminal and run:
    dconf write /org/gnome/desktop/remote-desktop/rdp/security-authentication-types "['password']"
    dconf write /org/gnome/desktop/remote-desktop/vnc/lock-screen-enabled false
    
  • These commands ensure password authentication works and allow remote connections even when the screen is locked

Give these steps a try in order—most users find the first two steps are enough to fix the issue. If you run into any hiccups, feel free to follow up with details about what's not working!

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

火山引擎 最新活动