[ltp] trackpoint: 2.6.12 kernel patched, cannot echo to files
Kamesh Madduri
linux-thinkpad@linux-thinkpad.org
Sun, 30 Oct 2005 08:35:55 -0700
Tha worked. Thanks!
- Kamesh
On Sun, 30 Oct 2005 17:28:22 +0200, Marius Gedminas wrote
> On Sun, Oct 30, 2005 at 07:53:37AM -0700, Kamesh Madduri wrote:
> > Now when I do
> > # sudo echo -n 1 > /sys/devices/platform/i8042/serio0/serio2/press_to_select
> >
> > I get
> > bash: /sys/devices/platform/i8042/serio0/serio2/press_to_select: Permission
> > denied
>
> That's because bash tries to redirect the output of 'sudo echo' to
> the /sys/... file, but since bash runs without elevated privileges,
> it cannot do so.
>
> > Help me!
>
> Do instead
>
> echo -n 1 |sudo tee /sys/devices/platform/i8042/serio0/serio2/press_to_select
>
> or
>
> sudo sh -c 'echo -n 1 >
/sys/devices/platform/i8042/serio0/serio2/press_to_select'
>
> or
>
> $ sudo -s
> # echo -n 1 >/sys/devices/platform/i8042/serio0/serio2/press_to_select
> # exit
> $
>
> whichever is easier to remember.
>
> Marius Gedminas
> --
> Computers are not intelligent. They only think they are.