恢复期间重新启动

恢复期间重新启动

当我的笔记本电脑使用电池供电恢复时,它会直接进入华硕启动屏幕,然后重新启动我的系统。此后我没有遇到任何问题。此外,这个问题不会发生在交流电源上。

我有一台华硕 UX305CA Zenbook。

答案1

我能够通过注释掉 pm-powersave 钩子中与磁盘相关的部分(我已将其复制到下面)来解决问题。我不确定哪一行是罪魁祸首,我将调查电池影响。我不认为注释掉这些行会损害我的电池,因为我正在运行 SSD,但只有时间才能证明。

我猜测其中一个命令无法与我的 SSD 很好地兼容,或者我使用了全驱动器加密。

battery_power()
{
#  ##
#  ## DISK and FILESYSTEMS
#  ##
#
#  # Set the disks to aggressively save power.
#  # Some might find these settings too aggressive.  If so, change
#  # "-S 4" to something larger like -S 24 (two minutes) and -B 1 to -B 255.
#  # -S 4 => put in standby after 20 seconds idle
#  # -B 1 => highest degree of power savings
#  # -M => not supported by my drive
#  hdparm -B 1 -S 4 /dev/sda
#
#  # Change ext3/ext4 filesystem settings to reduce disk activity.
#  # noatime => disable updates to a file's access time when the file is read.
#  # commit=600 => Change the commit times to 10 minutes.
#  mount -o remount,noatime,commit=600 /
#
#  # Set laptop disk write mode
#  echo 5 > /proc/sys/vm/laptop_mode
#
#  # Set SATA to minimum power
#  echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
#  echo min_power > /sys/class/scsi_host/host1/link_power_management_policy

相关内容