• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

DWC on SBC question

Scheduled Pinned Locked Moved
Duet Web Control
3
21
667
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.
  • undefined
    chas2706
    last edited by 7 Jul 2020, 17:17

    Thanks both of you.
    All sorted now.

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by 7 Jul 2020, 17:37

      would you mind sharing, others may find the thread useful later?

      1 Reply Last reply Reply Quote 0
      • undefined
        chas2706
        last edited by 7 Jul 2020, 18:27

        Just making you aware that when I edited autostart in /etc/xdg/lxsession and put a hash in front of @launch-dwc, when I rebooted I found that DWC still autostarted.
        In my duetpi image there is another autostart found in /home/pi/.config/lxsession/LXDE/autostart.
        It has exactly the same content as the other one in etc/xdg/lxsession but this MUST be the one the pi is looking at. Hashed out in here and DWC does not autostart.

        Also I found a quicker solution to my problem.
        In chrome I set the home page as duet3.local/ then in /home/pi/.config/lxsession/LXDE/autostart I hashed out @launch_dwc and added @chromium-browser.
        Now on startup I have chrome autostarting in windowed mode and connected to DWC.

        ? 1 Reply Last reply 7 Jul 2020, 18:42 Reply Quote 0
        • undefined
          chas2706
          last edited by 7 Jul 2020, 18:30

          Here's a copy of the new autostart file:

          @lxpanel --profile LXDE
          @pcmanfm --desktop --profile LXDE
          @xscreensaver -no-splash
          @/home/pi/./atx_on.sh
          #@launch-dwc
          @chromium-browser

          Once again, thanks everyone for your help.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @chas2706
            last edited by 7 Jul 2020, 18:42

            @chas2706 said in DWC on SBC question:

            there is another autostart found in /home/pi/.config/lxsession/LXDE/autostart

            huh, interesting, and redundant. wasn't clear from the DuetPi repo, but admittedly not familiar with pi-gen at all.

            if fullscreen was the issue I'd lean towards editing launch-dwc and commenting out --start-fullscreen from there, then it works even if you add another user, change windowmanager or whatnot.

            sudo sed -i 's/ --start-fullscreen/ #--start-fullscreen/' /usr/bin/launch-dwc should take care of it with a one-liner

            1 Reply Last reply Reply Quote 0
            • undefined
              chas2706
              last edited by 7 Jul 2020, 18:45

              @bearer said in DWC on SBC question:

              @chas2706 said in DWC on SBC question:

              there is another autostart found in /home/pi/.config/lxsession/LXDE/autostart

              huh, interesting, and redundant. wasn't clear from the DuetPi repo, but admittedly not familiar with pi-gen at all.
              if fullscreen was the issue I'd lean towards editing launch-dwc and commenting out --start-fullscreen from there, then it works even if you add another user, change windowmanager or whatnot.
              sudo sed -i 's/ --start-fullscreen/ #--start-fullscreen/' /usr/bin/launch-dwc should take care of it with a one-liner

              Not so, because @launch-dwc does not have the extra --start-fullscreen parameters in it!

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by 7 Jul 2020, 18:47

                it should
                https://github.com/Duet3D/DuetPi/blob/master/stage-dsf-gui/00-autologin/files/launch-dwc#L3

                (and mine did)

                1 Reply Last reply Reply Quote 0
                • undefined
                  chas2706
                  last edited by 7 Jul 2020, 18:48

                  Sorry, I was looking in the wrong place!
                  Going to try that now.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    chas2706
                    last edited by 7 Jul 2020, 18:56

                    You are a star.

                    Commenting out --start-fullscreen works and has the extra benefit of no page tabs or search bar so you basically get full screen but with the window control buttons.
                    Cheers.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by 7 Jul 2020, 19:02

                      That might be the --app parameter that does that. Interesting learned something new today!

                      Anyways, glad it worked out!

                      1 Reply Last reply Reply Quote 0
                      21 out of 21
                      • First post
                        21/21
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA