Video PM methods
David Zeuthen
david at fubar.dk
Tue Apr 25 13:04:13 PDT 2006
On Tue, 2006-04-25 at 00:32 +0100, Richard Hughes wrote:
> As discussed last week, we should move the display matching to HAL so we
> can match video devices using fdi files.
>
> I've attached two method scripts (for suspend and resume) and an fdi
> file. It only matches on Intel 855GM (change this to whatever), but if
> you drop the files into your hal install this stuff just works.
>
> I can suspend and resume the video on my laptop using a simple DBUS
> method:
>
> dbus-send --system --print-reply --dest=org.freedesktop.Hal \
> /org/freedesktop/Hal/devices/pci_8086_3582
> org.freedesktop.Hal.Device.VideoAdapterPM.SuspendVideo
>
> I've attached the files for comments.
You need to patch the dbus policy configuration file too. And check in
the script that only uid 0 can invoke methods on this interface. I'd
also like to see this cover all that pm-tools is now covering, e.g. ATI,
NVidia, Intel and probably VIA too.
Thanks,
David
More information about the hal
mailing list