MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. jrettsch
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 1

    jrettsch

    @jrettsch

    Project Sponsor

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    jrettsch Unfollow Follow
    Project Sponsor

    Latest posts made by jrettsch

    • RE: Waveshare Magic Mirror touch screen

      @aprilmaccydee

      Thanks for this example! I got the Waveshare Magic Mirror a few days ago and was looking for a solution to dim the backlight.

      I’m using xscreensaver to blank the screen after 2 minutes and used the ddcutil command to dim the backlight.

      Here is the script I’m using:

      #!/bin/sh
      process() {
              while read line; do
                      case "$line" in
                              UNBLANK*)
                                      sudo ddcutil setvcp 10  100
                              ;;
                              BLANK*)
                                      sudo ddcutil setvcp 10  1
                              ;;
                      esac
              done
      }
      
      xscreensaver-command -watch | process   
      

      I use xscreensaver-command -watch to get the state changes, see https://www.jwz.org/xscreensaver/man3.html

      posted in Hardware
      jrettsch
      jrettsch