Error when trying to install Touch Display plugin

Hello.

My Asus Tinkerboard (4.4.71+ armv7l) with Volumio (3.378) has some issues to install Touch Display plugin. (I did wait 5-10 minutes after first boot.)

When trying to install Touch Display 3.3.5. I have an error saying “Allowing volumio to start an xsession failed. Plugin failed to install”. If I uninstall the plugin and try again, the error is “Linking /usr/bin/chromium to /sur/bin/chromium-browser failed. Plugin failed to install”.

I also tried v3.3.4 (beta) and v3.3.3 (beta), but I get the same error about chromium.
With v3.3.2 (beta), the plugin success to install, but I get error when I toggle settings "Error: ENOENT: no such file or directory, stat ‘/tmp/.X11-unix/X0’

Results for “chromium-browser -version”

Chromium 90.0.4430.212 built on Debian 10.9, running on Debian 10.13

Is there something I’m missing?

Thank you,
Léo

@gvolt can you pick this up…

Currently I don’t know why that happened. Did you change root’s password?

This is a known issue affecting the plugin versions 3.3.3beta to 3.3.5 on non-Pi systems when the plugin gets updated or re-installed (after uninstalling) and will be solved with the next version of the plugin.

Version 3.3.2beta of the plugin does not detect errors during installation and therefore does not abort the installation process like versions 3.3.3beta+ do. So possibly the same error "Allowing volumio to start an xsession failed. Plugin failed to install” has sllently happened,

I would like you to check the existence of the file “/etc/X11/Xwrapper.config” and have a look at its content. Please connect to Volumio via SSH and post the results of

ls -al /etc/X11

and

cat /etc/X11/Xwrapper.config

Thank you for your quick reply.

Here is what I get

and for

cat /etc/X11/Xwrapper.config

No, I get this error just after flashing Volumio to my microSD, boot on my Tinkerboard, wait 5-10minutes, and try to download the plugin.

That’s what I expected: “/etc/X11/Xwrapper.config” is missing and that was the cause for the error message you saw, when you tried to install version 3.3.5.

I suspect that at least the package “xserver-xorg-legacy” has not been installed. To check that please post the result of

apt list --installed | grep xserver-xorg-legacy

Yes, as expected…

Please also post the result of

apt list --installed | grep xorg

same

This also corresponds to my expectations. There have probably been errors downloading or installing xserver related packages. What surprises me then, however, is that apparently only error “Allowing volumio to start an xsession failed. Plugin failed to install” led to the abortion of the installation of version 3.3.5 of the plugin…

As long as there is no new version of the plugin I am working on, I recommend to try uninstalling and re-installing version 3.3.2beta of the plugin. If a first attempt should not solve the issue you may try un- and re-installing repeatedly. Maybe watch the logging during the plugin installs by running

journalctl -f | grep xorg

If possible copy the output from the terminal and post it.

Nov 05 23:39:17 volumio sudo[2750]:  volumio : TTY=pts/1 ; PWD=/home/volumio ; USER=root ; COMMAND=/usr/bin/apt-get install -y xserver-xorg-legacy

That is all, when the plugin installs?

My bad I didn’t get it the first time… here are the results

