How To Guide S21 Force 120Hz! - Samsung Galaxy S21 Ultra

So this is a huge discovery I made! Myself and many others are annoyed at the fact that Snapchat drops to 60Hz whenever the camera is activated. I found a workaround that allows it and other applications to remain at 120Hz even when the camera is in use! (One UI 3 only)
** BYPASS ADAPTIVE REFRESH RATE WITH CAMERA / GAMES **
(Guide 1 of 2)
For my friends over at Samsung Members looking to fix 120Hz, scroll down until you see Guide 2 of 2!!
What you'll need:
* Set Edit (free on the playstore)
Make sure you are not using power saving mode, and you have your refresh rate set to adaptive. Now launch Set Edit and enter the system table in the selector at the top right of your screen.
Look for the first line: "min_refresh_rate"
Tap that line and hit "Edit Value". Enter very specifically: 24.0
Hit "Save Changes"
Do the same exact thing for the next line: "peak_refresh_rate"
If for whatever reason these lines are missing, you can add them by scrolling all the way up and hitting "Add new setting". I'm not sure why it varies for some users..
And we're done! If you open Snapchat, Instagram, or an app that uses the camera, the refresh rate will stick to 120Hz.
I hope these instructions were clear enough!
The way I believe this works, is the adaptive refresh rate breaking because the minimum and maximum values are set to an unsupported value, thus causing the system not to be able to adjust the refresh rate.
Samsung made some changes on One UI 4, and it still does drop to 60Hz when you don't use the screen, or use Google Maps / Stock Camera. This does not occur on One UI 3.
** FIX 120HZ BUG ON ONE UI 4 **
(Guide 2 of 2)
What you'll need:
* Set Edit (free on the playstore)
Make sure you are not using power saving mode, and you have your refresh rate set to adaptive. Now launch Set Edit and enter the system table in the selector at the top right of your screen.
Look for the first line: "min_refresh_rate"
Tap that line and hit "Edit Value". Enter very specifically: 120
Hit "Save Changes"
Do the same exact thing for the next line: "peak_refresh_rate"
Set the value to: 120
If for whatever reason these lines are missing, you can add them by scrolling all the way up and hitting "Add new setting".
After you get an update that fixes the bug, it's important you change min_refresh_rate back to 48 , and peak_refresh_rate to 120 !

I created an account just to express my gratitude miss / mister !!

One known issue: Screen Brightness set to low causes it to be stuck at 60Hz regardless of the setting. Minor tradeoff at low brightness

You can use galaxy Max hz app for this too.

P-KAY 2323 said:
You can use galaxy Max hz app for this too.
Click to expand...
Click to collapse
I've used this, but it's not able to override the 60Hz cap when launching an app that uses the camera.

MochaVex said:
I've used this, but it's not able to override the 60Hz cap when launching an app that uses the camera.
Click to expand...
Click to collapse
Oh. Ok, gottha check it out then. Thanks for the guide

P-KAY 2323 said:
Oh. Ok, gottha check it out then. Thanks for the guide
Click to expand...
Click to collapse
Of course! Glad to help

