Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include all possible DRM device paths #4

Merged
merged 1 commit into from
Aug 15, 2021
Merged

Include all possible DRM device paths #4

merged 1 commit into from
Aug 15, 2021

Conversation

Socob
Copy link
Contributor

@Socob Socob commented Aug 13, 2021

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants