gpd winmax2 fedora42 睡眠秒唤醒问题

最近入了gpd win max2 2025 8840u款学习机(bushi),到手就刷了fedora 42 和野蛮学习系统(bushi),fedora42下遇到睡眠秒唤醒的问题。这个问题在我之前的8845hs处理器的笔记本上面也有,但情况跟gpd这个还不一样,接下来是deepseek协助排查的解决步骤。

触发一次异常唤醒之后,执行

cat /sys/power/pm_wakeup_irq

发现输出为7,说明中断信号源为7,那么执行如下指令来定位设备

grep -E "(^[ ]*7:|IR-IO-APIC)" /proc/interrupts

发现是pinctrl_amd设备(AMD GPIO控制器驱动)引起了中断,那么写一个systemd服务,开机禁用即可

[Unit]
Description=Disable AMD I2C wakeup source
After=multi-user.target[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo disabled > /sys/devices/platform/AMDI0010:00/i2c-0/i2c-PNP0C50:00/power/wakeup"
RemainAfterExit=yes[Install]
WantedBy=multi-user.target