<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - /etc/systemd/logind.conf should have HandleExternalPower, HandleBatteryPower if systemd is to replace acpid; or other means to achieve power-friendly "daily tasks" on laptops"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57014">57014</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>/etc/systemd/logind.conf should have HandleExternalPower, HandleBatteryPower if systemd is to replace acpid; or other means to achieve power-friendly "daily tasks" on laptops
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>shawn.t.rutledge@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>I was looking for a way that systemd could cause crond to start only when my
laptop is plugged in to AC power, and stop it when it's on battery power.
There is HandleLidSwitch, HandleSuspendKey etc. already, but handling change in
charging status seems to be something acpid provides which systemd does not
yet. Or am I missing something?
Then again, systemd is supposed to replace cron anyhow. So maybe what is
needed instead is a way to run a task when the system is idle AND it's on AC
power (and maybe within a certain time range). That would be for tasks that
have traditionally been done by /etc/cron.daily jobs, such as updatedb.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>