Hi Ankit Patel,
Thanks for your reply
Xserver restart command:
$ systemctl restart xserver-nodm
Actually HDMI hotplug problem creates on display bpp value for me
If I set display bootargs as
video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=16
(or)
video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24,bpp=16
It works fine when bpp value is set as16, If I set bpp=24 or bpp=32 it creates HDMI hotplug issue.
But still, Xserver has some other issue while changing the display resolution after hotplugging (setting bpp=16 in u-boot bootargs) display is stretched.
Steps to create HDMI issue:
Step 1: Boot the device without HDMI (Display bootargs: video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=16)
Step 2: Connect the HDMI display (Now display is working. But after change, the resolution in sys entry or xrandr command display is corrupted or stretched)
Step 3: check the supported modes in "sys entry" and "Xrandr command" (Still both are different)
$ cat /sys/class/graphics/fb0/modes
$ xrandr
Step 4: If we update the mode in "sys entry" the current resolution is updated in the driver side ($ cat /sys/class/graphics/fb0/mode or $ fbset). But in xserver side the current resolution is not update, so we need the set the current resolution in xserver side by using xrandr command to solve the HDMI display streched issue temporaly.
To solve that issue we need to update the current resolution in Xrander also.
Best regards,
Bala