Re: Reporting screen/laptop orientation data to userspace
From: Bastien Nocera <hadess@hadess.net>
Date: 2011-06-06 17:53:53
Also in:
lkml
From: Bastien Nocera <hadess@hadess.net>
Date: 2011-06-06 17:53:53
Also in:
lkml
On Sat, 2011-06-04 at 19:13 +0200, Mohamed Ikbel Boulabiar wrote:
On Fri, Jun 3, 2011 at 5:55 PM, Bastien Nocera [off-list ref] wrote:quoted
As soon as it's seen some testing, I'll be showing the work I did for GNOME support for automatic rotation based on orientation.And how you handle these events through X ?
As I mentioned to Alberto, and following on from the upstream push to udev, the only thing the code does is look for uevents coming from ID_INPUT_ACCELEROMETER=1 devices, and read the value of ID_INPUT_ACCELEROMETER_ORIENTATION. Certainly much easier than my previous attempts at using X to read the values from a floating device.