My keyboard and mouse shut down randomly during use. Doesn't matter how long I've been on computer; keyboard/mouse have turned off shortly after powering on as well. I had this same issue before and went into Device Manager and unchecked "allow computer to turn off device" but I remember having to do this before so don't know why setting would have changed back to default unless it has to do with Win updates.

Do I need to change something in the power settings as well? Everything else is working properly.

win 10 v.1903; hp pavilion desktop PC 570-p0xx; Logitech keyboard/mouse