implement display power (#21731)

* implement display power

* FB_BLANK_POWERDOWN

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f48064c4d7
commatwo_master
sshane 4 years ago committed by GitHub
parent dc0c4bd99b
commit 1f2fe189bd
  1. 8
      selfdrive/hardware/tici/hardware.h

@ -25,7 +25,13 @@ public:
brightness_control.close();
}
};
static void set_display_power(bool on) {};
static void set_display_power(bool on) {
std::ofstream bl_power_control("/sys/class/backlight/panel0-backlight/bl_power");
if (bl_power_control.is_open()) {
bl_power_control << (on ? "0" : "4") << "\n";
bl_power_control.close();
}
};
static bool get_ssh_enabled() { return Params().getBool("SshEnabled"); };
static void set_ssh_enabled(bool enabled) { Params().putBool("SshEnabled", enabled); };

Loading…
Cancel
Save