PDA

View Full Version : [SOLVED] UNITY -prevent s3 idle suspend during SMB access



fredknex
November 24th, 2011, 03:17 AM
So back before the switch to unity there was a command that reset the idle timer

"gnome-screensaver-command --poke"

that could be set up to stop the computer from suspending itself when the SMB share is being accessed.


This doesnt work in Unity, is there an equivalent?


Thanks for any help

fredknex
December 7th, 2011, 09:01 AM
---

thaelim
December 7th, 2011, 11:48 PM
You can use the Gnome session dbus interface:

http://live.gnome.org/GnomePowerManager/DbusInterface

It has an Inhibit method you can call to prevent idle. There is even an example file of how to do this.

fredknex
December 8th, 2011, 03:01 AM
great! Except none of the links on that page seem to be working.
But its enough I feel like I'm on the right track now, thanks!