MochaVex said:
So this is a huge discovery I made! Myself and many others are annoyed at the fact that Snapchat drops to 60Hz whenever the camera is activated. I found a workaround that allows it and other applications to remain at 120Hz even when the camera is in use! (excluding the stock Camera app)
What you'll need:
* Set Edit (free on the playstore)
* A computer that has ADB installed
* A charging cable.
I'll leave out the details on how to set up adb, we should know how to do this is 2021.. There are also plenty of detailed guides out there!
Make sure you are not using power saving mode, and you have your refresh rate set to adaptive. Now launch Set Edit, and grant the permission it tells you to with the adb shell command (it'll show you what to enter if you tap a line, and hit Edit Value).
After the secure settings permission is granted, enter the system table in the selector at the top right of your screen.
Look for the first line: "min_refresh_rate"
Tap that line and hit "Edit Value". Enter very specifically: 24.0
Hit "Save Changes"
Do the same exact thing for the next line: "peak_refresh_rate"
And we're done! If you open Snapchat, Instagram, or any third party app, the refresh rate will stick to 120Hz. It's unknown as to why the stock Camera still switches to 60Hz, but I don't care about that too greatly..
I hope these instructions were clear enough!
The way I believe this works, is the adaptive refresh rate breaking because the minimum and maximum values are set to an unsupported value, thus causing the system not to be able to adjust the refresh rate.
It still does drop to 60Hz when you aren't using the screen, so don't worry about that.
It's worth noting that this works on both One UI 3.0 and One UI 4 beta 2!
Works with most games and apps I've tested that previously reduce the refresh rate.
Google Maps is still stuck to 60Hz for example.
Click to expand...
Click to collapse
Not able to find min refresh rate and peak refresh rate in the system table ...
I so want to fix the 60hz lag in snapchat

aj7400 said:
Not able to find min refresh rate and peak refresh rate in the system table ...
I so want to fix the 60hz lag in snapchat
Click to expand...
Click to collapse
Try adding them as new lines. You'll see that option at the very top. Reboot after you finish. For whatever reason, not everyone has these..

MochaVex said:
Try adding them as new lines. You'll see that option at the very top. Reboot after you finish. For whatever reason, not everyone has these..
Click to expand...
Click to collapse
I dont know how to do abd .. can help?

No problem! If you go into your phone settings, scroll down and tap About Phone > Software Information > Tap the Build Number until it says Developer Options turned on.
Now go back to your settings and look for Developer Options at the bottom. Carefully scroll down and look for USB Debugging. Turn it on.
Now you'll need a laptop or computer for this next part! Go on XDA and look for a decent ADB tutorial. After adb is installed, you can plug your phone in. Open adb on the computer, and type adb devices.
You're phone should prompt you to allow that computer's signature, just tap allow.
Then you can type adb shell, and then input what the app tells you to.. If you encounter any more issues, don't hesitate to message me!

Hey ! I just found your post today... and tried it immediately on my Galaxy S21+. I searched something like that for so long!
You're an absolute genius! It's working perfectly for now, yet I'm a little surprised : it seems to work even in Google Maps and the stock camera. I didn't reboot the phone though, maybe it won't work after a reboot. It seems to work in low brightness too for the moment! By the way, SetEdit didn't ask me to do anything with adb. I just added the two lines you mentioned. Is that normal?
Thank you so much for that! I hope it'll stay like that even after a system update... we'll see!

brhb said:
Hey ! I just found your post today... and tried it immediately on my Galaxy S21+. I searched something like that for so long!
You're an absolute genius! It's working perfectly for now, yet I'm a little surprised : it seems to work even in Google Maps and the stock camera. I didn't reboot the phone though, maybe it won't work after a reboot. It seems to work in low brightness too for the moment! By the way, SetEdit didn't ask me to do anything with adb. I just added the two lines you mentioned. Is that normal?
Thank you so much for that! I hope it'll stay like that even after a system update... we'll see!
Click to expand...
Click to collapse
SetEdit (usually) asks me. Maybe it's able to edit that line without the adb permission (all I know is it asked me lol).
Glad it's working for you!!
And it should work after updating. I've updated twice in the One UI 4 beta and it still works

Yes it works even without adb ...
Wow thanks .. now i can use snapchat without a problem

aj7400 said:
Yes it works even without adb ...
Wow thanks .. now i can use snapchat without a problem
Click to expand...
Click to collapse
Ok cool! It seems to be hit or miss with needing adb so I'll leave it in the instructions. Have fun!

MochaVex said:
Ok cool! It seems to be hit or miss with needing adb so I'll leave it in the instructions. Have fun!
Click to expand...
Click to collapse
Working even after a restart.
I was wondering what would happen if min refrest rate is set to 1 and max refresh rate is set to 120 .. ( thats what the screen is capable of )

The system won't lower it any lower than 48. If you're using my custom values, it'll vary from 60 to 120 until you restore stock values.

Not sure what anyone would want to force to 120 when the smart refresh rate LTPO works very well. There's also noticeable battery savings.
You will see slightly better smoothness at the cost of battery life.... but LTPO is more than adequate where it stands now, IMHO.
Edit: I didn't see some users were having problems with apps like Snapchat. I see this might be the only temporary solution until that's fixed.

Burt Squirtz said:
Not sure what anyone would want to force to 120 when the smart refresh rate LTPO works very well. There's also noticeable battery savings.
You will see slightly better smoothness at the cost of battery life.... but LTPO is more than adequate where it stands now, IMHO.
Edit: I didn't see some users were having problems with apps like Snapchat. I see this might be the only temporary solution until that's fixed.
Click to expand...
Click to collapse
Yea I intended this fix for that very issue with Snapchat / any app that accesses the camera. Interestingly enough, it still uses adaptive refresh rate, my guide just breaks the 60Hz with camera applications restriction somehow.

Burt Squirtz said:
Not sure what anyone would want to force to 120 when the smart refresh rate LTPO works very well. There's also noticeable battery savings.
You will see slightly better smoothness at the cost of battery life.... but LTPO is more than adequate where it stands now, IMHO.
Edit: I didn't see some users were having problems with apps like Snapchat. I see this might be the only temporary solution until that's fixed.
Click to expand...
Click to collapse
For me, it didn't even impact battery life. But my S21+ (Exynos) wasn't really good to begin with, so I didn't notice any major battery drain with that "fix". And yes, it was mainly because of apps that used the camera (like Snap or even Google Messages) that I applied this workaround.
By the way, it's still working after the November security patch. Still amazed by this device after many iPhones!

Related

Stagefright, VM Heap, SYSCTL and other performance related options

With the recent release of Spz0s rom and Adrynalyne getting this beat over clocked these settings are becoming obsolete. Use at your own discretion.
I recently restored my phone to stock, with basic settings, meaning I did not use any of the settings listed here. I scored a 1013 on a bench with stock everything. Now that I have VTL Launcher as stock again and have everything set back up for me, I'm scoring 1000s and 990s regularly. Again without any of these settings enabled. Which is leading me to believe that a stable system is the fastest thing when it comes to performance and benchmark scores. The settings listed below did help me out, with an unstable system. Now that I am running on a stable system, none of the settings below helped my performance or bench scores, they only hurt them. So these settings below will help anyone with an unstable system to not feel the lag of said unstability. If you try these settings and they don't do anything, or hurt your performance or score, turn them back to stock and revel at how much you rock for having a super stable system! I have also noticed that the app AUTO KILLER MEMORY OPTIMIZER virtually replaces sysctl. If you run AUTO KILLER I would suggest setting sysctl back to stock! I would recommend AUTO KILLER MEMORY OPTIMIZER from the Market to EVERYONE with a Zio. Nice app, set it to Aggressive!
FIRST OFF, THESE SETTINGS ARE ONLY CHANGEABLE IF YOU ARE ROOTED!! If you are not I cannot help you!!
I am making this thread to address performance issues with the Zio. If you have done a benchmark score with just basic settings, it's already apparent to you the Zio is not the best phone. I have found some tweaks to make the phone run faster and score better on benches.
USE THESE SETTINGS AT YOUR OWN RISK. IF YOU SCREW SOMETHING UP, DON'T CRY TO ME.
Stagefright: Stagefright is part of the stock media player that comes disabled on the Zio. Turning on stagefright will increase your benchmark score by a lot, and has also been reported to make Video Playback much better, getting rid of jumpy lagging videos.
You need to make sure you have r/w(read/write) access in your file manager. Root Explorer has r/o(read/only) and r/w. You cannot change any files without r/w access in your file manager.
To Enable Stagefright you open your file explorer(i.e. root explorer, astro, etc.) and navigate to the system folder. Open build.prop in your text editor. Scroll down to where you find stagefright. There are four settings for it grouped together near the bottom of the script. Next to each setting it says =false. You need to edit the false to say true. Once that is done, go up just slightly from that spot, there is also another spot to enable stagefright. Change that to true as well. Also notice that just above this last stagefright script, there is something about the vm.heap and dalvik cache. This is where you change your VM Heap size.
(NOTE: ENABLING THE HTTP SETTING IN STAGEFRIGHT ALLOWS FOR A RICHER HTTP BROWSING EXPERIENCE BUT WILL ALSO PUT A GREEN BAR ON YOUTUBE VIDEOS. KEEPING IT SET TO FALSE WILL AVOID THIS GREEN BAR AND SHOULD NOT AFFECT OVERALL PERFORMANCE!)
VM Heap-Not exactly sure what the technical aspect of it is, but increasing the vm.heap gives the dalvik cache more room to work with, thus making your memory faster. THIS NUMBER SHOULD NOT BE SET BELOW ANDROID DEFAULT WHICH IS 24. And should also not be set above 44. If you want to change this number, add or subtract 4 within the above values, 24-44. This can go down to 16 but you'll see the results and why I said to leave it up pretty fast.
SYSCTL- To edit these settings, open your file explorer, hit the ETC folder. Scroll to bottom and find sysctl.conf, long press and open in text editor. So far I can only say there are three settings here you need to adjust.
To edit SYSCTL settings you must first download and install the app sysctl config from the Market. After you set it up initially it can be uninstalled and leave behind the settings folder for further settings changes by manually editing or you can keep it and just use it to make the changes.
First is MIN FREE KB. This number will not be the same for everyone, although I can tell you setting this number above 4096 seems to slow the system way down. Although you may try any of the following numbers..
1536, 2048, 4096, 5120, 5632, or 6144.
These are the only numbers I would suggest using as they are parameters that came out of the phone itself.
sys/module/lowmemorykiller/parameters. <----DO NOT CHANGE the numbers in this location, they are system defined parameters and are NOT to be changed!
The second setting is vfs.cachepressure. I have this set to 10. Default is 50. Basically what I've read about this, it opens more room by setting it lower, leaving more memory free from constantly checking and clearing the cache. Read more here http://forum.xda-developers.com/showthread.php?t=523707&page=12
The Third setting is oom. It's the last value in sysctl.conf and needs to be set to 1 or 0. Instead of your phone starting to kill apps when it's out of memory, it does something else that I didn't quite understand, which is supposed to boost memory performance. Some people are seeing great results with this setting. Some people say it doesn't do anything. Seems to be specific to the user, and I have yet to find anything in common between two users who say this helps. Although bench scores are higher with it set to 1.
For these settings to take effect you must reboot your phone. Changes to these settings are only applied by a reboot, so any time you change anything, REBOOT!
If you do not know how to change settings manually, there are two apps in the market to help. VM Heap Tool will change your VM Heap for you, no need to manually edit if you don't want to. sysctl config is an app that will allow you to easily change the sysctl settings.
There is an App that will change your stagefright settings for you called Blade Buddy. I did not have a good expeience with this program and would suggest that you edit stagefright manually since it's pretty easy with a superuser file manager.
I can say with certainty that turning on stagefright and adjusting and playing with the rest of the settings that your phone will turn in to a beast compared to how it came out of the box.
As far as battery performance goes, I've noticed a 10-15 percent increase(estimated) over the life of a charge(depending on amount of usage and type). I have noticed more battery use. But not so much that these settings wouldn't be worth using. I gave numerous variations of these settings tries over 2 very long months of restarts and three different benchmark programs. Any additional information or discoveries are welcome.
If this helped, please hit Thanks!!
Muchos Gracias to everyone in #openzio as always. Spz0 n Mattix are always a big part of anything I do. They are always nice enough to save me from myself. And much thanks to anyone that helps out with the Zio at all. Lets own this phone!
Nice write-up bro.
Well, good guide. Hopefully Kyocera calls me back in regards to the kernel source code so we can really overclock this thing.
Sent from my Zio using XDA Premium App
Their lawyer in San Diego got a hold of me on Facebook. Asked me to call her back. Three calls and no dice. Waiting on her response now. Hopefully soon. She said they are "working the bugs out". Which is a load of BS since we have phones in our hands, the source is done. They just have to give it to us and I told her bluntly just that.
Tell them to call me lol, I want the source. Give us the source!
Sent from my Zio using XDA Premium App
So what happened to getting it? Teacher not know the right trick? Have you heard about using git to get the source? I dunno what git is but it may help? Ever heard of it?
Sent from my Zio using XDA Premium App
http://en.wikipedia.org/wiki/Git_(software).
Google is your friend???
Also, I don't have a sysctl.conf file. At least not where you said it is or one that root explorer can find...
Yeah if I actually understood any of that I wouldn't be asking.
Ok here is the best benchmark average I have gotten so far. These are the settings I used to achieve it.
Avg Benchmark - 795
High - 900 (omitted from average)
Low - 710 (omitted from average)
Avg with high and low only changed by 6 points.
Sysctl Support - Enabled ( I am using the Sysctl app form the market.)
Min free Kbytes - 4096
Dirty Ratio - 80
Dirty BG Ratio - 40
Oom Allocating Tasks - Enabled
VM Heap Tool - VM Heap set to 36m
Stagefright settings are all set to "True"
What we need to know now is what setting are going to speed up the UI. Like cutting load times on FB and other apps, what is making the phone just lightning fast? Doesn't seem to matter too much as long as you don't go above 4096. Finally started to see some system lag with 8192. We need to figure out what makes the phone the most responsive, fastest, beast of a phone.
Messing with the radio numbers only seems to slow me down. And still can't really find anything on what vm.swapiness does either.
sinisin said:
What we need to know now is what setting are going to speed up the UI. Like cutting load times on FB and other apps, what is making the phone just lightning fast? Doesn't seem to matter too much as long as you don't go above 4096. Finally started to see some system lag with 8192. We need to figure out what makes the phone the most responsive, fastest, beast of a phone.
Messing with the radio numbers only seems to slow me down. And still can't really find anything on what vm.swapiness does either.
Click to expand...
Click to collapse
Well, I have also downloaded Link2SD from the market and put every app (except system apps) on the SD card and That has given me a little over 100MB free on phone storage and I am using Memory booster lite to free up memory on the phone. All of these things have made a huge difference in the speed and performance of the phone including page load times. (facebook opens and loads almost instantly).
Be careful. Don't move things like Widgets that need to refresh or themes for your launcher or the launcher itself. Seems fine at first until you run for a while and Widgets stop and launcher always reloads.
Sent from my Zio using XDA Premium App
Are you on Wi-Fi while opening apps or 3G and if 3G how many bars?
Sent from my Zio using XDA Premium App
Using Root Explorer /ect/sysctl.conf I'm not seeing this file...
sinisin said:
Serious changes coming soon. New numbers up for min free KB below already.
Stagefright: Stagefright is part of the stock media player that comes disabled on the Zio. Turning on stagefright will increase your benchmark score by a lot, and has also been reported to make Video Playback much better, getting rid of jumpy lagging videos.
To Enable Stagefright you open your file explorer(i.e. root explorer, astro, etc.) and navigate to the system folder. Open build.prop in your text editor. Scroll down to where you find stagefright. There are four settings for it grouped together near the bottom of the script. Next to each setting it says =false. You need to edit the false to say true. Once that is done, go up just slightly from that spot, there is also another spot to enable stagefright. Change that to true as well. Also notice that just above this last stagefright script, there is something about the vm.heap and dalvik cache. This is where you change your VM Heap size. (NOTE: ENABLING THE HTTP SETTING IN STAGEFRIGHT ALLOWS FOR A RICHER HTTP BROWSING EXPERIENCE BUT WILL ALSO PUT A GREEN BAR ON YOUTUBE VIDEOS. KEEPING IT SET TO FALSE WILL AVOID THIS GREEN BAR AND SHOULD NOT AFFECT OVERALL PERFORMANCE!)
VM Heap-Not exactly sure what the technical aspect of it is, but increasing the vm.heap gives the dalvik cache more room to work with, thus making your memory faster. THIS NUMBER SHOULD NOT BE SET BELOW ANDROID DEFAULT WHICH IS 24. And should also not be set above 44. If you want to change this number, add or subtract 4 within the above values, 24-44.
Phone Edit- Found numbers for min free KB. sys/module/lowmemorykiller/parameters. 1536, 2048, 4096, 5120, 5632, 6144. Assuming these are new guidelines. Will edit fully tomorrow. Don't change these settings. They are system parameters and should NOT be changed.
SYSCTL- To edit these settings, open your file explorer, hit the ETC folder. Scroll to bottom and find sysctl.conf, long press and open in text editor. So far I can only say there are three settings here you need to adjust. First is MIN FREE KB. This number will not be the same for everyone, although I can tell you setting this number above 8192 will slow the phone down, most people report anything over 4096 slowing the phone down. The default is 2048, I would suggest going up to 4096 or 8192.
The second setting is vfs.cachepressure. I have this set to 10. Default is 50. Basically what I've read about this, it opens more room by setting it lower, leaving more memory free from constantly checking and clearing the cache. Read more here http://forum.xda-developers.com/showthread.php?t=523707&page=12
The Third setting is oom. It's the last value in sysctl.conf and needs to be set to 1 for everyone. Instead of your phone starting to kill apps when it's out of memory, it does something else that I didn't quite understand, and this should add speed to everything you do, like surfing or Facebook. Everything should load faster and smoother with this setting enabled. Remember stock value is Zero and may only be set to 1 or 0.
If this helped, please hit Thanks!!
Click to expand...
Click to collapse
Try /system/etc micro. Same thing.
Sent from my Zio using XDA Premium App
Current settings.
4096
95
60
50
Oom
VM heap 30
Stqgefright all but http
Running fast and stable. Launcher pro Orientation from portrait to landscape is faster. Home loads instantly even though I am not using a launcher from /system/app
I will be doing some more tweaks to speed this up but maintain some battery life.
Sent from my Zio using XDA Premium App
I have Stagefright fully enabled. Running 2048 Free KB. Stock radio and background. Turned oom to 0. Zoomin right along.
Sin. How did you edit sysctl.conf I can't find it in ETC
Sent from my Zio using XDA Premium App
Thanks! /system/etc still nothing. I have rtecdc_apsta.bin and void.fstab no luck still.
sinisin said:
Try /system/etc micro. Same thing.
Sent from my Zio using XDA Premium App
Click to expand...
Click to collapse
Looks like we need to include sysctl.conf in the next theme update.
Sent from my Zio using XDA Premium App

accellerometer calibration,how to?

Hi,is there an app or a process to calibrate the accelerometer under android?I have typhoon rom,but even in mdj s one i had problems with the accellerometer.Everything tend to go left,and so I have problems with many games and programs (most of times those programs does not have a calibration menu).Thank you for the help
Try a sense ROM. Those always have a calibration app under settings in display or something.
Sent from my HTC Glacier using XDA App
So the only way is to change rom?It s incredible that in cyanogenmod there is not a sensor calibration menu,it s really strange
No one with the same problem? So do i have to think it s an hardware problem?
Download "Bubble" by Ben Zibble from the Market, and use the Calibrate function on it.
Calibrate for each side & laying flat down too, obviously making sure the surface you are calibrating on is Flat too.
Mine was off by a bit and was awkward when playing some games, this worked great.
Gushfevah said:
Download "Bubble" by Ben Zibble from the Market, and use the Calibrate function on it.
Calibrate for each side & laying flat down too, obviously making sure the surface you are calibrating on is Flat too.
Mine was off by a bit and was awkward when playing some games, this worked great.
Click to expand...
Click to collapse
Are you sure that you can fully calibrate the phone withthis program? I tried but the calibration seems to have effect only in bubble program
I'm not totally sure. But that's one thing I would try. Do a nandroid first, calibrate, then restore your backup
Axel85 said:
So the only way is to change rom?It s incredible that in cyanogenmod there is not a sensor calibration menu,it s really strange
Click to expand...
Click to collapse
Sent from my HTC Glacier using XDA App
G sensor Calibration
Try the Calibrate Pitch and Roll function under GPS Status & Toolbox App [Free App under Market] , also while your at it might as well calibrate the Compass as well,
regards.
i tried to calibrate the phone with this program,but it seems to not calibrate all the phone.Is it possible to delet the files that contain the calibration data,and overwrite it with the one taken from the rom?
After searching for 2 days in any language i ve found the solution in a old xda thread.This is the only solution that work for me to recalibrate the gsensor for all the system,not only in gpsstatus or level programs.Since this thread has 450 views,i think that other peoples has my same problem.This is the thread link:
http://forum.xda-developers.com/showthread.php?t=803242
and this is the solution
If your orientation is off when you lay your phone on a level surface and can't calibrate it in Android (because many people found it gets corrupted after auto calibration), this is one way to do so. (Winmo g-sensor calibration does not seem to affect android orientation)
Install an app that displays sensor information along with pitch and roll. (such as SensorDebug from Android market)
Put your phone on a level surface such as the floor or a table.
Note your pitch and roll values.
Use rootexplorer or similar file manager to edit /data/misc/AK8973Prms.txt file. (open in text editor) (For ASTRO CHECK POST 70 in page 7)
You will see AOFFSET.x and AOFFSET.y at the bottom. (May be on top if you autocalibrated previously)
y affects pitch and x affects roll, there is about 4 to 1 ratio.
What you are trying to do is make pitch and roll 0 with minimum flicker.
Press and hold home button to switch between rootexplorer and sensordebug. Your changes will be reflected in realtime (with most builds). Go back and forth a few times to get perfect result. (You can press and hold home button to go back and forth) If you think changing values don't have an affect, try to temprorarily change AOFFSET.x=90 and return to your app. When phone is on the table, your leveling bubble or pitch/roll must be way off. This way you can see if with your build changes are reflected in realtime or not. If not try restarting, use different sensor app and give feedback please. (After that revert AOFFSET.x to 0 or other value your want to fix back orientation)
For example:
If pitch is 3 and roll is -1
you may start by
AOFFSET.x=4
AOFFSET.y=-12
Then adjust with 1 increments to get rid of flicker.
It is best to adjust one value at a time.
EDIT: IF YOU WANT TO CALIBRATE Z AXIS, CHECK POST 61 in page 7
Calibrated AOFFSET values for my phone are x=2 y=-9 z=12
You can use gpsstatus or bubble app (to find bubble app search the market for bz.ktk.bubble and enable "show angle" from bubble apps settings.) for visual check of orientation calibration. Because of the protruding camera lens of hd2, there can be 1 degree difference between sideways and normal orientation. (It seems you can adjust in about 0.25 degree increments by each 1 increment of AOFFSET and compansate by lowering AOFFSET=y by 2 that gives 0 degrees in both normal and sideways orientation in bubble app)
- You don't need to reboot for most builds (if there is no affect check post 11)
- You don't need to kill/restart akmd
- You don't even need to close sensor app
- Because of not perfect kernel/build support for sensors, you may see them freeze when you move the phone (TS will also freeze). With evo kernels, just wait a few seconds and it will resume. (With nexus kernels they may freeze until sleep/wakeup) Interestingly the values of AK8973Prms.txt affect shake/move freezes. I wrote about this in post 10 and 11.
IT IS A GOOD IDEA TO BACKUP COMPLETE ANDROID FOLDER BEFOREHAND just in case something goes wrong. Chefs say you shouldn't auto calibrate your g-sensor under Android because with many people it gets messed up. Also good idea to backup your /data/misc/AK8973Prms.txt
You may have trouble accessing data folder with a file manager other than rootexplorer. Your build must be rooted. (most are) It is a good idea to update your su binary inside superuser app settings TWICE. If you change permissions of /data /data/misc folders you may access them even with standart astro file manager. Try chmod 777 /data from terminal emulator.
This procedure is also possible with adb or droidexplorer. But my way of doing is practical and it is in realtime. If your build has different file name, please tell us.
This IS a development thread, please don't tell me to post in generic section or clutter.
This is manual workaround for non-working auto calibration. If auto-calibration works in the future, it may very well fix your freezes.
Values of AK8973Prms.txt file may solve touch screen/sensor freeze problems with your games. Feedbacks are always welcome. We should find out what the other values do exactly. Also check post 10 & 11
I had to try many times,but finally i ve found the right value for my device.With thyphoon rom you have to reboot after any change to take effect,so the process takes a little long...But great,now i can play asphalt 6 and use google sky map without any issue
It would be cool if someone with,programming experience,could build a program to make this process more user friendly,so we don t need to use a sense rom to calibrate the full system
I wish i helped with this post all the user with my same problem.I m sorry for my english,if it s not soo good

Various phone problems (P20 Pro)

Hi all,
I did make a thread as a guest user but unfortunately I can't find it anymore so I've made an account and I'll repost/better explain the issues I've come across.
1) RAM Management
Whenever I close all active apps it says it has around 3GB of memory available, the phone comes with 6GB of memory so I'm wondering why it's only giving me 3GB available, surely the OS can't be using the other 3GB to run.
2) The camera
Right so this one comes down to the low light photography, I've upgraded to the P20 Pro from the Samsung S7 Edge. The S7 Edge did low light photography pretty damn well, and in the release conference Huawei state that the device can reach an ISO of 102400 however when in the Pro mode I can only set the slider to be 3200, yet the automatic mode takes it up to 6400. I find it very odd that an automatic setting can go higher than a manual one.
On my S7 Edge I can take a photo in an unlit room and still have it turn out reasonably well, I am expecting the P20 Pro with it's alleged high ISO to provide a better image, yet when I try this with the same settings as the S7 Edge I get a black image. I'm willing to put this down to user incompetence as I'm not a photographer... so if anyone can explain this to me then I'd be greatly appreciative.
3) Game resolutions
I copied all apps from my old phone to the P20 Pro, but half of them don't work. When the apps first launch I get the option to keep them at their native resolution or to force a fullscreen mode, no matter which option I select the menus for the games are all skewed and off screen. It renders most of my games unplayable (pun not intended). Could this be a resolution problem with the phone?
4) The Camera (again)
When taking portrait shots, the background is blurry. This is actually a pretty nice feature but sometimes I want to get a picture of me WITH something decorative on a wall behind me. I can't find a setting to turn the blur off.
5) Phone Management (the in built app)
This one is pretty straight forward to explain, IT NEVER REACHES 100%. The highest it's ever been is 96%, right now my phone is fully charged, has no apps open, is not performing any background tasks and is at 90% efficiency. I don't understand what it takes to get to 100%.
I'm sure there will be fixes for things as apps update and patches are released but if anyone could provide any assistance on the issues mentioned above then that'd be awesome.
I'll answer the following
2) Same iso settings on mine, switch to pro and change the settings
3) Either clear the data/cache or uninstall and reinstall the games from play store, remember this is a different phone and the defined settings could be wrong
4) click on the icon in bottom left (highlighted orange) to turn it off/on
Where did you get the phone from, which sim you using, which firmware you on.
Regarding the portrait question, when in portrait mode there are 3 settings above the shoot option, press the one on the left to turn bokeh off.
walkerx said:
I'll answer the following
2) Same iso settings on mine, switch to pro and change the settings
3) Either clear the data/cache or uninstall and reinstall the games from play store, remember this is a different phone and the defined settings could be wrong
4) click on the icon in bottom left (highlighted orange) to turn it off/on
Where did you get the phone from, which sim you using, which firmware you on.
Click to expand...
Click to collapse
I've just reinstalled the apps from the Playstore, unfortunately they have the same issue still.
Thanks for clearing up the bokeh problem!
I got my phone from O2, it's an O2 SIM and the firmware is CLT-L09 8.1.0.103
QuantumNetworks said:
I've just reinstalled the apps from the Playstore, unfortunately they have the same issue still.
Thanks for clearing up the bokeh problem!
I got my phone from O2, it's an O2 SIM and the firmware is CLT-L09 8.1.0.103
Click to expand...
Click to collapse
yours is single sim and different firmware to mine is dual sim and firmware CLT-L29 8.1.0.102(C782)
I did miss off on the iso info that the high iso is only selected automatically by the phone when it's needed, ideally it would be good if could set the iso manually as well to the full range
Regarding 3: I could imagine its a programming issue. Depending on what method the games use to obtain information about screen sizes they could bypass options like fullscreen mode or so. This could be a problem on the phone software side that the fullscreen or native option is not overriding all access methods or the games not using the android API correctly.
I hope thet they will get us ISO 102400 and shutter speed 60 seconds for Pro Mod in updates. If you look at P20 Pro lunch day you will see that they shoot photo with 58 seconds of shutter speed. Now P20 Pro can just shoot maximum 30 seconds of shutter speed.
This thread has had a number of the containing posts cleaned from it. If you don't like a particular phone, don't post hatred for that phone or the OEM who makes it in a thread about said phone. It's really unnecessary.
daveyannihilation said:
This thread has had a number of the containing posts cleaned from it. If you don't like a particular phone, don't post hatred for that phone or the OEM who makes it in a thread about said phone. It's really unnecessary.
Click to expand...
Click to collapse
Nobody said they don't like the phone? I actually quite like it. I've come to this forum because this is literally the only place where some people could have answers to some questions I have about it, whether they be a fault with the phone or my misunderstanding of the functions.
Your comment posed no benefit to any of the questions raised, you don't need to comment. It's really unnecessary.
QuantumNetworks said:
Nobody said they don't like the phone? I actually quite like it. I've come to this forum because this is literally the only place where some people could have answers to some questions I have about it, whether they be a fault with the phone or my misunderstanding of the functions.
Your comment posed no benefit to any of the questions raised, you don't need to comment. It's really unnecessary.
Click to expand...
Click to collapse
Actually, the first person who's comment I deleted said multiple things about not liking the phone. The reason you can't see it is because, as I said in the post that you felt necessary to reply to, I have cleaned the thread of said messages.
Your reply to a moderator's post posed no benefit to the way that the forum is run and maintained, you don't need to comment. It's really unnecessary. Do it again and you'll find that you'll be reprimanded. Have a wonderful day. :victory:

