在Fedora15的使用过程中,偶尔会不小心点击“挂起”选项。结果便是黑屏,重启也无法恢复。只有断电一段时间之后才能恢复。所以,禁用挂起功能是有必要的。(节选自https://bbs.archlinux.org/viewtopic.php?pid=944867#p944867)
(将*替换为登录用户名即可)
将绿色文字内容复制保存,名为50-admin.pkla,放到/etc/polkit-1/localauthority/50-local.d目录下。
I got this from somewhere else on the internet, but I'm not sure where anymore. In any case, it works.
To disable suspend and hibernation, add a file named 50-admin.pkla to:
/etc/polkit-1/localauthority/50-local.d
full path as reference:/etc/polkit-1/localauthority/50-local.d/50-admin.pkla
Add the following text to the file and save it. Log out and back in. This will remove suspend and hibernate from the shut down menus
[color=Lime][disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultAny=no
ResultInactive=no
ResultActive=no
[disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultAny=no
ResultInactive=no
ResultActive=no
[/color]
注销之后重新登录,如图:
gky2009514 于 2012-12-07 13:09:39发表:
新手完成任务,求下书籍~
marrysky 于 2012-05-17 17:42:19发表:
顶~
marrysky 于 2012-05-17 17:42:10发表:
顶~
bospv397 于 2012-05-17 17:09:06发表:
围观 围观!
1130911995 于 2012-05-11 13:19:00发表:
谢谢分享,记下了
yuhao90 于 2012-03-12 16:54:45发表:
学习中
战狼 于 2011-10-30 17:41:35发表:
为什么我的没变化?(5ty(
blue_rain 于 2011-09-03 20:38:54发表:
fedora界面确实炫
css8899.hi 于 2011-08-26 14:43:39发表:
学习了,顶
tan0620 于 2011-08-11 15:32:43发表:
感谢分享
nishui333 于 2011-08-09 17:21:47发表:
刚开始 还在探索中 广收知识
wq413732076 于 2011-08-03 20:57:48发表:
我要学Linux
Growth兆 于 2011-07-30 15:17:25发表:
感谢sparkfrost的分享,本贴加入到论坛顶置的Linux应用索引贴中
gogo11 于 2011-07-30 09:49:35发表:
好像foreda比centos好看~~```````
miftoe 于 2011-07-30 08:58:51发表:
长见识中