mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 05:35:59 +03:00
[GH-ISSUE #420] Enhancement Request: add option for directly applying u/Alex_of_Chaos patch for making HDD hibernation work when you (only) have NVMe I/O activity #150
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TorbenSchreiter on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/420
Referring to this and parts of the related Python script from https://github.com/AlexFromChaos/synology_hibernation_fixer.
While the Synology DSM HDD hibernation fixer script does a number of different things, I would find what Alex labels "applying in-memory patches for DSM binaries which prevent HDD hibernation to function normally when there is an NVMe activity (allows for eg. to setup noisy Docker containers on an NVMe partition and have working HDD hibernation)" as probably very useful in most cases where Synology_HDD_db is applied. He states explicitly that this goes beyond just Docker usage (and I have observed the same on my unit).
My understanding of Alex' original Reddit post is that this strange behavior was probably introduced w/ SSD Cache in mind. As it is the main point of Synology_HDD_db to actually make the M.2 slots work for normal storage purposes, it would make sense to also integrate the hibernation fix directly here as many people will move their frequently accessed files to the M.2 first (I would expect).
Having this available as an (experimental) option directly in Synology_HDD_db (while giving credit to Alex in the Readme) would be a great addition IMHO.
@007revad commented on GitHub (Jan 3, 2025):
If I add hibernation fixer as an option, rather than copying Alex's work I'd probably make syno_hdd_db download hiber_fixer.py and run it when syno_hdd_db has finished.
I've never run hiber_fixer.py so I'll have a play with it.
@007revad commented on GitHub (Jan 3, 2025):
Okay, I just ran hiber_fixer.py
Alex obviously doesn't believe in the standard 80 column shell window. The first 5 lines:
are a mess for me:

I'd probably end up fixing that :o)
The default schedules for most items looked okay to me. They were either daily, weekly or monthly. I'm not worried about my NAS waking up the HDDs once a day (as long those daily schedules aren't spread out too much).
There were 10 crontab schedules, that I didn't bother working out how frequently they were scheduled for.
@TorbenSchreiter commented on GitHub (Jan 3, 2025):
Just saw this (from 5 months ago, thus more recently than the latest version on Github):
Regardless of the above: I think hiber_fixer.py does a lot of things unrelated to what Synology_HDD_db is meant for. They will be useful for other scenarios but I would maybe not mix up things too much.
So maybe, if you are thinking about making hiber_fixer.py more controllable via shell, then an option that only does the NVMe patch (but not the other bunch of things largely unrelated to M.2s) makes more sense?
@007revad commented on GitHub (Jan 3, 2025):
It would depending on how Alex intends to force DSM to boot only from NVMe drives. Assuming Alex's method would need to be redone after each DSM update it would need to be done after syno_hdd_db has run.
I'd hope Alex knows some way to add md0 and md1 to the NVMe drives without needing to reformat them.
@TorbenSchreiter commented on GitHub (Dec 4, 2025):
tagging @AlexFromChaos to see whether there would be willingness to integrate here; possible testers could be recruited from here possibly
some threads I had been following:
@007revad commented on GitHub (Dec 11, 2025):
Alex hasn't posted anything on GitHub in the last 2 years. And nothing on reddit in the last 6 months.