-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Adam Jackson wrote:
> On Mon, 2007-05-21 at 20:29 +0200, Flyser wrote:
>> As I use the DRI extension of X.org from time to time, I was wondering
>> if it is possible to disable it, when on battery. But think neither X
>> nor fglrx does support it, thats why I created a "mobile" runlevel, now
>> I was wondering I it is possible to let X.org check if the system is in
>> this runlevel and disable dri in this case. This requires X to restart,
>> but better than nothing ;)

you may put lines alternating the xorg.conf into the acpi control
together with some modprobes and rmmods,
that should do.

If you even switch runlevels you don't even have to understand your
acpi... I switch disk states on AC events like this:

#!/bin/bash
# /etc/acpi/actions/batt_ac-switch.sh
## andrem 2005-0-09
## switch auf batteriebetrieb

STATE_AC="default"
STATE_BATTERY="longrun"

help=`id`;
if on_ac_power
then
    logger "andrem: Switching to ${STATE_AC} state, id: $help"
    /usr/local/sbin/perf_default
  else
    logger "andrem: Switching to ${STATE_BATTERY} state, id: $help"
    /usr/local/sbin/perf_longrun
  fi

restarting X by this trigger may be a bad idea, though :-)

Best,

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

iD8DBQFGUhJJhYOgL/M0VS0RCtd1AJ9CTQiaKbRHAZdUAA1eWBFk6U2eIQCbBY9J
TocF8cLKbVg4vi1lqEEsu1w=
=U8vZ
-----END PGP SIGNATURE-----
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to