Fixing Missing Network Interface After Suspend on MX Linux 25 (igc Driver Reload Workaround)

mxlinux linux

Issue

After upgrading or running MX Linux 25(SysVinit), a network issue can occur where the system resumes from suspend and the ethernet interface is no longer available. In some cases, the interface disappears entirely and is reported as:

This appears to be related to the igc driver not properly reinitializing after resume.

Environment

Root cause (observed)

After resume, the igc kernel module may remain in a broken state. The device does not re-enumerate correctly, leaving the interface unavailable until the driver is reloaded.

Workaround

A simple suspend hook script can force the driver to reload after resume.

Create the following file: /etc/pm/sleep.d/99_igc_reload

case "$1" in
    resume|thaw)
        # Unload and reload the driver to fix the 'No such device' error
        /sbin/modprobe -r igc
        /bin/sleep 1
        /sbin/modprobe igc
        ;;
esac

chmod +x /etc/pm/sleep.d/99_igc_reload

How it works

Result

After applying this fix:

Notes

This is a workaround, not a root-cause fix. The underlying issue is likely in driver suspend/resume handling or kernel power management interaction with the igc module.