Skip to content

Commit

Permalink
power-management: Add section.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexibeast committed Jun 25, 2020
1 parent 717f6e9 commit 5bddb86
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- [AppArmor](./config/security/apparmor.md)
- [Date and Time](./config/date-time.md)
- [Kernel](./config/kernel.md)
- [Power Management](./config/power-management.md)
- [Network](./config/network/index.md)
- [iptables](./config/network/iptables.md)
- [wpa_supplicant](./config/network/wpa_supplicant.md)
Expand Down
27 changes: 27 additions & 0 deletions src/config/power-management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Power Management

## acpid

The `acpid` service for [acpid(8)](https://man.voidlinux.org/acpid.8) is
installed and enabled by default. ACPI events are handled by
`/etc/acpi/handler.sh`, which uses [zzz(8)](https://man.voidlinux.org/zzz.8) for
suspend-to-RAM events.

## elogind

The `elogind` service is provided by the `elogind` package. By default,
[elogind(8)](https://man.voidlinux.org/elogind.8) listens for, and processes,
ACPI events related to lid-switch activation and the *power*, *suspend* and
*hibernate* keys. This will conflict with the `acpid` service if it is installed
and enabled. Either disable `acpid` when enabling `elogind`, or configure
`elogind` to `ignore` ACPI events in
[logind.conf(5)](https://man.voidlinux.org/logind.conf.5). There are several
configuration options, all starting with the keyword `Handle`, that should be
set to `ignore` to avoid interfering with `acpid`.

## Power Saving - tlp

Laptop battery life can be extended by using
[tlp(8)](https://man.voidlinux.org/tlp.8). To use it, install the `tlp` package,
and enable the `tlp` service. Refer to [the TLP
documentation](https://linrunner.de/tlp/) for details.
25 changes: 9 additions & 16 deletions src/config/session-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,16 @@ software assumes the presence of a session bus.

## elogind

[elogind(8)](https://man.voidlinux.org/elogind.8) is a standalone version of
`systemd-logind`, a service to manage user logins. This service provides
necessary features for most desktop environments and Wayland compositors. It can
also be one of the mechanisms for rootless [Xorg](./graphical-session/xorg.md).
[elogind(8)](https://man.voidlinux.org/elogind.8) manages user logins and system
power, as a standalone version of `systemd-logind`. elogind provides necessary
features for most desktop environments and Wayland compositors. It can also be
one of the mechanisms for rootless [Xorg](./graphical-session/xorg.md).

Please read the "[Power Management](./power-management.md)" section for things
to consider before installing elogind.

To make use of its features, install the `elogind` package and make sure the
[system D-Bus](#d-bus) is enabled. You might need to log out and in again.

### Troubleshooting

If you're having any issues with `elogind`, [enable](./services/index.md) its
If you're having any issues with elogind, [enable](./services/index.md) its
service, as waiting for a D-Bus activation can lead to issues.

By default, `elogind` listens for and processes ACPI events related to
lid-switch activation and presses of *power*, *suspend* and *hibernate* keys.
This will conflict with the [acpid(8)](https://man.voidlinux.org/acpid) service
if it is installed and enabled. Either disable `acpid` when enabling `elogind`
or configure `elogind` to `ignore` ACPI events in
[logind.conf(5)](https://man.voidlinux.org/logind.conf.5). There are several
configuration options, all starting with the keyword `Handle`, that should be
set to `ignore` to avoid interfering with `acpid`.

0 comments on commit 5bddb86

Please sign in to comment.