• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Having trouble with screen on and off? Here are some tips that could help

Scheduled Pinned Locked Moved Tutorials
14 Posts 7 Posters 3.0k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @reviewsfornerds
    last edited by Nov 11, 2024, 3:45 PM

    @reviewsfornerds said in Having trouble with screen on and off? Here are some tips that could help:

    the log file shows the error “failed to connect to display”

    yes, the command wants to know WHICH ‘display’ you want to control
    and normally would get that from the environment variables of the terminal window you are running the command in

    BUT

    the module is running it in the background, with NO window, no env variable… oops…

    IN addition, ‘specifying’ the window info may not work as the environment running the wlr_randr command was NOT started UNDER the window manager

    how to fix THAT is beyond my knowledge… as each of these depends on different stuff…
    (and you put it in cron, and cron runs as ROOT, not the local user you would be if you had a terminal window… even more fun)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • C Offline
      captsi
      last edited by Nov 20, 2024, 10:20 AM

      Thank you for the tutorial, it solved my issues of sending the screen to sleep at night. For whatever reasons, I had to use wayland-0 and HDMI-A-2 on my installation.

      M S 2 Replies Last reply Nov 20, 2024, 4:36 PM Reply Quote 1
      • M Online
        mumblebaj Module Developer @captsi
        last edited by Nov 20, 2024, 4:36 PM

        @captsi HDMI-A-2 is probably because you plugged into 2. Glad it helped you though.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @captsi
          last edited by Nov 20, 2024, 5:10 PM

          @captsi said in Having trouble with screen on and off? Here are some tips that could help:

          I had to use wayland-0 and HDMI-A-2

          wayland is the software screen interface,
          HDMI- is the hardware screen interface

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • L Offline
            langejos @mumblebaj
            last edited by Nov 25, 2024, 12:45 AM

            @mumblebaj

            Works great, but when the monitor switches back on, chromium does not start maximized and shows the infobar, both of which are managed in the [autostart] section of wayfire.ini. Is there a way to get the MM display back just as when the Pi launches fresh?

            S M 2 Replies Last reply Nov 25, 2024, 2:36 AM Reply Quote 0
            • S Offline
              sdetweil @langejos
              last edited by Nov 25, 2024, 2:36 AM

              @langejos switch back to x11 in raspi-config

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              L 1 Reply Last reply Dec 9, 2024, 5:15 PM Reply Quote -1
              • G Offline
                Gejakem
                last edited by Nov 25, 2024, 10:42 AM

                For me I needed to use wayland-0 on a RPI5 using the ribbon-display cable.
                From the wlr-randr i got this

                DSI-1 “(null) (null) (DSI-1)”
                Physical size: 154x86 mm
                Enabled: yes
                Modes:
                800x480 px, 60.028999 Hz (preferred, current)
                Position: 368,332
                Transform: 90
                Scale: 1.000000

                So I used DSI-1 instead of HDMI.
                Also I removed the --mode information since i got something like “Mode 800x480 not recognized”, but apparently my display defaults to that.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BKeyport Module Developer @mumblebaj
                  last edited by Nov 25, 2024, 12:07 PM

                  @mumblebaj Course, I just switched back to X11 for now. 🙃

                  The "E" in "Javascript" stands for "Easy"

                  1 Reply Last reply Reply Quote 0
                  • M Online
                    mumblebaj Module Developer @langejos
                    last edited by Nov 25, 2024, 2:26 PM

                    @langejos I am assuming you ran wlr-randr prior to creating the scripts to obtain your mirrors current display settings and then using that as input in the mon.sh?

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      reviewsfornerds
                      last edited by Dec 8, 2024, 12:50 PM

                      Hello all and thank you for all the suggestions. I apologize as I never got followup notifications of your responses.

                      I ended up reverting back to the original desktop as I did not feel like fighting to change everything.

                      Again, thank you all for your time and help.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy