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

fix(fbdev): power display on if FBDEV_DISPLAY_POWER_ON is set #248

Merged
merged 1 commit into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions display/fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,13 @@ void fbdev_init(void)
}
LV_LOG_INFO("The framebuffer device was opened successfully");

#if FBDEV_DISPLAY_POWER_ON
// Make sure that the display is on.
if (ioctl(fbfd, FBIOBLANK, FB_BLANK_UNBLANK) != 0) {
perror("ioctl(FBIOBLANK)");
return;
}
#endif /* FBDEV_DISPLAY_POWER_ON */

#if USE_BSD_FBDEV
struct fbtype fb;
Expand Down
6 changes: 4 additions & 2 deletions lv_drv_conf_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@
#endif

#if USE_FBDEV
# define FBDEV_PATH "/dev/fb0"
# define FBDEV_PATH "/dev/fb0"
# define FBDEV_DISPLAY_POWER_ON 1 /* 1 to force display power during initialization */
#endif

/*-----------------------------------------
Expand All @@ -331,7 +332,8 @@
#endif

#if USE_BSD_FBDEV
# define FBDEV_PATH "/dev/fb0"
# define FBDEV_PATH "/dev/fb0"
# define FBDEV_DISPLAY_POWER_ON 1 /* 1 to force display power during initialization */
#endif

/*-----------------------------------------
Expand Down