MX Linux with SysVinit on Lenovo T15g Gen 2: Stable Suspend/Resume Configuration
If you reinstall MX Linux (or any non-systemd distribution using elogind with NVIDIA hardware), this is the exact configuration needed to restore a stable suspend/resume setup on a Lenovo T15g Gen 2.
This setup addresses:
- NVIDIA suspend/resume stability
- VRAM preservation during sleep
- Intel I225-LM Ethernet failures after resume
- elogind compatibility on SysVinit systems
The configuration below has been stable and reproducible across reinstalls. Antigravity CLI (formerly Gemini CLI) was heavily used during troubleshooting to help isolate the underlying suspend/resume issues.
Post-Reinstall Power Management Checklist (NVIDIA + Intel Ethernet)
Step 1 - Configure the NVIDIA Driver to Preserve VRAM
This parameter prevents the GPU from losing video memory allocations during suspend/resume cycles.
Create the file:
/etc/modprobe.d/nvidia-power.conf
Contents:
options nvidia NVreg_PreserveVideoMemoryAllocations=1
Update initramfs so the parameter is applied during boot:
sudo update-initramfs -u
Step 2 - Create the NVIDIA Sleep Hook for Elogind
On non-systemd systems using elogind, the NVIDIA driver needs explicit suspend/resume notifications.
Create the directory if it does not already exist:
sudo mkdir -p /etc/elogind/system-sleep/
Create the file:
/etc/elogind/system-sleep/nvidia
Contents:
#!/bin/sh
case "$1" in
pre)
/usr/bin/nvidia-sleep.sh "suspend"
;;
post)
/usr/bin/nvidia-sleep.sh "resume"
;;
esac
Make it executable:
sudo chmod +x /etc/elogind/system-sleep/nvidia
Step 3 - Create the Intel Ethernet Reset Hook
The Intel I225-LM NIC using the igc driver can fail after resume with PCIe timeout errors.
Reloading the driver after wake restores the interface reliably.
Create the file:
/etc/elogind/system-sleep/99_igc_reload
Contents:
#!/bin/sh
case "$1" in
post)
# Reload Intel I225-LM driver after resume
/sbin/modprobe -r igc
/bin/sleep 1
/sbin/modprobe igc
;;
esac
Make it executable:
sudo chmod +x /etc/elogind/system-sleep/99_igc_reload
Step 4 - Reboot
Perform a clean reboot after completing all three configuration steps:
sudo reboot
Result
After reboot:
- NVIDIA suspend/resume works correctly
- VRAM state is preserved across sleep
- Intel Ethernet recovers properly after wake
- SysVinit + elogind behaves similarly to a stable systemd suspend workflow
This configuration has proven reliable on the Lenovo T15g Gen 2 with NVIDIA graphics and Intel I225-LM networking hardware.