Ubuntu Version 11.04
Steps:
1: Open terminal by pressing Alt+Ctrl+t
2: Enter the command given below
sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
sudo command is used because the editing the file require root privilage and hence it requires password to enter.
3: At the end suspend and hibernate section you will find two lines(if both are enabled):
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
<allow_active>yes</allow_active>
4: Change yes to no and vice-versa. we assume that in your system both are enabled and you want to disabled it. If it is not the file contain the below lines
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active>
<allow_active>no</allow_active>
and now you have to turn "yes" to "no" and "no" to "yes" to make it enable.
Note : it's preferable to use "gksudo" instead of "sudo" when opening graphical programs, to prevent permission errors
No comments:
Post a Comment