On Tue, Feb 17, 2009 at 04:14:49PM -0000, Olivier Bilodeau wrote: > What I meant is what happen if you do:
> sudo echo 15 > /proc/acpi/video/VGA/LCDD/brightness > sudo echo 5 > /proc/acpi/video/VGA/LCDD/brightness
What happens is that you'll get a permissions failure, because the redirection (> /proc...) is handled by the parent shell, not by sudo. ;)
You need:
sudo -s echo 15 > /proc/acpi/video/VGA/LCDD/brightness echo 5 > /proc/acpi/video/VGA/LCDD/brightness exit
-- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ <email address hidden> <email address hidden>
On Tue, Feb 17, 2009 at 04:14:49PM -0000, Olivier Bilodeau wrote:
> What I meant is what happen if you do:
> sudo echo 15 > /proc/acpi/ video/VGA/ LCDD/brightness video/VGA/ LCDD/brightness
> sudo echo 5 > /proc/acpi/
What happens is that you'll get a permissions failure, because the
redirection (> /proc...) is handled by the parent shell, not by sudo. ;)
You need:
sudo -s video/VGA/ LCDD/brightness video/VGA/ LCDD/brightness
echo 15 > /proc/acpi/
echo 5 > /proc/acpi/
exit
-- www.debian. org/
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://
<email address hidden> <email address hidden>