1. 06 Oct, 2020 1 commit
  2. 17 Sep, 2020 1 commit
  3. 09 Sep, 2020 1 commit
    • Kai Uwe Broulik's avatar
      Add setting for charge threshold · f6a1362e
      Kai Uwe Broulik authored
      On supported hardware, when using the device mostly on line power, this allows to stop charging
      the battery when it reaches a certain level as to not leave the battery fully charge for extended
      periods of time. It also allows to configure below which level the battery will then be charged again.
      Unfortunately, UPower doesn't seem to be aware of this, so the device will just sit around the
      configured percentage, still claiming "charging".
      The battery stop charging threshold is exposed on DBus so a hint coul be displayed in Battery
      monitor when a limit is configured.
  4. 12 Aug, 2020 2 commits
    • Bhushan Shah's avatar
      cmake: set the CAP_WAKE_ALARM capability on the powerdevil · 54a85ddf
      Bhushan Shah authored
      timerfd_create with CLOCK_REALTIME_ALARM which can wake system from
      suspend/deep sleep needs executable to have a CAP_WAKE_ALARM. However
      dependency is not marked as the required since if setting
      CLOCK_REALTIME_ALARM fails, we fallback to CLOCK_REALTIME which can
      allow setting alarms but not which can wake system from suspend.
      See also: man 2 timerfd_create
    • Bhushan Shah's avatar
      [core] introduce the method to wake system up · bf144124
      Bhushan Shah authored
      When using aggressive power management on devices like mobile or laptop
      devices, There's generally one objective, saving as much as power as
      possible. To do this on some devices we keep system in deep
      sleep/suspend for most of the time.
      This means userspace will be frozen as well. For most part this is fine,
      but for services like push notification helper, or update manager or for
      example alarm application, this is not acceptable and it would mean that
      we need to wake system at some point.
      This helpers on org.kde.Solid.PowerManagement are supposed to help with
      You have two possibilities,
      - Wake system instantly: this is useful when screen is turned off, but
        device is not in sleep, and you want to show e.g notifications on
      - Wake system in future: You want to schedule alarm or for example
        wakeup 15 mins later to check for notifications.
      Once system is awake, powerdevil will ping dbus service of your choice
      and call the method "wakeupCallback". By default this wakeup will be
      silent as-in the DPMS and screen backlight will stay off, if you wish to
      wake system fully, you can call "wakeup" method to turn system on fully.
      Related: #2
  5. 20 May, 2020 1 commit
  6. 19 Feb, 2019 1 commit
  7. 27 Mar, 2018 1 commit
  8. 18 Mar, 2018 1 commit
  9. 09 Mar, 2018 1 commit
  10. 08 May, 2017 1 commit
    • Kai Uwe Broulik's avatar
      Revert "Get rid of KDELibs4Support" · 55603160
      Kai Uwe Broulik authored
      It breaks the settings pages for suspend (the page opens and by the time
      it wants to populate the combo boxes the DBus reply hasn't arrived yet) and
      potentially also the profile generator (ie. you probably won't get suspend
      by default on a fresh setup...)
      Don't get me wrong, this patch is fine, it's just those two little things that
      need to be addressed but weren't and the 5.10 release is closing... :/
      This reverts commit cdd1a63d.
  11. 04 Apr, 2017 1 commit
    • Denis Shienkov's avatar
      Get rid of KDELibs4Support · cdd1a63d
      Denis Shienkov authored
      Summary: The power management code is adapted from the kscreenlocker project, and added to the "powerdevilcode" library. Also the missed canHybridSuspend property is added to this code.
      Reviewers: volkov, afiestas, broulik, graesslin, davidedmundson, #plasma
      Reviewed By: davidedmundson, #plasma
      Subscribers: graesslin, davidedmundson, broulik, plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D4939
  12. 09 Aug, 2016 1 commit
    • Bhushan Shah's avatar
      Make powerdevil normal executable instead of kded module · a5a325e2
      Bhushan Shah authored
      This will allow kwin to grant permission to powerdevil which no other
      application should have. Previously used kded module is now replaced by
      the application which installs in LIBEXEC dir and started by desktop
      file in /etc/xdg/autostart
      Test Plan: Restarted session, powerdevil starts and all functions work perfectly
      Reviewers: graesslin, broulik, #plasma
      Reviewed By: broulik, #plasma
      Subscribers: davidedmundson, shumski, plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D2372
  13. 08 Aug, 2016 1 commit
    • Bhushan Shah's avatar
      Convert powerdevil backends to proper plugins · 2e2faec9
      Bhushan Shah authored
      This converts the powerdevil backends into proper plugins that are
      loaded at runtime instead of just hardcoding upowerbackend. And are also
      seperated from the powerdevil kded. This is first step to have other
      modules for example, wayland, hwcomposer etc.
      Logic for finding and loading backends is mostly inspired from the
      kscreen, currently it just loads upower backend because it is only
      module available. This logic can be changed when new backends are
      introduced in powedevil.
      Test Plan:
      compiles, builds and installs backend module powerdevilupowerbackend.so
      into proper plugin path. Also verified with powerdevil kded that it gets
      loaded properly.
      Reviewers: #plasma, broulik
      Reviewed By: #plasma, broulik
      Subscribers: plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D2369
  14. 28 Jun, 2016 1 commit
    • Kai Uwe Broulik's avatar
      [PolicyAgent] Ignore "Keep screen on" request while screen is locked · f9c5e2a8
      Kai Uwe Broulik authored
      When an application is blocking power management, such as a video player,
      the screen will stay on and will not automatically lock, which is good.
      However, if the screen is manually locked it will stay on indefinitely
      (until the inhibition is released) which is pointless as you cannot see
      the video anymore and you can't do anything with the computer anyway.
      When the screen is unlocked, the original policy comes into effect again.
      Differential Revision: https://phabricator.kde.org/D1901
  15. 18 Jun, 2016 3 commits
  16. 02 Jun, 2016 1 commit
  17. 25 Apr, 2016 1 commit
  18. 21 Nov, 2015 1 commit
  19. 21 Aug, 2015 1 commit
  20. 28 Jul, 2015 1 commit
  21. 19 Mar, 2015 1 commit
    • Harald Sitter's avatar
      explicitly find and use kdbusaddons · f82a0196
      Harald Sitter authored
      the kded module needs the KDEDModule header which is provided by
      kdbusaddons. previously this was implicitly pulled in by frameworks.
      frameworks recently got a public dependency cleanup so now it is not pulled
      in anymore; making the build fail.
      REVIEW: 123047
  22. 09 Feb, 2015 1 commit
  23. 31 Jan, 2015 1 commit
    • Kai Uwe Broulik's avatar
      Remove screen saver interface dependency · fe6fbe8d
      Kai Uwe Broulik authored
      Most of its usage has already been droped since the screenlocker does most of this
      automatically for us now. Also remove the "SimulateUserActivity" call on resume from
      suspend, I suppose our new lockscreen infrastructure is smarter than that.
      CCMAIL: mgraesslin@kde.org
  24. 25 Jan, 2015 2 commits
  25. 17 Jan, 2015 1 commit
  26. 07 Jan, 2015 1 commit
  27. 16 Oct, 2014 1 commit
  28. 04 Oct, 2014 1 commit
    • Nikita Skovoroda's avatar
      Brightness fixes, part 2. · e92c7daa
      Nikita Skovoroda authored
      Implement brightnessStep logic.
      Introduce brightnessStep, brightnessStepMax, brightnessStepChanged, setBrightnessStep D-Bus endpoints in org.kde.Solid.PowerManagement.Actions.BrightnessControl.
      Introduce correspoding D-Bus endpoints in org.kde.Solid.PowerManagement.Actions.KeyboardBrightnessControl.
      Use step-based logic for increase/decrease brightness actions.
      This makes the increase/decrease brightness actions behave as if the brightness steps are pre-calculated.
  29. 21 Aug, 2014 1 commit
  30. 18 Jul, 2014 1 commit
  31. 17 Jul, 2014 1 commit
  32. 24 Apr, 2014 2 commits
  33. 29 Mar, 2014 1 commit
  34. 25 Mar, 2014 1 commit
  35. 18 Mar, 2014 1 commit