Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756425Ab1FFRxx (ORCPT ); Mon, 6 Jun 2011 13:53:53 -0400 Received: from slow3-v.mail.gandi.net ([217.70.178.89]:37900 "EHLO slow3-v.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755585Ab1FFRxu (ORCPT ); Mon, 6 Jun 2011 13:53:50 -0400 X-WhiteListed: mail was accepted with no delay X-WhiteListed: mail was accepted with no delay X-Originating-IP: 217.70.178.134 X-Originating-IP: 94.192.232.89 Subject: Re: Reporting screen/laptop orientation data to userspace From: Bastien Nocera To: Mohamed Ikbel Boulabiar Cc: Alberto Mardegan , linux-kernel@vger.kernel.org, "Javier S. Pedro" , linux-input@vger.kernel.org Date: Mon, 06 Jun 2011 18:53:19 +0100 In-Reply-To: References: <4DE1FA7F.3050308@users.sourceforge.net> <1307116529.2669.130.camel@novo.hadess.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.0.1 (3.0.1-1.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1307382801.2669.150.camel@novo.hadess.net> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 21 On Sat, 2011-06-04 at 19:13 +0200, Mohamed Ikbel Boulabiar wrote: > On Fri, Jun 3, 2011 at 5:55 PM, Bastien Nocera wrote: > > > > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/