You might want to look at Windows: Prevent Standby plugin. The reason it is for windows is that it uses the Win32::API with the kernel32 command. If you change this command in the Plugin.pm file in the C:\Program Files\SqueezeCenter\server\Slim\Plugin\PreventStandby directory (this will be in the ../SqueezeCenter/server/Slim/Plugin/PreventStandby directory on Ubuntu). With the SqueezeCenter directory being where programs are normally stored in Ubuntu. If you cange the Win32::API command to a linux command to switch off power management you should be OK. Probably the best thing to do is to copy the PreventStandby directory to something like PreventStandbyLinux and make the change to the Plugin.pm file. Note that there is an install.xml file with xml detailing the plugin name etc. One of the first lines in this file is an id tag that looks like this:-
<id>BFACABFD-6334-4743-95BA-43A60E159560</id> How this is generated I don't know. Would a coppied plugin break if this line ws coppied? If one got rid of it would the plugin still work? How was it generated in the first place? The plugin was wirtten by Julian Neil. He might be able to give pointers on these matters. If you did copy the plugin it would be polite to add a revision in the header of the Plugin.pm file stating that the plugin ws adapted for Ubuntu. Note that the last line of the install.xml file has:- <targetPlatform>Windows</targetPlatform> Note this is the second to last line as the last line has the </extension> tag on it! You will need to remove Windows from the targetPlatform tag and replace with Linux. This presupposes that there is a linux bash shell command to switch off suspend mode! -- Declan Moriarty ------------------------------------------------------------------------ Declan Moriarty's Profile: http://forums.slimdevices.com/member.php?userid=23670 View this thread: http://forums.slimdevices.com/showthread.php?t=68248 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
