From: Jesse Barnes Subject: Re: [RFC] drm: emit change events when mode config changes Date: Fri, 15 Apr 2011 09:09:07 -0700 Message-ID: <20110415090907.47003cf2@jbarnes-desktop> References: <20110414104226.4ee49e06@jbarnes-vaio.home> <4DA854EA.8010701@jbandy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4DA854EA.8010701@jbandy.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Chris Bandy Cc: dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org 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. 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel