Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=577ad8b833eab3881ba39c4e2889c93fbfbe85e0
commit 577ad8b833eab3881ba39c4e2889c93fbfbe85e0 Author: DeX77 <[email protected]> Date: Thu Jun 15 14:47:44 2017 +0200 laptop-mode-tools-1.71-2-x86_64 * rebuild with patch to fix: Failed to re-set power saving mode for wireless card diff --git a/source/apps-extra/laptop-mode-tools/FrugalBuild b/source/apps-extra/laptop-mode-tools/FrugalBuild index 1ac21fc..5d9dc05 100644 --- a/source/apps-extra/laptop-mode-tools/FrugalBuild +++ b/source/apps-extra/laptop-mode-tools/FrugalBuild @@ -3,7 +3,7 @@ pkgname=laptop-mode-tools pkgver=1.71 -pkgrel=1 +pkgrel=2 pkgdesc="A kernel mode that allows you to extend the battery life of your laptop" url="http://www.samwel.tk/laptop_mode/" depends=('hdparm' 'acpid') @@ -35,8 +35,10 @@ backup=(etc/laptop-mode/conf.d/ac97-powersave.conf etc/laptop-mode/laptop-mode.conf etc/laptop-mode/lm-profiler.conf) groups=('apps-extra') -archs=('i686' 'x86_64') -sha1sums=('059801d1e67996ae90cfb4161f71774d14898be7') +archs=('x86_64') +source+=("wireless_power_set.patch") +sha1sums=('07941e39f8f4c6fa59572f122bd75387b7b2e138' \ + '059801d1e67996ae90cfb4161f71774d14898be7') _F_systemd_units=(laptop-mode-tools=e) _F_github_author="rickysarraf" _F_github_tag="y" @@ -44,7 +46,6 @@ Finclude systemd github build() { Fcd - pwd Fpatchall Fsed "etc/udev" "lib/udev" install.sh make DESTDIR="$Fdestdir" INIT_D=none MAN_D=/usr/share/man APM=disabled PMU=disabled install || Fdie diff --git a/source/apps-extra/laptop-mode-tools/wireless_power_set.patch b/source/apps-extra/laptop-mode-tools/wireless_power_set.patch new file mode 100644 index 0000000..9833be7 --- /dev/null +++ b/source/apps-extra/laptop-mode-tools/wireless_power_set.patch @@ -0,0 +1,48 @@ +From 791191702b91f7e23b280f35e292869631f5ba22 Mon Sep 17 00:00:00 2001 +From: Ritesh Raj Sarraf <[email protected]> +Date: Sun, 12 Mar 2017 16:40:54 +0530 +Subject: [PATCH] Fix correct "ON" string + +Thanks: Andrey Polyakov + +Fix again +--- + usr/share/laptop-mode-tools/modules/wireless-power | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/usr/share/laptop-mode-tools/modules/wireless-power b/usr/share/laptop-mode-tools/modules/wireless-power +index 8800a89..b84beb5 100755 +--- a/usr/share/laptop-mode-tools/modules/wireless-power ++++ b/usr/share/laptop-mode-tools/modules/wireless-power +@@ -66,14 +66,14 @@ setPowerSave() { + + if [ -n "$IW" ]; then + $IW dev $IF set power_save $ONOFF +- if [ $ONOFF = "ON" ]; then ++ if [ $ONOFF = "on" ]; then + $IW dev $IF set txpower auto + else + $IW dev $IF set txpower fixed + fi + else + $IWCONFIG $IF power $ONOFF +- if [ $ONOFF = "ON" ]; then ++ if [ $ONOFF = "on" ]; then + $IWCONFIG $IF txpower auto + else + $IWCONFIG $IF txpower fixed +@@ -106,10 +106,10 @@ if [ x$CONTROL_WIRELESS_POWER_SAVING = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x + fi + + # Translate 1 => on, 0 => off +- WIRELESS_AC_POWER_SAVING_ONOFF=off +- WIRELESS_BATT_POWER_SAVING_ONOFF=off +- [ "$WIRELESS_AC_POWER_SAVING" = 1 ] && WIRELESS_AC_POWER_SAVING_ONOFF=on +- [ "$WIRELESS_BATT_POWER_SAVING" = 1 ] && WIRELESS_BATT_POWER_SAVING_ONOFF=on ++ WIRELESS_AC_POWER_SAVING_ONOFF="off" ++ WIRELESS_BATT_POWER_SAVING_ONOFF="off" ++ [ "$WIRELESS_AC_POWER_SAVING" = 1 ] && WIRELESS_AC_POWER_SAVING_ONOFF="on" ++ [ "$WIRELESS_BATT_POWER_SAVING" = 1 ] && WIRELESS_BATT_POWER_SAVING_ONOFF="on" + + WIFI_IFNAMES="" + findWifiIfs _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
