2007-05-16 04:41:40 +02:00
|
|
|
#
|
2008-06-25 22:10:48 +02:00
|
|
|
# spec file for package powertop (Version 1.10)
|
2007-05-16 04:41:40 +02:00
|
|
|
#
|
2008-06-25 22:10:48 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-05-16 04:41:40 +02:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-06-25 22:10:48 +02:00
|
|
|
|
2007-05-16 04:41:40 +02:00
|
|
|
Name: powertop
|
2007-10-11 01:33:48 +02:00
|
|
|
Url: http://www.linuxpowertop.org
|
|
|
|
Summary: PowerTOP is a Linux Tool to Find out What is Using Power on a Laptop
|
2008-06-25 22:10:48 +02:00
|
|
|
Version: 1.10
|
2007-05-28 15:04:41 +02:00
|
|
|
Release: 1
|
2007-10-11 01:33:48 +02:00
|
|
|
License: GPL v2 or later
|
2007-05-16 04:41:40 +02:00
|
|
|
Group: System/Monitoring
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2007-05-26 10:57:42 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2007-05-16 04:41:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-11 01:33:48 +02:00
|
|
|
AutoReqProv: on
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PowerTOP is a program that collects the various pieces of information
|
|
|
|
from your system and presents an overview of how well your laptop is
|
|
|
|
doing in terms of power savings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arjan van de Ven <arjan@linux.intel.com>
|
|
|
|
|
|
|
|
%prep
|
2007-05-17 11:52:51 +02:00
|
|
|
%setup
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%build
|
2007-05-26 14:55:45 +02:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%install
|
2007-05-17 11:52:51 +02:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
make install DESTDIR=%{buildroot}
|
2007-05-26 10:57:42 +02:00
|
|
|
%find_lang %{name}
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{_buildroot}
|
|
|
|
|
2007-05-26 10:57:42 +02:00
|
|
|
%files -f %{name}.lang
|
2007-05-16 04:41:40 +02:00
|
|
|
%defattr(-,root,root)
|
2007-05-17 11:52:51 +02:00
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/%{name}
|
2007-05-26 10:57:42 +02:00
|
|
|
%{_mandir}/man*/%{name}.1.gz
|
2008-06-25 22:10:48 +02:00
|
|
|
|
2007-05-16 04:41:40 +02:00
|
|
|
%changelog
|
2008-06-25 22:10:48 +02:00
|
|
|
* Mon Jun 16 2008 thoenig@suse.de
|
|
|
|
- Update to PowerTOP 1.10
|
|
|
|
- Changes:
|
|
|
|
* USB suspend statistics
|
|
|
|
* support for iwl4965 power saving
|
|
|
|
* Powertop now reports which C-states are supported by CPU/BIOS
|
|
|
|
* Updated translations: ja, pt_BR, hu, id, zh (thanks!)
|
|
|
|
* Wed Nov 07 2007 thoenig@suse.de
|
2007-11-09 00:38:28 +01:00
|
|
|
- Update to PowerTOP 1.9
|
|
|
|
- Changes:
|
|
|
|
* add support for mac80211 based wireless power saving
|
|
|
|
* improve bluetooth inactivity detection
|
|
|
|
* report USB activity (needs 2.6.24-rc kernel)
|
|
|
|
* support the newly reported interrupt events in 2.6.24-rc
|
2008-06-25 22:10:48 +02:00
|
|
|
* Wed Oct 10 2007 thoenig@suse.de
|
2007-10-11 01:33:48 +02:00
|
|
|
- Update to PowerTOP 1.8
|
|
|
|
- Changes:
|
|
|
|
* add suggestion to increase VM writeback timeout
|
|
|
|
* add suggestion to enable INOTIFY in the kernel
|
|
|
|
* fix socket fd leak, found by Nikerabbit on #powertop
|
|
|
|
* Add support for deferrable timers (Scott Lamb)
|
|
|
|
* Add active hint to enable USB autosuspend on Fedora 7
|
|
|
|
* Show blue color if the cpu is 25%% or more busy to indicate
|
|
|
|
that idle wakeups no longer is the nr 1 power causer
|
|
|
|
(Santiago Gala)
|
|
|
|
* merge the -d option from Bill Nottingham (Fedora) to allow
|
|
|
|
automated collection of data
|
2008-06-25 22:10:48 +02:00
|
|
|
* Mon Jun 18 2007 thoenig@suse.de
|
2007-06-18 17:08:06 +02:00
|
|
|
- Update to PowerTOP 1.7
|
|
|
|
- Changes:
|
|
|
|
* add suggestion to disable TV out
|
|
|
|
* add suggestion to disable Wake-On-Lan for unused ethernet
|
|
|
|
* show P-states (frequencies)
|
2008-06-25 22:10:48 +02:00
|
|
|
* Sun Jun 10 2007 thoenig@suse.de
|
2007-06-11 00:17:35 +02:00
|
|
|
- Update to PowerTOP 1.6
|
|
|
|
- Changes:
|
|
|
|
* Add suggestion to rf_kill unused wireless interfaces
|
|
|
|
* Propose killing "sealert"; this is a new thing in F7 that wakes
|
|
|
|
up 10 times per second for no reason
|
|
|
|
* avoid showing the laptop mode hint when on AC - Val Henson
|
|
|
|
* suggest enabling noatime to save disk IO's
|
|
|
|
* suggest enabling SATA AHCI Link powermanagement
|
|
|
|
* suggest enabling the SMP Power Aware Scheduler
|
2008-06-25 22:10:48 +02:00
|
|
|
* Mon May 28 2007 thoenig@suse.de
|
2007-05-28 15:04:41 +02:00
|
|
|
- Update to PowerTOP 1.5
|
|
|
|
- Changes:
|
|
|
|
* fix resize-corrupts-screen-content bug
|
|
|
|
* add interrupts to the wakeups/second data in the emulated
|
|
|
|
(non-mobile) case
|
|
|
|
* calculate a long term power usage from battery charge deltas;
|
|
|
|
this should help people whos battery doesn't report discharge
|
|
|
|
rates, and also will provide a less noisy datapoint
|
|
|
|
* Add option to use `kill` on some known power hogs if they are
|
|
|
|
actually waking up a lot:
|
|
|
|
- beagle (even latest wakes up 10 times/second when not
|
|
|
|
indexing)
|
|
|
|
- hal (suggest to stop cdrom polling)
|
|
|
|
- gnome-power-manager
|
|
|
|
These only show if these actually wake up the cpu 'a lot';
|
|
|
|
so if these get fixed then the suggestion will not display.
|
2008-06-25 22:10:48 +02:00
|
|
|
* Sat May 26 2007 schwab@suse.de
|
2007-05-26 14:55:45 +02:00
|
|
|
- Don't strip binaries.
|
2008-06-25 22:10:48 +02:00
|
|
|
* Sat May 26 2007 thoenig@suse.de
|
2007-05-26 10:57:42 +02:00
|
|
|
- Update to PowerTOP 1.4
|
|
|
|
- Strip binary
|
|
|
|
- Add man page and localisation for powertop
|
|
|
|
- Changes:
|
|
|
|
* use gettext to allow translation
|
|
|
|
(with lots of thanks to the various translators, especially
|
|
|
|
to Benjamin Pineau who showed me how to use gettext tools)
|
|
|
|
* fix bluethooth-checks-cause-autload-of-bluetooth bug
|
|
|
|
* use ncurses (Sebastian Kuzminsky)
|
|
|
|
* rotate through the suggestions randomly, so that all of them
|
|
|
|
will show over time
|
|
|
|
* Fix the CONFIG_SND_AC97_POWER_SAVE check to only report on ac97
|
|
|
|
hw
|
|
|
|
* report "hidden but suprious" timer ticks (due to missing hpet
|
|
|
|
or lack of NO_HZ)
|
|
|
|
* check for HPET being present; if not suggest user to toggle in
|
|
|
|
BIOS or apply the patch
|
|
|
|
* Some suggestions have become "active", you can press a key to
|
|
|
|
tune it right away.
|
|
|
|
* Add active suggestion to enable AC97 powersave mode at runtime
|
|
|
|
* Add active suggestion to enable wireless powersave mode at
|
|
|
|
runtime
|
|
|
|
* Add active suggestion to enable ondemand
|
2008-06-25 22:10:48 +02:00
|
|
|
* Tue May 22 2007 thoenig@suse.de
|
2007-05-22 15:11:57 +02:00
|
|
|
- Update to PowerTOP 1.3
|
|
|
|
- Remove patch powertop-fix-compiler-warnings-thoenig-02.patch:
|
|
|
|
merged upstream
|
|
|
|
- Changes:
|
|
|
|
* Add suggestion for CONFIG_SND_AC97_POWER_SAVE
|
|
|
|
* Fix inefficient code for readdir (Vince Pinter)
|
|
|
|
* Highlight the worst offenders in bold (Vince Pinter)
|
|
|
|
* Fix crash when running on 2.4 kernels (Harald Fernengel)
|
|
|
|
* Check fgets() return values (Timom Hoenig @ SuSE)
|
|
|
|
* add suggestion to enable laptop mode (when disabled)
|
|
|
|
* add suggestion to disable bluetooth when unused
|
2008-06-25 22:10:48 +02:00
|
|
|
* Tue May 15 2007 thoenig@suse.de
|
2007-05-17 11:52:51 +02:00
|
|
|
- Update to PowerTOP 1.2 (skipped 1.1)
|
|
|
|
- Fix battery code to work with both, mA and mW
|
|
|
|
- Clean up spec file
|
|
|
|
- Update patch powertop-fix-compiler-warnings-thoenig-02.patch
|
|
|
|
- Drop patch powertop-respect-rpm-opt-flags-thoenig-01.patch
|
2008-06-25 22:10:48 +02:00
|
|
|
* Sun May 13 2007 thoenig@suse.de
|
2007-05-16 04:41:40 +02:00
|
|
|
- Add patch powertop-fix-compiler-warnings-thoenig-01.patch: Make
|
|
|
|
compiler warnings about unsued parameters and return values not
|
|
|
|
being repected go away.
|
|
|
|
- Fix whitespaces for %%description
|
2008-06-25 22:10:48 +02:00
|
|
|
* Sun May 13 2007 thoenig@suse.de
|
2007-05-16 04:41:40 +02:00
|
|
|
- Initial package submission (PowerTOP 1.0)
|
|
|
|
- Add patch powertop-respect-rpm-opt-flags-thoenig-01.patch: Fix
|
|
|
|
Makefile to respect RPM_OPT_FLAGS
|