ok, here are the settings on my ventura concerning the sleep mode and display:
system settings:
energy (orange box with white bulb)> put hard disk in sleep mode whenever is possible, I DEACTIVATED THAT
> activate power nap , I DEACTIVATED THAT
> wake up from sleep mode for internet access, i left it ACTIVATED
displays> prevent automatic sleep mode when screen is deactivated, I DEACTIVATED THAT
lock screen > how minutes after the screen saver will begin when screen is inactive (this is set by me to 5')
> how many minutes after the screen will be deactivated when it is inactive (this is set by me to 10')
require password after screensaver or deactivated screen (this is set by me to 15')
after i did all these settings and had some time with my imac ,i left it alone to see what will happen.
well, i had a screensaver ,then screen went black according to my settings. i left it for hours .when came back and tried to wake up the screen by pressing a key as usually, no response.
so i pressed the power button and screen woke up.but i had set the password code in my personal settings when from screen wake up.but i couldn't write anything on the password area.so i thought to connect the usb cable charger and connected it to the keyboard.that was that!it worked!i typed my password and took me into my os.but then mouse didn't work.
i pressed the power button again for a while until the message pop up appears saying /giving me the choice to restart my mac.i did that and then the mouse came back alive.
conclusion.with the hub disconnected ,certainly that wasn't the cause. sleep mode no more, so that wasn't the cause either.
so the cause is the bluetooth ,thats my conlusion.when screen goes black, trying to wake it up then i loose the bluetooth .bluetooth is off. not all the times i wake up the screen,maybe 2/10 times.its happens more often sometimes.
so why am i loosing the bluetooth connection for mouse and keyboard when trying to wake up the screen from black? does this has to do with hard disc as i initially thought ot it has to do with something else?