[Q] Lack of gyroscope driver in rom - Wear OS Q&A, Help & Troubleshooting

Hi, I have Jiayu G2f phone and I have gyroscope problem. Phone Tester app shows always "waiting for data". I can not calibrate it by factory mode because there is no such option, mobileuncle tool can not calibrate gyro too it shows "get calibration failed/operation failed". Using file explorer I discovered that in sys/devices/platform/gyroscope there is no any file regarding to calibration, chip, status etc. but in sys/devices/platform/gsensor there is cali file, status chip, ect so I think lack of these files causes problem. How to fix it, how to add gyro driver to this rom or maybe adding some code lines can fix this issue?

Related

[32A-CYANO] G-sensor calibration

Hello everybody, I'm new here.
I've done a search before posting but I didn't found any solution to my problem.
Monday I got my phone back from RMA (bad radio flashing) and as sometimes happens I got it with the G-sensor defective / not calibrated.
With some tools from the market I was able to read the values from the sensor.
Orientation, compass and temp give right values. G sensor is off by this values: x = + 3 (on average), y = - 26/27, z = -26/27.
I did as stated in cyano wiki, wiped, cleaned and thousand other methods (even by terminal emulation, erasing the akmd file and killing the process), but nope.
Now is there a way to manually calibrate the sensor, for example by editing the akmd_set.txt file? How can I copy the akmd txt file from the nand to the sd?
thanks for the help

[ROM] Aurora ICS 4.0.4 for u8800 - Version 5.0 update 20

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
About
This is a clean ICS ROM built from from the Qualcomm Code Aurora source.
Everything is functional including the camera, video recording, bluetooth and GPU acceleration.
This is based on the ics_chocolate branch and a new version is released regularly.
https://www.codeaurora.org/xwiki/bin/QAEP/ics_chocolate
Full source is available on github, see here:http://forum.xda-developers.com/showpost.php?p=22770874&postcount=747
Please do not use this thread to ask questions that are not related to development.
Use this thread in the general section instead: http://forum.xda-developers.com/showthread.php?t=1579821
Features
3.0.8 Kernel running at 1GHz default.
Google apps included
Known Bugs
Use this issue tracker to report bugs/problems:
http://code.google.com/p/ics-aurora/issues/list
If you get a reboot, do the following from a terminal or over adb:
Code:
su
cat /dev/block/mmcblk0p7 > /sdcard/crash.txt
Then post the crash file (if it has anything in it) here or on the issue tracker.
Downloads
Download it here:
https://sourceforge.net/projects/icsaurora/files/
or here:
http://code.google.com/p/ics-aurora/downloads/list
Installation
To install, you must have upgraded to the official gingerbread rom and installed CWM recovery 5.0.2.7 or 5.5.0.4.
You will have to wipe data when you first install but upgrading shouldn't need a wipe unless it is stated in the release notes.
Some instructions on upgrading are here: http://forum.xda-developers.com/showthread.php?p=22682229#post22682229
and here: http://forum.xda-developers.com/showthread.php?t=1420728
Users in Finland on the Saunalahti network need to change a setting for the sim card to load correctly.
download a terminal program such as connectbot and open a local session, then type:
su
setprop persist.opl.enabled 0
setprop persist.pnn.enabled 0
setprop persist.eons.enabled 0
Now reboot.
You only have to do this again if you wipe data.
Thanks
Thanks to the Code Aurora team at Qualcomm.
Thanks to Tom Giordano/bukington for some of the the ics kernel commits.
Thanks to early testers who risked missed calls and corrupt memory cards to try it out.
Thanks to all those who have donated - your contributions help me continue this work. This stuff takes a lot of time so your support makes a big difference. All donations are much appreciated.
Please also support my work by buying my Camera App:
https://play.google.com/store/apps/details?id=com.marginz.snap
Changelog and Release Notes
Initial Version 1.0
camera not functional
low in call volume
sound recording is quiet and distorted
wifi doesn't always connect automatically
notification led doesn't flash
Version 1.1
fix low in call volume
fix bootloop on enabling cell location
fix light and proximity sensors
fix home key on amtel touchscreens
enable mtp mode for data transfer
Version 1.2
fix for bootloop when audioflinger doesn't start sometimes
enable usb mass storage
mount internal emmc as /mnt/sdcard1
build with all languages
Version 1.3
Working camera (no video yet)
fix for SD card not being recognised and getting corrupted
change to the rpc ril instead of the qmi ril
There are still random crashes but I think they are caused by the GPU failing when the device suspends if you don't use live wallpapers that may help.
Version 1.4
Fix low resolution icons
Fix Mobile Networks menu when language is not US English
Update kernel GPU driver to latest version
Version 1.5
Fix video recording
If you switch away from the cam when it's in video mode (e.g. to view a video), it will crash when you return to it.
This doesn't affect the functionality but is annoying.
It does full 720p h264 with audio.
Version 1.6
Fix a bug that caused the gpu to sometimes crash when the display was switched off.
Enable autobrightness (don't think it actually works yet though)
Flash led for notifications - fast flash means phone is awake, slow flash means phone is power collapsed (in deep sleep)
Version 1.7
Update to M7630AABBQMLZA4040295I release
Fix camera crashes
Fix barcode apps not working
Include ES file explorer
Fix for echo on speakerphone (not well tested)
Use handset mike when headset is plugged in (not tested)
Reduce brightness of keypad led
Fix wifi not always connecting automatically
Turn off bluetooth completely when not in use
Extra CPU frequencies (thanks godofdream)
Version 1.8
Fix music not skipping to next track. This was a kernel audio problem and fixing it has
fixed some other problems. e.g. with some games pausing while trying to play audio.
Fix picture rotation for the camera.
Add smartass2 cpufreq governor, I don't care about this but somebody asked for it.
Change some values in /system/etc/gps.conf - don't know if this will help.
Version 1.8a
Fix video recorder crash
Version 1.9
Change speaker acoustic profile - hopefully this will fix audio problems
Change sensitivity of synaptics touchscreen
put aurora version in build number
change phone name, model and manufacturer to the correct values
fix strictmode not turning off (may need a reboot)
fix raw picture mode for camera (not very useful)
set build type to user rather than eng
Version 1.10
Fix battery stats not showing (needs more power data to be useful)
Add ability to skip loading some records from the SIM card (for Finland)
Fix compass
Remove some frequencies from cpufreq table (might help with battery life)
Change wifi scan rate from 15 to 60 seconds
Add latest google apps (should let navigation work better)
Free up a bit of spare memory from the kernel
Add FM radio - (thanks to honking)
Replace ringtones and notifications with those from Nexus S
Add simple boot logo (sorry, the full animated logo didn't fit)
Version 1.11
Fix FM radio
Add another fix for Saunalahti
Update all proprietary libs to newer versions
Free up some more memory (camera was being very greedy)
add headsetmic and dualmic properties
Version 1.12
Update to M7630AABBQMLZA4040296I release - fairly big change so this may introduce new bugs
Use version 0.8 of wpa_supplicant with wext library (should help with wifi connection problems)
Fix atmel touchscreen
Add settings for dualmic and headset to settings app (in Sound) - property names had to change so you will need to set them again.
Version 1.12a
Fix 720p video recording
Version 1.13
Use the 2d graphics core for composition - should make graphics faster and use less power (set debug.composition.type=gpu in build.prop if you don't like it)
Update power profile so battery stats work better
Some gps changes (not tested well)
Remove some unused resources to reduce the size of /system
Add a system property to override the wifi mac address - use su; setprop persist.sys.wifimac mac_param=11:22:33:44:55:66
Version 1.14
Fix FM Radio
Possible fix for audio volume problems after a notification or call
Some updates for graphics composition
Version 2.0
Getting stable now so bump the version up to 2.0
Add camera library from latest official gb (seems to focus better)
Update bootlogo
Reorganise camera ui so flash menu is visible
Remove 480p from camcorder menu (use wvga instead)
Enable panorama mode for camera (pan slowly with the phone held horizontally)
Fix Pinyin IME (Chinese input)
Update market and music apps to Google Play versions
Version 2.02
Notification drawer widget and settings (some things don't work yet)
Fix to stop wifi disconnecting when the device sleeps
Kernel dumps a log to /dev/block/mmcblk0p7 on a panic (kernel crash)
Change default I/O scheduler to no-op
Disable some GPIOs that were unnecessarily enabled (may save some power)
Update FM radio
Version 2.04
Update to M7630AABBQMLZA404030I release
Fix torch in Notification drawer and add torch app
Add new wifi driver, enable it from Settings..Developer Options
The new driver uses much less power and stays connected when the phone is asleep but doesn't work with WEP networks and may be more buggy.
Update GPU drivers to the binaries that were released by Qualcomm.
Enable gpu composition, 2D is slower but some apps work better.
Change Bluetooth power level to 2. May help BT connection problems.
Saunalahti users note that the SIM loading hack has changed - see the installation instructions.
Version 2.05
Update to kernel version 3.0.8 (ported from u8860 with lots of work), this may be less stable than earlier versions.
Only the new wifi driver will work, the settings app still shows a choice but changing it won't do anything.
New wifi config file (thanks to sbasil).
Fix the date in exif tags for photos.
Fix button backlight, now has autobrightness too.
Fix photo editor crashing.
Use CAF radio app (has a horrible interface but the old one no longer works). Supports rds.
Version 2.06_experimental
Update to latest ics_chocolate (caf_AU_LINUX_ANDROID_ICS_CHOCOLATE.04.00.03.05.169 manifest)
This is Android version 4.0.4 so there are lots of changes from 4.0.3 and that is why it's experimental.
Fix camera picture corruption (camera may still not be completely stable)
Fix wifi not seeing some APs
Fix some causes of wifi reboots.
Warning: Since this is a new Android version you may not be able to downgrade without clearing data so make a backup first.
Version 2.07_test
Update to latest tagged release for msm7x30 (M7630AABBQMLZA4040305I)
Change touchscreen mode to avoid jitter
Update some proprietary binaries
Fix failure to send vreg rpc to the modem from causing battery drain sometimes
Wifi fix for occasional reboots
In /system/etc/firmware/wlan/qcom_cfg.ini I have set gMaxPsPoll=1 because without this wifi doesn't stay connected during sleep. Some people claim this gives problems when connecting to certain APs but I have never seen this.
Version 2.08
Fix SD card detection using a gpio interrupt
Free 33M ram by reducing the size of the surfaceflinger cache and the camera record buffer
Fix a couple of memory leaks in the wifi module
Fix notification of an incoming call during a call
Switch back to version 0.8 of wpa_supplicant (should help with wifi connection problems)
Version 2.09
fix sd card not mounting if wifi is initially off
add haptic feedback for atmel touchscreens (to disable, put "echo 0 > /sys/module/atmel_i2c_rmi_QT602240/parameters/vibrate" at the end of /system/etc/init.qcom.post_boot.sh)
fix bluetooth not pairing
make wifi module much smaller (from 2M to 800K)
update root filesystem and rc files
Version 2.10
Update ril proprietary libs
Enable HSDPA symbol
Fix button lights with manual brightness
Fix time lapse video recording (720p only)
First try at getting native wifi tethering working (turns on but doesn't work)
Increase surfaceflinger pmem size
Version 2.11
Possible fix for volume button failure
Revert to the larger wifi driver
Increase minimum free memory available
Increase echo cancelling microphone level in calls
Update kernel GPU driver to latest version
Fix wifi not always resuming from suspend correctly
Fix noise on non-echo cancelling microphone
Update to latest proprietary GPU libraries
Fix notification of an incoming call during a call (Again!)
Update to latest google apps, google music and es file explorer
Version 2.11a
Fix wifi configuration in 2.11
2.11a Update1
Install from recovery on top of an existing 2.11a installation
Fix volume button breakage (for real this time)
Fix native wifi tethering
Set default min/max cpu frequency to 122MHz/800MHz, this saves some battery and you can always change it with setcpu.
Version 3.0_beta
Update to new CAF release M7630AABBQMLZA404031I
New LED driver (only does the same notifications as before but is much more programmable)
Use older kgsl driver (possibly more stable)
Version 3.0_beta2
Revert to older version of the ril because some people had problems with mobile data
Use older wpa_supplicant to fix wifi connection problems
Use the new kgsl driver again since the old one didn't seem to fix anything
Remove the software opengl lib from egl.cfg
Remove qualcomm's media parser from the media scanner, this may help with media scanning problems.
3.0_beta2_update1 (Install from recovery on top of an existing 3.0_beta2 installation)
Apply the patches described here: http://epiccm.blogspot.co.nz/2012/03/details-on-disappearing-sd-media-issue.html
Increase the panel frame rate to 53fps - thanks to zephyr1988
Add smartass2 (not default) - also thanks to zephyr1988
3.0_beta2_update1a
Remove the panel modification patch because it doesn't seem to work on some hardware
3.0_beta2_update1b
fix kernel config
3.0_beta2_update2 (Install from recovery on top of an existing 3.0_beta2 installation)
Same fixes as update1 +
more reliable wifi driver
Settings to allow switch between MTP and mass storage mode:
Use settings..storage..menu..USB Computer Connection
The second option will enable Mass Storage (for languages other than English, this will be displayed as PTP mode)
Version 3.1
Fix Pinyin Keyboard
Use small wifi driver again
Use version 2.0 wpa_supplicant. (this may cause problems with some APs but I think it's better to use this than version 0.8 because the rest of the system is designed for it). If it doesn't connect to an AP, post a log giving all the details and I'll try to fix it.
Add /HWuserdata as a symlink to the internal sdcard
Use settings..storage..menu..USB Computer Connection to switch between usb storage and MTP mode (some people have reported lost data on the card when doing this, you have been warned). MTP mode is probably what most people want.
Fix battery reporting for the backlight.
Reduce flashlight LED brightness.
set modprobe path correctly so modules will load
Updated network drivers
Update to latest sd card, fb and kgsl drivers.
Add SmartassV2 governor
Fix to allow Light Flow to control notification LED
aurora_3.1_update1 (Install from recovery on top of an existing 3.1 installation)
Fix wifi not connecting on boot
This may also fix some (but probably not all) wifi disconnection problems
Add battery percentage option in settings..development
aurora_3.1_update3 (Includes fixes in update1)
Fix bluetooth pairing.
Fix searching for available networks.
aurora_3.1_update4 (Includes fixes in updates 1 and 3)
Add "strip unicode" and timestamp options for SMS (thanks to mrasquinho)
Fix for bluetooth not sleeping correctly
Some updated translations in settings (thanks to mrasquinho and one-2-z)
A possible fix for wifi crashing on wakeup
Fix for a rpc wakelock never being released sometimes
aurora_3.1_update5 (Includes fixes in updates 1-4)
Fix Gallery causing reboot
Fix laggy transitions on some devices
Update Mms translations by mrasquinho
aurora_4.0
update to new CAF release M7630AABBQMLZA404032I
This is on a new release branch - ics_chocolate_rb7.1
There are a lot of changes here so some things may break, others may be fixed....
aurora_4.1
update to new CAF release M7630AABBQMLZA4040325I on ics_chocolate_rb7.2 (lots of changes)
Fix voip apps not working (not well tested and may be buggy)
Fix for missed call led notification
Update video encode/decode driver
Update rotator hardware (this does hardware rotation of video and wasn't being used before)
New proprietary binaries
aurora_4.1_update1 (Install from recovery on top of an existing 4.1 installation)
Fix gallery crash
Fix overlay (uses less power when playing videos)
Disable continuous focus for video recording
Enable brightness control using volup/down buttons in camera
aurora_5.0_experimental
New kernel based on the u8800pro source
Updated camera HAL and libs, zoom bug and green lines on thumbnails are gone
Enable continuous focus for video recording
aurora_5.0_update2 (Install from recovery on top of an existing 5.0 installation)
Update for atmel ts (still not great)
Fix USB mass storage
Fix wifi driver not loading/unloading if memory is fragmented
Allow scene mode when recording videos
Fix date on pics
aurora_5.0_update9 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Fix audio after sound recording
Fix atmel ts
Add ram console and panic dumper
kgsl changes suggested by PaulMilbank, thanks Paul
Fix memory allocation for wifi
Fix wifi hardware crashing not recovering correctly
Enable runtime power management
aurora_5.0_update11 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Fix camera chroma in portrait mode
Fix unforgettable wifi
Fix atmel haptic feedback
Fix button brightness after closing camera
aurora_5.0_update14 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Fix button backlight
Fix bluetooth pairing
aurora_5.0_update16 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Fix gallery causing a reboot on some devices.
aurora_5.0_update18 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Fix 1080p showing up in my Camera App.
Fix wifi memory allocation problem.
Fix button backlight again
aurora_5.0_update20 (Install from recovery on top of an existing 5.0 installation or any other 5.0 update)
Improve wifi driver
add entropy fix
Thank you!!!
Great news man, have to try it after I come from Ice Fishing. Will post bugs/news/related.
Great! Thank you.
Sent from my Ideos X5 using XDA App
Thank you very much for the work done!
Thank you!!!
You are my Huawei Hero!!!
Hell yeah!
home key doesn't bring me home. is this confirmed?
swayjd said:
Hell yeah!
home key doesn't bring me home. is this confirmed?
Click to expand...
Click to collapse
I can confirm. And I can't use Phone App. too.
Awesome..... I will test this later.
Sent from my u8800 using xda premium
good work. I'll try it after it grew somewhat mature.
its built using 7630 code. isn't 7230 code available???
Home key works fine for me, did you wipe data?
No pin request before i linked my google account, then got the pin request, but phone reboots every time it picks up service
Awesome.
Sent from my Derp using XDA Herp
[QUITE]
its built using 7630 code. isn't 7230 code available???[/QUOTE]
The 7630 code is designed for 7230 and 8255 as well. 7630 just has some cdma hardware too.
dzo said:
Home key works fine for me, did you wipe data?
Click to expand...
Click to collapse
I wiped data/cache. Home key isn't working.
When I dial someone phone app FC too. (If I select "wait" option phone restarts.)
I have Atmel.
Noticed one other thing, Isn't ics have all languages? This one only have 5 language.
There is something wrong with sdcard, when I open any app that use sdcard phone restarts, and its looping. I don't know whats wrong with it. If you interested I cant send debug logs.
PS: Can wifi cause the reboot loop? Because When I add my google account phone starting to restart itself after 3-5 min.
Edit: adb don't see the phone. So i can't send logs.
Edit 2 : Seems like I don't have signal from mobile network. And *#06# doesn't seems to be working.
I don't have much time now, but I will be back for this topic.
Great! Thank you.
Very fast and smooth in my phone.
I have problems with sd card mounting after restart.
- sometimes phone repotrs broken sd card
- sometimes phone repotrs removed sd card
- sometimes phone repotrs empty sd card
- sometimes mount is OK,
but e.g. in recovery sd card is without errors, same in notebook.
Home button also does not work.
But thank you.
Keep up the good work
can i flash it with recovery CWM 5.5.0.4?
good work! thanks
---------- Post added at 12:09 PM ---------- Previous post was at 12:01 PM ----------
@Dzo. You can try my drivers.
download link: http://www.mediafire.com/?heb55wz54r85b5e
Nice job!
Anyway, what is the difference in the CodeAurora's ICS and AOSP ICS?

LEMFO LEM5 calibration TouchScreen

Hi, I want to change the calibration settings of the touchscreen of my lemfo lem5.
With miracleBox I can not because of the error "no USB port, perhaps not installed drivers."
if I get root permissions with the "Kingroot" application, can I modify the calibration files?

help / advice needed for Lenovo TAB2 A10-x30F GPS NVRM. or any for Qualcomm 8909 Soc

i Got this Tab , it had very poor GPS. i flashed the firmware OS8.0.1 for F model and the GPS NVR ver.1.1 which was incluse the firmware zip.
with GPS test it see only only 1 Sat and if i play with gps.conf to trick it it show many but no fix lock. the reason i want to play on this Tab IGO Primo or world or any other offline navigation.. which i installed them and they run with out error... but they cant catch more than 1 sat so they will be in search.
any one had firmware 5.0.-1 for this F model or only the file of GPS.QCN for an other lenovo tabs run under 8909 such yoga X50F or A103F .. any of gps.qcn please you have posted over here if its for this Soc. so i test it..
GPS HW Okay. gps.conf don't help..
i am thankful for any idea or file dump from your side
I Solved here the methode to any lenovo Wifi or LTE Tablet with Poor GPS
Okay. folks .. after spending more than 2 hours ifound the issue with Lenovo Tablet not only my. but i am sure many from Lenovo faced Poor GPS and no abilitly to Install any Off line Navigtion Software like I GO or Navigon etc.
after this edid you dont need to use any app of GPS test or GPS lock.. or GPS fix. etc.
the problem are with NV data ( Value setting they inject the tablet... on Chinese way... not as international way..
1- we put the device in Diag Port Mode .
1-you need QXDM Professional .. we use NV Explorer..
3. from NV explorer select Category Filter to ( ALL )
4- from menu Option Communication we select the device and connect it ( it will load all NV item )
5- the table i add in attachment explorer the Item No. and check your value if it different change it. ( you can use Read / write Never press on Reset... :laugh:
6 after you finish edit.. just go back to Communication and choice disconnect , plug it out from pc and reboot it
7- use attached gps.conf which it designed to the setting.. no need to change any NTP or other stuff. its standard one.
i used AndroiTS apk ( First Photo ) just to show you the list of signal and sat recieved after5 second same to iGO_World last version how it lock sat.. with or with out wifi
enjoy GPS you never dream to have on Lenovo Qualcomm Soc
this edit used only for Qualcomm Soc.. it may work MT. but i didn't test it.

[HELP] How to retrieve data from Qualcomm Snapdragon framebuffer

Hi, using a rooted moto g7. There are /dev/graphics/fb{0,1}. I can not read directly from either device. The error given is "no such file or directory" however the files show up in a directory listing, this means the driver developer chose a bad error code.
How am I supposed to use them, for example to take a screenshot?
I see the sys nodes for the two devices /sys/class /graphics/fb{0,1}. I looked at their properties there, and see that fb1 is a writeback panel. As I understand it this is the one I should attempt to request screen data from.
I've looked at the msm_fb driver in the Linux kernel source but it's still not clear to me what I should do.

Categories

Resources