Currently, DRM_DEVICE_PATH=/sys/class/graphics/fb0/device/drm/card0 is hard-coded. However, on some systems, this specific path may not exist (for example, I have /sys/class/graphics/fb0/device/drm/card1 and /sys/class/graphics/fb1/device/drm/card0), causing the entire script to fail. To prevent this, replace the hard-coded “0”s by globs.
Currently,
DRM_DEVICE_PATH=/sys/class/graphics/fb0/device/drm/card0
is hard-coded. However, on some systems, this specific path may not exist (for example, I have/sys/class/graphics/fb0/device/drm/card1
and/sys/class/graphics/fb1/device/drm/card0
), causing the entire script to fail. To prevent this, replace the hard-coded “0”s by globs.