No permission to suspend/hibernate after upgrading to 12.10
Here's a workaround. First you'll need to create a script that is on your PATH. I'd recommend putting something like this in your ~/.bashrc
file if you don't have it already:
PATH=/home/<username>/bin:$PATH
Then create a script /home/<username>/bin/pm-suspend
which contains:
#!/bin/sh
sudo pm-suspend
Finally edit the sudoers file to not ask for a password for the pm-suspend
command:
sudo visudo
Add the following line as the last rule in the file:
<username> ALL=NOPASSWD:/usr/sbin/pm-suspend
If you now launch a new terminal window/tab you should now be able to run pm-suspend without sudo and suspend from your desktop. It's a bit or a bodge but seems to work for now.