So I'm setting the resolution by editing system files. This has been the only way that works for me. More preciesly I issue this command:

echo 1080p60hz > sys/class/display/mode 

to the device's termninal. This succesfully changes the resolution to 1080p60hz or to a different value if it's issued. However after restart the device returns to its previous resolution.

Does nayone know how to make it remember the new resolution? Probably another file needs to be edited but I haven't found out which.

  • 1
    I've answered the question of how to change the resolution of a phone before, here. Survives reboots as well.
    – SSS
    Jun 13 '18 at 14:01
  • Thanks but this doesn't really work for me. The device I'm talking about is a TV, and the wm size looks to work mostly on phones. It does produce a change on the TV but it's not equivalent to changing the resolution. Jun 14 '18 at 7:30

Several options:

  • modify the boot image accordingly, or
  • use init.d scripts if your device supports them (if not, there are some apps to achieve that). Or,
  • use an automation app to do that on BOOT_COMPLETED (e.g. tasker supports that, e.g. running a script on BOOT_COMPLETED – called "device start" there IIRC).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.