Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

"gnome-screensaver-command -p" is gone in 12.10 so mame can't poke to keep the screen alive. Is there a command I can add before "mame" to deactivate the screensaver and one to reactivate it after I exit "mame"?

Thank you.

share|improve this question

If you have installed Caffeine as fleamour suggested, it will do it automatically once you have configured it. This is done by opening Gnome Shell Extension Preferences ([Alt+F2]gnome-shell-extension-prefs[Enter]) and selecting Caffeine in the drop-down menu.

You'll see a switch where you can choose not to display an icon in the top panel, and below that is an empty list. Press "Add Application" and add MAME to that list. It will then activate when you start MAME, and de-activate when you exit the program.

PS: You can also go to in a browser, and get Caffeine and many other extensions there. (Direct to Caffeine:

share|improve this answer
Great thanks I will try it. – Kruykaze Jan 11 '13 at 0:01

Install Caffeine from Launchpad PPA? Or maybe the official repositories? When activated it will inhibit your screen saver/blanking.

share|improve this answer
Explain at least a bit what Caffeine is and why updating from this PPA should resolve the issue from the question. – gertvdijk Dec 22 '12 at 23:48
I was looking for a command so I can just automate this process. – Kruykaze Dec 23 '12 at 0:32

I wrote a program called joystickwake to work around this problem until display servers and games start taking care of it. If you happen to be running Ubuntu Trusty, you can install it from my PPA:

If you're using another distribution, get the source code and documentation here:

share|improve this answer

Your Answer


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.