Skip to content

Commit

Permalink
Update validate method to support DSI displays and fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 3, 2024
1 parent e81a285 commit 28ca2dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ovos_gui_plugin_shell_companion/brightness.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ def validate():
if not platform.machine().startswith("arm"):
return False
# check if needed utils installed
if self.vcgencmd is None:
if shutil.which("vcgencmd") is None:
LOG.info("Missing vcgencmd command.")
return False
if self.ddcutil is None:
LOG.info("Missing ddcutil command.")
return False
# ddcutil is used only for HDMI displays
if shutil.which("ddcutil"):
LOG.debug("ddcutil not available for HDMI display adjustments")
return True

#### brightness manager - TODO generic non rpi support
# Check if the auto dim is enabled
Expand Down

0 comments on commit 28ca2dd

Please sign in to comment.