You are not logged in.
I know I can hibernate/suspend.
But my question is about some "hibernate-lite" like the fast startup for windows 10. That is, hibernate only the kernel and pre-login processes (?), and restart login when you come back from this hibernate-lite.
Last edited by serat (2020-08-31 01:01:13)
Offline
You can use the following:
https://wiki.archlinux.org/index.php/Po … leep_hooks
...to perform actions before the system goes to hibernation.
An action could be the restart of the display manager (eg: systemctl restart sddm), and another could be the emptying of the pagecache (sync; echo 3. > /proc/sys/vm/drop_caches )
That way you'll have a very fast shutdown and boot at the price of a less responsive system at boot, since we dropped anything not needed strictly.
Personally, i prefer classic hibernation.
Last edited by kokoko3k (2020-08-30 06:55:31)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Thank you! I tried your suggestion.
It works pretty well, but it is not worth it for me since it barely saves couple of seconds.
Offline
Is windows 10's fast startup any faster?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
@kokoko3k Didn't see your question earlier. Sorry.
Windows 10 fast startup is faster (by about 8 seconds or so). But I think part of arch's slow start is that I have coupled of LUKS partitions that are unlocked using from keyfile an attached thumb drive. I might be measuring this wrong - but I think this unlock takes about 3-4 seconds.
If you are interested, let me know and I can try to get some more accurate time measurements.
Last edited by serat (2020-10-09 01:12:40)
Offline
I'm not sure there'd ever be a point. Perhaps decryption is slowing you down, which if it is, that can't be sped up, but otherwise linux already boots fast. Windows is slow as hell, so you can shave 8 seconds off of boot and still be slow. If I shaved 8 seconds off of my linux boot time it'd finish booting up 6.6 seconds *before* I hit the power button.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm not sure there'd ever be a point. Perhaps decryption is slowing you down, which if it is, that can't be sped up, but otherwise linux already boots fast. Windows is slow as hell, so you can shave 8 seconds off of boot and still be slow. If I shaved 8 seconds off of my linux boot time it'd finish booting up 6.6 seconds *before* I hit the power button.
There was a time this was true, but I think current Windows installs (with the trickery mentioned above in this thread) are pretty good on bootup times (with SSDs). My parents have mid-range laptops with windows 10, and when I have to boot them up to help with something or other I don't feel it taking ages like I remember my old systems doing.
Yes, a linux install would be X% faster, but at some point there's diminishing returns, and I think we're past that point already. An SSD solves almost everything with bootup times (unless you're doing network-based login), whether on Windows or Linux.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Fast startup is in essence a trick with hibernation, and one I really hate because of every side effect and garbage it triggers to the firmware for some reason.
Once disabled you can easily see the price for bootup of all that bloat.
Otherwise, everything was already mentioned.
Even faster startup is doable with an SSD and possibly a less sucky MB firmware...
Offline