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

Jesse Barnes jbarnes at virtuousgeek.org
Fri Apr 15 09:09:07 PDT 2011


On Fri, 15 Apr 2011 09:23:38 -0500
Chris Bandy <cbandy at jbandy.com> 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.  Set CHANGE=1 to
> > + * indicate that a userspace initiated display configuration change occurred.
> > + */
> > +void drm_sysfs_change_event(struct drm_device *dev)
> > +{
> > +	char *event_string = "CHANGE=1";
> > +	char *envp[] = { event_string, NULL };
> > +
> > +	DRM_DEBUG("generating hotplug event\n");
> 
> Should be "change event" here?

Yeah, I noticed after I sent it out, I think I'll just drop the
DRM_DEBUG altogether though.

-- 
Jesse Barnes, Intel Open Source Technology Center

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


More information about the dri-devel mailing list