]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/sdl2: Allow host to power down screen
authorBernhard Beschow <shentey@gmail.com>
Sun, 12 May 2024 09:59:45 +0000 (11:59 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 6 Jun 2024 11:20:13 +0000 (14:20 +0300)
commit61687b3b438b8fe8bf53fbc7accfca6f8e5e7d0c
tree2c1293a080192958543b7fc6d77752095a208e2f
parent082940a5a1abe802e2d53c9a60ccea747f673b62
ui/sdl2: Allow host to power down screen

By default, SDL disables the screen saver which prevents the host from powering
down the screen even if the screen is locked. This results in draining the
battery needlessly when the host isn't connected to a wall charger. Fix that by
enabling the screen saver.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20240512095945.1879-1-shentey@gmail.com>
(cherry picked from commit 2e701e6785cd8cc048c608751c6e4f6253c67ab6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/sdl2.c