[ltp] tpb and acpi on startup

Christopher Sawtell linux-thinkpad@linux-thinkpad.org
Wed, 03 May 2006 10:38:45 +1200


On Wednesday 03 May 2006 07:52, Ken Schutte wrote:
> Hi,
>
> I've got several things working on my X40 with FC4, which is great.
> However, each time I reboot, I have to run the following (as root):
>
> # tpb --osd=on -d
> # echo auto_disable >/proc/acpi/ibm/video
>
> Could anyone tell me how to have this done automatically on startup?
>
> (maybe this is sort of off-topic general question of running some
> startup script as root at the right time... I tried some things with
> /etc/rc.sysinit, but no luck).
All distributions offer a rc.local ( or somesuch similar name ) most 
probably somewhere in the /etc tree. It's used to allow you to do what you 
want. You can find it using the find command.

find /etc/ -name '*local*' 

There will probably be two files: one executed on boot-up; the other on 
shutdown. Use your editor of choice to edit it|them.

-- 
CS