Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tici: limit brightness with display uptime #22918

Merged
merged 8 commits into from
Nov 16, 2021
Merged

tici: limit brightness with display uptime #22918

merged 8 commits into from
Nov 16, 2021

Conversation

haraschax
Copy link
Contributor

No description provided.

static bool TICI() { return true; }
static std::string get_os_version() {
return "AGNOS " + util::read_file("/VERSION");
};

static void reboot() { std::system("sudo reboot"); };
static void poweroff() { std::system("sudo poweroff"); };
static void set_brightness(int percent) {
static void set_brightness(int percent, float ui_running_time) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just put this all in Device::updateBrightness until it gets moved to agnos

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@adeebshihadeh adeebshihadeh added this to the 0.8.11 milestone Nov 16, 2021
@adeebshihadeh adeebshihadeh changed the title TICI ui burnin limits tici: limit brightness with display uptime Nov 16, 2021
selfdrive/ui/ui.h Outdated Show resolved Hide resolved
@adeebshihadeh adeebshihadeh merged commit c9218a5 into master Nov 16, 2021
@adeebshihadeh adeebshihadeh deleted the tici_no_burn branch November 16, 2021 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants