Naively, I set out to fix this tonight, and I've just gotten stuck. Here's what I've done so far, all for the goal of being able to run systemctl suspend without needing sudo and possibly getting those buttons working:
1) Disabled consolekit per this thread: http://linuxbbq.org/bbs/viewtopic.php?f ... consolekit after reading this page on the Arch wiki https://wiki.archlinux.org/index.php/ConsoleKit (also removed ck-session-launch from xinitrc)
At this point, the buttons are still grayed out
2) I run the loginctl at the bottom of the wiki page, and discover my user is not active. I did fix this by changing the contents of /etc/X11/xinit/xserverrc to the fix in this bug report, https://bugs.archlinux.org/task/32206
Code: Select all
#!/bin/bash
if [[ -z $XDG_VTNR ]]; then
exec /usr/bin/X -nolisten tcp "$@"
else
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
fi
Unfortunately, i get this message after running "systemctl suspend"
Code: Select all
ian@gillian:~$ systemctl suspend
Failed to issue method call: Access denied
Failed to issue method call: Access denied
So after checking around, I haven't found any solution to this. It isn't a big deal, i can always just create a rule in the sudoers file to get around having to enter my password, but I really want to know why this isn't working.
On that wiki page, it said starting with polkit .107-4, systemd-logind would be required instead of consolekit, but the version in the debian repos is only .105-4. Does it still need consolekit for some reason? Is there something else I'm missing? Also, if anyone had a fix for the buttons, it would be much appreciated :)