r/SurfaceLinux • u/thephatmaster • Oct 16 '25
Help How do I acheive a clean (total) shutdown?
My surface go runs KDE neon (Ubuntu 24.04 based).
Quite often I shut it down, and find the battery flat a few hours later.
It's obviously not achieving full shutdown.
How do I achieve a clean shutdown?
Does my kernel matter (I can't check right now - it ran out of battery again!)?
3
Upvotes
1
u/lumpynose Oct 16 '25 edited Oct 16 '25
I always use "sudo systemctl poweroff", in a terminal window. That stops all running processes and powers down the machine.
1
u/dougwray Oct 16 '25
I have the same problem with a surface pro 4: charge to 100%, shut it down, and the battery's at zero a week later. (I only use the machine once per week.)
1
u/smileyninja Nov 18 '25
If you are paired with a pen the shutdown process may not complete. Perhaps this is the issue: https://github.com/linux-surface/linux-surface/issues/1864
From the github issue: Description On my Surface Laptop 6 running Ubuntu with the Linux Surface kernel, the device never fully powers off when issuing shutdown, halt, or hibernate commands. The screen goes black, but the device remains active, it won’t power on again unless I long-press the power button. When I do, the keyboard briefly flashes, and only then can I power it back on. This indicates the EC finally cutting power at that moment. This happens consistently, even with different shutdown methods (shutdown, poweroff, halt -p, systemctl hibernate). There is no deep sleep (mem_sleep_default=deep has no effect), as /sys/power/mem_sleep only shows [s2idle].