diff --git a/stratosphere/fatal/source/fatal_main.cpp b/stratosphere/fatal/source/fatal_main.cpp
index d537eff42..e5f1065ce 100644
--- a/stratosphere/fatal/source/fatal_main.cpp
+++ b/stratosphere/fatal/source/fatal_main.cpp
@@ -82,6 +82,11 @@ void __appInit(void) {
std::abort();
}
+ rc = lblInitialize();
+ if (R_FAILED(rc)) {
+ std::abort();
+ }
+
rc = psmInitialize();
if (R_FAILED(rc)) {
std::abort();
@@ -99,6 +104,7 @@ void __appExit(void) {
/* Cleanup services. */
spsmExit();
psmExit();
+ lblExit();
pcvExit();
bpcExit();
pminfoExit();
diff --git a/stratosphere/fatal/source/fatal_task.cpp b/stratosphere/fatal/source/fatal_task.cpp
index 1c474fa0f..51beefd7e 100644
--- a/stratosphere/fatal/source/fatal_task.cpp
+++ b/stratosphere/fatal/source/fatal_task.cpp
@@ -19,6 +19,7 @@
#include "fatal_task.hpp"
#include "fatal_task_error_report.hpp"
+#include "fatal_task_screen.hpp"
#include "fatal_task_clock.hpp"
#include "fatal_task_power.hpp"
@@ -56,7 +57,7 @@ void RunFatalTasks(FatalContext *ctx, u64 title_id, bool error_report, Event *er
RunTask(new PowerControlTask(ctx, title_id, erpt_event, battery_event));
/* TODO: RunTask(new ShowFatalTask(ctx, title_id, battery_event)); */
/* TODO: RunTask(new StopSoundTask(ctx, title_id)); */
- /* TODO: RunTask(new BacklightControlTask(ctx, title_id)); */
+ RunTask(new BacklightControlTask(ctx, title_id));
RunTask(new AdjustClockTask(ctx, title_id));
RunTask(new PowerButtonObserveTask(ctx, title_id, erpt_event));
RunTask(new StateTransitionStopTask(ctx, title_id));
diff --git a/stratosphere/fatal/source/fatal_task_screen.cpp b/stratosphere/fatal/source/fatal_task_screen.cpp
new file mode 100644
index 000000000..98e42859e
--- /dev/null
+++ b/stratosphere/fatal/source/fatal_task_screen.cpp
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2018 Atmosphère-NX
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#include
+#include "fatal_task_screen.hpp"
+
+
+void BacklightControlTask::TurnOnBacklight() {
+ lblSwitchBacklightOn(0);
+}
+
+Result BacklightControlTask::Run() {
+ TurnOnBacklight();
+ return 0;
+}
diff --git a/stratosphere/fatal/source/fatal_task_screen.hpp b/stratosphere/fatal/source/fatal_task_screen.hpp
new file mode 100644
index 000000000..3ea9151ee
--- /dev/null
+++ b/stratosphere/fatal/source/fatal_task_screen.hpp
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2018 Atmosphère-NX
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#pragma once
+#include
+#include
+#include "fatal_task.hpp"
+
+class BacklightControlTask : public IFatalTask {
+ private:
+ void TurnOnBacklight();
+ public:
+ BacklightControlTask(FatalContext *ctx, u64 title_id) : IFatalTask(ctx, title_id) { }
+ virtual Result Run() override;
+ virtual const char *GetName() const override {
+ return "BacklightControlTask";
+ }
+};
\ No newline at end of file