Allow output configuration from config file.
authorScott Moreau <oreaus@gmail.com>
Tue, 31 Jul 2012 01:51:08 +0000 (19:51 -0600)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 31 Jul 2012 01:56:13 +0000 (21:56 -0400)
commit8ab5d4539911ba186f6f0aeb74697609c3b7d238
tree17f4d40cc84b572a9773b26d04536148e79bd2b3
parentacb805a3565d4473d112e5176e9ca4fba6548642
Allow output configuration from config file.

Parse the config file for [output] sections and check for 'name'
and 'mode' keys. The key strings are compared to what is reported
by weston log. The 'mode' key string can be one of the following:

1) WIDTHxHEIGHT - one that is reported by weston log
2) off - Disables the output
3) preferred - Uses the preferred mode
4) current - Uses the mode currently driving the crtc
src/compositor-drm.c
weston.ini