I’ve got a bit of a problem. I have a NUC (Next Unit of Computing). When I press the power button to start the PC up, the button turns blue. When I switch it off, the button turns orange.
When I shut down EndeavourOS Xfce in the normal way, the power button sometimes stays lit up blue. My screen is black at that point, but I don’t know whether the PC has actually switched off. If I then hold the button down for about 10 seconds, the PC apparently switches off but restarts immediately. Only then can I switch it off again. Can anyone help me with this annoying problem? Thanks in advance!
Take a look at your power settings (Power Manager).
Perhaps you may have the power button set up to sleep/hibernate instead of power off.
You might try entering poweroff in a terminal and see if you get the same behavior.
Update the bios/UEFI if possible
Check bios/UEFI power settings, orange led led me think to sleep mode/hibernation instead of off
that this sometimes occurs is strange though, so bios update could be helping
Try looking at Power Manger → General → When power button is pressed and make sure it is set to your needs.
Look at the journals to see if there is something holding up the shutdown.
Get a list of your latest boots:
journalctl --list-boots
Then run something like:
journalctl -b N | grep -Ei 'suspend|resume|sleep|shutdown|poweroff|halt'
Set N to a number you get in the first command above.
[alaint@alain-desktop ~]$ journalctl -b 128 | grep -Ei ‘suspend|resume|sleep|shutdown|poweroff|halt’
jun 22 13:46:35 alain-desktop kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=9038fd66-ddfc-4086-b1a9-bf3979458a27 rw nowatchdog nvme_load=YES resume=UUID=a5a3e419-1355-4620-991b-2426d223a0fb loglevel=3
jun 22 13:46:35 alain-desktop kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=9038fd66-ddfc-4086-b1a9-bf3979458a27 rw nowatchdog nvme_load=YES resume=UUID=a5a3e419-1355-4620-991b-2426d223a0fb loglevel=3
jun 22 13:46:35 alain-desktop kernel: input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
jun 22 13:46:35 alain-desktop kernel: ACPI: button: Sleep Button [SLPB]
jun 22 13:46:35 alain-desktop dracut-cmdline[151]: Using kernel command line parameters: rd.driver.pre=i915 BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=9038fd66-ddfc-4086-b1a9-bf3979458a27 rw nowatchdog nvme_load=YES resume=UUID=a5a3e419-1355-4620-991b-2426d223a0fb loglevel=3
jun 22 13:46:39 alain-desktop systemd[1]: Starting Resume from hibernation…
jun 22 13:46:39 alain-desktop systemd-hibernate-resume[280]: Unable to resume from device ‘/dev/disk/by-uuid/a5a3e419-1355-4620-991b-2426d223a0fb’ (259:3) offset 0, continuing boot process.
jun 22 13:46:39 alain-desktop systemd[1]: systemd-hibernate-resume.service: Deactivated successfully.
jun 22 13:46:39 alain-desktop systemd[1]: Finished Resume from hibernation.
jun 22 13:46:43 alain-desktop systemd[1]: Starting Record System Boot/Shutdown in UTMP…
jun 22 13:46:43 alain-desktop systemd[1]: Finished Record System Boot/Shutdown in UTMP.
jun 22 13:46:44 alain-desktop systemd[1]: Starting Restore /run/initramfs on shutdown…
jun 22 13:46:44 alain-desktop systemd[1]: Finished Restore /run/initramfs on shutdown.
jun 22 13:46:44 alain-desktop systemd-logind[539]: Watching system buttons on /dev/input/event0 (Sleep Button)
jun 22 13:46:51 alain-desktop rtkit-daemon[1261]: Handling system-suspend using logind.
jun 22 15:04:52 alain-desktop at-spi2-registryd[759]: X connection to :0 broken (explicit kill or server shutdown).
jun 22 15:04:52 alain-desktop systemd[1]: Stopping Restore /run/initramfs on shutdown…
jun 22 15:04:52 alain-desktop systemd[1]: dracut-shutdown.service: Deactivated successfully.
jun 22 15:04:52 alain-desktop systemd[1]: Stopped Restore /run/initramfs on shutdown.
jun 22 15:04:52 alain-desktop systemd[1]: Requested transaction contradicts existing jobs: Transaction for sound.target/start is destructive (poweroff.target has ‘start’ job queued, but ‘stop’ is included in transaction).
jun 22 15:04:52 alain-desktop systemd[1]: sys-devices-pci0000:00-0000:00:1f.3-sound-card0-controlC0.device: Failed to enqueue SYSTEMD_WANTS job, ignoring: Transaction for sound.target/start is destructive (poweroff.target has ‘start’ job queued, but ‘stop’ is included in transaction).
jun 22 15:04:52 alain-desktop systemd[1]: Requested transaction contradicts existing jobs: Transaction for systemd-rfkill.socket/start is destructive (shutdown.target has ‘start’ job queued, but ‘stop’ is included in transaction).
jun 22 15:04:52 alain-desktop systemd[1]: sys-devices-virtual-misc-rfkill.device: Failed to enqueue SYSTEMD_WANTS job, ignoring: Transaction for systemd-rfkill.socket/start is destructive (shutdown.target has ‘start’ job queued, but ‘stop’ is included in transaction).
jun 22 15:04:52 alain-desktop systemd[687]: Reached target Shutdown.
jun 22 15:04:53 alain-desktop systemd[1]: Stopping Record System Boot/Shutdown in UTMP…
jun 22 15:04:53 alain-desktop systemd[1]: Stopped Record System Boot/Shutdown in UTMP.
jun 22 15:04:53 alain-desktop systemd[1]: Reached target System Shutdown.
jun 22 15:04:53 alain-desktop systemd[1]: Reached target Late Shutdown Services.
jun 22 15:04:53 alain-desktop systemd[1]: systemd-poweroff.service: Deactivated successfully.
jun 22 15:04:53 alain-desktop systemd-shutdown[1]: Syncing filesystems and block devices.
jun 22 15:04:53 alain-desktop systemd-shutdown[1]: Sending SIGTERM to remaining processes…
[alaint@alain-desktop ~]$
I updated my BIOS, and I think the issue has been resolved! I’ve started up and shut down the PC several times, and so far everything is working fine.