I am unable to set the correct screen resolution when trying to connect TV/Monitor(via HDMI) with RaspberryPi3 at runtime, the following are the steps:
- Disconnect TV if already connected
- Boot RaspberryPI
- Wait till it boots
- Connect TV with RaspberryPI
I tried the following:
- added lines in /boot/config.txt hdmi_force_hotplug=1 hdmi_group=1 hdmi_mode=16
- It worked for a particular TV with the preferred settings I configured the mode and group based on the TV's configuration
The issue is when I connect (hot-plug) to different TV at runtime, the resolution is not proper.
I tried the command tvservice, etc. It didn't help either.
Is there is a way/command to set the Screen resolution for any TV at runtime?