5

I'm using Xubuntu 12.04 on a MacBook Pro. I would like to define a keyboard shortcut (Ctrl+Alt+l) that let's me lock the screen (suspend) Xubuntu. I am following How can I suspend using a keyboard shortcut, without administrator privileges?

The problem is the following: When I try to to define a new shortcut with System -> Settings -> Settings Manager -> Keyboard -> Application Shortcuts -> Add, I only see

Shortcut: [no area to type in]
Command: ___________ [area to type in]

That means I can put in a command, but no shortcut. Is this a bug?

guntbert
  • 13,134

3 Answers3

5

Ok, In Xubuntu it is a bit different, first when you hit Add It comes up with this screen-

enter image description here

Which is exactly as you described, First put the command you want in, from the link you were flowing after installing powermanagement-interface you put in the command box pmi action suspend then hit OK The next screen will let you Key in the Shortcut you want to use, Press the key combo you want to use then release-

enter image description here

If you accidentally hit a wrong button, or want to edit the shortcut, just double click on the shortcut area of the command-

enter image description here

Zanna
  • 70,465
Mateo
  • 8,104
0

Be sure you can use the command from a terminal first. If you can't, then it obviously wont work as a shortcut.

When I try it, I set Ctrl+Alt+S to

pmi action suspend

When I press it nothing happens. So, try it from the command line.

user@host:~$ pmi action suspend

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files

Then the computer does not suspend.

Sorry I can't provide a fix for this, I just wanted to point this out.

0

You need to install the hal package to overcome this problem:

sudo apt-get install hal
Eliah Kagan
  • 117,780