我是一个新的 Ubuntu 13.10 用户。合上笔记本电脑的盖子不会导致计算机进入挂起模式,这意味着每次我在没有手动挂起计算机的情况下合上盖子时,电池都会耗尽。
在电源管理中设置了正确的设置——在交流和直流电源关闭盖子时暂停笔记本电脑,但这对实际行为没有影响。
对于早在 Ubuntu 11 的许多用户来说,这似乎是一个常见问题——我能找到的唯一解决方案如下。但是,作为一个新的 linux 用户,我不知道如何实际执行指令。如果有人可以提供额外的细节,那将是非常有帮助的。
提前致谢。
/etc/acpi/events/lidbtn triggers /etc/acpi/lid.sh which triggers
/etc/acpi/local/lid.sh.post at the end of the script.
/etc/acpi/local/* allows you to add your own config (e.g. required for
wmii).
generate /etc/acpi/local/lid.sh.post
make it executable and add:
\#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
wmii will now go to suspend mode when closing the lid. It'll
automatically wake up when opening the lid.
#!/bin/bash
load=$(cat /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/capacity)
min_load=20 …
Run Code Online (Sandbox Code Playgroud) 无法从挂起状态恢复
笔记本电脑是戴尔 M5510 Precision
暂停/恢复在 Windows 10 和 Ubuntu Live CD/USB 映像下工作。它甚至在安装的前几天工作。然后(没有运行任何更新或重新启动),我暂停了并且恢复失败。我得到一个空白屏幕。它正在运行:我可以从另一个系统 ssh 进入。
我从网上尝试了很多东西,尽管我的第一组笔记在我重新安装时丢失了。我最初是从 Ubuntu Mint 开始的,然后重新安装到 vanilla Ubuntu。全新安装后,暂停/恢复工作了 2 天。第二天,我恢复了我的笔记本电脑并开始工作。在中午,我暂停了它,它给出了黑屏问题。我没有运行任何升级命令或在两者之间进行任何重新启动,所以我不知道那里发生了什么变化。
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1000M](rev a2)
Linux 4.4.0-36-generic
Run Code Online (Sandbox Code Playgroud)
我尝试过的事情:
/etc/systemd/logind.conf
和取消注释HandleLidSwitchDocked=suspend
763085运行 nvidia x …