视频输出切换器控制

2006 luming.yu@intel.com

输出 sysfs 类驱动程序提供了一个抽象的视频输出层,可用于连接平台特定的方法,以通过通用的 sysfs 接口启用/禁用视频输出设备。例如,在我的 IBM ThinkPad T42 笔记本电脑上,ACPI 视频驱动程序注册了其输出设备,并通过输出 sysfs 类读取/写入“状态”的方法。sysfs 下的用户界面是

linux:/sys/class/video_output # tree .
.
|-- CRT0
|   |-- device -> ../../../devices/pci0000:00/0000:00:01.0
|   |-- state
|   |-- subsystem -> ../../../class/video_output
|   `-- uevent
|-- DVI0
|   |-- device -> ../../../devices/pci0000:00/0000:00:01.0
|   |-- state
|   |-- subsystem -> ../../../class/video_output
|   `-- uevent
|-- LCD0
|   |-- device -> ../../../devices/pci0000:00/0000:00:01.0
|   |-- state
|   |-- subsystem -> ../../../class/video_output
|   `-- uevent
`-- TV0
   |-- device -> ../../../devices/pci0000:00/0000:00:01.0
   |-- state
   |-- subsystem -> ../../../class/video_output
   `-- uevent