[Kde-hardware-devel] Knowing laptop lid closed action

Daniel Vrátil dvratil at redhat.com
Sun Feb 10 13:37:41 UTC 2013


On Sunday 10 of February 2013 14:33:12 Alex Fiestas wrote:
> On Sunday 10 February 2013 13:33:48 Daniel Vrátil wrote:
> > > 	-connect to: org.kde.Solid.PowerManagement.profileChanged
> > 
> > That's the way to go!
> 
> ProfileChanged is not going to tell us what action "suspend to laptop" is
> linked to :/
> 
> The workaround of using the config is mostly to be able to work with
> anything that has been released up to this day, since for doing it properly
> we'll have to wait until 4.10.1
> 
> Maybe what we can do is disable this feature for < 4.10.1 and patch
> powerdevil to tell us what we want to know before next point release is
> done.
> 
> What do you think?

We should not only depend on Powerdevil's configuration, but in general ignore 
lid-closed event whenever suspend is in progress. The tricky part might be how 
to make sure we detect that the laptop is being suspended before we handle 
lid-closed event. Is that possible?

Dan

> _______________________________________________
> Kde-hardware-devel mailing list
> Kde-hardware-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-hardware-devel
-- 
dvratil at redhat.com | Associate Software Engineer / BaseOS / KDE, Qt
GPG Key: 0xC59D614F6F4AE348
Fingerprint: 4EC1 86E3 C54E 0B39 5FDD B5FB C59D 614F 6F4A E348
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20130210/9a897c93/attachment.sig>


More information about the Kde-hardware-devel mailing list