RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Desktop from ports fails to load (4.1)

    Scheduled Pinned Locked Moved Help and Support
    desktopportslxde desktop
    42 Posts 13 Posters 22.9k Views
    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.
    • F
      funkyspider
      last edited by

      Pi Model 3 B
      RetroPie Version 4.1
      Built From Pre made SD Image on RetroPie website

      Completely clean installation from SD card image, followed the additional step to install desktop
      where-did-the-desktop-go

      which adds an item to the Ports menu. I also confirmed the last step of the installation which changes permission to "Anyone"

      Desktop sh
      #! /bin/bash
      " /opt/retropie/supplementary/runcommand/runcommand. sh" 0 PORT "lxde" ""

      Launching this fails, quitting back to the menu after a few seconds.
      Note : Quitting to command line F4 and using startx the desktop loads fine.

      X .Org X Server 1.18.4
      Release Date: 2016-07-19
      X Protocol Version 11, Revision 0
      Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
      Current Operating System: Linux retropie 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l
      Kernel command line: 8250.nr_uarts=0 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa02082 bcm2709.serial=0x2aa9319b smsc95xx.macaddr=B8:27:EB:A9:31:9B bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 consoleblank=0 plymouth.enable=0
      Build Date: 11 November 2016 11:59:59AM
      Current version of pixman: 0.33.3
      to make sure that you have the latest version.
      Markers: (--) probed, (**) from config file, (==) default setting,
      (++) from command line, (!!) notice, (II) informational,
      (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
      (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Sat Dec 17 23:45:45 2016
      (==) Using system config directory "/usr/share/X11/xorg.conf.d"
      (EE)
      Fatal server error:
      (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
      (EE)
      (EE) Server terminated with error (1). Closing log file.
      xinit: giving up
      xinit: unable to connect to X server: Connection refused
      xinit: server error*

      Note : prior to this it complained about opening tty0 - I changed the protection on tty0, just to check at which point it moved onto this second error.

      Seems to be a privilege issue.

      Changing the contents of Desktop. sh to the following works correctly.
      #!/bin/bash
      sudo startx

      Also I've installed Chromium and IceWeasel, both have the same issue when launching - quit back to port menu.

      Chromium. sh
      #!/bin/bash
      "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 PORT "chromium" ""

      N 1 Reply Last reply Reply Quote 0
      • N
        nuppeppou @funkyspider
        last edited by

        @funkyspider sudo dpkg-reconfigure x11-common

        1 Reply Last reply Reply Quote 0
        • F
          funkyspider
          last edited by funkyspider

          When I try this using Putty I get

          update-rc.d: warning: start and stop actions are no longer supported; failing back to defaults

          However, when the config app opens "Anybody" is already highlighted

          and checking /etc/X11/Xwrapper.config
          allowed_users=anybody

          1 Reply Last reply Reply Quote 0
          • F
            funkyspider
            last edited by

            I don't suppose anyone else can shed any light on this. I'm building the Pi for a friends son for christmas. All he wants is emulated PS1 games and a web browser with a simple interface.

            Many thanks

            1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators
              last edited by

              I'm not sure what the problem is but I can't reproduce it here. If you have run the desktop as sudo already you may have left behind some root owned files in the pi home folder which could be causing an issue.

              Please start from a fresh image, and then Update RetroPie-Setup and from "Configuration / tools -> Raspbian Tools", install the pixel desktop.

              Should work fine as I tested it recently from a fresh image.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              F 1 Reply Last reply Reply Quote 0
              • wally.yehW
                wally.yeh
                last edited by wally.yeh

                Same probelm here, don't know the root cause.
                also check "sudo dpkg-reconfigure x11-common", and "anybody" already set.

                now I have follow steps to use desktop:

                1. alt+f4, close emulationstation then drop to console
                2. ctrl+alt+f1, switch to tty1
                3. startx

                Not suggest use "sudo startx", you'll login to desktop as "root", not user "pi".

                I did install a bunch packages like moonlight-embedded, kodi ...etc.
                I'll try step by step to locate the bug if I have time.

                1 Reply Last reply Reply Quote 1
                • F
                  funkyspider @BuZz
                  last edited by funkyspider

                  @BuZz

                  Very odd. I did exactly that - I've done it several times now in fact. This is a completely stock install with nothing but setting up gamepad (wired PS3 controller), Update setup, install pixel, reboot into emulationstation and try to run desktop via Ports.

                  Same error, driving me mad now!

                  Fatal server error:
                  (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
                  (EE)
                  (EE)

                  xWrapper.conf is correct
                  #dpkg-reconfigure x11-common
                  allowed_users=anybody

                  1 Reply Last reply Reply Quote 0
                  • F
                    funkyspider
                    last edited by

                    Tried retropie build 4.02

                    Parameters:
                    Executing: startx
                    /opt/retropie/supplementary/runcommand/runcommand.sh: line 941: startx: command not found

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      funkyspider @funkyspider
                      last edited by

                      back to 4.1

                      /home/pi/.local/share/xorg/Xorg.0.log

                      [ 1065.710]
                      X.Org X Server 1.18.4
                      Release Date: 2016-07-19
                      [ 1065.710] X Protocol Version 11, Revision 0
                      [ 1065.710] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
                      [ 1065.710] Current Operating System: Linux retropie 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l
                      [ 1065.710] Kernel command line: 8250.nr_uarts=0 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa02082 bcm2709.serial=0x2aa9319b smsc95xx.macaddr=B8:27:EB:A9:31:9B bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 consoleblank=0 plymouth.enable=0
                      [ 1065.710] Build Date: 11 November 2016 11:59:59AM
                      [ 1065.710] xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
                      [ 1065.710] Current version of pixman: 0.33.3
                      [ 1065.710] Before reporting problems, check http://wiki.x.org
                      to make sure that you have the latest version.
                      [ 1065.710] Markers: (--) probed, () from config file, (==) default setting,
                      (++) from command line, (!!) notice, (II) informational,
                      (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
                      [ 1065.710] (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Wed Dec 21 15:22:34 2016
                      [ 1065.711] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
                      [ 1065.712] (==) No Layout section. Using the first Screen section.
                      [ 1065.712] (==) No screen section available. Using defaults.
                      [ 1065.712] (
                      ) |-->Screen "Default Screen Section" (0)
                      [ 1065.712] () | |-->Monitor "<default monitor>"
                      [ 1065.712] (==) No device specified for screen "Default Screen Section".
                      Using the first device section listed.
                      [ 1065.712] (
                      ) | |-->Device "Allwinner A10/A13 FBDEV"
                      [ 1065.712] (==) No monitor specified for screen "Default Screen Section".
                      Using a default monitor configuration.
                      [ 1065.712] (==) Automatically adding devices
                      [ 1065.712] (==) Automatically enabling devices
                      [ 1065.712] (==) Automatically adding GPU devices
                      [ 1065.712] (==) Max clients allowed: 256, resource mask: 0x1fffff
                      [ 1065.712] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
                      [ 1065.712] Entry deleted from font path.
                      [ 1065.712] (==) FontPath set to:
                      /usr/share/fonts/X11/misc,
                      /usr/share/fonts/X11/100dpi/:unscaled,
                      /usr/share/fonts/X11/75dpi/:unscaled,
                      /usr/share/fonts/X11/Type1,
                      /usr/share/fonts/X11/100dpi,
                      /usr/share/fonts/X11/75dpi,
                      built-ins
                      [ 1065.712] (==) ModulePath set to "/usr/lib/xorg/modules"
                      [ 1065.712] (II) The server relies on udev to provide the list of input devices.
                      If no devices become available, reconfigure udev or disable AutoAddDevices.
                      [ 1065.712] (II) Loader magic: 0x54ceaf20
                      [ 1065.713] (II) Module ABI versions:
                      [ 1065.713] X.Org ANSI C Emulation: 0.4
                      [ 1065.713] X.Org Video Driver: 20.0
                      [ 1065.713] X.Org XInput driver : 22.1
                      [ 1065.713] X.Org Server Extension : 9.0
                      [ 1065.716] (EE) systemd-logind: failed to get session: PID 10296 does not belong to any known session
                      [ 1065.716] (II) no primary bus or device found
                      [ 1065.716] (II) LoadModule: "glx"
                      [ 1065.717] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
                      [ 1065.721] (II) Module glx: vendor="X.Org Foundation"
                      [ 1065.721] compiled for 1.18.4, module version = 1.0.0
                      [ 1065.721] ABI class: X.Org Server Extension, version 9.0
                      [ 1065.721] (==) AIGLX enabled
                      [ 1065.721] (II) LoadModule: "fbturbo"
                      [ 1065.722] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
                      [ 1065.722] (II) Module fbturbo: vendor="X.Org Foundation"
                      [ 1065.722] compiled for 1.18.4, module version = 0.5.1
                      [ 1065.722] Module class: X.Org Video Driver
                      [ 1065.722] ABI class: X.Org Video Driver, version 20.0
                      [ 1065.722] (II) FBTURBO: driver for framebuffer: fbturbo
                      [ 1065.722] (EE)
                      Fatal server error:
                      [ 1065.722] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
                      [ 1065.722] (EE)
                      [ 1065.722] (EE)

                      Please consult the The X.Org Foundation support
                      at http://wiki.x.org
                      for help.
                      [ 1065.722] (EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
                      [ 1065.722] (EE)
                      [ 1065.722] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
                      [ 1065.723] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
                      [ 1065.723] (EE) Server terminated with error (1). Closing log file.

                      1 Reply Last reply Reply Quote 0
                      • M
                        monprin
                        last edited by

                        I am having basically the same issue. please let us know if you figure anything else out.

                        1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators
                          last edited by

                          I don' t have time to look into this right now, but will when I have a chance.

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          wally.yehW 1 Reply Last reply Reply Quote 0
                          • G
                            gameaddict20
                            last edited by

                            Ok, I believe this has to do with the new xserver version that doesn't run as setuid root. To fix this you have to install the 'xserver-xorg-legacy' package but this fails due to a 'xserver-common' dependency issue. You will need to manually install xserver-common, see https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=168927&p=1085434

                            TL/DR:
                            Run the following commands:
                            wget http://snapshot.raspbian.org/201611180446/raspbian/pool/main/x/xorg/x11-common_7.7+16_all.deb
                            dpkg -i x11-common_7.7+16_all.deb
                            sudo apt-get install xserver-xorg-legacy
                            sudo reboot

                            F 1 Reply Last reply Reply Quote 2
                            • wally.yehW
                              wally.yeh @BuZz
                              last edited by

                              @BuZz : thank you for your attention. :D
                              BTW I tried fresh install RetroPie 4.1 yesterday, it also have this issue.

                              1 Reply Last reply Reply Quote 0
                              • S
                                sonicsheppard
                                last edited by

                                Ah glad I spotted this, I believe this is the exact same issue I'm experiencing with the port openxcom from the experimental menu when compiling from sources.

                                https://retropie.org.uk/forum/topic/6491/openxcom-no-longer-working-after-installing-from-experimental-menu

                                Thanks very much.

                                1 Reply Last reply Reply Quote 0
                                • F
                                  funkyspider @gameaddict20
                                  last edited by

                                  @gameaddict20 Thank you so much for investigating this and finding the problem and a workaround. I hope an official fix is formulated for 4.1.x

                                  I suspect this is going to affect a few people, I'm surprised more haven't found it. Maybe most people don't try to run desktop, but it also affected other applications launched from 'Ports' menu (chromium browser, Iceweasel etc).

                                  In the end I ran out of time and had to go with a multi-boot solution, which wasn't the simple solution I wanted. However I enjoyed setting up the pi system so much I'm ordering one for myself to play with so I'll give this a try when it arrives and swap the SD cards over if it works.

                                  I was surprised kodi launched correctly from within emulationstation.

                                  1 Reply Last reply Reply Quote 0
                                  • BuZzB
                                    BuZz administrators
                                    last edited by

                                    I will be looking into this. Unfortunately I've spent most of the Xmas break in bed with a high fever, so no time for coding.

                                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                    F 1 Reply Last reply Reply Quote 0
                                    • herb_fargusH
                                      herb_fargus administrators
                                      last edited by

                                      some more discussion - not really raspberry pi but similar issue:

                                      https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219

                                      looking into it as well, though I'm sure @BuZz will come up with a more elegant solution than whatever hack I generate once he is on the mend.

                                      If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                                      Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                                      1 Reply Last reply Reply Quote 1
                                      • F
                                        funkyspider @BuZz
                                        last edited by

                                        @BuZz Sounds like the flu has got you. I'm sure everyone wishes you a speedy recovery and I'm sure noone would expect you to be delving into code during Christmas anyway !
                                        Keep hydrated and get better soon. It'll all be sorted in good time.

                                        1 Reply Last reply Reply Quote 0
                                        • RascasR
                                          Rascas
                                          last edited by

                                          Did anybody solved it already ? Here is what fixes it for me:

                                          sudo su
                                          printf 'SUBSYSTEM=="input", GROUP="input", MODE="0660"\nKERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"' > /etc/udev/rules.d/99-input.rules
                                          exit
                                          

                                          What really "solves" it, is chmoding 0660 /dev/tty*. It was the only way I found to fix it.

                                          F BuZzB 2 Replies Last reply Reply Quote 0
                                          • F
                                            funkyspider @Rascas
                                            last edited by

                                            @Rascas said in Desktop from ports fails to load (4.1):

                                            Did anybody solved it already ? Here is what fixes it for me:

                                            sudo su
                                            printf 'SUBSYSTEM=="input", GROUP="input", MODE="0660"\nKERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"' > /etc/udev/rules.d/99-input.rules
                                            exit
                                            

                                            What really "solves" it, is chmoding 0660 /dev/tty*. It was the only way I found to fix it.

                                            Hi.
                                            Can you give a step-by-step for this "fix" for people who may not be familiar with running terminal from emulationstation and chmod.

                                            Many thanks

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.