added dbus-interface for suspend

git-svn-id: http://www.neo1973-germany.de/svn@211 46df4e5c-bc4e-4628-a0fc-830ba316316d
main
Paulus 16 years ago
parent 36c9f2b47b
commit 521dfc3652

@ -23,6 +23,8 @@ Known Issues:
Changelog:
Rev 211: added dbus-interface for suspend
Rev 210: changed oevents/rules.yaml to work with Milestone 4.
Rev 209: first version: works with fso-testing before Milestone 4

@ -56,6 +56,9 @@ class auxmenuclass:
self.systembus=systembus = SystemBus(mainloop=e_dbus.DBusEcoreMainLoop())
self.odeviced_proxy = self.systembus.get_object('org.freesmartphone.oeventsd', '/org/freesmartphone/Preferences')
self.Preferences_iface = Interface(self.odeviced_proxy, 'org.freesmartphone.Preferences')
self.ousaged_proxy = self.systembus.get_object('org.freesmartphone.ousaged', '/org/freesmartphone/Usage')
self.Usage_iface = Interface(self.ousaged_proxy, 'org.freesmartphone.Usage')
self.profile = self.Preferences_iface.GetProfile()
if self.profile == "silent" or self.profile == "headset_silent":
edje_obj.part_text_set("text_mute", "UNMUTE")
@ -73,7 +76,8 @@ class auxmenuclass:
print "lock"
elif signal == "standby":
print "standby"
os.system("apm -s")
#os.system("apm -s")
self.Usage_iface.Suspend()
elif signal == "shutdown":
print "shutdown"
os.system("poweroff")

@ -9,9 +9,8 @@ cp profiles/* /etc/freesmartphone/opreferences/conf/profiles/
cp rules/* /etc/freesmartphone/opreferences/conf/rules/
#auxmenu:
if [ 'ls /usr/share | grep -c "auxmenu"' = "0" ]; then
mkdir /usr/share/auxmenu
fi
mkdir -p /usr/share/auxmenu
cp auxmenu/auxmenu.py /usr/share/auxmenu/auxmenu.py
cp auxmenu/auxmenu.edj /usr/share/auxmenu/auxmenu.edj
cp auxmenu/auxmenu.sh /usr/bin/auxmenu

Loading…
Cancel
Save