[ltp] Re: X31 backlight [was: No power source after hibernation]

Henrik Brix Andersen linux-thinkpad@linux-thinkpad.org
Sat, 27 Nov 2004 20:08:58 +0100


--=-ScilU62JZUMiJN9ksDyY
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2004-11-27 at 19:33 +0100, Johannes Wolter wrote:
> I got the radeontool and it works for switching the backlight off. But wh=
en=20
> I'm switching to suspend state (S3 =3D suspend to RAM) the backlight turn=
s on=20
> again. I tried it with kernel 2.6.8 and with kernel 2.6.9 (including acpi=
 &=20
> swsusp2 patches).

In order for it to work correctly you need to
a) switch to a non-X11 virtual console
b) turn off the LCD using radeontool
c) activate suspend-to-ram

The following works for me:

        VT=3D`fgconsole`
        chvt 1
        radeontool light off
        echo -n mem > /sys/power/state
        radeontool light on
        chvt $VT

You might want to check out my custom X31 ACPI event handler for
inspiration: http://dev.gentoo.org/~brix/files/x31.sh

Sincerely,
./Brix
--=20
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Linux

--=-ScilU62JZUMiJN9ksDyY
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBqNDKv+Q4flTiePgRAmGzAKCrs1eIRIqwV3rKcezTQcRPE1UWOwCcCeH/
z4kTwI6NfY/cZEMdmJ6AoJE=
=fvgR
-----END PGP SIGNATURE-----

--=-ScilU62JZUMiJN9ksDyY--