On Tue, 2006-06-27 at 00:53 +0200, Pavel Machek wrote: > Hi! > > > > You can easily use the fdi whitelist (and using HAL) doing this: > > > > > > # Suspend all video devices using the HAL dbus methods > > > devices=`hal-find-by-capability --capability video_adapter_pm` > > > for device in $devices > > > do > > > dbus-send --system --print-reply --dest=org.freedesktop.Hal \ > > > $device org.freedesktop.Hal.Device.VideoAdapterPM.SuspendVideo > > > done > > > > > > So it should fit into s2ram pretty easily if you wanted it to. > > > > The main concern probably is, that s2ram right now is self-contained, > > so no HAL or dbus or anything else is needed to get it to work. > > Exactly. > > > Right now, there is no problem in co-existing, the pm-utils scripts > > just need > > Well, maintaining two whitelists is going to be ugly. But HAL parsing > whitelist from s2ram would be okay... as would be teaching s2ram to > use HAL whitelist.
I think the latter is most sane. > > If somebody really wants to implement the complex matching in s2ram, there > > should be no problem to either implement an fdi parser or just write a small > > converter that "compiles" the HAL fdi files to include them at compile time > > into the s2ram binary. > > Compiling fdi files would be possible, too. Advantage is that we could > put pre-compiled whitelist.c into distribution. > But I'd still prefer to be able to compile that whitelist myself. Sure, that sounds acceptable to me, and we can then minimise the duplication of info. > > > Comments appreciated. > > > > I am not against it, but let's see what Pavel thinks ;-) > > Well, I'd prefer to be able to compile s2ram myself... and my main > machine is old/broken debian system. So dependencies that are present > in old debian are okay... what would we need to import to parse HAL > fdi files? You could write a quick and dirty xml processor or use expat or libxml to process. Richard. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Suspend-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/suspend-devel
