View previous topic :: View next topic |
Author |
Message |
rsnfunky Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Dec 2007 Posts: 115
|
Posted: Mon Feb 03, 2025 5:42 pm Post subject: app-laptop/laptop-mode-tools Not finding commands to run |
|
|
I want to reduce power consumption on the desktop PC which I am using as a NAS server. (Not used a lot and hence want it to be using least possible power)
I am trying app-laptop/laptop-mode-tools application and when I start it the below are the errors. The PC is an AMD Athlon II.
Code: | ~ # rc-service laptop_mode start
* Starting laptop_mode ...
/etc/laptop-mode/laptop-mode.conf: line 111: ac97-powersave: command not found
/etc/laptop-mode/laptop-mode.conf: line 112: cpufreq: command not found
/etc/laptop-mode/laptop-mode.conf: line 113: dpms-standby: command not found
/etc/laptop-mode/laptop-mode.conf: line 116: exec-commands: command not found
/etc/laptop-mode/laptop-mode.conf: line 117: hal-polling: command not found
/etc/laptop-mode/laptop-mode.conf: line 118: hdparm: command not found
/etc/laptop-mode/laptop-mode.conf: line 121: nmi-watchdog: command not found
/etc/laptop-mode/laptop-mode.conf: line 122: pcie-aspm: command not found
/etc/laptop-mode/laptop-mode.conf: line 123: runtime-pm: command not found
/etc/laptop-mode/laptop-mode.conf: line 124: sched-mc-power-savings: command not found
/etc/laptop-mode/laptop-mode.conf: line 125: sched-smt-power-savings: command not found
/etc/laptop-mode/laptop-mode.conf: line 126: terminal-blanking: command not found
/etc/laptop-mode/laptop-mode.conf: line 127: wireless-ipw-power: command not found
/etc/laptop-mode/laptop-mode.conf: line 128: wireless-iwl-power: command not found
/etc/laptop-mode/laptop-mode.conf: line 129: wireless-power: command not found
/etc/laptop-mode/laptop-mode.conf: line 111: ac97-powersave: command not found
/etc/laptop-mode/laptop-mode.conf: line 112: cpufreq: command not found
/etc/laptop-mode/laptop-mode.conf: line 113: dpms-standby: command not found
/etc/laptop-mode/laptop-mode.conf: line 116: exec-commands: command not found
/etc/laptop-mode/laptop-mode.conf: line 117: hal-polling: command not found
/etc/laptop-mode/laptop-mode.conf: line 118: hdparm: command not found
/etc/laptop-mode/laptop-mode.conf: line 121: nmi-watchdog: command not found
/etc/laptop-mode/laptop-mode.conf: line 122: pcie-aspm: command not found
/etc/laptop-mode/laptop-mode.conf: line 123: runtime-pm: command not found
/etc/laptop-mode/laptop-mode.conf: line 124: sched-mc-power-savings: command not found
/etc/laptop-mode/laptop-mode.conf: line 125: sched-smt-power-savings: command not found
/etc/laptop-mode/laptop-mode.conf: line 126: terminal-blanking: command not found
/etc/laptop-mode/laptop-mode.conf: line 127: wireless-ipw-power: command not found
/etc/laptop-mode/laptop-mode.conf: line 128: wireless-iwl-power: command not found
/etc/laptop-mode/laptop-mode.conf: line 129: wireless-power: command not found
ERROR: hdparm not installed.
ERROR: hdparm not installed. [ ok ]
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1889 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rsnfunky Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Dec 2007 Posts: 115
|
Posted: Tue Feb 04, 2025 2:12 am Post subject: |
|
|
Its the same thing. I have re emerged it a couple of times |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1889 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23097
|
Posted: Tue Feb 04, 2025 2:09 pm Post subject: |
|
|
What is the output of emerge --pretend --verbose app-laptop/laptop-mode-tools ; equery check app-laptop/laptop-mode-tools ; equery files app-laptop/laptop-mode-tools? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rsnfunky Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Dec 2007 Posts: 115
|
Posted: Thu Feb 06, 2025 2:53 am Post subject: |
|
|
Banana wrote: | Does /usr/share/laptop-mode-tools/modules/ contain any files? |
Code: | /usr/share/laptop-mode-tools/modules # ls
ac97-powersave hdparm runtime-pm
battery-level-polling intel-hda-powersave sched-mc-power-savings
bluetooth intel-sata-powermgmt sched-smt-power-savings
configuration-file-control intel_pstate start-stop-programs
cpufreq kbd-backlight syslog-conf
cpuhotplug laptop-mode terminal-blanking
dpms-standby lcd-brightness vgaswitcheroo
eee-superhe nmi-watchdog video-out
ethernet nouveau wireless-ipw-power
exec-commands pcie-aspm wireless-iwl-power
hal-polling radeon-dpm wireless-power
|
Code: | # emerge --pretend --verbose app-laptop/laptop-mode-tools
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 17.25 s (backtrack: 0/20).
[ebuild R ] app-laptop/laptop-mode-tools-1.74::gentoo USE="acpi -apm" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
|
Code: | / # equery check app-laptop/laptop-mode-tools
!!! /etc/laptop-mode/laptop-mode.conf has incorrect MD5sum
!!! /etc/laptop-mode/conf.d/nouveau.conf has incorrect MD5sum
!!! /etc/laptop-mode/conf.d/cpufreq.conf has incorrect MD5sum
* Checking app-laptop/laptop-mode-tools-1.74 ...
138 out of 141 files passed
|
Code: | # equery files app-laptop/laptop-mode-tools
* Searching for laptop-mode-tools in app-laptop ...
* Contents of app-laptop/laptop-mode-tools-1.74:
/etc
/etc/acpi
/etc/acpi/actions
/etc/acpi/actions/lm_ac_adapter.sh
/etc/acpi/actions/lm_battery.sh
/etc/acpi/actions/lm_lid.sh
/etc/acpi/events
/etc/acpi/events/lm_ac_adapter
/etc/acpi/events/lm_battery
/etc/acpi/events/lm_lid
/etc/init.d
/etc/init.d/laptop_mode
/etc/laptop-mode
/etc/laptop-mode/batt-start
/etc/laptop-mode/batt-stop
/etc/laptop-mode/conf.d
/etc/laptop-mode/conf.d/ac97-powersave.conf
/etc/laptop-mode/conf.d/auto-hibernate.conf
/etc/laptop-mode/conf.d/battery-level-polling.conf
/etc/laptop-mode/conf.d/bluetooth.conf
/etc/laptop-mode/conf.d/board-specific
/etc/laptop-mode/conf.d/board-specific/README.Board-Specific
/etc/laptop-mode/conf.d/configuration-file-control.conf
/etc/laptop-mode/conf.d/cpufreq.conf
/etc/laptop-mode/conf.d/cpuhotplug.conf
/etc/laptop-mode/conf.d/dpms-standby.conf
/etc/laptop-mode/conf.d/eee-superhe.conf
/etc/laptop-mode/conf.d/ethernet.conf
/etc/laptop-mode/conf.d/exec-commands.conf
/etc/laptop-mode/conf.d/hal-polling.conf
/etc/laptop-mode/conf.d/intel-hda-powersave.conf
/etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
/etc/laptop-mode/conf.d/intel_pstate.conf
/etc/laptop-mode/conf.d/kbd-backlight.conf
/etc/laptop-mode/conf.d/lcd-brightness.conf
/etc/laptop-mode/conf.d/nmi-watchdog.conf
/etc/laptop-mode/conf.d/nouveau.conf
/etc/laptop-mode/conf.d/pcie-aspm.conf
/etc/laptop-mode/conf.d/radeon-dpm.conf
/etc/laptop-mode/conf.d/runtime-pm.conf
/etc/laptop-mode/conf.d/sched-mc-power-savings.conf
/etc/laptop-mode/conf.d/sched-smt-power-savings.conf
/etc/laptop-mode/conf.d/start-stop-programs.conf
/etc/laptop-mode/conf.d/terminal-blanking.conf
/etc/laptop-mode/conf.d/vgaswitcheroo.conf
/etc/laptop-mode/conf.d/video-out.conf
/etc/laptop-mode/conf.d/wireless-ipw-power.conf
/etc/laptop-mode/conf.d/wireless-iwl-power.conf
/etc/laptop-mode/conf.d/wireless-power.conf
/etc/laptop-mode/laptop-mode.conf
/etc/laptop-mode/lm-ac-start
/etc/laptop-mode/lm-ac-stop
/etc/laptop-mode/lm-profiler.conf
/etc/laptop-mode/modules
/etc/laptop-mode/nolm-ac-start
/etc/laptop-mode/nolm-ac-stop
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/laptop-mode.service
/lib/systemd/system/laptop-mode.timer
/lib/systemd/system/lmt-poll.service
/usr
/usr/lib
/usr/lib/pm-utils
/usr/lib/pm-utils/sleep.d
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/laptop-mode.conf
/usr/lib/udev
/usr/lib/udev/lmt-udev
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/99-laptop-mode.rules
/usr/sbin
/usr/sbin/laptop_mode
/usr/sbin/lm-profiler
/usr/sbin/lm-syslog-setup
/usr/sbin/lmt-config-gui
/usr/sbin/lmt-config-gui-pkexec
/usr/share
/usr/share/applications
/usr/share/applications/laptop-mode-tools.desktop
/usr/share/doc
/usr/share/doc/laptop-mode-tools-1.74
/usr/share/doc/laptop-mode-tools-1.74/README.md.bz2
/usr/share/doc/laptop-mode-tools-1.74/laptop-mode.txt.bz2
/usr/share/doc/laptop-mode-tools-1.74/readme-debugging.txt.bz2
/usr/share/doc/laptop-mode-tools-1.74/revision-history.txt.bz2
/usr/share/laptop-mode-tools
/usr/share/laptop-mode-tools/lmt.py
/usr/share/laptop-mode-tools/module-helpers
/usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon
/usr/share/laptop-mode-tools/module-helpers/pm-freeze
/usr/share/laptop-mode-tools/module-helpers/pm-helper
/usr/share/laptop-mode-tools/module-helpers/pm-hibernate
/usr/share/laptop-mode-tools/module-helpers/pm-suspend
/usr/share/laptop-mode-tools/modules
/usr/share/laptop-mode-tools/modules/ac97-powersave
/usr/share/laptop-mode-tools/modules/battery-level-polling
/usr/share/laptop-mode-tools/modules/bluetooth
/usr/share/laptop-mode-tools/modules/configuration-file-control
/usr/share/laptop-mode-tools/modules/cpufreq
/usr/share/laptop-mode-tools/modules/cpuhotplug
/usr/share/laptop-mode-tools/modules/dpms-standby
/usr/share/laptop-mode-tools/modules/eee-superhe
/usr/share/laptop-mode-tools/modules/ethernet
/usr/share/laptop-mode-tools/modules/exec-commands
/usr/share/laptop-mode-tools/modules/hal-polling
/usr/share/laptop-mode-tools/modules/hdparm
/usr/share/laptop-mode-tools/modules/intel-hda-powersave
/usr/share/laptop-mode-tools/modules/intel-sata-powermgmt
/usr/share/laptop-mode-tools/modules/intel_pstate
/usr/share/laptop-mode-tools/modules/kbd-backlight
/usr/share/laptop-mode-tools/modules/laptop-mode
/usr/share/laptop-mode-tools/modules/lcd-brightness
/usr/share/laptop-mode-tools/modules/nmi-watchdog
/usr/share/laptop-mode-tools/modules/nouveau
/usr/share/laptop-mode-tools/modules/pcie-aspm
/usr/share/laptop-mode-tools/modules/radeon-dpm
/usr/share/laptop-mode-tools/modules/runtime-pm
/usr/share/laptop-mode-tools/modules/sched-mc-power-savings
/usr/share/laptop-mode-tools/modules/sched-smt-power-savings
/usr/share/laptop-mode-tools/modules/start-stop-programs
/usr/share/laptop-mode-tools/modules/syslog-conf
/usr/share/laptop-mode-tools/modules/terminal-blanking
/usr/share/laptop-mode-tools/modules/vgaswitcheroo
/usr/share/laptop-mode-tools/modules/video-out
/usr/share/laptop-mode-tools/modules/wireless-ipw-power
/usr/share/laptop-mode-tools/modules/wireless-iwl-power
/usr/share/laptop-mode-tools/modules/wireless-power
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/laptop-mode.conf.8.bz2
/usr/share/man/man8/laptop_mode.8.bz2
/usr/share/man/man8/lm-profiler.8.bz2
/usr/share/man/man8/lm-profiler.conf.8.bz2
/usr/share/man/man8/lm-syslog-setup.8.bz2
/usr/share/pixmaps
/usr/share/pixmaps/laptop-mode-tools.svg
/usr/share/polkit-1
/usr/share/polkit-1/actions
/usr/share/polkit-1/actions/org.linux.lmt.gui.policy
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1889 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rsnfunky Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Dec 2007 Posts: 115
|
Posted: Sat Feb 08, 2025 5:25 pm Post subject: |
|
|
That is correct. I did modify these files. How does one use the modified files (which has desired power options). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23097
|
Posted: Sat Feb 08, 2025 5:29 pm Post subject: |
|
|
Modifying the files is fine, assuming you modify them correctly. Please post the output of diff -u comparing the upstream file and your modified version. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rsnfunky Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Dec 2007 Posts: 115
|
Posted: Sun Feb 09, 2025 3:44 am Post subject: |
|
|
Hu wrote: | Modifying the files is fine, assuming you modify them correctly. Please post the output of diff -u comparing the upstream file and your modified version. |
Code: | /etc/laptop-mode # diff -u laptop-mode.conf laptop-mode.conf.old
--- laptop-mode.conf 2025-02-08 08:11:57.452538454 +0530
+++ laptop-mode.conf.old 2025-01-26 22:27:36.885402428 +0530
@@ -59,7 +59,7 @@
VERBOSE_OUTPUT=0
# Set this to 1 if you want to log messages to syslog
-LOG_TO_SYSLOG=0
+LOG_TO_SYSLOG=1
# Run in shell debug mode
# Enable this if you would like to execute the entire laptop-mode-tools program
@@ -90,14 +90,15 @@
# Enable laptop mode power savings, even when on AC power.
# This is useful when running as a headless machine, in low power mode
#
-ENABLE_LAPTOP_MODE_ON_AC=0
+ENABLE_LAPTOP_MODE_ON_AC=1
+
#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
-ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
+ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1
#
@@ -107,25 +108,25 @@
#
# List of modules which can be automatically enabled with this setting are:
#
-# ac97-powersave
-# cpufreq
-# dpms-standby
+ ac97-powersave
+ cpufreq
+ dpms-standby
# eee-superhe
-# ethernet
-# exec-commands
-# hal-polling
-# hdparm
+ #ethernet
+ exec-commands
+ hal-polling
+ hdparm
# intel-hda-powersave
# intel-sata-powermgmt
-# nmi-watchdog
-# pcie-aspm
-# runtime-pm
-# sched-mc-power-savings
-# sched-smt-power-savings
-# terminal-blanking
-# wireless-ipw-power
-# wireless-iwl-power
-# wireless-power
+ nmi-watchdog
+ pcie-aspm
+ runtime-pm
+ sched-mc-power-savings
+ sched-smt-power-savings
+ terminal-blanking
+ wireless-ipw-power
+ wireless-iwl-power
+ wireless-power
#
# Set this to 1 to enable all simple zero-configuration auto modules listed above.
#
@@ -202,12 +203,6 @@
#
HD="/dev/[hs]d[abcdefgh]"
-#
-# The NVMe drives that laptop mode controls.
-# Separate them by a space, e.g. NVME="/dev/nvme0 /dev/nvme1". The default is a
-# wildcard, which will get you all your NVMe drives.
-#
-NVME="/dev/nvme[0-9]"
#
# The partitions (or mount points) that laptop mode controls.
|
Code: | /etc/laptop-mode/conf.d # diff -u cpufreq.conf cpufreq.conf.old
--- cpufreq.conf 2025-02-08 23:03:11.041514576 +0530
+++ cpufreq.conf.old 2025-01-26 22:33:07.151689385 +0530
@@ -31,7 +31,7 @@
# Should laptop mode tools control the CPU frequency settings?
#
# Set to 0 to disable
-CONTROL_CPU_FREQUENCY=1
+CONTROL_CPU_FREQUENCY="auto"
#
@@ -50,15 +50,15 @@
#
BATT_CPU_MAXFREQ=fastest
BATT_CPU_MINFREQ=slowest
-BATT_CPU_GOVERNOR=auto
+BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
-LM_AC_CPU_GOVERNOR=auto
+LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
-NOLM_AC_CPU_GOVERNOR=auto
+NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0
@@ -75,7 +75,7 @@
# On most new processors, you might want to disable it.
#
# Set to 0 to disable.
-CONTROL_CPU_THROTTLING=1
+CONTROL_CPU_THROTTLING=0
#
|
Code: | /etc/laptop-mode/conf.d # diff -u nouveau.conf nouveau.conf.old
--- nouveau.conf 2025-02-08 23:03:11.041514576 +0530
+++ nouveau.conf.old 2025-01-26 22:35:53.467792489 +0530
@@ -21,7 +21,7 @@
# Requires debugfs mounted
# Set to 0 to disable.
#
-CONTROL_NOUVEAU=1
+CONTROL_NOUVEAU="auto"
# If your system has the control file located at another point
# configure it here
@@ -35,6 +35,6 @@
# AUTO is for set maximum
BATT_NOUVEAU="07"
-LM_AC_NOUVEAU="0f"
-NOLM_AC_NOUVEAU="AUTO"
+LM_AC_NOUVEAU="07"
+NOLM_AC_NOUVEAU="07"
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|