summaryrefslogtreecommitdiff
path: root/units/suspend
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2022-04-12 09:40:54 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2022-04-12 09:40:54 +0200
commit6cf5876f57aa990e3d6a5257fdc6fee70a8886e1 (patch)
treea4ff7baf99219129a5c1bf2bf6775cf0a45caf6e /units/suspend
parent8cbb8b6c097e03a068ea2a1c1d1dcaff8e0649a9 (diff)
units:graphics: Use inxi on wayland sessions to display driver info
graphics_driver.py does not work on wayland since it parses Xorg log files. Fixes: lp:1968641
Diffstat (limited to 'units/suspend')
-rw-r--r--units/suspend/suspend-graphics.pxu6
1 files changed, 6 insertions, 0 deletions
diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu
index 22012ec..4095273 100644
--- a/units/suspend/suspend-graphics.pxu
+++ b/units/suspend/suspend-graphics.pxu
@@ -208,6 +208,12 @@ command:
# shellcheck disable=SC1091
source graphics_env.sh {{ driver }} {{ index }}
graphics_driver.py
+ if [[ $XDG_SESSION_TYPE == "wayland" ]]
+ then
+ inxi_snapshot -Gazy
+ else
+ graphics_driver.py
+ fi
estimated_duration: 0.500
_description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {{ vendor }} {{ product }} graphics card
_summary: Test X driver/version after suspend for {{ vendor }} {{ product }}