Volumio Version: 3.073
Hardware: raspberry pi 4b
DAC: khadas tone 1.
i’m trying to get 3.5 inch touchscreen working with buster beta 3.
unfortunately I can’t get it working, during booting the screen goes from light to dark and I get the error (xinit: unable to connect to X server: Connection refused) see also log!
is a newly installed volumio buster beta 3 image.
Create a directory for unzipping the plugin package
mkdir touch_display
Unzip the plugin package to the newly created directory
miniunzip touch_display.zip -d touch_display
Change into the directory with the unzipped files
cd touch_display
Install the plugin
volumio plugin install
When the installation process has finished you will see some finalize message (don’t remember the wording in detail) on the command line. You will probably have to hit “Ctrl+c” to return to the prompt.
Optionally delete the downloaded file and the unzipped files:
**volumio@volumio-khadas**:**~**$ cat /boot/userconfig.txt
enable_uart=1
dtoverlay=pi3-miniuart-bt
# Add your custom config.txt options to this file, which will be preserved during updates
volumio@volumio-khadas:~$ cat /var/log/Xorg.0.log
[ 30.845]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 30.846] Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian
[ 30.846] Current Operating System: Linux volumio-khadas 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l
[ 30.846] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:1B:9D:E8 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 splash plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 quiet console=ttyAMA0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh rootwait bootdelay=5 elevator=noop logo.nologo vt.global_cursor_default=0 net.ifnames=0 snd-bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 loglevel=8
[ 30.846] Build Date: 19 April 2021 03:23:36PM
[ 30.846] xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support)
[ 30.846] Current version of pixman: 0.36.0
[ 30.846] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 30.846] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 30.846] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May 19 10:55:31 2021
[ 30.854] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 30.854] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 30.860] (==) No Layout section. Using the first Screen section.
[ 30.860] (==) No screen section available. Using defaults.
[ 30.860] (**) |-->Screen "Default Screen Section" (0)
[ 30.860] (**) | |-->Monitor "<default monitor>"
[ 30.865] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 30.865] (**) | |-->Device "Allwinner A10/A13/A20 FBDEV"
[ 30.865] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 30.865] (==) Automatically adding devices
[ 30.865] (==) Automatically enabling devices
[ 30.865] (==) Automatically adding GPU devices
[ 30.869] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 30.869] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 30.870] Entry deleted from font path.
[ 30.870] (==) 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
[ 30.871] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 30.871] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 30.871] (II) Loader magic: 0x1fdf80
[ 30.871] (II) Module ABI versions:
[ 30.871] X.Org ANSI C Emulation: 0.4
[ 30.871] X.Org Video Driver: 24.0
[ 30.871] X.Org XInput driver : 24.1
[ 30.871] X.Org Server Extension : 10.0
[ 30.872] (--) using VT number 2
[ 30.872] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 30.873] (II) no primary bus or device found
[ 30.873] (II) LoadModule: "glx"
[ 30.875] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 30.912] (II) Module glx: vendor="X.Org Foundation"
[ 30.912] compiled for 1.20.4, module version = 1.0.0
[ 30.912] ABI class: X.Org Server Extension, version 10.0
[ 30.912] (II) LoadModule: "fbturbo"
[ 30.912] (WW) Warning, couldn't open module fbturbo
[ 30.912] (EE) Failed to load module "fbturbo" (module does not exist, 0)
[ 30.912] (EE) No drivers available.
[ 30.913] (EE)
Fatal server error:
[ 30.913] (EE) no screens found(EE)
[ 30.913] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 30.914] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 30.914] (EE)
[ 30.915] (EE) Server terminated with error (1). Closing log file.
volumio@volumio-khadas:~$
applied this, but now the screen remains blank, I have set it back to original.
what I don’t understand is that with volumio 2 (don’t know exactly which version but one of the last ones) it just works.
volumio@volumio-khadas:~$ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf.bak
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.
Section "Device"
Identifier "Allwinner A10/A13/A20 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb1"
Option "SwapbuffersWait" "true"
EndSection
volumio@volumio-khadas:~$ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf.bak?
cat: '/usr/share/X11/xorg.conf.d/99-fbturbo.conf.bak?': No such file or directory
volumio@volumio-khadas:~$
I guess the driver “fbturbo”, i.e. the file “/usr/lib/xorg/modules/drivers/fbturbo_drv.so”, is missing which prevents the xserver from starting if “fbturbo” is given as the driver to use (here in “99-fbturbo.conf”).
After you renamed “99-fbturbo.conf” (so it wasn’t applied anymore) the driver “fbdev” has been used. Now the xserver runs but you (still) have no image. This could be caused by using the wrong framebuffer.
So what you could try next is renaming “99-fbturbo.conf.bak” back to “99-fbturbo.conf” and changing the driver from “fbturbo” to “fbdev”:
Driver "fbdev"
So the driver “fbdev” would be loaded and framebuffer 1 would be used.
If the screen remains black you could experiment with setting
Option "fbdev" "/dev/fb1"
to
Option "fbdev" "/dev/fb0"
Or instead of all that above:
Try to install fbturbo driver by
sudo apt-get install xserver-xorg-video-fbturbo
I think on Buster the package does not get installed automatically along with Xorg because it is marked as “testing”.
So it would be interesting to know if we can get along without it.
yesssss! you were right , I put the name back to “99-fbturbo.conf” and set the driver “fbturbo” to “fbdev” and left the Option “fbdev” “/ dev / fb1” as it is.
i have not tried this: sudo apt-get install xserver-xorg-video-fbturbo
the only thing is that the touch alignment is not correct.