Screen Resolution

Marty Jack martyj19 at comcast.net
Fri Apr 1 01:43:06 PDT 2011



On 04/01/2011 04:18 AM, ankur jain wrote:
> Hi all,
> 
> Could someone please tell me how to get a notification when the screen resolution is changed in linux??
> 
> Regards,
> Samyak
> 
> 
> 
> _______________________________________________
> xorg at lists.freedesktop.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> Your subscription address: martyj19 at comcast.net

man 3 xrandr

XRRQueryExtension to get the event code
and process the XrrScreenChangeNotifyEvent and XrrNotify events.

If you are using a higher level toolkit they will emit a signal when this happens.



More information about the xorg mailing list