[DEV] Proximity and gyroscope sensors path - Nexus 6P Q&A, Help & Troubleshooting

Hi,
Does someone knows what is the path to get readings from this sensors?
I've been looking in /sys but can not seem to find any
best regards

Finger print sensor path would be good as well. Maybe we can port the pixel notification scrolling

Perhaps if you do an strace on the native calibration binary it will tell you what paths the sensors are located on. See for details:
http://forum.xda-developers.com/nexus-6p/help/formatted-nexus-6p-persist-partition-t3453035
http://elinux.org/Android_Tools#strace
"Sensor readout" on the google play store recognizes the 6P sensors, but doesn't show any path information in the app. Dev probably could help with that, or for that matter decompling the app source code if not obfuscated.

Related

sensor permissions

hi,
Im messing around with sensor managers and sensor listeners. I seem to be having an issue getting the data to output to my activity. The app compiles fine but once it launches the textviews that are supposed to show data for orientation (X, Y, and Z) all display "false"
Anyone have anyone have any idea whats happening?
Can we assume you are not running this in the emulator?
Sorry I left that out, but that is correct. I'm running it on my Moto Droid. Also my target api lvl is 7.

[Q] inertial sensors

According to the kernel drivers Nexus S has a "k3g" gyroscope and "kr3dm" accelerometer both of which is produced by ST.
However, I could not find any sensor with the corresponding names in the ST's website. I believe ST just labels its sensors produced for Samsung with different names?
Does anyone know the ST designated real model/part number of these sensors? I need the spec sheets of these sensors.
Try here

Adam accelerometer values Test, we need a fix

Adam accelerometer values Test
I and many other have noticed that the Adams accelerometer is not working as it should. So I ran an app on it called "Accelerometer values" which plots the devices X,Y AND Z values on a panel of graphs. I also ran this on my Droid X with exact same settings, and in the same orientaion.
Using the Droid as a control, of which I know the values are set correctly. I compared to the two. And this is what I found.
Settings in portriate orientation
1."Relative to the control", the adams X & Y axis are swaped. (x is y, y is x)
2. "^", The Y axis on Adam(X on Droid) displays the same numeric value as the control when tilted in the same direction. example Adam 5.0, control 5.0
3. "^", The X axis on Adam(Y on Droid) displays opposite numeric values as the control
when tilted in the same direction. example Adam -5.0, control 5.0
4. "^", The Z axis are the same on both.
Results with settings in landscape orientation are the same.
Hopefully a dev can fix this, but this confirms that the Adams accelerometer is not set properly.
Yes, i meet the same problem when i play any games with accelerometer... hope someone can help to fix it.
Hopefully there will be a way to relay this info to NI.
Perhaps a repost to TINA on NIA or RISHI on NIH
-CC
EDIT: In talking about this in IRC, it was mentioned that it seems the apps are using the values incorrectly, and some apps have been fixed.. So it may not be a Adam issue.
labyrinth Games prooves your points. Adams is using wrong values. Someone please fix this issue.
My point is that weither the device in question is set to run in portrait(phone) or landscape( most tablets) shouldnt nessesitate a change in the way the accelerometer works. Seeing as most apps for android work in portrait and landscape perfectly fine on phones, then why the HELL would one change the accelerometer settings on tablets. Even the Xoom aparently is having this kind of problem, and most other large android tablets.
There has got to be a way to port/change these settings. Maybe isolating what we need from another rom. Unless this is a hardware issue and accelerometer itself is positioned differently or something stupid like that.
the ony way to fix is by settiny ur calibration to the settings u want try diif position and calibrate , see if it works

[APP][YotaPhone2]Yota Compass 1.0.0

Introduction
Here is my contribution to this awesome device and community. This is a compass app. Once opened, it displays a full screen compass on the EPD, along with some useful sensor data, such as acceleration, pitch, roll, heading, brightness and battery details. It also has a helpful "bubble", which means it can be used to measure how level a surface is. Check the attachments for screenshots.
The application has been optimized to use minimal amount of power, and all the sensor data has been flipped accordingly to work as the device is upside down. Also, only one permission: access to backscreen. The app has been tested on the latest Lollipop. I don't know if it works on the older KitKat.
Download
You can download the application here: https://www.androidfilehost.com/?fid=24052804347773513
Installation
To install it, you must first enable unkown sources from your settings - security, then download the apk to your device and finally open it using a file manager. The application is launched from the back screen via it's own widget, which you need to add to some small slot from Yotahub.
Future plans
I might add coordinates and altitude in the future, but that will increase the battery use slightly because it requires GPS. Maybe I'll put it behind a setting or something. Feedback is always welcome!
Nice and good working!!
Very good - HeinMueck
My congratulations, very nice app for Yota.
Clipman said:
Introduction
Here is my contribution to this awesome device and community. This is a compass app. Once opened, it displays a full screen compass on the EPD, along with some useful sensor data, such as acceleration, pitch, roll, heading, brightness and battery details. It also has a helpful "bubble", which means it can be used to measure how level a surface is. Check the attachments for screenshots.
The application has been optimized to use minimal amount of power, and all the sensor data has been flipped accordingly to work as the device is upside down. Also, only one permission: access to backscreen. The app has been tested on the latest Lollipop. I don't know if it works on the older KitKat.
Download
You can download the application here: https://www.androidfilehost.com/?fid=24052804347773513
Installation
To install it, you must first enable unkown sources from your settings - security, then download the apk to your device and finally open it using a file manager. The application is launched from the back screen via it's own widget, which you need to add to some small slot from Yotahub.
Future plans
I might add coordinates and altitude in the future, but that will increase the battery use slightly because it requires GPS. Maybe I'll put it behind a setting or something. Feedback is always welcome!
Click to expand...
Click to collapse
Hi there, it was a damn good work of you. Thanks heaps. I downloaded this Apk on my YD201 Chinese origined mobile (with default Kitkat Rom) and cannot find the compass app anywhere. Can you tell me how to access it ?
app not installed
App does not install on the latest android marshmellow which undoubtedly every yotaphone2 user will want to be on

Play Video Based on OnePlus One screen orientation with gyroscope?

I checked XDA and Google, but cannot locate any mods regarding the OnePlus One gyroscope, specifically using the OnePlus One orientation to play video rather than actually rotate the screen.
Typically used for screen orientation, I'm curious if it's possible to mod the OnePlus One to play a video (stored on the phone) when tilted forward, but cease playback once the OnePlus One returns to an upright position, rather than change the screen orientation.
The only Xposed module I could find pertaining to the gyroscope was this post: http://forum.xda-developers.com/xposed/modules/mod-jitterygyrofixforcardboard-t3202149
and this GitHub project: https://github.com/KEOpenSource/GyroscopeExplorer
I'm quite a noob when it comes to coding, but would any experts be able to assist with the direction of this post? http://www.kircherelectronics.com/blog/index.php/11-android/sensors/15-android-gyroscope-basics
Any thoughts regarding the matter? Feel free to PM me.
Thanks!
kk maybe that request is over complicated
What about if I make the lock screen play a video? Anytime the user locks the screen it plays a 10-20 second video. Does that exist? Can't find on Google or XDA. Similar to this for Linux but on Android: http://ubuntuforums.org/showthread.php?t=2257875
Mods, if no answer by Monday 6/13, please feel free to delete.
Thanks!

Categories

Resources