[Bug 1066892] Re: initial power profiles do not use suspend support

Bug Watch Updater 1066892 at bugs.launchpad.net
Mon Oct 15 15:35:54 UTC 2012


Launchpad has imported 1 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=308292.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-10-12T12:56:28+00:00 Harald Sitter wrote:

In powerdevilprofilegenerator.cpp we can find the following

        QSet< Solid::PowerManagement::SleepState > methods =
Solid::PowerManagement::supportedSleepStates();

       //...

        KConfigGroup handleButtonEvents(&acProfile, "HandleButtonEvents");
        handleButtonEvents.writeEntry< uint >("powerButtonAction", LogoutDialogMode);
        if (methods.contains(Solid::PowerManagement::SuspendState)) {
            handleButtonEvents.writeEntry< uint >("lidAction", ToRamMode);
        } else {
            handleButtonEvents.writeEntry< uint >("lidAction", TurnOffScreenMode);
        }

Now on Kubuntu 12.10 the contains() query is always false thus the
lidaction is turn off screen. However it should not be false because...

me at novalis:~$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanSuspend
true

solid::powermanagement uses the same dbus interface to get its
information, so one gets to wonder why it works for me and not for
solid.... turns out that this interface is provided by the very same
daemon that creates the config (why that does not sound dangerous at all
:S). My assumption at present is that either the initialization order is
wrong (i.e. the config is created before the interface) or the upower
code is bogus (race condition in init or something).


Reproducible: Always

Reply at: https://bugs.launchpad.net/ubuntu/+source/kde-
workspace/+bug/1066892/comments/0


** Changed in: kdebase-workspace
       Status: Unknown => Confirmed

** Changed in: kdebase-workspace
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-workspace in Ubuntu.
https://bugs.launchpad.net/bugs/1066892

Title:
  initial power profiles do not use suspend support

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdebase-workspace/+bug/1066892/+subscriptions




More information about the kubuntu-bugs mailing list