Skip to content

Commit 85cb710

Browse files
authored
Merge pull request #3837 from cmitu/runcommand-kms-1
runcommand: ignore KMSTOOL if no DRM card is available
2 parents e2d4e61 + 1daa662 commit 85cb710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function get_config() {
129129
if [[ -n "$DISPLAY" ]] && $XRANDR &>/dev/null; then
130130
HAS_MODESET="x11"
131131
# copy kms tool output to global variable to avoid multiple invocations
132-
elif KMS_BUFFER="$($KMSTOOL -r 2>/dev/null)"; then
132+
elif [[ -c /dev/dri/card0 ]] && KMS_BUFFER="$($KMSTOOL -r 2>/dev/null)"; then
133133
HAS_MODESET="kms"
134134
elif [[ -f "$TVSERVICE" ]]; then
135135
HAS_MODESET="tvs"

0 commit comments

Comments
 (0)