Screen goes black and flickering when plugging a second monitor

Dear all,

-two days ago i did a revert update and it broke my lockscreen, i tried to fix then i did a new installation.
Now i have weird problem where my screen goes black and flickering light when i plug hdmi of a second monitor.
-a second problem also showed up; when laptop goes to sleep automatically i can’t relogging the screen is black and stays that way. still i can lock screen by myself and relogging so this problem only happens on auto lock screen.

i tried reinstalling video-linux and rebooted but still nothing.

Any help, guidance and links to this problem would be appreciated. Thanks alot.