RUN GAMES AT 144 FPS! ( YES INCLUDING CODM AND PUBGM) Mi10T

So codm is default capped at 60 and doesnot support more than 60 fps whereas pubgm is capped at 90 max, but i found a way to run at 144 fps forcefully without altering any game files etc so no bans! I checked fps with multiple fps meters as well as recordings to see if frames dropped and they did when i recorded pubgm since it's an intensive game, recording with 90 fps doesn't give you frame drops but with 144 they drop to 137-139 depending on situation!
Set your display to 144HZ for this.
To enable, simply run your game codm or pubgm and go to cheer park or arena or in match anywhere in minimize the game/put in background (DON'T CLOSE IT!!), minimize your game/put in background and open settings, apps, manage apps, search for battery and performance and clear all it's data, then enable your in built fps meter or any fps meter you use and go back in game and voila, you yourself will feel the difference!! Especially in cod since it's capped max at 60 so when you do this frames will be 144 and you will see massive increase in fluidity which you do at 144 anyways, same with codm, play tdms and arenas and you'll notice your enemies bullets won't even register!!
uploaded some very short little clips of my recordings so you can see for yourself, guys check and tell <3
On what system version did you manage to do this?
kascro said:
On what system version did you manage to do this?
Click to expand...
Click to collapse
12.0.9 Global, didn't update phone as i have past experiences with xiaomi phones and they tend to slow down phone performance in updates, so have disabled auto updates and prolly won't update, if you have updated one do try this and tell, on mine and a couple of friends i have who own mi10t have done this and we get 137-144 fps, on smooth, on hd and hdr we get consistent 127-135 fps, with recording on they drop a further 4-5 frames but it's way way better than the 90 lol, i usually play at smooth so no issue for me even with recording on. i told this to a few tech youtubers and prolly this method's gonna go trendin soon haha since it's the first phone ever to achieve actual 144 fps xD And it's way WAY advantageous Your bullets register too fast and M416 spray feels like an uzi's spray xD I have shown in the attached clips and i have many more, go ahead give it a try
STEPS:
1) Set display to 144HZ
2) Open pubgm (as an example taking pubgm)
3) go to training or cheer park or anything
4) minimize the game (DON'T CLOSE IT), Minimize/put game in background and Go To Settings
3) Go to apps
4) Go to Manage apps
5) Search for *battery and performance*
6) Clear all data
7) Go back in game/continue game from where you left and voila! (will work even after restarting game etc, just a one time thing),
8) Optional step: enable fps meter from dev tools or any fps meter you have or just swipe to bring your gaming mode and see fps, or you can simply feel the fluidity
MercurialWhale said:
STEPS:
1) Set display to 144HZ
2) Open pubgm (as an example taking pubgm)
3) go to training or cheer park or anything
4) minimize the game (DON'T CLOSE IT), Minimize/put game in background and Go To Settings
3) Go to apps
4) Go to Manage apps
5) Search for *battery and performance*
6) Clear all data
7) Go back in game/continue game from where you left and voila! (will work even after restarting game etc, just a one time thing),
8) Optional step: enable fps meter from dev tools or any fps meter you have or just swipe to bring your gaming mode and see fps, or you can simply feel the fluidity
Click to expand...
Click to collapse
DUDE!!!! FREAKIN WORKSS Just made this account to comment you're a life saver!! holy F why isn't this all over?!!
POST THIS IN REDDIT PUBGM SUBREDDIT https://www.reddit.com/r/PUBGM
happy to help bro i came by this accidentally unfortunately i can't post in subreddit i did however post this in xiaomi subreddit, pubgm subreddit has way too many restrictions and i don't have that karma level to post sadly :/ i just hope this reached the correct peeps and i help them in some way
MercurialWhale said:
STEPS:
1) Set display to 144HZ
2) Open pubgm (as an example taking pubgm)
3) go to training or cheer park or anything
4) minimize the game (DON'T CLOSE IT), Minimize/put game in background and Go To Settings
3) Go to apps
4) Go to Manage apps
5) Search for *battery and performance*
6) Clear all data
7) Go back in game/continue game from where you left and voila! (will work even after restarting game etc, just a one time thing),
8) Optional step: enable fps meter from dev tools or any fps meter you have or just swipe to bring your gaming mode and see fps, or you can simply feel the fluidity
Click to expand...
Click to collapse
thank you for the simpler version, i knew i was doing something wrong at first, working just fine, amazingly the phone doesn't even heat up much lol, nice work
How is the battery , using 90 fps i can only play pubgm for like 1 hour ++ from 100 to 0 haha
lunzereal said:
How is the battery , using 90 fps i can only play pubgm for like 1 hour ++ from 100 to 0 haha
Click to expand...
Click to collapse
haha what your battery drains so fast?? Tbh when i used to play default 90 it used to last me around 5 hours of straight gaming pubgm and on 144 it lasts around 3.5-4 hours, are you sure your battery is fine? whats your battery health download accubattery app from playstore and see your battery health
MercurialWhale said:
haha what your battery drains so fast?? Tbh when i used to play default 90 it used to last me around 5 hours of straight gaming pubgm and on 144 it lasts around 3.5-4 hours, are you sure your battery is fine? whats your battery health download accubattery app from playstore and see your battery health
Click to expand...
Click to collapse
IDK bro i bought this phone not more than one week.... also i updated to latest muiu which is 12.0.11
lunzereal said:
IDK bro i bought this phone not more than one week.... also i updated to latest muiu which is 12.0.11
Click to expand...
Click to collapse
Oooh that's bad, shouldn't have updated it, i suggest you hard reset it asap and don't update it, copy the data you have from it to your pc, hard reset and copy data back, don't update like at all, this update gave poor fps in pubgm even at 90 fps, didn't know about the battery though but i suggest you hard reset it, and check battery timing
MercurialWhale said:
Oooh that's bad, shouldn't have updated it, i suggest you hard reset it asap and don't update it, copy the data you have from it to your pc, hard reset and copy data back, don't update like at all, this update gave poor fps in pubgm even at 90 fps, didn't know about the battery though but i suggest you hard reset it, and check battery timing
Click to expand...
Click to collapse
There is no way i can go back to older MUIU , i tried factory reset and hard reset (wipe data) both still using latest version of MUIU.
DeathStroke47 said:
So it will be 144fps even if i completely debloat the battery and performance app ?
Click to expand...
Click to collapse
No no don't do that, becoz you need that app, whenever you restart your PHONE then it will be again 90 fps, so then you'll have to again open the game and meanwhile keeping it in background go to settings, manage apps and clear battery and performance apps data to get 144 back, if for some reason you're not getting 144 and only 90 after that, change your visual to enhanced from top gaming mode swipe while in game, it'll fix that. So you'll get 144 fps until you restart your PHONE again whenever that is. 144 is hella crazy you get so much advantage especially in close range fights SMGS are dope for that.
DeathStroke47 said:
If i want to return to 90fps, i just have to set display refresh rate as 90hertz ? Then again set to 144hz if i want 144fps ? Without wiping data of battery app again ?
Click to expand...
Click to collapse
Yess! set to 90hz for 90 frames then. Even 90 is advantageous but in 144 you kill people mid animation too OP xD
DeathStroke47 said:
So it will be 144fps even if i completely debloat the battery and performance app ?
Click to expand...
Click to collapse
I just debloat it and the performance still good as every games run in 144hz,,in app manager for every app, the miui battery settings(to set battery optimization) just gone and I'm okay with it.
akrimilerr said:
I just debloat it and the performance still good as every games run in 144hz,,in app manager for every app, the miui battery settings(to set battery optimization) just gone and I'm okay with it.
Click to expand...
Click to collapse
Nicee, enjoy gaming at 144 frames <3
Non english posts removed. Kindly try and include English as stated in the forum rules
4. Use the English language.
We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ or https://www.babelfish.com/ or use one of your choice.
Click to expand...
Click to collapse
Thanks
is this possible with ark mobile?
Thx for sharing.

How To Guide (Outdated) How to force HDR and maximum brightness on Samsung flagships

I didn't find any tutorial to do this, so i started searching by myself, i almost fried my S21 Ultra but it was worth it. Now i can provide a working tutorial to everyone. This works on S21s for sure, it should also work on other models
19/11 edit: This method still works but it's outdated​
1 - Forcing HDR: only available on HDR(10+) videos. Now you can force this yellow-ish tint and better color accuracy everywhere (yes, even when gaming)
i strongly recommend you to use FX explorer.
Create a xbin folder in /system (this is important, don't create it elsewhere)
Inside, create an empty file with no extension: hdr
Open it as text, write 1 and save it
Create a second empty file, name it forcehdr (you can name it whatever you want, make sure you'll remember it later)
Open it as text, and write this:
cp /system/xbin/hdr /sys/devices/platform/panel_drv_0/lcd/panel/mdnie
Save it, and give it execute permissions (octal: 0755). Now you can execute it in a terminal or directly from FX explorer (as root of course !)
----------
2 - Maximum brightness: you already know that your screen gets significantly brighter under the sunlight. Now you'll be able to force this level anytime:
Go to /sys/devices/platform/panel_drv_0/backlight/panel
Take a look at the max brightness value of your screen ("max_brightness") mine is 561 (this value may change a little bit depending of your model)
Go to /system/xbin
Like before, create an empty file, you'll call it "brightness"
And an executable file
Repeat the same process: write your max brightness value inside "brightness" file, save it. Open your executable and write this
cp /system/xbin/brightness /sys/devices/platform/panel_drv_0/backlight/panel
Execute it in a terminal or in FX
You can go back to SDR by making another hdr file and executable, but this time, write 0 instead of 1
RangerKevin2 said:
Create a xbin folder in /system (this is important, don't create it elsewhere)
Inside, create an empty file with no extension: hdr
Open it as text, write 1 and save it
Create a second empty file, name it forcehdr (you can name it whatever you want, make sure you'll remember it later)
Open it as text, and write this:
cp /system/xbin/hdr /sys/devices/platform/panel_drv_0/lcd/panel/mdnie
Click to expand...
Click to collapse
I tried to do it on Note 10+ android 12 but stopped at the command. I have a "[email protected]" directory on my device. Your comment doesn't work and changing the command directory to my "[email protected]" also doesn't work.
rogeros123 said:
I tried to do it on Note 10+ android 12 but stopped at the command. I have a "[email protected]" directory on my device. Your comment doesn't work and changing the command directory to my "[email protected]" also doesn't work.
Click to expand...
Click to collapse
That's why i said "it should" (to make people understand that it may not work on their devices)
The Note 10+ is old compared to S21s.
This doesn't surprise me...
Since i don't have a Galaxy N10, i can't make all the work and tell you how to do it, you'll have to search by yourself, like i did, but i can help.
Search manually or automatically in screen related folders (panel-x, panel_xxx_xxx etc...) for HDR related files (basically a boolean). Don't be afraid to do some tests and open files to change a 0 to a 1.
Once you found the correct file which controls HDR, repeat the same process, create an executable, empty file...
But i have one question (i mean two), when you execute yours, do you have an error as output ? If yes, what is it ?
I would like to try this. But this requires root, right?
Paauul said:
I would like to try this. But this requires root, right?
Click to expand...
Click to collapse
Yes it does, but it's not a drama if you root your Samsung !
Most phones have the same rooting procedure, unlock the bootloader, flash the TWRP for your phone model, then magisk
RangerKevin2 said:
Yes it does, but it's not a drama if you root your Samsung !
Most phones have the same rooting procedure, unlock the bootloader, flash the TWRP for your phone model, then magisk
Click to expand...
Click to collapse
I'd root it if i could. The U1 (US Unlocked) Models don't support OEM/Bootloader unlocking sadly.
But achieving higher brightness is only possible with root, right?
Paauul said:
I'd root it if i could. The U1 (US Unlocked) Models don't support OEM/Bootloader unlocking sadly.
But achieving higher brightness is only possible with root, right?
Click to expand...
Click to collapse
Yes unfortunately, there's no way to do this without root
I tried all this but I don't know if really works hdr 10. My max brightness is 561 like you and it goes via Fx, but when I retry to set brightness from the upper slide doesn't arrive at 561 but i think less.
How is it possible fix this? I would like have really maximum brightness
Thank you
Energixia said:
I tried all this but I don't know if really works hdr 10. My max brightness is 561 like you and it goes via Fx, but when I retry to set brightness from the upper slide doesn't arrive at 561 but i think less.
How is it possible fix this? I would like have really maximum brightness
Thank you
Click to expand...
Click to collapse
Yeah, it's normal. The brightness slider only goes from 0 to 255 and is overrode by the light sensor when it's too bright around you
Just before executing the brightness script in FX, click on the 3 dots icon and select "add shortcut". Now you can access it directly from your launcher
Ok thank you, but there is a way to increase that 255 value on the slider? Sorry for the partial OT
Energixia said:
Ok thank you, but there is a way to increase that 255 value on the slider? Sorry for the partial OT
Click to expand...
Click to collapse
Yes, The brightness slider is controlled by Android itself, so i have to make a custom rom... but i can't, I'm not a dev, i hate coding and i'm probably a bit young to learn this x)
If you have skills in programming, maybe you can try to compile a custom rom for the S21 ?
Oh God, i wish it but I'm too much noob to do this sadly. I never did it and perhaps I don't have these skills
Resurrecting an old thread but this still works on s23 ultra however the location has changed for the brightness files its now /sys/class/backlight/panel0-backlight
I was able to get system rw using a new test version of ro2rw from there telegram with support for s23u. I normally use the app called high brightness mode to access the secret hbm mode however this app doesnt work on s23 and hasn't been updated since 2021

Categories

Resources