How to disable suspend on Fedora 18
来源:互联网 发布:hello软件下载 编辑:程序博客网 时间:2024/05/17 06:46
原文地址:https://jamielinux.com/articles/2013/01/disable-suspend-on-fedora-18/
How to disable suspend on Fedora 18
In Fedora 18, the default behaviour on laptops is to suspend when closing the lid.
To disable this behaviour, add the following line to /etc/systemd/logind.conf
and reboot your system:
HandleLidSwitch=lock
The screen will lock after a delay, which is 10 minutes by default. You can lock your screen manually by pressingCtrl-Alt-L.
Update #1: See man logind.conf
for more options, such as triggering a shutdown when closing the lid.
Update #2: Instead of rebooting, you can just run systemctl restart systemd-logind.service
as root user.
Update #3: A new option has been added to logind.conf that allows you to setlock
instead of ignore
.
- How to disable suspend on Fedora 18
- How to disable PackageKit on CentOS, Fedora or RHEL
- How to disable automatic updates on Fedora 25?
- How to disable X11 on booting Ubuntu
- How to disable IPv6 on Ubuntu?
- How to disable IPv6 on Ubuntu?
- How to disable Network Manager on Linux
- HOW TO Subversion+Apache on Fedora
- How to install Adobe Flash on Fedora?
- How To Install Docker on Fedora 23
- How to install KVM on Fedora 22
- How To Install Docker on Fedora 23
- How to disable Spotlight
- How to Disable SELinux
- How to disable network?
- how to disable watchdog
- How to disable DRM
- how to install oracle 10g on fedora (转载)
- fedora18 取消关闭盖子挂起功能
- CF: 118A.String Task
- 链接器和装载器算是kernel的一部分吗?
- [Windows Azure] 创建支持Apache,PHP以及MySQL的CentOS Web Virtual Machine Server
- hdu 2526 浪漫手机
- How to disable suspend on Fedora 18
- CSS学习笔记(四)CSS id 选择器
- javascript 正则表达式基础
- 客户端 服务端公共部分
- 详解大端模式和小端模式
- 建立个人网站的一些看法
- 华为软件编程规范学习(七)--可测性
- Linux "could not open default font 'fixed'."错误解决 .
- Linux字符设备与块设备的区别与比较
Comments
How about changing the behavoir to poweroff when the lid is closed. My suspend don't work for now anyways.
You can put
HandleLidSwitch=poweroff
in logind.conf to make your laptop shutdown when you close the lid. I've updated the article to mention the manual page which describes the various different options.Thank you for this; for some reason Gnome Tweak Tool no longer has this option, so I was looking for a fix. Thanks again.
Great! Thank you, resolved my problem under Fluxbox!
Thanks. btw there is no need to reboot after the edit of /etc/systemd/logind.conf just restart systemd-logind with
sudo systemctl restart systemd-logind.service
@Dave: Thanks. Article updated :)
Thanks ! instead of ignore I used "lock". So the system locks when lid closes.
@Akash: Oh cool! I'm pretty sure I didn't see that option in the man page when I wrote this article so it must be a recent addition to the Fedora package. Article updated. Thanks!
@Bryce: The reason it's not in the Tweak Tool any more is because Gnome doesn't handle the lid switch any more. That's why you have to modify the systemd config file.
Thanks. Every fedora upgrade after 14 is a new surprise. (not positive....)