ค่าเริ่มต้น Windows 10 จะเข้าสู่ Sleep เมื่อปิดฝาโน้ตบุ๊ก แต่คุณสามารถเปลี่ยนเป็น Do nothing (คงการทำงาน ปิดจออย่างเดียว), Hibernate, หรือ Shut down แยกได้ระหว่าง On battery และ Plugged in
3 วิธีตั้งค่า Lid Close Action
เตรียม: สร้าง Restore Point
วิธีที่ 1: Power Options (GUI ง่ายที่สุด)
- คลิกขวาไอคอน Battery Taskbar → Power Options
- ซ้าย: Choose what closing the lid does
- ตั้ง When I close the lid แยก On battery / Plugged in → Save changes
วิธีที่ 2: Advanced Power Options (ละเอียดกว่า)
- Win + R →
powercfg.cpl→ Enter - Change plan settings → Change advanced power settings
- ขยาย Power buttons and lid → Lid close action
- ตั้ง On battery / Plugged in → Apply → OK → รีสตาร์ท
วิธีที่ 3: Command Prompt (Admin) + powercfg — สำหรับ Script/Deployment
# On Battery (DC)
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936
# Plugged In (AC)
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936
# ใช้การตั้งค่า
powercfg -SetActive SCHEME_CURRENT
Index Number: 0=Do nothing, 1=Sleep, 2=Hibernate, 3=Shut down
แนะนำ: ใช้ "Do nothing" (0) เมื่อต่อหน้าจอภายนอกและต้องการทำงานต่อ — จอโน้ตบุ๊กจะปิด แต่ระบบยังทำงาน