Skip to content

Commit

Permalink
Skip IGD when unbinding device drivers on suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
cytadela8 committed Aug 25, 2020
1 parent a695902 commit 21864ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qubes-rpc/prepare-suspend
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@ if [ x"$action" = x"suspend" ]; then
# detach all drivers from PCI devices (the real ones, not emulated by qemu)
echo -n > /var/run/qubes-suspend-pci-devs-detached
for dev_path in /sys/bus/pci/devices/*; do
# skip qemu emulated devs
subsystem_vendor=$(cat "$dev_path/subsystem_vendor")
vendor=$(cat "$dev_path/vendor")
class=$(cat "$dev_path/class")
# skip qemu emulated devs
if [ "$subsystem_vendor" = "0x1af4" ] || [ "$subsystem_vendor" = "0x5853" ]; then
continue
fi
# skip Intel Graphics Device
if [ "$vendor" = "0x8086" ] && [ "$class" = "0x030000" ]; then
continue
fi
if ! [ -e "$dev_path/driver" ]; then
continue
fi
Expand Down

0 comments on commit 21864ab

Please sign in to comment.