Apple Thunderbolt Display 无法在运行 Linux (Devuan) 的 Mac Mini 上唤醒

Apple Thunderbolt Display 无法在运行 Linux (Devuan) 的 Mac Mini 上唤醒

我的 Mac Mini 连接了两台显示器:一台 Mac Display 显示器,连接在其雷电端口上;另一台小型通用显示器,连接在其 HDMI 端口上(使用 HDMI 转 VGA 适配器)。xrandr 看到它们的样子如下:

user@mini:~$ xrandr 
Screen 0: minimum 320 x 200, current 3584 x 1440, maximum 16384 x 16384
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 2560x1440+1024+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1280x720      59.86  
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768      60.00*+  75.03    70.07  
   1920x1080     60.00    59.94  
   1280x720      60.00    59.94  
   832x624       74.55  
   800x600       72.19    75.00    60.32  
   720x480       60.00    59.94  
   640x480       75.00    72.81    60.00    59.94  
   720x400       70.08  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
user@mini:~$
user@mini:~# uname -a
Linux mini 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
user@mini:~#

计算机配置为(在 xfce 的电源管理器中)一小时后进入“挂起模式”。当发生这种情况时,dmesg 告诉我它切断了雷电控制器的电源:

[Tue Mar 12 20:40:56 2024] ata1.00: Entering standby power mode
[Tue Mar 12 20:40:56 2024] ACPI: EC: interrupt blocked
[Tue Mar 12 20:40:56 2024] pcieport 0000:04:00.0: quirk: cutting power to Thunderbolt controller...
[Tue Mar 12 20:40:56 2024] pcieport 0000:04:00.0: quirk_apple_poweroff_thunderbolt+0x0/0xf0 took 313017 usecs
[Tue Mar 12 20:40:56 2024] ACPI: PM: Preparing to enter system sleep state S3
[Tue Mar 12 20:40:56 2024] ACPI: EC: event blocked
[Tue Mar 12 20:40:56 2024] ACPI: EC: EC stopped
[Tue Mar 12 20:40:56 2024] ACPI: PM: Saving platform NVS memory
[Tue Mar 12 20:40:56 2024] Disabling non-boot CPUs ...
[Tue Mar 12 20:40:56 2024] smpboot: CPU 1 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 2 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 3 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 4 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 5 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 6 is now offline
[Tue Mar 12 20:40:56 2024] smpboot: CPU 7 is now offline
[Tue Mar 12 20:40:56 2024] ACPI: PM: Low-level resume complete
[Tue Mar 12 20:40:56 2024] ACPI: EC: EC started

这反过来导致连接到其 mini-displayport 的 Apple Display 显示器被列为已断开连接。请注意,我的通用显示器仍显示为已连接。我不知道哪个显示器在 DP-3 端口中。我只能说分辨率 (2560x1440) 与 Apple 显示器的分辨率相匹配。

user@mini:~$ xrandr
Screen 0: minimum 320 x 200, current 3584 x 1440, maximum 16384 x 16384
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected primary 2560x1440+1024+0 (normal left inverted right x axis y axis) 0mm x 0mm
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768      60.00*+  75.03    70.07
   1920x1080     60.00    59.94
   1280x720      60.00    59.94
   832x624       74.55
   800x600       72.19    75.00    60.32
   720x480       60.00    59.94
   640x480       75.00    72.81    60.00    59.94
   720x400       70.08
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
  2560x1440 (0x497) 241.500MHz +HSync -VSync
        h: width  2560 start 2608 end 2640 total 2720 skew    0 clock  88.79KHz
        v: height 1440 start 1443 end 1448 total 1481           clock  59.95Hz
user@mini:~$

当我重新登录 mini 时,主机似乎已唤醒,HDMI 端口中的显示器也已唤醒,但 Apple 显示器仍被报告为断开连接。如果我短暂拔下 Apple 显示器的雷电线缆,此显示器将唤醒。

现在,在我指责雷电端口之前,我已经使用迷你显示端口转 VGA 适配器将 1024x768 显示器放入迷你雷电端口:该显示器将正常退出省电模式。我拥有的另一台显示器也是如此,它使用迷你显示端口转 HDMI 适配器连接。

看看这里的一些帖子,我发现了一些旧的讨论这个问题是热插拔问题。考虑到拔下和热插拔显示器会将其打开,我想部分问题肯定已经解决了。我不想每次在关闭显示器后回来时都断开显示器的连接,原因和我宁愿避免热插拔 PCIe 卡的原因相同。那么,我可以做些什么来模拟热插拔事件,同时不连接雷电电缆?

相关内容