Re: [RFC] drm: emit change events when mode config changes

2011-04-16 Thread Chris Bandy
On 04/14/2011 12:42 PM, Jesse Barnes wrote: > We've already seen that apps want to monitor the display config, and > some (like upowerd) poll for changes since we don't provide a > notification for general mode config changes, just hotplug events. So > add a new drm event, with CHANGE=1 set in the

Re: [RFC] drm: emit change events when mode config changes

2011-04-15 Thread Adam Jackson
On 4/14/11 1:42 PM, Jesse Barnes wrote: > We've already seen that apps want to monitor the display config, and > some (like upowerd) poll for changes since we don't provide a > notification for general mode config changes, just hotplug events. So > add a new drm event, with CHANGE=1 set in the eve

Re: [RFC] drm: emit change events when mode config changes

2011-04-15 Thread Jesse Barnes
On Fri, 15 Apr 2011 09:23:38 -0500 Chris Bandy wrote: > On 04/14/2011 12:42 PM, Jesse Barnes wrote: > > /** > > + * drm_sysfs_change_event - generate a DRM uevent indicating a display > > config change > > + * @dev: DRM device > > + * > > + * Send a uevent for the DRM device specified by @dev.

[RFC] drm: emit change events when mode config changes

2011-04-14 Thread Jesse Barnes
We've already seen that apps want to monitor the display config, and some (like upowerd) poll for changes since we don't provide a notification for general mode config changes, just hotplug events. So add a new drm event, with CHANGE=1 set in the event, to allow for it. Signed-off-by: Jesse Barne