Skip to contentSkip to conversation

Detecting if display is powered on or not

DISCUSSION Pasi Kärkkäinen 2 participants 4 messages Oct 17, 2010 – Oct 20, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

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?

Scenario:
- 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 
connected
# cat /sys/class/drm/card0-DVI-D-1/enabled 
enabled
# cat /sys/class/drm/card0-DVI-D-1/modes
1920x1080
1600x1200
1680x1050
1280x1024
1440x900
1280x960
1280x800
1024x768
800x600
800x600
640x480

So it *looks* like it's enabled and active, but actually it's powered off. Is there a method to determine the actual state?

That is pretty important information for the daemon/tool/script implementing the "policy" of which outputs to enable/disable..

Thanks!

-- Pasi

#1 lore raw
Quoted 34 lines · Pasi Kärkkäinen

Hello,

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?

Scenario:
- 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
connected
# cat /sys/class/drm/card0-DVI-D-1/enabled
enabled
# cat /sys/class/drm/card0-DVI-D-1/modes
1920x1080
1600x1200
1680x1050
1280x1024
1440x900
1280x960
1280x800
1024x768
800x600
800x600
640x480
Quoted 3 lines

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.

Alex

Quoted 12 lines

That is pretty important information for the daemon/tool/script implementing the "policy" of which outputs to enable/disable..

Thanks!

-- Pasi

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 35 lines · Alex Deucher
Quoted 34 lines · Pasi Kärkkäinen

Hello,

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?

Scenario:
- 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
connected
# cat /sys/class/drm/card0-DVI-D-1/enabled
enabled
# cat /sys/class/drm/card0-DVI-D-1/modes
1920x1080
1600x1200
1680x1050
1280x1024
1440x900
1280x960
1280x800
1024x768
800x600
800x600
640x480
Quoted 9 lines
Quoted 3 lines

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.

Ok. Understood.

And there are no other protocols that would reply only when the monitor is actually on? :)

-- Pasi

Quoted 18 lines

Alex

Quoted 12 lines

That is pretty important information for the daemon/tool/script implementing the "policy" of which outputs to enable/disable..

Thanks!

-- Pasi

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 46 lines · Pasi Kärkkäinen
Quoted 35 lines · Alex Deucher
Quoted 34 lines · Pasi Kärkkäinen

Hello,

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?

Scenario:
- 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
connected
# cat /sys/class/drm/card0-DVI-D-1/enabled
enabled
# cat /sys/class/drm/card0-DVI-D-1/modes
1920x1080
1600x1200
1680x1050
1280x1024
1440x900
1280x960
1280x800
1024x768
800x600
800x600
640x480
Quoted 9 lines
Quoted 3 lines

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.

Quoted 3 lines

Ok. Understood.

And there are no other protocols that would reply only when the monitor is actually on? :)

Nope.

Alex

Quoted 22 lines

-- Pasi

Quoted 18 lines

Alex

Quoted 12 lines

That is pretty important information for the daemon/tool/script implementing the "policy" of which outputs to enable/disable..

Thanks!

-- Pasi

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel