起因:给蜗牛星际重装linux后发现关机后总会自动重启,windows或者直接在grub里关机都没事。

进一步排查:发现只要随便插一个usb设备就不会出现这个问题,大概也就是为什么之前一直没发现(一直都是插着键盘用,没有做过无头)

重置bios、找bios选项都没有看到可疑的地方,最后还是通过google搜索linux power off computer will auto restart,一篇一篇看下去,总算看到有个提到usb问题的 Bug 66171 - [PATCH]Poweroff doesn't work, it just reboots

xhci: Fix spurious wakeups after S5 on Haswell

根据arch wiki,kernel command line加入xhci_hcd.quirks=270336就好了。