Bạn HDCam có hỏi về cái này, và theo mình thì nhiều bạn từ WIN chuyển sang cũng thích nên mình C&P đoạn này để các bạn tham kháo
Ở đây các bạn có thể thấy máy của mình đang để chế độ tắt Hibernate mode, chỉ sử dụng chế độ Standby, lệnh pmset -g là để xem các thông số hệ thống
Để hiển thị cụ thể các tùy chọn cho lện pmset thì các bạn gõ lệnh pmset và đọc kỹ phần hướng dẫn của nó
Ví dụ nếu mình muốn set Hibernate mode cho máy của mình thì mình sẽ nhập lệnh
Chúc thành công
MinhNN-2:~ MinhNN$ pmset -g
Active Profiles:
Battery Power 0*
AC Power -1
Currently in use:
sleep 5
sms 1
acwake 0
displaysleep 1
hibernatefile /var/vm/sleepimage
hibernatemode 3
halfdim 1
lidwake 1
ttyskeepawake 1
disksleep 10
Ở đây các bạn có thể thấy máy của mình đang để chế độ tắt Hibernate mode, chỉ sử dụng chế độ Standby, lệnh pmset -g là để xem các thông số hệ thống
Để hiển thị cụ thể các tùy chọn cho lện pmset thì các bạn gõ lệnh pmset và đọc kỹ phần hướng dẫn của nó
MinhNN-2:~ MinhNN$ pmset
Usage: pmset [-b | -c | -u | -a] <action> <minutes> [<action> <minutes>...]
pmset -g [disk | cap | live | sched | ups | batt]
-c adjust settings used while connected to a charger
-b adjust settings used when running off a battery
-u adjust settings used while running off a UPS
-a (default) adjust settings for both
<action> is one of: displaysleep, sleep, disksleep (minutes argument)
or: reduce, dps, womp, ring, autorestart, powerbutton, halfdim,
lidwake, acwake, lessbright (with a 1 or 0 argument)
or for UPS only: haltlevel (with a percentage argument)
haltafter, haltremain (with a minutes argument)
or: hibernatefile <path> hibernatemode <integer>
hibernatefreeratio <integer percent>
hibernatefreetime <integer ms>
eg. pmset -c dim 5 sleep 15 spindown 10 autorestart 1 womp 1
pmset schedule [cancel] <type> <date/time> [owner]
pmset repeat cancel
pmset repeat <type> <days of week> <time>
<type> is one of: sleep, wake, poweron, shutdown, wakeorpoweron
<date/time> is in "MM/dd/yy HH:mm:ss" format
<time> is in "HH:mm:ss" format
<days of week> is a subset of MTWRFSU
[owner] optionally describes the event creator
Ví dụ nếu mình muốn set Hibernate mode cho máy của mình thì mình sẽ nhập lệnh
MinhNN-2:~ MinhNN$ su hibernatemode -1
Password:******************
Chúc thành công