2016年4月1日 星期五

Ubuntu 14.04 Disable Suspend

Ubuntu 14.04 Disable Suspend
  http://askubuntu.com/questions/452908/how-to-disable-suspend-in-14-04
 
  1:
    chmod 000 /usr/lib/pm-utils/bin/pm-action
  2:
   Create a new file and reboot
   /etc/polkit-1/localauthority/50-local.d/com.ubuntu.disable-suspend.pkla
   內容如下
[Disable suspend (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend when others are logged in (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no
ResultInactive=no
ResultAny=no

沒有留言:

張貼留言