Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Feb 8, 2024
1 parent cc2293c commit 7fd9b73
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 15 deletions.
26 changes: 20 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# NAME

*powerkit* - Desktop independent Linux power manager
*powerkit* - Desktop independent power manager for Linux

# SYNOPSIS

powerkit *`[--config]`* *`[--set-brightness-up]`* *`[--set-brightness-down]`*

# DESCRIPTION

Desktop independent Linux power manager for alternative X11 desktop environments and window managers.
Desktop independent power manager for use with alternative X11 desktop environments and window managers on Linux.

* Implements *``org.freedesktop.ScreenSaver``* service
* Implements *``org.freedesktop.PowerManagement.Inhibit``* service
Expand Down Expand Up @@ -85,13 +85,19 @@ Common use cases are audio playback, downloading, rendering and similar.

## Google Chrome/Chromium does not inhibit the screen saver or power manager!?

*[Chrome](https://chrome.google.com)* does not use *org.freedesktop.ScreenSaver* or *org.freedesktop.PowerManagement* until it detects a supported desktop environment. Add the following to *``~/.bashrc``* or the *``google-chrome``* launcher if you don't run a supported desktop environment:
Chrome does not use *org.freedesktop.ScreenSaver* or *org.freedesktop.PowerManagement* until it detects a supported desktop environment. Add the following to *``~/.bashrc``* or the *``google-chrome``* launcher if you don't run a supported desktop environment:

```
export DESKTOP_SESSION=xfce
export XDG_CURRENT_DESKTOP=xfce
```

## Mozilla Firefox does not inhibit the power manager during audio playback and/or downloading!?

This is an issue with Firefox (missing feature). Use a different browser or open a request on the Firefox issue tracker.

Firefox should inhibit the power manager during audio playback (regardless of video) and during download (active queue). Currently Firefox only inhibit the screen saver during video playback. Chrome/Chromium does this correctly.

# REQUIREMENTS

powerkit requires the following dependencies:
Expand All @@ -111,17 +117,25 @@ First make sure you have the required dependencies installed, then review the mo
* *``CMAKE_INSTALL_PREFIX=</usr/local>``* - Install target. *``/usr``* recommended.
* *``CMAKE_BUILD_TYPE=<Release/Debug>``* - Build type. *``Release``* recommended

Now configure powerkit with CMake and build (*example for packaging purposes*).
Now configure powerkit with CMake and build:

```
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make -j4
```

All you need is the *``powerkit``* binary located in the build directory, you can run it from any location.

## Install

Use regular *``make install``* with optional *``DESTDIR``*:

```
make DESTDIR=<package_directory> install
```
or

or make a native package:

```
cpack -G DEB
Expand Down Expand Up @@ -161,7 +175,7 @@ cpack -G RPM

# SEE ALSO

**``xsecurelock``**(1), **``UPower``**(7)
**``xsecurelock``**(1), **``UPower``**(7), **``systemd-logind``**(8)

# BUGS

Expand Down
32 changes: 23 additions & 9 deletions docs/powerkit.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
.\"
.TH "POWERKIT" "1" "February 2024" "Version 2.0.0" "PowerKit Documentation"
.SH NAME
\f[I]powerkit\f[R] - Desktop independent Linux power manager
\f[I]powerkit\f[R] - Desktop independent power manager for Linux
.SH SYNOPSIS
powerkit \f[I]\f[CI][--config]\f[I]\f[R]
\f[I]\f[CI][--set-brightness-up]\f[I]\f[R]
\f[I]\f[CI][--set-brightness-down]\f[I]\f[R]
.SH DESCRIPTION
Desktop independent Linux power manager for alternative X11 desktop
environments and window managers.
Desktop independent power manager for use with alternative X11 desktop
environments and window managers on Linux.
.IP \[bu] 2
Implements \f[I]\f[CI]org.freedesktop.ScreenSaver\f[I]\f[R] service
.IP \[bu] 2
Expand Down Expand Up @@ -111,8 +111,7 @@ work with powerkit.
.PP
Common use cases are audio playback, downloading, rendering and similar.
.SS Google Chrome/Chromium does not inhibit the screen saver or power manager!?
\f[I]Chrome (https://chrome.google.com)\f[R] does not use
\f[I]org.freedesktop.ScreenSaver\f[R] or
Chrome does not use \f[I]org.freedesktop.ScreenSaver\f[R] or
\f[I]org.freedesktop.PowerManagement\f[R] until it detects a supported
desktop environment.
Add the following to \f[I]\f[CI]\[ti]/.bashrc\f[I]\f[R] or the
Expand All @@ -123,6 +122,14 @@ supported desktop environment:
export DESKTOP_SESSION=xfce
export XDG_CURRENT_DESKTOP=xfce
.EE
.SS Mozilla Firefox does not inhibit the power manager during audio playback and/or downloading!?
This is an issue with Firefox (missing feature).
Use a different browser or open a request on the Firefox issue tracker.
.PP
Firefox should inhibit the power manager during audio playback
(regardless of video) and during download (active queue).
Currently Firefox only inhibit the screen saver during video playback.
Chrome/Chromium does this correctly.
.SH REQUIREMENTS
powerkit requires the following dependencies:
.IP \[bu] 2
Expand Down Expand Up @@ -151,19 +158,25 @@ review the most common build options:
\f[I]\f[CI]CMAKE_BUILD_TYPE=<Release/Debug>\f[I]\f[R] - Build type.
\f[I]\f[CI]Release\f[I]\f[R] recommended
.PP
Now configure powerkit with CMake and build (\f[I]example for packaging
purposes\f[R]).
Now configure powerkit with CMake and build:
.IP
.EX
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make -j4
.EE
.PP
All you need is the \f[I]\f[CI]powerkit\f[I]\f[R] binary located in the
build directory, you can run it from any location.
.SS Install
Use regular \f[I]\f[CI]make install\f[I]\f[R] with optional
\f[I]\f[CI]DESTDIR\f[I]\f[R]:
.IP
.EX
make DESTDIR=<package_directory> install
.EE
.PP
or
or make a native package:
.IP
.EX
cpack -G DEB
Expand Down Expand Up @@ -205,7 +218,8 @@ Set default display brightness down.
\f[I]\f[CI]\[ti]/.config/powerkit/powerkit.conf\f[I]\f[R]
Per user configuration file.
.SH SEE ALSO
\f[B]\f[CB]xsecurelock\f[B]\f[R](1), \f[B]\f[CB]UPower\f[B]\f[R](7)
\f[B]\f[CB]xsecurelock\f[B]\f[R](1), \f[B]\f[CB]UPower\f[B]\f[R](7),
\f[B]\f[CB]systemd-logind\f[B]\f[R](8)
.SH BUGS
See \f[B]https://github.com/rodlie/powerkit/issues\f[R].
.SH COPYRIGHT
Expand Down

0 comments on commit 7fd9b73

Please sign in to comment.