[RFC] [PATCH weston v2] Allow output configuration from config file.

2012-07-30 Thread Scott Moreau
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

RE: bug fix inactive encoder when weston restart

2012-07-30 Thread Wang, Quanxian
Thanks for your review and your changes. > -Original Message- > From: Kristian Høgsberg [mailto:hoegsb...@gmail.com] > Sent: Tuesday, July 31, 2012 6:15 AM > To: Wang, Quanxian > Cc: wayland-devel@lists.freedesktop.org > Subject: Re: bug fix inactive encoder when weston restart > > On Thu

RE: mode issue about no EDID and first mode when weston start

2012-07-30 Thread Wang, Quanxian
Ok, if we don't use builtin mode in weston. That is fine. In this case, I supposed to provide some useful error output to user instead of core dump weston. Another case is if we don't get active mode from current connector, and at the same time EDID mode information from KMS is available. In th

Re: [RFC] [PATCH weston] Allow output configuration from config file.

2012-07-30 Thread Kristian Høgsberg
On Mon, Jul 30, 2012 at 05:55:12PM -0600, Scott Moreau wrote: > 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

[RFC] [PATCH weston] Allow output configuration from config file.

2012-07-30 Thread Scott Moreau
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, e.g. 1280x1024 2) off - Disables the output 3)

Re: bug fix inactive encoder when weston restart

2012-07-30 Thread Kristian Høgsberg
On Thu, Jul 26, 2012 at 08:03:26PM +, Wang, Quanxian wrote: > Hi, All > > Please help review the patch. > > Thanks > > Background: > If we use 'pkill -9 weston', when restart weston, weston could not get the > active encoder attached on connector and exit abnormally. > This is because when

Re: mode issue about no EDID and first mode when weston start

2012-07-30 Thread Kristian Høgsberg
On Thu, Jul 26, 2012 at 07:54:45PM +, Wang, Quanxian wrote: > Hi, All > > Help review. > > Background > > 1) Some platforms has no EDID mode information. Therefore when KMS > initializes the driver, there will be no mode provided for user. At > that time, have to use the fixed mode defined by

Re: [PATCH weston] compositor: do clean-up on init failure

2012-07-30 Thread Kristian Høgsberg
On Mon, Jul 30, 2012 at 04:56:57PM +0300, Pekka Paalanen wrote: > Simply exit(1)'ing the program will leave the VT unusable, since > DRM backend's clean-up does not run. > > After a backend has been initialised, prefer jumping to clean-up instead > of directly exiting. > > This fixes the case whe

Re: [PATCH weston] simple-egl: Add keyboard fullscreen toggle

2012-07-30 Thread Kristian Høgsberg
On Fri, Jul 27, 2012 at 05:18:13PM +0300, Ander Conselvan de Oliveira wrote: > Make simple-egl toggle the fullscreen state whenever the key F11 is > pressed. A sync callback is used to stop drawing while the surface has > not received the configure event, to prevent a buffer with the windowed > siz

[PATCH weston] compositor: do clean-up on init failure

2012-07-30 Thread Pekka Paalanen
Simply exit(1)'ing the program will leave the VT unusable, since DRM backend's clean-up does not run. After a backend has been initialised, prefer jumping to clean-up instead of directly exiting. This fixes the case where 'weston-launch -- -i 5' would leave the console unusable. Signed-off-by: P