Quantcast
Channel: PowerDevil activity
Viewing all articles
Browse latest Browse all 2193

Jakob Petsovits approved merge request !570: Support dark resume at Plasma / PowerDevil

$
0
0

This is partial changeset to support so called dark resume which allows us to resume userspace but not turn display on where desirable. See commit descriptions for more detail.

Right now this does not do anything actually other than printing debug messages, but local logic I have blacklists certain devices from waking up device fully. I need some comments on approach before I go ahead with further changes.

More reading:

https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/docs/dark_resume.md

https://github.com/systemd/systemd/issues/27077

CC: @sebas@jpetso@zamundaaa

How to test functionality

Test in combination of kwin!8031 on x86 systems.

Timer wakeups

  1. Configure system to go to sleep after 1 minute
  2. Run following command, sudo rtcwake --date "+2min" -m no and keep system idle right away.
  3. After one minute system will go in suspend, afterwords, at 2 minute mark system should wake-up without Display
  4. in 30 seconds system should go to sleep again if user does not interact with system

WoWLAN wakeups

  1. Note the IP and MAC address of your machine and enable magic-packet wakeup, sudo iw phy phy0 wowlan enable magic-packet
  2. Configure system to go to sleep after 1 minute
  3. Once system is asleep, send a wol packet from different system, you can for example use wol -i from different machine or Android apps which allows to send similar packets.
  4. Once packet is sent, system should resume (without display)
  5. After 30 seconds, system should go to sleep again if user does not interact with system.

Power Management

(Right now this is not tied to any functionality but there is plan to integrate other functionality based on this architecture)

  1. Suspend system
  2. Plug-in AC adapter
  3. You should see following in logs, Aug 28 16:05:30 antlia org_kde_powerdevil[165771]: org.kde.powerdevil: Wakeup source of type QFlags(PowerManagement) resumed from sleep, devices: QList("/sys/class/wakeup/wakeup33/device", "/sys/class/wakeup/wakeup43/device") as an example.

Viewing all articles
Browse latest Browse all 2193

Trending Articles