You are not logged in.
Pages: 1
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
Running the following seems to have fixed it.
sudo sh -c "command"
Offline
Pages: 1