toggle radeontool [was Re: [ltp] ACPI on T40]

Henrik Brix Andersen linux-thinkpad@linux-thinkpad.org
Thu, 02 Sep 2004 15:53:15 +0200


Hi,

On Thu, 2004-09-02 at 00:49, Brian P. Flaherty wrote:
> I think this will work, but it seems like a sloppy way to do it.  I am
> sure there are better ways to do it and I hope someone here will tell
> me.

I use the following:

    if [ -n "`radeontool light | grep \"looks on\"`" ]; then
        radeontool light off
    else
        radeontool light on
    fi

Sincerely,
Brix
-- 
Henrik Brix Andersen <brix@gimp.org>