blob: 56d6fa2e23688f0a49b1e0b5bb74d76cc9b2b2e8 [file] [log] [blame]
Mauro Carvalho Chehabcf566e12019-04-10 06:56:25 -03001Video Output Switcher Control
2~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yu Lumingb03637b2006-12-19 12:56:18 -08003
Mauro Carvalho Chehabcf566e12019-04-10 06:56:25 -030042006 luming.yu@intel.com
Yu Lumingb03637b2006-12-19 12:56:18 -08005
6The output sysfs class driver provides an abstract video output layer that
7can be used to hook platform specific methods to enable/disable video output
8device through common sysfs interface. For example, on my IBM ThinkPad T42
9laptop, The ACPI video driver registered its output devices and read/write
Mauro Carvalho Chehabcf566e12019-04-10 06:56:25 -030010method for 'state' with output sysfs class. The user interface under sysfs is::
Yu Lumingb03637b2006-12-19 12:56:18 -080011
Mauro Carvalho Chehabcf566e12019-04-10 06:56:25 -030012 linux:/sys/class/video_output # tree .
13 .
14 |-- CRT0
15 | |-- device -> ../../../devices/pci0000:00/0000:00:01.0
16 | |-- state
17 | |-- subsystem -> ../../../class/video_output
18 | `-- uevent
19 |-- DVI0
20 | |-- device -> ../../../devices/pci0000:00/0000:00:01.0
21 | |-- state
22 | |-- subsystem -> ../../../class/video_output
23 | `-- uevent
24 |-- LCD0
25 | |-- device -> ../../../devices/pci0000:00/0000:00:01.0
26 | |-- state
27 | |-- subsystem -> ../../../class/video_output
28 | `-- uevent
29 `-- TV0
30 |-- device -> ../../../devices/pci0000:00/0000:00:01.0
31 |-- state
32 |-- subsystem -> ../../../class/video_output
33 `-- uevent
Yu Lumingb03637b2006-12-19 12:56:18 -080034