File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Userland/Services/SystemServer Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ static ErrorOr<void> activate_base_services_based_on_system_mode()
136136 done_searching_for_gpu = true ;
137137 });
138138
139+ auto log = Core::Timer::create_single_shot (1000 , [&]() {
140+ dbgln (" Waiting on /dev/gpu/connector0 to appear..." );
141+ });
142+
139143 auto watcher = TRY (Core::FileWatcher::create ());
140144 watcher->on_change = [&](Core::FileWatcherEvent const & event) {
141145 if (event.event_path != " /dev/gpu/connector0" sv)
@@ -148,6 +152,7 @@ static ErrorOr<void> activate_base_services_based_on_system_mode()
148152 // The GPU might have appeared while we were setting up the watcher.
149153 // Only wait for the file if we can't stat it.
150154 if (Core::System::lstat (" /dev/gpu/connector0" sv).is_error ()) {
155+ log->start ();
151156 timeout->start ();
152157 Core::EventLoop::current ().spin_until ([&]() { return done_searching_for_gpu; });
153158 }
You can’t perform that action at this time.
0 commit comments