Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to sleep my display - just the display, not the computer.

I've been looking in Compiz for an option like "hot corner to sleep display" - something that I've setup in OSX 10.7.

How can I accomplish something similar in Ubuntu 12.04? (shortcut, command in terminal,... )

share|improve this question

1 Answer

up vote 2 down vote accepted

You could use compizconfig-settings-manager (in universe) and enable the commands plugin. Pick a command slot (any number will work) and enter xset dpms force off then bind the command to the edge or corner of your choice under the edge bindings tab.

You could also use gnome-screensaver-command -a instead of xset to activate the screensaver (blank screen). Use the compiz command plugin to bind to an edge or corner as before.

share|improve this answer
This is great! Thank you very much. – gentmatt May 7 '12 at 7:02
Sorry for un-accepting, but I've noticed that this command causes compiz to use 100% CPU while the display is "sleeping". It's not recommended method. – gentmatt May 12 '12 at 11:51
That's ok, if it doesn't work, it doesn't work. You could conceivable bind the above command to a keyboard shortcut. It is not as slick, but would accomplish the same thing. I will check to see if there are any bugs reported against compiz. – Chris May 12 '12 at 15:56
I have thought the same. I thought that having the mouse cursor at the corner might loop trigger the command. But using a shortcut to accomplish the same did not change this behavior. – gentmatt May 12 '12 at 15:59
the xset command is causing compiz to run at 100? Not the commands plugin? – Chris May 12 '12 at 16:16
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.