[Bug 557772] [NEW] macbook pro accelerometer axes are swapped
Brandon Bell
launchpad at netvenger.com
Thu Apr 8 02:30:15 UTC 2010
Public bug reported:
At least two axes of the accelerometer seem to be flipped on my MacBook
Pro 5,3 in Karmic (2.6.31-20).
Here is the output of /sys/devices/platform/applesmc.768/position for
each of the indicated orientations (the label indicates which edge/face
of the notebook is facing towards the sky and is in respect to the base
of the notebook since I believe that is where the accelerometer is
located):
(-253,-2,-18) Back
(262,-2,-5) Front
(-3,254,-53) Left
(-21,-251,-15) Right
(-11,3,-254) Top/Keyboard
(-7,2,260) Bottom
The axes seem to be in the order Y,X,Z when I believe they should be
X,Y,Z. And one may be inverted.
This was tested with Neverball and Extreme Tux Racer. In each game,
here are the results I observe:
Raising the left side of the notebook gives the results I would expect
from raising the rear (hinge-area) of the notebook, and vice versa. I'm
not sure if the Z (top/bottom) axis is mixed into the equation or not.
There do not seem to be any options to the applesmc kernel module, so I
am not sure if this is configurable or not.
ProblemType: Bug
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: HDA Generic [HDA Generic]
Subdevices: 1/1
Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: HDA Generic [HDA Generic]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: bbell 2005 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'NVidia'/'HDA NVidia at 0xe7480000 irq 22'
Mixer name : 'Generic 1013 ID 4206'
Components : 'HDA:10134206,106b4b00,00100301'
Controls : 5
Simple ctrls : 3
Date: Wed Apr 7 20:39:01 2010
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=879e0cc5-a003-4433-a3ec-39044c1cef68
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
MachineType: Apple Inc. MacBookPro5,3
NonfreeKernelModules: nvidia wl
Package: linux-image-2.6.31-20-generic 2.6.31-20.58
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-20-generic root=UUID=19c1a24a-d4cf-4dfd-903f-5b2dcab6b898 ro quiet splash
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
RelatedPackageVersions:
linux-backports-modules-2.6.31-20-generic N/A
linux-firmware 1.26
RfKill:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
SourcePackage: linux
Uname: Linux 2.6.31-20-generic i686
dmi.bios.date: 06/15/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP53.88Z.00AC.B03.0906151647
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F22587C8
dmi.board.vendor: Apple Inc.
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F22587C8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP53.88Z.00AC.B03.0906151647:bd06/15/09:svnAppleInc.:pnMacBookPro5,3:pvr1.0:rvnAppleInc.:rnMac-F22587C8:rvr:cvnAppleInc.:ct10:cvrMac-F22587C8:
dmi.product.name: MacBookPro5,3
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Tags: accelerometer apport-bug axes i386 macbook
--
macbook pro accelerometer axes are swapped
https://bugs.launchpad.net/bugs/557772
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
More information about the kernel-bugs
mailing list