Skip to content

Instantly share code, notes, and snippets.

@stickman89
Created June 21, 2022 15:20
Show Gist options
  • Save stickman89/cc01b4cd886ae9fd1a4689cb1887f93a to your computer and use it in GitHub Desktop.
Save stickman89/cc01b4cd886ae9fd1a4689cb1887f93a to your computer and use it in GitHub Desktop.
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
+ long_delay=10
+ medium_delay=5
+ short_delay=1
+ echo 'Beginning of startup!'
Beginning of startup!
+ test -e /tmp/vfio-store-display-manager
+ rm -f /tmp/vfio-store-display-manager
+ stop_display_manager_if_running sddm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet sddm.service
+ systemctl is-active --quiet sddm.service
+ return
+ stop_display_manager_if_running gdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet gdm.service
+ echo gdm
+ systemctl stop gdm.service
+ systemctl is-active --quiet gdm.service
+ return
+ stop_display_manager_if_running lightdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lightdm.service
+ systemctl is-active --quiet lightdm.service
+ return
+ stop_display_manager_if_running lxdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet lxdm.service
+ systemctl is-active --quiet lxdm.service
+ return
+ stop_display_manager_if_running xdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet xdm.service
+ systemctl is-active --quiet xdm.service
+ return
+ stop_display_manager_if_running mdm
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet mdm.service
+ systemctl is-active --quiet mdm.service
+ return
+ stop_display_manager_if_running display-manager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl is-active --quiet display-manager.service
+ systemctl is-active --quiet display-manager.service
+ return
+ test -e /tmp/vfio-bound-consoles
+ rm -f /tmp/vfio-bound-consoles
+ (( i = 0 ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon0
++ cat /sys/class/vtconsole/vtcon0/name
++ grep -c 'frame buffer'
+ '[' 0 = 1 ']'
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon1
++ cat /sys/class/vtconsole/vtcon1/name
++ grep -c 'frame buffer'
+ '[' 1 = 1 ']'
+ echo 0
+ echo 'Unbinding console 1'
Unbinding console 1
+ echo 1
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon2
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon3
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon4
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon5
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon6
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon7
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon8
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon9
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon10
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon11
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon12
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon13
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon14
+ (( i++ ))
+ (( i < 16 ))
+ test -x /sys/class/vtconsole/vtcon15
+ (( i++ ))
+ (( i < 16 ))
+ test -e /tmp/vfio-is-nvidia
+ rm -f /tmp/vfio-is-nvidia
+ lsmod
+ grep nvidia
+ echo true
+ echo efi-framebuffer.0
+ echo 'End of startup!'
End of startup!
+ echo 'Beginning of teardown!'
Beginning of teardown!
+ input=/tmp/vfio-store-display-manager
+ read displayManager
+ command -v systemctl
/usr/bin/systemctl
+ systemctl start gdm.service
+ read displayManager
+ input=/tmp/vfio-bound-consoles
+ read consoleNumber
+ test -x /sys/class/vtconsole/vtcon1
+ read consoleNumber
+ test -e /tmp/vfio-is-nvidia
+ echo efi-framebuffer.0
+ echo 'End of teardown!'
End of teardown!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment