1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

SystemServer: Remove search of a FramebufferDevice

As the framebuffer devices are gone by now, searching for them makes no
sense, so instead, let's remove this check now. If the user requested to
boot into text mode, he probably knows what he is doing and we should
not try to warn him about this.
This commit is contained in:
Liav A 2022-05-06 00:58:25 +03:00 committed by Linus Groh
parent 0d784de3a6
commit 7ab51b6df2

View file

@ -72,14 +72,6 @@ static ErrorOr<void> determine_system_mode()
g_system_mode = system_mode;
dbgln("Read system_mode: {}", g_system_mode);
// FIXME: Support more than one framebuffer detection
struct stat file_state;
int rc = lstat("/dev/fb0", &file_state);
if (rc == 0 && g_system_mode == "text") {
dbgln("WARNING: Text mode with framebuffers won't work as expected! Consider using 'fbdev=off'.");
}
dbgln("System in {} mode", g_system_mode);
return {};
}