Search found 2 matches

by monty0815
May 17th, 2010, 8:18 am
Forum: Debian/Ubuntu Package
Topic: System standby on queue finish Ubuntu Lucid
Replies: 8
Views: 6972

Re: System standby on queue finish Ubuntu Lucid

This works for me:

Code: Select all

#!/usr/bin/python
# -*- coding: utf-8 -*-
import dbus
bus = dbus.SystemBus()
proxy = bus.get_object('org.freedesktop.UPower', '/org/freedesktop/UPower')
iface = dbus.Interface(proxy, 'org.freedesktop.UPower')
iface.Suspend()
by monty0815
May 17th, 2010, 5:05 am
Forum: Debian/Ubuntu Package
Topic: System standby on queue finish Ubuntu Lucid
Replies: 8
Views: 6972

Re: System standby on queue finish Ubuntu Lucid

That would appear to be the problem, the code as it is now can not work on lucid as devicekit is deprecated und upower used instead.