Relatively a noob to the Linux scene here.
There is this issue I had with the power management/screensaver on my laptop, that it spontaneously goes blank screen and doesn't turn back on until restart.
For this I decided to completely disable all kinds of power management as I am using it a "desktop" as I never shut it down these days. I searched for completely disabling the power management and I came across something and did all of it exactly as told there. And now I reboot and I am stopped at the login screen by this very irritating message: "No exec line in the session file:mate. Running the Gnome failsafe instead". When I click ok there I go to another box saying : "Could not find the Gnome installation, will try running the Failsafe xterm session". And another :"Cannot find xterm to start a failsafe session"
Please advice me on what to do.
Here's what I did for disabling power management :
You can disable those power management features at various level.
Graphical User Interface level
In GNOME, you should edit the following file:
sudoedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
One section concerns the suspend function and the other the hibernate one. Each as a tag that you have to set to no:
<allow_active>no</allow_active>
Keyboard level
Now, to avoid the problem if the keyboard has some related keys for these features, you have to enter the following command:
gconftool -s /apps/gnome-power-manager/buttons/hibernate -t string interactive
Command line level
It would still be possible to trigger a suspend or hibernation from the command line, here is how to disable it.
We have to create an executable script in /etc/pm/sleep.d/ that will cancel any hibernate or suspend actions.
sudoedit /etc/pm/sleep.d/000cancel-hibernate-suspend
The content of this file should be:
#!/bin/sh
# prevents hibernation and suspend
. "$PM_FUNCTIONS"
case "${1}" in
suspend|hibernate)
inhibit
;;
resume|thaw)
exit 0
;;
esac
Now make that file executable:
chmod 0755 /etc/pm/sleep.d/000cancel-hibernate-suspend