xdg-screensaver requires a windowid to suspend it. Once that window
disappears, gnome-screensaver automatically resumes.

I was having a problem with mplayer not inhibiting gnome-screensaver, so
I wrote this bash alias to inhibit it for mplayer:

alias xdg-screensaver-mplayer-suspend="xdg-screensaver suspend $(wmctrl
-l | sed -nr 's/^(0x[0-9a-f]+).+mplayer.*/\1/p')"

Obviously, you also need wmctrl installed to use it. Whenever I have
mplayer running, I just run xdg-screensaver-mplayer-suspend

You could do the same thing with skype:
alias xdg-screensaver-skype-suspend="xdg-screensaver suspend $(wmctrl -l | sed 
-nr 's/^(0x[0-9a-f]+).+skype.*/\1/ip')"

Or, if you have YouTube in a separate window:
alias xdg-screensaver-youtube-suspend="xdg-screensaver suspend $(wmctrl -l | 
sed -nr 's/^(0x[0-9a-f]+).+youtube.*/\1/ip')"

You would just put the command you want into ~/.bashrc

Yes, this is a big hassle, and gnome-screensaver-command should be fixed
to support inhibit again, but it's a usable workaround for the time
being.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-screensaver in Ubuntu.
https://bugs.launchpad.net/bugs/988949

Title:
  cannot inhibit gnome screensaver via gnome-screensaver-command

Status in “gnome-screensaver” package in Ubuntu:
  Confirmed

Bug description:
  Inhibiting Screensaver via gnome-screensaver-command vanished, so it
  is not possible to prevent screensaver from locking unless
  deactivating via systemsettings which is laborious. Since youtube or
  skype do not inhibit screensaver by their own this option is
  important.

  thx!
  karl

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-screensaver 3.4.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu5
  Architecture: amd64
  Date: Thu Apr 26 17:39:00 2012
  EcryptfsInUse: Yes
  GnomeSessionIdleInhibited: No
  GnomeSessionInhibitors: None
  GsettingsGnomeSession:
   org.gnome.desktop.session idle-delay uint32 180
   org.gnome.desktop.session session-name 'ubuntu'
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  SourcePackage: gnome-screensaver
  UpgradeStatus: Upgraded to precise on 2012-04-16 (9 days ago)
  WindowManager: No value set for 
`/desktop/gnome/session/required_components/windowmanager'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/988949/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to