RHEL PowerButton預設行為
Problem
紀錄一下Power Button在RHEL上GUI mode與text mode的差異。測試系統為RHEL8.7。
GUI
Reference
Text
在Text mode中,是透過logind背景服務控制PowerButton行為。HandlePowerKey預設行為是poweroff,假如要測試可以直接把它改成其它數值,重開機後再觸發PowerButton即可確認。
Reference
linux:power:power_buttons_behavior_rhel
紀錄一下Power Button在RHEL上GUI mode與text mode的差異。測試系統為RHEL8.7。
在Text mode中,是透過logind背景服務控制PowerButton行為。HandlePowerKey預設行為是poweroff,假如要測試可以直接把它改成其它數值,重開機後再觸發PowerButton即可確認。