phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 657 forks source link

45hz refresh rate in Redmi 9 #1757

Open zubayer360 opened 3 years ago

zubayer360 commented 3 years ago

In Redmi 9 I am getting 45hz screen refresh rate, instead of 60hz in version 302. It has mediatek helio g80 chipset. Everything else working fine!

phhusson commented 3 years ago

AFAIK refresh rate is dynamic, it's just that the app you're using is showing from refresh rate. If you go on https://www.testufo.com/ and swipe with your fingers, does it say 45fps too?

Le lun. 8 mars 2021 à 17:04, zubayer360 notifications@github.com a écrit :

In Redmi 9 I am getting 45hz refresh rate, instead of 60. It has mediatek helio g80 chipset

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OSGU7D7DIWMZWQTIDLTCTYP7ANCNFSM4YZVBMGQ .

zubayer360 commented 3 years ago

Screenshot_20210308-233547 No, it's not in the app, when booted it seems to have low refresh rate, like the animations of google in the setup, then I checked to be sure that it wasn't lag or something, And i have also booted your android 10 aosps those don't have this problem, but this android 11 has. Its not any particular app is showing 45hz, everything is in 45hz. And i have booted previous versions of android 11 also all of those have this problem, So i think its an issue with android 11 gsis.

satyazaen commented 3 years ago

Already try force fps feature?

zubayer360 commented 3 years ago

No, how to do it?

satyazaen commented 3 years ago

Open settings - treble settings - misc - force fps

phhusson commented 3 years ago

FWIW this intriguied me, so i bought a redmi 9. Just need to wait a week for unlock...

Le sam. 13 mars 2021 à 07:55, satya zaen @.***> a écrit :

Open settings - treble settings - misc - force fps

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1757#issuecomment-797879280, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OXR5HKRZOETWJHQH6DTDMD7TANCNFSM4YZVBMGQ .

zubayer360 commented 3 years ago

Thank you so much!

phhusson commented 3 years ago

I finally manged to unlock that PoS. I get 60fps everywhere, no sign of variable refresh rate or anything, I don't understand. How do you see this 45fps mode?

In Redmi 9 I am getting 45hz screen refresh rate, instead of 60hz in version 302.

You mean that in version 302, you get 45hz, right?

zubayer360 commented 3 years ago

Not only in 302, in every a11 gsi seems to have low refresh rate, your a10 gsis didn't have this problem, maybe it's only my device's problem, i don't know.

phhusson commented 3 years ago

How do you measure 45Hz refresh rate?

archaict commented 3 years ago

How do you measure 45Hz refresh rate?

You can see it by turning on developer mode and show refresh rate, it shows 45 if on "laggy" mode

hello, I'm on redmi note 9, it seems that this problem also happens in this device, the settings on force fps is display X 45 hz, android 10 doesn't have this problem, but when using fng, I notice that it becomes laggy in Android 10. Is it possible to change those settings and lock it in 60hz? Thank you (been searching for threads in xda and come here after week of searching)

EDIT: (sorry for multiple edit)

I've also tried looking into dumpsys SurfaceFlinger like the one on realme x2

  Region undefinedRegion (this=0x7aa9415980, count=1)
    [  0,   0,   0,   0]
  orientation=ROTATION_0, isPoweredOn=1
  transaction-flags         : 00000000
  gpu_to_cpu_unsupported    : 0
  refresh-rate              : 45.000000 fps
  x-dpi                     : 394.716003
  y-dpi                     : 394.716003
  transaction time: 0.000000 us

This is what I get on Android 11, it might also be the same problem for redmi 9.

This problem is not noticeable on Android 10, but when opening Youtube (vanced) in PiP mode, and open browser at the same time, it does lag a lot.

phhusson commented 3 years ago

Did you actually measured it somehow?

14 juin 2021 18:03:31 archaict @.***>:

How do you measure 45Hz refresh rate?

hello, I'm on redmi note 9, it seems that this problem also happens in this device, the settings on force fps is display X 45 hz, android 10 doesn't have this problem, but when using fng, I notice that it becomes laggy in Android 10. Is it possible to change those settings and lock it in 60hz? Thank you (been searching for threads in xda and come here after week of searching)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1757#issuecomment-860803262], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OVBP72QIAJ7LOU6XRDTSYR5FANCNFSM4YZVBMGQ]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OUYACMIMABEK3VHDQLTSYR5FA5CNFSM4YZVBMG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGNHNBPQ.gif]

archaict commented 3 years ago

I actually don't really know how to measure it, but when you install Android 11 GSI, you can see that from Developer Settings > Show Refresh Rate, I don't know other way of measuring fps itself, but I could see in the top left of the screen that are stating 45 (fps) in Red Color while normally, it should be 60. I don't know how to measure it in other way since I'm not a developer myself.

phhusson commented 3 years ago

Ok. If you run https://www.testufo.com/ in a browser, what does it say?

14 juin 2021 19:49:06 archaict @.***>:

I actually don't really know how to measure it, but when you install Android 11 GSI, you can see that from Developer Settings > Show Refresh Rate, I don't know other way of measuring fps itself, but I could see in the top left of the screen that are stating 45 (fps) while normally, it should be 60. I don't know how to measure it in other way since I'm not a developer myself.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1757#issuecomment-860873187], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OV5DLNVVYOG5QF2TYTTSY6JFANCNFSM4YZVBMGQ]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OSPZQ4X4JZEWP3VZ5LTSY6JFA5CNFSM4YZVBMG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGNH6DYY.gif]

archaict commented 3 years ago

I think it will be the same, I've left the Android 11 GSI last night, it's prolly the same as the other commenter show.

ghost commented 3 years ago

It happens to me too, sometimes it's 60Hz, others 45Hz, depending on the reboot. It's annoying and only happens in Android 11 GSI.

It would not be a problem if there were some way to change it with a command like: settings put xiaomi_screen_refresh_rate 60, but it does not exist and I didn't find any way yet.