Connection of 3.5" display to Volumio 2.882 fails - Display shows only white screen

What I already did:

sudo apt-get install xserver-xorg-input-evdev

After installation has finished:

sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/45-evdev.conf

Then reboot.

Output of cat /etc/X11/xorg.conf.d/99-calibration.conf as follows:

volumio@t:~$ cat /etc/X11/xorg.conf.d/99-calibration.conf
Section “InputClass”
Identifier “calibration”
MatchProduct “ADS7846 Touchscreen”
Option “Calibration” “268 3880 227 3936”
Option “SwapAxes” “0”
EndSection

Should I change “SwapAxes” “0” to “1” in /etc/X11/xorg.conf.d/99-calibration.conf or any other additional changes in that (or any other) file?

Let’s see what effect changing “99-caibration.conf” according to post #24 has.

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

shows only a blank file for me.

Am I changing the correct file (as you mentioned that I should change the file)?

I expect your “99-calibration.conf” to be in “/etc/X11/xorg.conf.d/” so use

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Thanks, sorry for all of my questions but I am not a Linux Pro :frowning:

I have now changed the file, de-activated and actived the Touchscreen plugin again and rebooted the Pi.

Now I have the same situation again as a few days ago: The screen seems no longer to be mirrored but after click on the note icon in the lower left side of the screen or on the gearwheel on the lower right side of the screen or any other icons shown on the Touchscreen the Pi reacts from very very slowly up to no reaction. The reaction time from the Touchscreen before the last changes was nearly in time (but mirrored), now the reaction time is from very very slow up to no reaction.

Hm, has the slowlyness occured after changing “99-calibration.conf” or already after installing “xserver-xorg-input-evdev”?

Please post the output of

cat /var/log/Xorg.0.log

once again.

Slowlyness comes only after changing of the following file:

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Output of cat /var/log/Xorg.0.log is as follows:

volumio@t:~$ cat /var/log/Xorg.0.log
[    31.864]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    31.864] X Protocol Version 11, Revision 0
[    31.864] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[    31.864] Current Operating System: Linux t 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l
[    31.864] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:2A:9F:74 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  splash quiet 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 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait bootdelay=5 logo.nologo vt.global_cursor_default=0 loglevel=0 snd-bcm2835.enable_compat_alsa=1 snd_bcm2835.enable_headphones=1
[    31.864] Build Date: 11 November 2016  11:59:59AM
[    31.864] xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
[    31.864] Current version of pixman: 0.32.6
[    31.864]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    31.864] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.865] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 27 10:12:53 2021
[    31.872] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    31.872] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    31.880] (==) No Layout section.  Using the first Screen section.
[    31.880] (==) No screen section available. Using defaults.
[    31.880] (**) |-->Screen "Default Screen Section" (0)
[    31.880] (**) |   |-->Monitor "<default monitor>"
[    31.883] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    31.883] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[    31.883] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    31.883] (==) Automatically adding devices
[    31.883] (==) Automatically enabling devices
[    31.883] (==) Automatically adding GPU devices
[    31.887] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    31.890] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    31.890]    Entry deleted from font path.
[    31.892] (==) 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
[    31.892] (==) ModulePath set to "/usr/lib/xorg/modules"
[    31.892] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    31.892] (II) Loader magic: 0x6c1f20
[    31.892] (II) Module ABI versions:
[    31.892]    X.Org ANSI C Emulation: 0.4
[    31.892]    X.Org Video Driver: 20.0
[    31.892]    X.Org XInput driver : 22.1
[    31.892]    X.Org Server Extension : 9.0
[    31.894] (--) using VT number 2

