-------- Original Message --------
*Subject: *Re: [blfs-support] UPower-0.99.7 No such method 'Suspend'
*From: *Wayne Sallee <[email protected]>
*To: *[email protected]
*Date: *12/03/2018 07:35 PM

Not sure.

At the end of ~/.xbindkeysrc I have three entries (I initially
copied this one from a machine where I could not get it to suspend,
and with an older keyboard, so two entries for hibernate and a later
addition for suspend.

"sudo /usr/sbin/pm-hibernate"
XF86Calculator

"sudo /usr/sbin/pm-hibernate"
F11

"sudo /usr/sbin/pm-suspend"
F12

And

cat > /etc/sudoers.d/suspend << 'EOF'
# allow this user to run swsuspend without a password
ken ALL= NOPASSWD: /usr/sbin/pm-suspend
EOF
chmod -v 440 /etc/sudoers.d/suspend >>$KM_LOG 2>&1

After that, if it doesn't work start debugging by trying to run
pm-suspend as root.

NB I rarely install upower, and then only because it is a dep for
something in xfce.

ĸen
Ok, so you are running pm-hibrnate and pm-suspend, instead of upower.
Could probably set those as root uid to accomplish the same thing.

Thanks.

Wayne Sallee
[email protected]
http://www.WayneSallee.com

Actually those are shortcuts to scripts, so my previous statement of root uid 
would not work.

Wayne Sallee
[email protected]
http://www.WayneSallee.com
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to