Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
Old 18th December 2011, 11:51 PM
jcao219 Offline
Registered User
Join Date: Dec 2011
Location: Texas
Posts: 4
Openbox Suspend Keybinding does not Suspend

Running sudo pm-suspend from a keybinding does not work.

I've follows instructions from various guides on how to set up a suspend keybinding.

In my rc.xml file:

<keybind key="XF86Sleep">
    <action name="Execute">
      <command>xscreensaver-command -l</command>
    <action name="Execute">
      <command>sudo pm-suspend</command>
The last lines of my /etc/sudoers file:

jcao219  ALL = NOPASSWD: /usr/sbin/pm-suspend
jcao219  ALL = NOPASSWD: /sbin/shutdown
I verify that I can successfully run "sudo pm-suspend" without being prompted for the root password from the terminal.

When I press the sleep button, only a lockscreen happens. If I take out the lock screen command in the rc.xml file and try pressing the sleep button, nothing happens. How do I get it to work?

---------- Post added at 10:51 PM ---------- Previous post was at 08:54 PM ----------

After I got some help from NewWorld on the IRC channel for Openbox, the problem was solved.

It turns out that, in Fedora, a tty is required to run sudo.

To get everything to work, you have to comment out this line with visudo:

Defaults    requiretty

Last edited by jcao219; 18th December 2011 at 10:04 PM.
Reply With Quote

keybinding, openbox, suspend

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keybinding problems with Shell and Compiz dfernandez F15 Development 0 29th April 2011 09:39 AM
gnome-keybinding-properties HMSS013 Using Fedora 0 21st July 2007 05:10 AM
matlab keybinding shaobohou Using Fedora 3 30th November 2006 04:31 PM
Associating keybinding with applications... jayemef Using Fedora 3 29th April 2005 09:50 PM

Current GMT-time: 18:49 (Friday, 22-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat