Make "Disable HW Overlays" permanent

Search This thread

tedrogers61

Senior Member
Aug 18, 2012
520
83
Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
 

xxkid123

Senior Member
Jun 13, 2012
282
79
I don't think that there's an option to do that. But ticking the option every boot isn't all that hard.

Sent from my Desire HD using xda app-developers app
 

tedrogers61

Senior Member
Aug 18, 2012
520
83
+1 same question on Jellytime R15 !

On the JT R15 developer thread, someone has noted that it is a known issue.

I'm not sure whether they mean it is a known issue that the HW Overlay box is unchecked after reboot, or whether the graphical issues with checking Disable HW Overlays solves is an issue.

However, people are talking about it, and that pleases me. :cowboy:
 

shaktishekhar

Senior Member
Apr 10, 2012
664
697
Mumbai
sgatechwork.blogspot.in
Permanent Disable Hw overlays Enjoy Script

Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot

Code:
#!/system/bin/sh

(while :
do
    sf=$(service list | grep -c "SurfaceFlinger")

    if [ $sf -eq 1 ]
    then
        service call SurfaceFlinger 1008 i32 1
        break
    else
        sleep 2
    fi
done
) &

:fingers-crossed: enjoy
 

Attachments

  • 91fixoverlays.zip
    274 bytes · Views: 5,508

titanic_fanatic

Senior Member
Sep 21, 2012
2,070
1,947
38
Calgary
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot

Code:
#!/system/bin/sh

(while :
do
    sf=$(service list | grep -c "SurfaceFlinger")

    if [ $sf -eq 1 ]
    then
        service call SurfaceFlinger 1008 i32 1
        break
    else
        sleep 2
    fi
done
) &

:fingers-crossed: enjoy

Always make sure you give credit to the original dev. I wrote this script ;)
 

mojoswagger1980

Senior Member
May 18, 2014
359
45
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot



:fingers-crossed: enjoy
Thanks man! i was just looking for the shell cmd but this works ! *on android 7.1.2 initd. d needed to be emulated....i dont beleive its the default "load on boot" protocol any longer but emulation via kernel auditor seems to do the trick. Doesnt matter as long as i dont have to manually set check the option. Appreciate the work.
 

jacomail95

Senior Member
Nov 11, 2012
950
408
27
Fondi, LT
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot



Always make sure you give credit to the original dev. I wrote this script ;)

Dear @titanic_fanatic, can I kindly ask you if you can adapt your script to make the Skia GPU renderer on Android Oreo applied on boot without it resetting every time? Thank you for the original idea anyway, it was brilliant, I use always your script :)
 

Attachments

  • Screenshot_20171117-173425.png
    Screenshot_20171117-173425.png
    120.6 KB · Views: 681

Ytterbium3835

New member
Oct 18, 2021
1
1
POCO M3
Works fine on a Poco M3 running A11. I've attached a basic Magisk module with titanic_fanatic's script, since that'd probably be easier to use for most people.
 

Attachments

  • Disable HW Overlays (Magisk).zip
    3.2 KB · Views: 454
  • Like
Reactions: rodken

Top Liked Posts