Questions tagged «pm-utils»


1
Linux Mint:Hibernate无法正常工作
我曾在Linux Mint 14上尝试过多次休眠模式。它似乎不起作用。我添加了一些我认为可能有用的日志。有人可以帮助我诊断问题吗? 笔记本电脑型号:I:东芝Satellite R630 /便携式PC,BIOS版本1.90 02/24/2011 / var / log / syslog Feb 21 21:21:51 kernel: [ 3526.006366] PM: Marking nosave pages: [mem 0x0009e000-0x000fffff] Feb 21 21:21:51 kernel: [ 3526.006372] PM: Marking nosave pages: [mem 0xb70d0000-0xffffffff] Feb 21 21:21:51 kernel: [ 3526.007297] PM: Marking nosave pages: [mem 0x1fc000000-0x1ffffffff] Feb …

4
恢复计算机时运行的脚本放在哪里?
当我的计算机从内存挂起状态唤醒时,我需要锁定屏幕, 因此,我尝试将以下脚本放入/usr/lib/pm-utils/sleep.d和/etc/pm/sleep.d,但从未执行过, #!/bin/sh case "$1" in hibernate|suspend) ;; thaw|resume) vlock -ans ;; *) exit $NA ;; esac PS pm-suspend不是pm-hibernate。 编辑 也尝试过系统化的服务,没有运气: # /etc/systemd/system/resume@.service [Unit] Description=User resume actions After=suspend.target [Service] User=root Type=simple ExecStart=vlock -ans [Install] WantedBy=suspend.target 我systemctl enable resume@.service也打过电话,vlock还没打过去。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.