Hello forum!
Although I am a complete n00b when it comes to Linux and OMV, I successfully installed OMV 5.x on (top) of my Debian 10.7 installation with some random hardware & a Atlantic AQC-107 10GBE NIC.
I would like to thank you very much for all the excellent guidance and help I have been able to find here and on YT etc. from dedicated OMV users (!)
But one thing makes my life really hard, namely the configuration of any/some energy saving functions and here specifically putting OMV into a form of hibernate and waking it up again with wake-on-lan (WOL).
The whole Autoshutdown via Plugin is not working, rep. is doing nothing for me and somehow interferes or dependent on the configuration of the Debian kernel, the ACPI settings in the BIOS and in Debian-OS, the nic & network manager settings, settings in countless .conf files, services, boot options etc. aso.
What I am trying to say is: Unfortunately, simply checking the "Auto shutdown" checkbox did work for me and it looks to me, that they're many other users who are not able to configure a satisfying energy saving setup...?!
It took me more then a week to figure out how to bring my NAS-PC into hibernate from the cmd-line, but still not within / out of OMV.
Now I am searching for a way to "integrate' the below solution into my OMV installation, but have no clue where to start...
Goal is to hibernate when no one is streaming or doing a backup anything to the NAS.
This is what I like to share with you...so here's what I did:
Installed 1x gfx card and 1x nic in PCI-slots, so I did the below with partially success!
After "systemctl hibernate" or "suspend" I can wake up the system with a Magic Packet!
Problem: The system wakes up, tries a resume and somehow ends in a full reboot!
## checking ACPI conditions, all ACPI settings disabled ##
nexus6@NAS:~$ sudo cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S5 *disabled no-bus:pci0000:00
[B]PEX0 S5 *disabled pci:0000:00:1c.0[/B]
PEX1 S5 *disabled
PEX2 S5 *disabled
PEX3 S5 *disabled
[B]PEX4 S5 *disabled pci:0000:00:1c.4[/B]
PEX5 S5 *disabled
HUB0 S5 *disabled pci:0000:00:1e.0
UAR1 S5 *disabled
UAR2 S5 *disabled
IGBE S5 *disabled
USB0 S3 *enabled pci:0000:00:1d.0
USB1 S3 *enabled pci:0000:00:1d.1
USB2 S3 *enabled pci:0000:00:1d.2
USB3 S3 *enabled pci:0000:00:1a.0
USB4 S3 *enabled pci:0000:00:1a.1
USB5 S3 *enabled pci:0000:00:1a.2
EHC1 S3 *enabled pci:0000:00:1d.7
EHC2 S3 *enabled pci:0000:00:1a.7
AZAL S5 *disabled pci:0000:00:1b.0
Alles anzeigen
## On which PCI-Express slot is my ethernet adatpter / NIC? ##
nexus6@NAS:~$ sudo lspci -tv | grep -i ether
[B]+-1c.0-[02]----00.0 [/B] Aquantia Corp. AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
## OK, its PEX0 pci:0000:00:1c.0 but ACPI-"access" is disabled ##
## trying to enable wakeup setting ##
echo enabled > /sys/devices/pci0000:00/0000:00:1c.0/power/wakeup ## looks like both cmd doing the job
echo enabled > /sys/class/net/enp2s0/device/power/wakeup
## ok, check if its enabled now ##
root@NAS:~# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S5 *disabled no-bus:pci0000:00
[B]PEX0 S5 *enabled pci:0000:00:1c.0[/B]
PEX1 S5 *disabled
snip...
## changes /etc/systemd/system/wol.service to ##
[Unit]
Description=Activate WOL on enp2s0 network card
After=network-online.target # network service started&online?
[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s enp2s0 wol g #set WOL to magic-packet
[Install]
WantedBy=basic.target
Alles anzeigen
## put ACPI "enabled" in /etc/rc.local & /etc/init.d/rc.local
...snip
/usr/sbin/ethtool -s enp2s0 wol g # idk, just setting WOL for NIC here again ;-D
echo enabled > /sys/class/net/enp2s0/device/power/wakeup
echo PEX0 > /proc/acpi/wakeup ## same as "echo enabled > /sys/devices/pci0000:00/0000:00:1c.0/power/wakeup"
echo PEX4 > /proc/acpi/wakeup ## just in case I got the wrong PCI-slot
echo HUB0 > /proc/acpi/wakeup ## USB-Hub(?) to test reactivate with usb mouse/keyboard
WOL is working
Resume ends in reboot
More work to do
SB
Whole "Story" here.
Thanks for reading all this & sorry for my poor English.
SB