Desktop from ports fails to load (4.1)
-
@funkyspider sudo dpkg-reconfigure x11-common
-
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 -
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
-
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.
-
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:
- alt+f4, close emulationstation then drop to console
- ctrl+alt+f1, switch to tty1
- 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. -
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 -
Tried retropie build 4.02
Parameters:
Executing: startx
/opt/retropie/supplementary/runcommand/runcommand.sh: line 941: startx: command not found -
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. -
I am having basically the same issue. please let us know if you figure anything else out.
-
I don' t have time to look into this right now, but will when I have a chance.
-
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 -
@BuZz : thank you for your attention. :D
BTW I tried fresh install RetroPie 4.1 yesterday, it also have this issue. -
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.
Thanks very much.
-
@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.
-
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.
-
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.
-
@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. -
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.
-
@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
-
@Rascas I may well have to do something like that, but it's not nice security wise etc. Am looking into it.
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.