← Documents Documentation/power/tricks.rst GitHub 원문 ↗

Linux 6.18.37 · Power

Software Suspend로 문제를 일으키는 원인 찾기

최소 kernel과 userspace에서 시작해 기능을 하나씩 복원하며 suspend 실패 원인을 격리하는 점검표입니다.

Source pathDocumentation/power/tricks.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

tricks.rst:1-29

최소 kernel과 userspace에서 시작해 기능을 하나씩 복원하며 suspend 실패 원인을 격리하는 점검표입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 ================
2 swsusp/S3 tricks
3 ================
4
5 Pavel Machek <[email protected]>
6
7 If you want to trick swsusp/S3 into working, you might want to try:
8
9 * go with minimal config, turn off drivers like USB, AGP you don't
10 really need
11
12 * turn off APIC and preempt
13
14 * use ext2. At least it has working fsck. [If something seems to go
15 wrong, force fsck when you have a chance]
16
17 * turn off modules
18
19 * use vga text console, shut down X. [If you really want X, you might
20 want to try vesafb later]
21
22 * try running as few processes as possible, preferably go to single
23 user mode.
24
25 * due to video issues, swsusp should be easier to get working than
26 S3. Try that first.
27
28 When you make it work, try to find out what exactly was it that broke
29 suspend, and preferably fix that.
30

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

문서 목적과 작성자

1-6

Pavel Machek이 작성한 이 짧은 문서는 Software Suspend 문제의 실제 원인을 찾기 위해 system을 가장 단순한 상태로 줄인 뒤 기능을 하나씩 되돌리는 진단 순서를 제시합니다.

================
swsusp/S3 tricks
================

Pavel Machek <[email protected]>

최소 환경에서 기능을 단계적으로 복원하기

7-29

Kernel configuration을 최소화하고 꼭 필요하지 않은 기능은 모두 disable합니다. USB와 AGP도 먼저 끕니다. SMP system이라도 먼저 uniprocessor로 시험하고, APIC와 preemption도 disable합니다.

Filesystem은 ext2만 사용하고 매 boot마다 `fsck`를 실행합니다. Module은 모두 disable합니다. VGA text console을 사용하고 X server를 종료하며, 이 상태가 동작한 뒤에 vesafb를 추가합니다.

가능한 적은 process만 실행하거나 single-user mode에서 시험합니다. Video card 복원이 까다로운 S3보다 software suspend가 더 쉬우므로 먼저 swsusp가 동작하게 만드는 편이 좋습니다.

이 최소 환경에서 suspend와 resume이 성공하면 USB, SMP, APIC, preemption, module, framebuffer, X 등을 한 번에 하나씩 다시 enable합니다. 실패가 다시 나타난 직전 변경이 원인 후보이며, 정확한 원인을 확인해 고쳐야 합니다.

Swsusp 원인 격리
minimal kernel configdisable USB/AGP/APIC/preemption/modulesext2 + fsckVGA text without Xsingle-user modeverify swsuspre-enable one feature at a timeidentify and fix cause

한 번에 한 변수만 되돌려 최초 실패 지점을 찾습니다.

If you want to trick swsusp/S3 into working, you might want to try:

* go with minimal config, turn off drivers like USB, AGP you don't
  really need

* turn off APIC and preempt

* use ext2. At least it has working fsck. [If something seems to go
  wrong, force fsck when you have a chance]

* turn off modules

* use vga text console, shut down X. [If you really want X, you might
  want to try vesafb later]

* try running as few processes as possible, preferably go to single
  user mode.

* due to video issues, swsusp should be easier to get working than
  S3. Try that first.

When you make it work, try to find out what exactly was it that broke
suspend, and preferably fix that.