[    31.894] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    31.894] (II) no primary bus or device found
[    31.895] (II) LoadModule: "glx"
[    31.897] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    31.936] (II) Module glx: vendor="X.Org Foundation"
[    31.936]    compiled for 1.18.4, module version = 1.0.0
[    31.936]    ABI class: X.Org Server Extension, version 9.0
[    31.936] (==) AIGLX enabled
[    31.936] (II) LoadModule: "fbturbo"
[    31.937] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    31.941] (II) Module fbturbo: vendor="X.Org Foundation"
[    31.941]    compiled for 1.18.4, module version = 0.5.1
[    31.941]    Module class: X.Org Video Driver
[    31.941]    ABI class: X.Org Video Driver, version 20.0
[    31.941] (II) FBTURBO: driver for framebuffer: fbturbo
[    31.942] (WW) Falling back to old probe method for fbturbo
[    31.942] (II) Loading sub module "fbdevhw"
[    31.942] (II) LoadModule: "fbdevhw"
[    31.942] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    31.945] (II) Module fbdevhw: vendor="X.Org Foundation"
[    31.945]    compiled for 1.18.4, module version = 0.0.2
[    31.945]    ABI class: X.Org Video Driver, version 20.0
[    31.945] (II) FBTURBO(0): using /dev/fb1
[    31.945] (II) FBTURBO(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 16/16
[    31.945] (==) FBTURBO(0): Depth 16, (==) framebuffer bpp 16
[    31.945] (==) FBTURBO(0): RGB weight 565
[    31.945] (==) FBTURBO(0): Default visual is TrueColor
[    31.945] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    31.945] (II) FBTURBO(0): hardware: fb_ili9486 (video memory: 300kB)
[    31.945] (**) FBTURBO(0): Option "fbdev" "/dev/fb1"
[    31.945] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    31.945] (II) FBTURBO(0): processor: Unknown
[    31.945] (II) FBTURBO(0): checking modes against framebuffer device...
[    31.945] (II) FBTURBO(0): checking modes against monitor...
[    31.945] (--) FBTURBO(0): Virtual size is 480x320 (pitch 480)
[    31.945] (**) FBTURBO(0):  Built-in mode "current"
[    31.945] (==) FBTURBO(0): DPI set to (96, 96)
[    31.945] (II) Loading sub module "fb"
[    31.945] (II) LoadModule: "fb"
[    31.946] (II) Loading /usr/lib/xorg/modules/libfb.so
[    31.950] (II) Module fb: vendor="X.Org Foundation"
[    31.950]    compiled for 1.18.4, module version = 1.0.0
[    31.950]    ABI class: X.Org ANSI C Emulation, version 0.4
[    31.950] (II) FBTURBO(0): FBIOBLANK: Invalid argument (Screen blanking not supported by kernel - disabling)
[    31.962] (II) FBTURBO(0): using backing store heuristics
[    31.967] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[    31.967] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[    31.967] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[    31.967] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[    31.967] (II) FBTURBO(0): enabled VFP/NEON optimizations
[    31.967] (==) FBTURBO(0): Backing store enabled
[    31.982] (==) FBTURBO(0): DPMS enabled
[    31.982] (II) FBTURBO(0): failed to enable hardware cursor
[    31.982] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[    31.982] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[    31.983] (==) RandR enabled
[    31.999] (II) SELinux: Disabled on system
[    32.002] (II) AIGLX: Screen 0 is not DRI2 capable
[    32.003] (EE) AIGLX: reverting to software rendering
[    32.794] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    32.795] (II) AIGLX: Loaded and initialized swrast
[    32.795] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    32.943] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event0)
[    32.943] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[    32.943] (**) ADS7846 Touchscreen: Applying InputClass "libinput touchscreen catchall"
[    32.943] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[    32.943] (**) ADS7846 Touchscreen: Applying InputClass "Touch rotation"
[    32.943] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[    32.943] (II) LoadModule: "evdev"
[    32.944] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    32.952] (II) Module evdev: vendor="X.Org Foundation"
[    32.952]    compiled for 1.18.4, module version = 2.10.3
[    32.953]    Module class: X.Org XInput Driver
[    32.953]    ABI class: X.Org XInput driver, version 22.1
[    32.953] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
[    32.953] (**) ADS7846 Touchscreen: always reports core events
[    32.953] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event0"
[    32.953] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0
[    32.953] (--) evdev: ADS7846 Touchscreen: Found absolute axes
[    32.953] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[    32.953] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[    32.953] (**) Option "SwapAxes" "1"
[    32.953] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[    32.953] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[    32.953] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    32.953] (**) Option "config_info" "udev:/sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0"
[    32.953] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[    32.953] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[    32.953] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[    32.953] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
[    32.953] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[    32.953] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[    32.954] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[    32.954] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[    32.954] (II) No input driver specified, ignoring this device.
[    32.954] (II) This device may have been added with another device file.

Weird … maybe revert to the previous “99-callibration.conf” file and try adding

Option "InvertX" "1"

after the line with “Option SwapAxes …”

But I would be surprised if that would help. So please also post the output of

ls -al /etc/X11/xorg.conf.d

and

ls -al /usr/share/X11/xorg.conf.d

With the last change (revert to original 99-calibration.conf and adding Option “InvertX” “1” the Touchdisplay now reacts at once and is no longer mirrored :slight_smile:

Requested outputs as follows:

volumio@t:~$ ls -al /etc/X11/xorg.conf.d
total 28
drwxr-xr-x 2 root root 4096 Jun 27 11:37 .
drwxr-xr-x 1 root root 4096 Jun 26 14:27 …
-rw-r–r-- 1 root root 1099 Jun 27 09:17 45-evdev.conf
-rw-r–r-- 1 root root 316 Jun 27 11:37 95-touch_display-plugin.conf
-rw-r–r-- 1 root root 228 Jun 27 11:36 99-calibration.conf
volumio@t:~$ ls -al /usr/share/X11/xorg.conf.d
total 36
drwxr-xr-x 2 root root 4096 Jun 27 09:17 .
drwxr-xr-x 1 root root 4096 Jun 26 14:25 …
-rw-r–r-- 1 root root 1099 Sep 24 2016 10-evdev.conf
-rw-r–r-- 1 root root 1350 Nov 11 2016 10-quirks.conf
-rw-r–r-- 1 root root 788 Sep 30 2016 40-libinput.conf
-rw-r–r-- 1 root root 2747 Oct 28 2016 70-wacom.conf
-rw-r–r-- 1 root root 607 Jun 26 18:57 99-fbturbo.conf

:+1: So, all problems solved?

Yes, seems so :slight_smile:
Thanks for your ongoing support on this :slight_smile:

:grinning: Thanks for the feedback.

1 Like

Is there a possibility to switch the backlight of the touchdisplay automatically off when the display is off (in sleep mode) but have the touchscreen still active e.g. to switch to other music?

If the screensaver timeout on the Touch Display’s config page is set to a value other than 0 (which would disable the screensaver) the backlight should be switched off when the screensaver timeout is reached, but the touchscreen should still be active and will wake up the display on a touch event.

I have set 30 seconds for the screensaver. This works, but the backlight is still on

I suspect the backlight of this display is not controllable then.

1 Like