Nov 05 23:52:46 volumio volumio[847]: info: Selecting previously unselected package xserver-xorg-legacy.
Nov 05 23:52:46 volumio volumio[847]: info: Preparing to unpack .../47-xserver-xorg-legacy_2%3a1.20.4-1+deb10u4_armhf.deb ...
Nov 05 23:52:46 volumio volumio[847]: info: Unpacking xserver-xorg-legacy (2:1.20.4-1+deb10u4) ...
Nov 05 23:52:47 volumio volumio[847]: info: Setting up xserver-xorg-legacy (2:1.20.4-1+deb10u4) ...
Nov 05 23:52:48 volumio volumio[847]: info: Setting up xserver-xorg-core (2:1.20.4-1+deb10u4) ...
Nov 05 23:52:48 volumio volumio[847]: info: Setting up xserver-xorg-video-radeon (1:19.0.1-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-input-wacom (0.34.99.1-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-fbdev (1:0.5.0-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-vesa (1:2.4.0-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-amdgpu (18.1.99+git20190207-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg (1:7.7+19) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-nouveau (1:1.0.16-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-input-libinput (0.28.2-2) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-ati (1:19.0.1-1) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-video-all (1:7.7+19) ...
Nov 05 23:52:49 volumio volumio[847]: info: Setting up xserver-xorg-input-all (1:7.7+19) ...
Nov 05 23:52:52 volumio volumio[847]: info:   xfonts-75dpi xfonts-scalable xorg-docs-core
Nov 05 23:52:52 volumio volumio[847]: info:   mesa-utils nickle cairo-5c xorg-docs x11-xfs-utils
Nov 05 23:52:52 volumio volumio[847]: info:   xfonts-75dpi xfonts-scalable xorg xorg-docs-core
Nov 05 23:52:55 volumio volumio[847]: info: Selecting previously unselected package xorg-docs-core.
Nov 05 23:52:55 volumio volumio[847]: info: Preparing to unpack .../7-xorg-docs-core_1%3a1.7.1-1.1_all.deb ...
Nov 05 23:52:55 volumio volumio[847]: info: Unpacking xorg-docs-core (1:1.7.1-1.1) ...
Nov 05 23:52:55 volumio volumio[847]: info: Selecting previously unselected package xorg.
Nov 05 23:52:55 volumio volumio[847]: info: Preparing to unpack .../8-xorg_1%3a7.7+19_armhf.deb ...
Nov 05 23:52:55 volumio volumio[847]: info: Unpacking xorg (1:7.7+19) ...
Nov 05 23:52:55 volumio volumio[847]: info: Setting up xorg-docs-core (1:1.7.1-1.1) ...
Nov 05 23:52:56 volumio volumio[847]: info: Setting up xorg (1:7.7+19) ...
Nov 05 23:54:00 volumio startx[4490]: xorg-server 2:1.20.4-1+deb10u4 (https://www.debian.org/support)
Nov 05 23:54:00 volumio startx[4490]: (==) Log file: "/home/volumio/.local/share/xorg/Xorg.0.log", Time: Sat Nov  5 23:54:00 2022
Nov 05 23:54:00 volumio startx[4490]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Nov 05 23:54:00 volumio startx[4490]: (EE) Please also check the log file at "/home/volumio/.local/share/xorg/Xorg.0.log" for additional information.

Does the plugin work now? if not, do you see any error message in the GUI?

The v3.3.2 success to install, like before and has also the same error has before
Capture d’écran 2022-11-06 à 01.01.18

I did have some text displayed on my monitor connected to the Tinkerboard saying the WebUI is available on my ip, etc…

Please post again the output of

cat /etc/X11/Xwrapper.config

apt list --installed | grep xorg

and also of

cat /var/log/Xorg.0.log

If that log file should not exist try

cat /home/volumio/.local/share/xorg/Xorg.0.log

BTW: What is your screen (brand and model)?

[   544.385] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[   544.385] Build Operating System: Linux 4.19.0-18-armmp-lpae armv7l Debian
[   544.385] Current Operating System: Linux volumio 4.4.71+ #23 SMP Sun Sep 20 12:23:26 CEST 2020 armv7l
[   544.385] Kernel command line: earlyprintk splash quiet plymouth.ignore-serial-consoles console=tty1 console=ttyS3,115200n8 rw init=/sbin/init imgpart=UUID=13658cc9-e4c3-4cdd-ae44-c26fa3959c79 imgfile=/volumio_current.sqsh bootpart=UUID=0425-D400 datapart=UUID=14769d10-9c0e-48cd-b92c-2c48da3ac487 bootconfig=/extlinux/extlinux.conf logo.nologo vt.global_cursor_default=0 loglevel=8 uboot_version=2017.07-g879646d1d6 root=/dev/mmcblk0p2
[   544.385] Build Date: 18 December 2021  09:05:36AM
[   544.385] xorg-server 2:1.20.4-1+deb10u4 (https://www.debian.org/support) 
[   544.386] Current version of pixman: 0.36.0
[   544.386] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   544.386] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   544.386] (==) Log file: "/home/volumio/.local/share/xorg/Xorg.0.log", Time: Sun Nov  6 00:11:08 2022
[   544.386] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   544.386] (==) No Layout section.  Using the first Screen section.
[   544.386] (==) No screen section available. Using defaults.
[   544.386] (**) |-->Screen "Default Screen Section" (0)
[   544.387] (**) |   |-->Monitor "<default monitor>"
[   544.387] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   544.387] (==) Automatically adding devices
[   544.387] (==) Automatically enabling devices
[   544.387] (==) Automatically adding GPU devices
[   544.387] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   544.387] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   544.387] 	Entry deleted from font path.
[   544.387] (==) 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
[   544.387] (==) ModulePath set to "/usr/lib/xorg/modules"
[   544.387] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   544.387] (II) Loader magic: 0x7f759f98
[   544.387] (II) Module ABI versions:
[   544.387] 	X.Org ANSI C Emulation: 0.4
[   544.387] 	X.Org Video Driver: 24.0
[   544.387] 	X.Org XInput driver : 24.1
[   544.388] 	X.Org Server Extension : 10.0
[   544.389] (EE) systemd-logind: failed to get session: PID 7263 does not belong to any known session
[   544.391] (II) xfree86: Adding drm device (/dev/dri/card0)
[   544.391] (II) no primary bus or device found
[   544.391] 	falling back to /sys/devices/platform/display-subsystem/drm/card0
[   544.391] (II) LoadModule: "glx"
[   544.391] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   544.400] (II) Module glx: vendor="X.Org Foundation"
[   544.400] 	compiled for 1.20.4, module version = 1.0.0
[   544.400] 	ABI class: X.Org Server Extension, version 10.0
[   544.400] (==) Matched modesetting as autoconfigured driver 0
[   544.400] (==) Matched fbdev as autoconfigured driver 1
[   544.400] (==) Assigned the driver to the xf86ConfigLayout
[   544.400] (II) LoadModule: "modesetting"
[   544.401] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   544.401] (II) Module modesetting: vendor="X.Org Foundation"
[   544.401] 	compiled for 1.20.4, module version = 1.20.4
[   544.401] 	Module class: X.Org Video Driver
[   544.401] 	ABI class: X.Org Video Driver, version 24.0
[   544.401] (II) LoadModule: "fbdev"
[   544.401] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   544.401] (II) Module fbdev: vendor="X.Org Foundation"
[   544.401] 	compiled for 1.20.0, module version = 0.5.0
[   544.402] 	Module class: X.Org Video Driver
[   544.402] 	ABI class: X.Org Video Driver, version 24.0
[   544.402] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   544.402] (II) FBDEV: driver for framebuffer: fbdev
[   544.402] (EE) 
Fatal server error:
[   544.402] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   544.402] (EE) 
[   544.402] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   544.402] (EE) Please also check the log file at "/home/volumio/.local/share/xorg/Xorg.0.log" for additional information.
[   544.402] (EE) 
[   544.402] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   544.402] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   544.402] (EE) Server terminated with error (1). Closing log file.


My monitor is a LG 27GN950-B but it will be for a 7inch touch display.

Please try adding the line

needs_root_rights=yes

to “/etc/X11.Xwrapper.config”. You can use editor nano running with sudo.

Then restart the plugin.

The file “/etc/X11.Xwrapper.config” was empty when I opened it, and it didn’t change anything by adding the command “needs_root_rights=yes” on v3.3.2 (and restart the plugin). I still get an error message when changing settings on plugin’s panel.

Should I keep trying with v3.3.2?

EDIT : I uninstall the plugin and tried again, still the same error.

Sorry, that was a typo. Correct filename is “/etc/X11/Xwrapper.config”. If you didn’t already modify that file (“/etc/X11/Xwrapper.config"), try that first.