Detecting if display is powered on or not
alexdeucher at gmail.com
Sun Oct 17 12:25:09 PDT 2010
On Sun, Oct 17, 2010 at 9:07 AM, Pasi Kärkkäinen <pasik at iki.fi> wrote:
> While I was discussing the laptop lid/dock issues with Fedora
> people this issue was brought up.
> How do you determine if a display is actually powered on or not?
> - Laptop in a docking station, lid open, so internal LVDS enabled.
> - External DVI display connected, but powered off.
> So in this case the external display shouldn't be used, since it's off.
> What happens is this:
> # cat /sys/class/drm/card0-DVI-D-1/status
> # cat /sys/class/drm/card0-DVI-D-1/enabled
> # cat /sys/class/drm/card0-DVI-D-1/modes
> So it *looks* like it's enabled and active, but actually it's powered off.
> Is there a method to determine the actual state?
Unfortunately not. Monitors are designed to keep the EDID powered up
even if the monitor is powered off so that graphics chips can detect
that something is attached. There's no way to know whether the
monitor is on of off however.
> That is pretty important information for the daemon/tool/script implementing
> the "policy" of which outputs to enable/disable..
> -- Pasi
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
More information about the dri-devel