반응형
작성일: 2025년 11월 25일

 

 

Ubuntu 22.04, Ubuntu 24.04를 사용하면서 절전모드(Suspend Mode, Sleep Mode)와 관련한 문제를 만나게 되었다.

예를 들어, Ubuntu 24.04가 절전모드로 바뀌었다가 다시 깨어날 때, Intel I225-V NIC가 인식되지 않는 경우가 있다.

 

이런 경우는 Kernel에서 해당 Hardware와 관련한 kernel module을 제거했다가 다시 추가하면 문제가 해결된다.

그런데 매번 Ubuntu OS가 Suspend mode에서 깨어날 때마다 `modprobe -r igc && modprobe  igc` 같은 명령을 입력하기는 번거롭다.

그래서 아래처럼 설정 파일을 작성해 놓으면, Suspend mode에서 깨어날 때 자동으로 Kernel module을 제거, 추가하는 것을 자동화할 수 있다.

 

$ cat /etc/systemd/system/i225-fix.service

[Unit]
Description=Fix for Intel I225-V after suspend
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c "/sbin/modprobe -r igc && /sbin/modprobe igc"

[Install]
WantedBy=suspend.target

$

 

 

위와 같이 설정 파일을 작성하고 테스트 삼아서 Ubuntu OS를 Suspend mode(절전 모드)로 바꾸었다가 다시 깨워보자.

네트워크 포트가 잘 인식되는 것을 볼 수 있을 것이다.

 

+ Recent posts