• 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
666
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, 12:27

    Does anyone know if I can change the behaviour of the DWC window so that it is opened in window mode like this:

    Screenshot.jpg

    I want to be able to access the desktop taskbar and display the DWC window upon boot.

    Thanks in advance.

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by A Former User 7 Jul 2020, 20:26 7 Jul 2020, 15:51

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

      Thats soley handled by Rasbian; I've not tried the full desktop image but poking around DuetPI on github it may suggest you can do

      sudoedit /etc/xdg/lxsession/LXDE/autostart

      and put a # infront of launch-dwc on the last line?

      (if sudoedit doesn't want to edit the file do sudo nano /etc/.../........)

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

        @bearer said in DWC on SBC question:

        Thats soley handled by Rasbian; I've not tried the full desktop image but poking around DuetPI on github it may suggest you can do
        sudoedit /etc/xdg/lxsession/LXDE/autostart
        and put a # infront of launch-dwc on the last line?
        (if sudoedit doesn't want to edit the file do sudo nano /etc/.../........)

        Yes thanks for that but the problem is the way that the window is displayed full screen on start up.

        The standard built in raspbian close,lower and minimise window icons are not available and you have to hover over the top, middle area of the screen to bring up an "X" which then allows you to lower the window. The problem I have is that on the SBC touchscreen it is very hard to get the "X" to appear so preferably I want the standard window icons available.

        What you are suggesting will just stop the window loading on start up but then after loading it manually it will still open the same way without the window icons.

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

          @chas2706 if you run launch-dwc it will run the same setting, but if you launch chrome on your own it should be okay?

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

            @bearer said in DWC on SBC question:

            @chas2706 if you run launch-dwc it will run the same setting, but if you launch chrome on your own it should be okay?

            I have just tried that and found out that it must be something to do with the chrome browser because it opens in exactly the same fashion, without window icons and you close it by hovering at the top and clicking on the "X" that then appears.

            Thanks for your great suggestion though.

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

              thats odd; looked like its just being run in full screen mode (F11 on keyboard to toggle?) but seems odd that chrome should launch in full screen mode when not launched by the launch-dwc script that specifies --start-fullscreen

              need to set up another Pi soon I'll see if I can download the full image before then

              1 Reply Last reply Reply Quote 0
              • undefined
                Carlo @chas2706
                last edited by Carlo 7 Jul 2020, 16:48 7 Jul 2020, 16:47

                @chas2706
                You can just place a short cut to the ip address and it will open in a standard window had the same issue...
                apparently changing the resolution of the screen and when asked to accept or revert selecting revert has fixed this on some installations may be worth a try but the ip link does work

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

                  @Carlo said in DWC on SBC question:

                  @chas2706
                  You can just place a short cut to the ip address and it will open in a standard window had the same issue...
                  apparently changing the resolution of the screen and when asked to accept or revert selecting revert has fixed this on some installations may be worth a try but the ip link does work

                  How do I create a shortcut to the ip address?

                  undefined 1 Reply Last reply 7 Jul 2020, 16:55 Reply Quote 0
                  • undefined
                    Carlo @chas2706
                    last edited by 7 Jul 2020, 16:55

                    @chas2706
                    Open chromium enter the Pi ip 192.xxx.xx.xx
                    save as a favorite add to tool bar
                    Also hitting F11 exits full screen mode or touch screen hold finger on screen for couple seconds and Exit full screen with appear

                    ? 1 Reply Last reply 7 Jul 2020, 17:07 Reply Quote 0
                    • undefined
                      chas2706
                      last edited by 7 Jul 2020, 17:07

                      @Carlo said in DWC on SBC question:

                      @chas2706
                      Open chromium enter the Pi ip 192.xxx.xx.xx
                      save as a favorite add to tool bar
                      Also hitting F11 exits full screen mode or touch screen hold finger on screen for couple seconds and Exit full screen with appear

                      Great. Thanks for that.

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

                        @Carlo said in DWC on SBC question:

                        Open chromium enter the Pi ip 192.xxx.xx.xx

                        as dwc is running on the same host using http://localhost/ would make more sense and not be dependant on user networks which may differ from 192.168/16

                        if exiting full screen works then find launch-dwc and remove --start-fullscreen. if that doesn't work toggle overscan settings in raspi-config?

                        1 Reply Last reply Reply Quote 0
                        • 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
                                          5 out of 21
                                          • First post
                                            5/21
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA