Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timed screen brightness setting for orange pi kiosk

Featured Replies

I'm building an advertisement kiosk with the orange pi one, but I have concerns for too high night time screen brightness or too low day time screen brightness. Please could someone one provide me with a solution to solve this issue. I'm not a guru when it comes to Linux programming, but I can run basic Linux commands and can find my way around terminal. I've seen a few solutions; like this (https://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset), where they get the sunrise and sunset times of the day from a website and use a Cron script to set the screen brightness based on that. But my kiosk is going to be offline so that won't work for me. I will really appreciate the help, thanks in advance.

  • Author

Really nice to get your replies @Igor and @Larry Bank, I like the idea, but that might have to be a future upgrade. I need to put this out as soon as possible, so a bash script that will try to run at specific times (say 6:50 am, 745am, 6pm, 7pm and 7:45pm) and set the screen brightness will be perfect for now. I can buy the ambient light sensor and integrate it later. Thanks

  • Author

 @Igor @Larry Bank I want to implement this automatically on an orange pi. I'm building an outdoor advertising kiosk, it's going to be offline as well in a remote location. so I just want a Cron script that can adjust the connected screen brightness based on the time of the day.

From my brief look at Cron scripts (I've never used them), it looks like it will just fire off events at fixed times. This means you'll need to dynamically adjust the script to follow the changing daylight times. This sounds like a lot more effort than just adding a light sensor. Is the time to develop the software really that much cheaper than adding a $2 sensor to each kiosk?

From my brief look at this topic actually setting the screen brightness will be the biggest problem. Without a proper backlight driver and without a DDC I2C interface in the legacy kernel the only way left would be color correction via xcalib, and even this should work only with X server.

 

34 minutes ago, Larry Bank said:

From my brief look at Cron scripts (I've never used them), it looks like it will just fire off events at fixed times. This means you'll need to dynamically adjust the script to follow the changing daylight times.

The cron based solution doesn't have to be minute to minute precise but it will require an external RTC module to keep the correct date and time without NTP, and hardcoding some local sunrise/sunset tables.

 

34 minutes ago, Larry Bank said:

This sounds like a lot more effort than just adding a light sensor. Is the time to develop the software really that much cheaper than adding a $2 sensor to each kiosk?

Since this will be an outdoor kiosk according to @kalio the light sensors will need to have dust/dirt/rain/snow protection (or regular cleaning) as well as "protection" against artificial light sources (i.e. street lights). So is it really cheaper/simpler?

 

And in any case any solution will require more than basic Linux knowledge and programming skills, so for a commercial project with a deadline it would be better to hire someone to do the software part for you.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.