1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-31 19: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 $rdppass = "ciriofcintra";
my $ip = "172.16.2.177"; my $ip = "172.16.2.177";
my $password = get_var("USER_PASSWORD", "weakpassword"); my $password = get_var("USER_PASSWORD", "weakpassword");
my $login = get_var("USER_LOGIN", "test");
# Switch to console and install the necessary packages. # Switch to console and install the necessary packages.
$self->root_console(tty => 3); $self->root_console(tty => 3);
assert_script_run("dnf install -y freerdp", timeout => 120); 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 # Return to the desktop
desktop_vt(); desktop_vt();
# Wait until the RDP server is ready and lock parallel connection. # Wait until the RDP server is ready and lock parallel connection.
mutex_lock("kaermorhen_opened"); mutex_lock("kaermorhen_opened");
# Unlock the session if it has locked in the meantime. ## Based on how fast the server is, we might have arrived into
if (check_screen("panel_screen_locked")) { ## a situation where the .
send_key("up"); #if (check_screen("panel_screen_locked")) {
sleep(1); # send_key("up");
type_very_safely("$password\n"); # sleep(1);
} # type_very_safely("$password\n");
#}
# Open terminal and make a connection to the remote server. # Open terminal and make a connection to the remote server.
menu_launch_type("terminal"); menu_launch_type("terminal");