You are not logged in.

#1 2009-02-27 20:44:27

leokent
Member
From: UK
Registered: 2009-02-12
Posts: 11
Website

Problem with pm-utils power.d script

I have set acpid up such that when when the power is plugged/unplugged pm-powersave [{true|false}] is called, this then runs scripts in /etc/pm/power.d/. That all works fine, however if I add the following to my script it does not work...

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

It seems that if one tries to run the above command using sudo, a permission denies error is given. The only way to run it successfully is to login as full root. So I am presuming that the power.d scripts are not being run by full root.

Is there anyway I can fix this problem?

Offline

#2 2009-02-27 20:58:46

leokent
Member
From: UK
Registered: 2009-02-12
Posts: 11
Website

Re: Problem with pm-utils power.d script

Running the following seems to have fixed it.

sudo sh -c "command"

Offline

Board footer

Powered by FluxBB