You are not logged in.
Pages: 1
Hi
I noticed in logs, many errors, I got fresh Arch install with openbox and few packages within laptop-mode-tools
/usr/lib/pm-utils/power.d/journal-commit false: success.
Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
Laptop mode disabled.
/usr/lib/pm-utils/power.d/laptop-mode false: success.
Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:
/usr/lib/pm-utils/power.d/pcie_aspm: line 9: echo: write error: Operation not permittedIts says (to my mind
) laptop-mode is disabled I tried reinstall this pm-utils etc, but no effects
Does something else need to be configured to run laptop-mode properly ?
Greetings
Offline
Not a Sysadmin issue, moving to Laptop Issues...
Offline
First, do you need pm-utils? If not, try uninstalling it.
If you need it, try masking its files by creating empty files with matching names under /etc/pm/power.d. For example, I do need it because I use KDE and I have:
$ l /etc/pm/power.d/
drwxr-xr-x 2 root root 4.0K Med 3 2012 ./
drwxr-xr-x 6 root root 4.0K Med 21 2012 ../
-rw-r--r-- 1 root root 0 Med 3 2012 cpupower
-rw-r--r-- 1 root root 0 Rha 19 2011 hal-cd-polling
-rw-r--r-- 1 root root 0 Rha 19 2011 intel-audio-powersave
-rw-r--r-- 1 root root 0 Rha 19 2011 journal-commit
-rw-r--r-- 1 root root 0 Rha 19 2011 laptop-mode
-rw-r--r-- 1 root root 0 Rha 19 2011 pcie_aspm
-rw-r--r-- 1 root root 0 Rha 19 2011 readahead
-rw-r--r-- 1 root root 0 Rha 19 2011 sata_alpm
-rw-r--r-- 1 root root 0 Rha 19 2011 sched-powersave
-rw-r--r-- 1 root root 0 Rha 19 2011 wireless
-rw-r--r-- 1 root root 0 Rha 19 2011 xfs_bufferYou also, of course, need to configure laptop-mode-tools and enable the systemd service.
Last edited by cfr (2013-08-24 23:41:06)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thanks for quick reply, so "upower: requires pm-utils" laptop-mode-tools config file looks fine and I enabled it by 'systemctl enable laptop-mode.service'
I created empty files almost the same result
/etc/pm/power.d/cpupower false: success.
Running hook /etc/pm/power.d/hal-cd-polling false:
/etc/pm/power.d/hal-cd-polling false: success.
Running hook /etc/pm/power.d/intel-audio-powersave false:
/etc/pm/power.d/intel-audio-powersave false: success.
Running hook /etc/pm/power.d/journal-commit false:
/etc/pm/power.d/journal-commit false: success.
Running hook /etc/pm/power.d/laptop-mode false:
/etc/pm/power.d/laptop-mode false: success.
Running hook /etc/pm/power.d/pcie_aspm false:
/etc/pm/power.d/pcie_aspm false: success.
Running hook /etc/pm/power.d/readahead false:
/etc/pm/power.d/readahead false: success.
Running hook /etc/pm/power.d/sata_alpm false:
/etc/pm/power.d/sata_alpm false: success.
Running hook /etc/pm/power.d/sched-powersave false:
/etc/pm/power.d/sched-powersave false: success.
Running hook /etc/pm/power.d/wireless false:
/etc/pm/power.d/wireless false: success.
Running hook /etc/pm/power.d/xfs_buffer false:
/etc/pm/power.d/xfs_buffer false: success.Last edited by chosen (2013-08-25 00:01:15)
Offline
Sorry. I'm confused. That looks like /var/log/pm-powersave.log. Is it?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Yes it is pm-powersave.log, I am sorry that I have not admitted that earlier,
I fixed almost every error msg, by coping default files I mean this
cp -R /lib/pm-utils/power.d /etc/pm-utils/power.dbut now noticed this
/usr/share/laptop-mode-tools/modules/pcie-aspm: line 10: echo: write error: Operation not permitted Failed.Last edited by chosen (2013-08-25 00:37:10)
Offline
OK. I'm not seeing the problem. What are you trying to achieve? Or what problem are you trying to solve? I'm probably being dense but that all looks pretty innocuous.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I try to use all these powersaving things to achive the lowest temperature of my notebook
my notebook while idle gets over 60*C, on debian has only 45*C so I wanted to eliminate all impolite errors ;p
Last edited by chosen (2013-08-25 00:47:56)
Offline
upower doesn't actually have to depend on pm-utils. Sure if you are using the provided package from [extra] it does. But you can fix it (build the package yourself) to not depend on it at all. The package in [testing] is now built this way. I'm not saying that you should use [testing], and in fact you probably shouldn't. But pm-utils is old a crufty and tries to solve issues that don't really exist any longer. So disabling as much of it as possible, while you wait for it to be dropped is probably a good idea. I particularly like what cfr has done by making all the relevant scripts that pm-utils tries to run.
Offline
For power saving with laptop-mode-tools, you need to go through /etc/laptop-mode/conf.d as well as /etc/laptop-mode/laptop-mode.conf. You can also use the profiler but you still need to go through conf.d systematically. By default, anything considered potentially problematic is disabled so you need to enable a lot of stuff. Moreover, if you are on AC, different config is applied by default than if you are battery. There is also a distinction between AC with LM enabled and AC with LM disabled. The wiki has more information but so do the individual config files. I just worked through them systematically.
EDIT: Anyone know if it is safe to mask the sleep.d script pm-utils installs as well? Right now I apparently mask grub and clock and add something for alsa, but the rest run default. (Only the power.d ones are comprehensively masked.)
Last edited by cfr (2013-08-25 01:09:50)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pages: 1