1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-29 18:45:46 +00:00

Switch off idle dimming

This commit is contained in:
Lukáš Růžička 2025-08-05 11:22:57 +02:00 committed by Adam Williamson
parent e7c9663ba0
commit afb595c2e3

View File

@ -14,23 +14,33 @@ sub run {
my $rdppass = "ciriofcintra";
my $ip = "172.16.2.177";
my $password = get_var("USER_PASSWORD", "weakpassword");
my $login = get_var("USER_LOGIN", "test");
# Switch to console and install the necessary packages.
$self->root_console(tty => 3);
assert_script_run("dnf install -y freerdp", timeout => 120);
# When the subsequent scripts wait for the server to complete the settings,
# the machines go to sleep and waking them up is unreliable when we need
# them. Let us switch off that behaviour first.
assert_script_run("su $login", timeout => 20);
enter_cmd("dconf write /org/gnome/settings-daemon/plugins/power/idle-dim false");
enter_cmd("dconf write /org/gnome/desktop/session/idle-delay 0");
enter_cmd("dconf write /org/gnome/desktop/screensaver/lock-enabled false");
# Return to the desktop
desktop_vt();
# Wait until the RDP server is ready and lock parallel connection.
mutex_lock("kaermorhen_opened");
# Unlock the session if it has locked in the meantime.
if (check_screen("panel_screen_locked")) {
send_key("up");
sleep(1);
type_very_safely("$password\n");
}
## Based on how fast the server is, we might have arrived into
## a situation where the .
#if (check_screen("panel_screen_locked")) {
# send_key("up");
# sleep(1);
# type_very_safely("$password\n");
#}
# Open terminal and make a connection to the remote server.
menu_launch_type("terminal");