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

MacBook Pro+i3环境下xrandr无法点亮HDMI外接显示器求助

Troubleshooting HDMI Display Issue on MacBook Pro (Linux + i3 WM)

Hey there, let's dig into this frustrating HDMI display problem you're facing. It's super odd that xrandr recognizes your monitor but refuses to light it up—even when your laptop screen scales to the monitor's resolution. Let's walk through some actionable steps to fix this, plus note what extra details would help narrow things down further.

Quick Hardware Checks First

  • Swap out your HDMI cable: Faulty cables often cause "detected but no signal" issues—even if they look fine. Try a known-good cable to rule this out.
  • Verify the monitor works: Plug it into another device (like a Windows PC or another laptop) to make sure the display itself isn't the problem.
  • Double-check the HDMI port on your MacBook Pro: Ensure it's free of dust, and the cable is fully seated. Some MacBook models have tight ports, so a firm push might help.

Tweak Your Xrandr Commands

The --auto flag can be hit-or-miss, especially with MacBook hardware. Let's try more specific commands:

  1. First, run xrandr -q (you mentioned you have this output—sharing it would help!) to list all supported modes for HDMI-0. Look for lines like 1920x1080 60.00*+.
  2. Use an explicit mode and refresh rate, for example:
    xrandr --output HDMI-0 --mode 1920x1080 --rate 60 --right-of eDP-1
    
    Replace eDP-1 with your laptop's built-in display name (you'll find this in xrandr -q too).
  3. If that still doesn't work, try forcing the output (use this cautiously—it can cause temporary display glitches):
    xrandr --output HDMI-0 --mode 1920x1080 --force
    

Check Your Xorg Configuration

Your /etc/xorg.conf.d/10-monitor.conf might be causing conflicts. Let's test this:

  1. Rename the config file to disable it temporarily:
    sudo mv /etc/xorg.conf.d/10-monitor.conf /etc/xorg.conf.d/10-monitor.conf.bak
    
  2. Restart your X session in i3: Press Mod+Shift+E to log out, then log back in.
  3. Try running your original xrandr --output HDMI-0 --auto command again. If the monitor lights up, the issue was in your Xorg config—sharing its original content would help me spot the mistake (like a wrong output name or unsupported resolution).

Verify Graphics Drivers

MacBook Pros often have finicky graphics hardware on Linux:

  • Run lspci | grep VGA to check your GPU model.
    • If it's an Intel integrated GPU: Ensure you have the latest mesa drivers installed (most distros include this by default, but updating it can fix bugs).
    • If it's an NVIDIA discrete GPU: Make sure you're using the proprietary NVIDIA driver instead of the open-source nouveau driver. Nouveau often has compatibility issues with MacBook HDMI ports.

Need More Info to Help Further

To give you a more targeted fix, could you share:

  • The full output of xrandr -q (this shows exactly what modes your HDMI-0 port supports and its current state)
  • The content of your original /etc/xorg.conf.d/10-monitor.conf file

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.19 04:08:28