Summary: | Add power option to wake from sleep/suspend | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Mark <markg85> |
Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | jpetso, kde, kdelibs-bugs-null, lukas, natalie_clarius, nate |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mark
2018-03-30 14:50:52 UTC
To add a little to this. It's not as easy as just adding a method that writes to wakealarm. The datetime you get as input needs to be translated to whatever the RTC clock timezone is. You cannot use QDateTime::currentDateTime(); as that returns the localtime according to /etc/localtime (i think). So for example, in my case my localtime is set to Europe/Amsterdam but my RTC is set to UTC (at this very moment, that is a 2 hour difference). So you need to have the clock time without the UTC offset applied and you need to know which UTC offset would have been applied (for translating input time to RTC time). There are a few ways to get that information (that i know of). 1. timedatectl 2. hwclock --debug 3. cat /proc/driver/rtc tells you the RTC time, but not the UTC offset (1 and 2 do tell you that) Reassigning components: The initial comment is requesting this feature for Solid (as API for applications to use, the way I'm reading it) so it's better off in the frameworks-solid product than systemsettings/kcm_powerdevil. |