Skip to content

Commit

Permalink
ensure_unlocked_desktop: Fix blackscreen case in GNOME laptop
Browse files Browse the repository at this point in the history
Since commit 0701cf4 we can handle the
case where user is not selected in GNOME, so remove the workaround for
the blackscreen in GNOME to handle the blanking properly
  • Loading branch information
ggardet committed Nov 5, 2018
1 parent 16e52a3 commit 811c20b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -475,16 +475,11 @@ sub ensure_unlocked_desktop {
last; # desktop is unlocked, mission accomplished
}
if (match_has_tag 'screenlock') {
unless (get_var('DESKTOP', '') =~ m/gnome/ && check_screen('blackscreen')) {
# Only xscreensaver has a blackscreen as screenlock but gnome might
# show a black screen here as a transient screen due to switch to x11.
# Pressing 'esc' in this case will break the user selection by pressing 'ret'.
wait_screen_change {
send_key 'esc'; # end screenlock
};
}
wait_screen_change {
send_key 'esc'; # end screenlock
};
}
wait_still_screen 2; # slow down loop
wait_still_screen 2; # slow down loop
die 'ensure_unlocked_desktop repeated too much. Check for X-server crash.' if ($counter eq 1); # die loop when generic-desktop not matched
}
}
Expand Down

0 comments on commit 811c20b

Please sign in to comment.