FYI, still not producing a single line of code, I am looking for ways to interact with the OS for power state changes. I think I have more or less cornered the OSX case, I looked into its equivalent in the linux/bsd world. I think now the way to go is using D-Bus. With D-bus you can subscribe to events, launch or cancel actions. The 'DeviceKit-power' (http://people.freedesktop.org/~hughsient/DeviceKit-power/gtk-doc/Power.html) events give access to stuff like "CanSuspend" or "Suspend". Linux and BSD machines are using D-Bus.
There is an implementation of the D-Bus protocol in Perl: 'Net::DBus' (http://search.cpan.org/~danberr/Net-DBus-0.33.3/lib/Net/DBus.pm) >From what I read there is a 'Windows port' (http://sourceforge.net/projects/windbus), and it's also available for 'OS X' (http://trac.macports.org/browser/trunk/dports/devel/dbus/Portfile). (Unsure this would help on these platforms which have their native power policy managers.) All this, I think, entails the plugin would accept bidirectional communication (beyond blocking), and use (a least) a two-step procedure for actions: i. query or request, ii. act or cancel. (tell me if you're bored with me using the thread as a notepad...) -- epoch1970 ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
