Sisyphus repository
Last update: 8 april 2020 | SRPMs: 17561 | Visits: 17849747
en ru br
ALT Linux repos

Group :: System/Base
RPM: laptop-mode-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:  laptop-mode-tools
Version:  1.71
Release:  alt1

Summary:  Tools for power savings based on battery/AC status
License:  GPL
Group:    System/Base
Packager: Andrey Cherepanov <cas at>

Source:   %name-%version.tar
# VCS:
Patch1:   support-condrestart-in-initscript.patch

BuildArch: noarch
%filter_from_requires \,^/lib/udev/hotplug\.functions,d;\,^systemd$,d

Laptop mode is a Linux kernel feature that allows your laptop to save
considerable power, by allowing the hard drive to spin down for longer
periods of time. This package contains the userland scripts that are
needed to enable laptop mode. It includes support for automatically
enabling laptop mode when the computer is working on batteries. In
addition, it provides a set of modules which allow you to apply
various other power savings.

%setup -q
%patch1 -p1

DESTDIR=%buildroot INIT_D=%buildroot%_initdir MAN_D=%_mandir INSTALL=install ./

%preun_service laptop-mode

%post_service laptop-mode

%doc COPYING Documentation/*.txt
%config %_sysconfdir/acpi/actions/lm_*.sh
%config %_sysconfdir/acpi/events/lm_*
%config(noreplace) %_sysconfdir/laptop-mode/
%config %_initdir/laptop-mode


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin