How to Change the Accelerometer Driver Codes in Kernel - Nexus 7 (2013) Q&A

For a project, I need to achieve 500Hz Sampling rate from the Accelerometer. I am using Nexus 7. And at the SENSOR_DELAY_FASTEST mode it has the sampling rate of 200Hz. How can I increase the sampling rate? I have tried to change the MPLSensor.cpp file on Kernel. But I am still a Beginner in this matters. So my first question is , Is it possible to achieve that level of frequency?
I have seen that Nexus 7 has MPU-6050 Accelerometer which is capable of giving output of 1000Hz. But I dont know why I am getting 200Hz.

Related

Overclock, frequency is moving :(

Hello, this tablet can play some 720p HEVC video without any problem, but when it comes to higher resolution as 1080p there is some lag etc...
i rooted the device, installed xposed, custome kernel etc, i was now able to see the frequency, and i noticed that if the cpu frequency go below 1800 mhz, the hevc video lag, so i think this device can play hevc well if the frequency stop moving like this...
The problem is that even if i'm using performance governor, the frequency is still moving from 2 ghz to 1.2, is there any way to make the cpu frequency fix ? thx
PS: sorry for my english
Use a custom kernel with O/C support and set the cores to max.

CTT Mod for VR/Cardboard (Lollipop Roms)

So I've been watching movies on my VR headset (Bobovr Z4, highly recommended if you want to try out VR) and have noticed that the G4 overheats like crazy. The ambient temperatures where I live fluctuate between 50 deg F and 90 deg F depending on the time of day and the month. Even at cooler night temperatures, my G4 would heat up to the point of shutting itself off after around 20-25 minutes of watching a movie with no orientation sensors being used (static side by side video) and brightness at around 65%. This got incredibly annoying so I wanted to see what I could do about it.
I've tested out @Robshr's CTT mods and all 4 versions had issues that I didn't know how to fix, from the phone not charging at max Quick Charge speeds to overheating quickly. I've been running a modified version of the default CTT from the 13B rom from Verizon and it was fine for normal & gaming use but VR caused massive overheating so I modified it even further.
What I've found from testing is that the thermal mod values will take over any type of other settings you try to set with apps like Kernel Auditor or EX Kernel Manager (If you're using SetCpu, I'd highly recommend you switch to something else because it is outdated and doesn't know how to manage the big little core setup on the G4 and most newer phones) once your phone hits the temperatures set in the thermal-engine-8992.conf file. This means that you basically can't limit the max clock speeds of your phone once it reaches the temperatures set in the conf file. For example, the lines from the default conf file state for the little cores:
"thresholds 50000 53000 60000
thresholds_clr 48000 51000 58000
actions cluster0 cluster0 cluster0
action_info CLUSTER0_MAX 1248000 960000"
When my phone reached 60 degrees C, I couldn't limit the clock speed of the little cores using EX Kernel Manager below 960 MHz. I could set it below 960 MHz in the manager but it would show that the clock speeds still reached 960 MHz. What I did was decrease the max speeds the cores could hit at certain temperatures and raised the temperature limits by a little bit. What this does is throttle harder at higher temperatures instead of lower at lower temperatures and allows the phone to stay at lower clock speeds if set by a kernel managing app. I've found that 600 MHz is more than enough to stream 3D movies from my PC to my phone without issues using ES File Explorer. EX Kernel Manager allows me to limit the clock speeds to 600 MHz by switching to the power saving mode. Turning it off allows my phone to hit normal clock speeds again, which can be set using EX Kernel Manager at their max values allowed by the chip (higher than what LG limits them to I believe). From my tests so far, using the 600 MHz limit for VR 3D movies allows my phone to operate for around 40-50 minutes before displaying a overheating message which is a significant improvement from before. I don't use Marshmallow because it doesn't have root on Verizon so I can't help you if you have a Marshmallow rom.
Installation:
Extract the rar and move the thermal-engine-8992.conf to the /etc/ folder and replace the one that's in there (make a backup of that file first). Set permissions to RW R R and reboot. Highly recommend using EX Kernel Manager in conjunction and limiting the clock speed for movies. For games, you probably need higher clock speeds.
v2: Updated to not decrease brightness so much at higher temps.

D855 thermal shutdown with 4K recording

Hi guys,
I'm having the issue of not being able to record more than 4min of 4K video with the LG G3. It's what the phone was designed to do.
Config :
-Resurrection Remix 5.7 ROM (Android 6.0.1)
-Gamma kernel
-Battery profile set to "Efficiency"
-Snap Camera HDR (to be able to record 4K)
-Auto-brightness disabled / brightness set to 50%
-Screen resolution set to 1280x720 with 267 DPI
-Verbatim Pro + sdCard (minimum 80MB/s write speed)
-Brand new battery
Recording in 1080p with default clocks and voltages for Gamma Kernel results in max 71 degrees Celsius temp. Recorded for 30min. Temps and phone stable.
Recording in 4K with default clocks and voltages for Gamma Kernel results in 91 degrees Celsius temp, when phone shutsdown (91 being the Qualcom SoC thermal threshold).
Recording in 4K with 1.7GHz clocks and 850mA voltages for Gamma Kernel results in 91 degrees Celsius temp, when phone shutsdown (91 being the Qualcom SoC thermal threshold).
I'm thinking of :
-Using thermal paste (Gelid GC Extreme; ceramic paste; 3rd best in the world) but I don't really wanna do this step.
-Putting thermal throttleing back so it downclocks when it reaches 60 degrees
-Downclocking the hell out of the CPU and GPU but that kind of defeats the purpose of 4K video recording.
What do you guys think?
Thermal mod for me. Have done it myself and never had a problem ever since. This plus a custom kernel that supports undervolting.
kostelo said:
Thermal mod for me. Have done it myself and never had a problem ever since. This plus a custom kernel that supports undervolting.
Click to expand...
Click to collapse
So, thermal paste or heatsink?
When you say you never had a problem since, do you mean with 4K recording or gaming / browsing etc.?
Everything else besides 4K recording works fine. No heat issues. 4K is the only thing that kills the phone.
I disabled "Core control" in Kernel Auditor and enabled "SoC throttling". 4K recording lasted for 6 minutes but still reached 91 degrees and phone shutdown.
I'm going to try and go for the GPU underclock. My phone resolution is set to 1280x720 so not much effort is being done by the GPU.

A Query about Controlling the torchLED of Redmi Note 5 Pro using Kernel

Hello Guys, i am a novice in the android dev field. My aim is to switch on and switch off my redmi note 5 pro torch at a frequency of about 500 to 1000 Hz. Through Android studio i was only able to achieve 40 Hz max (OS introduces so much delay such that the freq maxes out at 40 Hz). So i decided to root my phone and control the LED though LED driver which is accessible through my kernel as root. I was heard that those torchLEDs files and drivers are present under sys/class/leds , is it true?

Question Forcing game to run on gpu instead of cpu[Bgmi]

How do i force my game(bgmi) to use gpu instead of cpu.
I am trying to unlock 90 fps. Somehow unlocked using adb shell to force game to use min refresh rate of 90 but its reverting back to below 60 frames when i start a match.
Also i noticed game uses my CPU upto 100% and GPU only 7-8% ?
why?
What is the use of adreno 660 then?
can anyone help or explain me this?

Categories

Resources