Framework 16 internal display freezing

this workaround with the freeze command works but I had to adapt it to echo freeze | sudo tee /sys/power/state which needs sudo, which means I need to enter my password while not knowing if the password dialog is actually open or not…