Add Rotate support to a driver

Éric Piel E.A.B.Piel at tudelft.nl
Wed May 12 02:52:34 PDT 2010


Op 12-05-10 07:39, yoni dana schreef:
> Hi
> i have implemented and X11 input driver,
> i need to add support to screen rotation,
> My questions is
> How can i detect screen rotation occurred
> (For Example i use xrandr -o left )
I think you can do this in a X client which listens to the
XRRScreenChangeNotify event on the root window. See the Xrandr(3) man
page for more info. Then, your client can request a change of
orientation to the input via an input property.

Eric



More information about the xorg mailing list