mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
Detect proprietary DisplayLink drivers
evdi is open-source, but is just some condom for their proprietary user-space driver.
This commit is contained in:
parent
ff07eab85b
commit
a6ef12d968
1 changed files with 17 additions and 8 deletions
|
@ -128,18 +128,27 @@ static void detect_proprietary(struct wlr_backend *backend, void *data) {
|
|||
return;
|
||||
}
|
||||
|
||||
bool is_unsupported = false;
|
||||
if (strcmp(version->name, "nvidia-drm") == 0) {
|
||||
if (allow_unsupported_gpu) {
|
||||
sway_log(SWAY_ERROR, "!!! Proprietary Nvidia drivers are in use !!!");
|
||||
} else {
|
||||
sway_log(SWAY_ERROR,
|
||||
"Proprietary Nvidia drivers are NOT supported. "
|
||||
"Use Nouveau. To launch sway anyway, launch with "
|
||||
"--unsupported-gpu and DO NOT report issues.");
|
||||
exit(EXIT_FAILURE);
|
||||
is_unsupported = true;
|
||||
sway_log(SWAY_ERROR, "!!! Proprietary Nvidia drivers are in use !!!");
|
||||
if (!allow_unsupported_gpu) {
|
||||
sway_log(SWAY_ERROR, "Use Nouveau instead");
|
||||
}
|
||||
}
|
||||
|
||||
if (strcmp(version->name, "evdi") == 0) {
|
||||
is_unsupported = true;
|
||||
sway_log(SWAY_ERROR, "!!! Proprietary DisplayLink drivers are in use !!!");
|
||||
}
|
||||
|
||||
if (!allow_unsupported_gpu && is_unsupported) {
|
||||
sway_log(SWAY_ERROR,
|
||||
"Proprietary drivers are NOT supported. To launch sway anyway, "
|
||||
"launch with --unsupported-gpu and DO NOT report issues.");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
drmFreeVersion(version);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue