Waveshare 3.5inch LCD RPI (B) rev2.0 on RPI3B+ for Volumio

Hm, I don’t have a 3.5 inch display with a resolution of 480x320 to compare but in the pictures everything looks normal to me. Maybe try out the classical UI theme.

Do you have a picture that shows the difference you are referring to?

i’m sorry … no! but if i want enlarge the font text into css where i can go?

I have no clue. I don’t tinker with the .css files, but you probably can get help in the thread Contemporary optimizations for small or large landscape displays where you already have posted.

Thenk you for help!

1 Like

This is the resolution of i set 480x320px

Yes, doesn’t look nice. With your other 3.5 inch display it was looking better (when resolution was also set to 480x320)?

i think of yes… but other display has not HDMI and i installed this script.
install_3.5_screen-270.sh

What is the content of that script? Do you have a link?

#!/bin/bash

set -o errexit

if [[ $EUID -ne 0 ]]; then
echo “This script must be run as root (use sudo)” 1>&2
exit 1
fi

set -e

echo “INSTALLING 3.5’’ SCREEN OVERLAY AND SETTINGS”

cd ~

sudo apt update
sudo apt -y install git
sudo apt -y install xserver-xorg-input-evdev

sudo rm -rf LCD-show
git clone GitHub - goodtft/LCD-show: 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W

sudo cp LCD-show/usr/tft35a-overlay.dtb /boot/overlays/
sudo cp LCD-show/usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo

sudo mkdir -p /usr/share/X11/xorg.conf.d/
sudo cp -rf LCD-show/usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf

sudo mkdir -p /etc/X11/xorg.conf.d
##sudo cp -rf LCD-show/usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf

cat <<‘EOF’ > /etc/X11/xorg.conf.d/99-calibration.conf
Section “InputClass”
Identifier “calibration”
MatchProduct “ADS7846 Touchscreen”
Option “Calibration” “227 3936 3880 268”
Option “SwapAxes” “1”
Driver “evdev”
EndSection
EOF

grep -q “include userconfig.txt” /boot/config.txt ||
echo “include userconfig.txt” >> /boot/config.txt
grep -q “hdmi_force_hotplug=1” /boot/userconfig.txt ||
echo “hdmi_force_hotplug=1” >> /boot/userconfig.txt
grep -q “dtparam=i2c_arm=on” /boot/userconfig.txt ||
echo “dtparam=i2c_arm=on” >> /boot/userconfig.txt
grep -q “dtparam=spi=on” /boot/userconfig.txt ||
echo “dtparam=spi=on” >> /boot/userconfig.txt
grep -q “hdmi_force_hotplug=1” /boot/userconfig.txt ||
echo “hdmi_force_hotplug=1” >> /boot/userconfig.txt
sed -i ‘/dtoverlay=tft/,$d’ /boot/userconfig.txt
echo “dtoverlay=tft35a:rotate=270” >> /boot/userconfig.txt

echo “INSTALL 3.5’’ SCREEN OVERLAY AND SETTINGS DONE!”
echo “PLEASE REBOOT.”

whit this script the touch it’s ok!

Can’t spot anything where the resolution gets set explicitly in the script. So I would expect the other display to be run with a resolution of 480x320, too.

But touch is not a problem with the MPI3508 anymore I think. (?) :thinking:

BTW: Did you try the classical UI theme?

no the touch is not a problem … even before it worked better. Frse is better display hardware! i tried the standard graphics but i still suck! Instead between the scale of 200 in the plugin and with the CSS dofica I get a good thing. Even if the menu for the choice of files is impossible because it is too small for a selection with the touch!

Does the picture in post #57 show a magnified UI (using the Touch Display plugin’s scaling option)?

Hi gvolt, please help me!
I running the latest 2,917 volumio version and later i installed the Touch Display plugin but i cannot use the touch. Now i istall this script install_3.5_screen-270.sh or no?
this is my third test … but after to restart my diplay come black!

Is this a fresh installation or an updated system?

fresh installation!

Did you wait after first boot so the data partition could fully expand?

Please post the result of

cat /var/log/Xorg.0.log

volumio@volumio:~$ cat /var/log/Xorg.0.log
[ 32.093]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 32.093] X Protocol Version 11, Revision 0
[ 32.093] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[ 32.093] Current Operating System: Linux volumio 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l
[ 32.093] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=320 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:2C:F4:B6 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
[ 32.093] Build Date: 11 November 2016 11:59:59AM
[ 32.093] xorg-server 2:1.18.4-2+rpi1 (Debian -- Support)
[ 32.093] Current version of pixman: 0.32.6
[ 32.093] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 32.093] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 32.094] (==) Log file: “/var/log/Xorg.0.log”, Time: Wed Oct 20 19:30:52 2021
[ 32.098] (==) Using config directory: “/etc/X11/xorg.conf.d”
[ 32.098] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[ 32.107] (==) No Layout section. Using the first Screen section.
[ 32.107] (==) No screen section available. Using defaults.
[ 32.107] (
) |–>Screen “Default Screen Section” (0)
[ 32.107] () | |–>Monitor “”
[ 32.112] (==) No device specified for screen “Default Screen Section”.
Using the first device section listed.
[ 32.112] (
) | |–>Device “Allwinner A10/A13 FBDEV”
[ 32.112] (==) No monitor specified for screen “Default Screen Section”.
Using a default monitor configuration.
[ 32.112] (==) Automatically adding devices
[ 32.112] (==) Automatically enabling devices
[ 32.112] (==) Automatically adding GPU devices
[ 32.118] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 32.119] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
[ 32.119] Entry deleted from font path.
[ 32.122] (==) 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
[ 32.122] (==) ModulePath set to “/usr/lib/xorg/modules”
[ 32.122] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 32.122] (II) Loader magic: 0x652f20
[ 32.122] (II) Module ABI versions:
[ 32.122] X.Org ANSI C Emulation: 0.4
[ 32.122] X.Org Video Driver: 20.0
[ 32.122] X.Org XInput driver : 22.1
[ 32.122] X.Org Server Extension : 9.0
[ 32.124] (–) using VT number 2

[ 32.124] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 32.125] (II) no primary bus or device found
[ 32.125] (II) LoadModule: “glx”
[ 32.128] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 32.183] (II) Module glx: vendor=“X.Org Foundation”
[ 32.183] compiled for 1.18.4, module version = 1.0.0
[ 32.183] ABI class: X.Org Server Extension, version 9.0
[ 32.183] (==) AIGLX enabled
[ 32.183] (II) LoadModule: “fbturbo”
[ 32.183] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[ 32.187] (II) Module fbturbo: vendor=“X.Org Foundation”
[ 32.187] compiled for 1.18.4, module version = 0.5.1
[ 32.187] Module class: X.Org Video Driver
[ 32.187] ABI class: X.Org Video Driver, version 20.0
[ 32.187] (II) FBTURBO: driver for framebuffer: fbturbo
[ 32.188] (WW) Falling back to old probe method for fbturbo
[ 32.188] (II) Loading sub module “fbdevhw”
[ 32.188] (II) LoadModule: “fbdevhw”
[ 32.188] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 32.190] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 32.190] compiled for 1.18.4, module version = 0.0.2
[ 32.190] ABI class: X.Org Video Driver, version 20.0
[ 32.190] (II) FBTURBO(0): using /dev/fb0
[ 32.190] (II) FBTURBO(0): Creating default Display subsection in Screen section
“Default Screen Section” for depth/fbbpp 24/32
[ 32.190] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[ 32.190] (==) FBTURBO(0): RGB weight 888
[ 32.190] (==) FBTURBO(0): Default visual is TrueColor
[ 32.190] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[ 32.190] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 600kB)
[ 32.190] () FBTURBO(0): Option “fbdev” “/dev/fb0”
[ 32.191] (
) FBTURBO(0): Option “SwapbuffersWait” “true”
[ 32.191] (II) FBTURBO(0): processor: Unknown
[ 32.191] (II) FBTURBO(0): checking modes against framebuffer device…
[ 32.191] (II) FBTURBO(0): checking modes against monitor…
[ 32.191] (–) FBTURBO(0): Virtual size is 480x320 (pitch 480)
[ 32.191] () FBTURBO(0): Built-in mode “current”
[ 32.191] (==) FBTURBO(0): DPI set to (96, 96)
[ 32.191] (II) Loading sub module “fb”
[ 32.191] (II) LoadModule: “fb”
[ 32.191] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 32.196] (II) Module fb: vendor=“X.Org Foundation”
[ 32.196] compiled for 1.18.4, module version = 1.0.0
[ 32.196] ABI class: X.Org ANSI C Emulation, version 0.4
[ 32.196] (==) Depth 24 pixmap format is 32 bpp
[ 32.216] (II) FBTURBO(0): using backing store heuristics
[ 32.221] (II) FBTURBO(0): can’t load ‘g2d_23’ kernel module
[ 32.222] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[ 32.222] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[ 32.222] (II) FBTURBO(0): G2D hardware acceleration can’t be enabled
[ 32.222] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[ 32.222] (==) FBTURBO(0): Backing store enabled
[ 32.230] (==) FBTURBO(0): DPMS enabled
[ 32.230] (II) FBTURBO(0): failed to enable hardware cursor
[ 32.230] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[ 32.230] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[ 32.231] (==) RandR enabled
[ 32.249] (II) SELinux: Disabled on system
[ 32.253] (II) AIGLX: Screen 0 is not DRI2 capable
[ 32.253] (EE) AIGLX: reverting to software rendering
[ 33.697] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 33.698] (II) AIGLX: Loaded and initialized swrast
[ 33.698] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 33.850] (II) config/udev: Adding input device gpio_ir_recv (/dev/input/event1)
[ 33.850] (
) gpio_ir_recv: Applying InputClass “evdev keyboard catchall”
[ 33.850] () gpio_ir_recv: Applying InputClass “libinput keyboard catchall”
[ 33.850] (
) gpio_ir_recv: Applying InputClass “evdev keyboard catchall”
[ 33.850] (II) LoadModule: “evdev”
[ 33.850] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 33.860] (II) Module evdev: vendor=“X.Org Foundation”
[ 33.860] compiled for 1.18.4, module version = 2.10.3
[ 33.860] Module class: X.Org XInput Driver
[ 33.860] ABI class: X.Org XInput driver, version 22.1
[ 33.860] (II) Using input driver ‘evdev’ for ‘gpio_ir_recv’
[ 33.860] () gpio_ir_recv: always reports core events
[ 33.860] (
) evdev: gpio_ir_recv: Device: “/dev/input/event1”
[ 33.860] (–) evdev: gpio_ir_recv: Vendor 0x1 Product 0x1
[ 33.860] (–) evdev: gpio_ir_recv: Found keys
[ 33.860] (II) evdev: gpio_ir_recv: Configuring as keyboard
[ 33.860] () Option “config_info” “udev:/sys/devices/platform/ir-receiver@15/rc/rc0/input1/event1”
[ 33.860] (II) XINPUT: Adding extended input device “gpio_ir_recv” (type: KEYBOARD, id 6)
[ 33.860] (
) Option “xkb_rules” “evdev”
[ 33.861] () Option “xkb_model” “pc105”
[ 33.861] (
) Option “xkb_layout” “us”
[ 33.862] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event0)
[ 33.862] () ADS7846 Touchscreen: Applying InputClass “evdev touchscreen catchall”
[ 33.862] (
) ADS7846 Touchscreen: Applying InputClass “libinput touchscreen catchall”
[ 33.862] () ADS7846 Touchscreen: Applying InputClass “evdev touchscreen catchall”
[ 33.862] (
) ADS7846 Touchscreen: Applying InputClass “Touch rotation”
[ 33.862] () ADS7846 Touchscreen: Applying InputClass “calibration”
[ 33.862] (II) Using input driver ‘evdev’ for ‘ADS7846 Touchscreen’
[ 33.862] (
) ADS7846 Touchscreen: always reports core events
[ 33.862] () evdev: ADS7846 Touchscreen: Device: “/dev/input/event0”
[ 33.862] (–) evdev: ADS7846 Touchscreen: Vendor 0 Product 0
[ 33.862] (–) evdev: ADS7846 Touchscreen: Found absolute axes
[ 33.862] (–) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[ 33.862] (–) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[ 33.862] (
) Option “SwapAxes” “1”
[ 33.862] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[ 33.862] () evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[ 33.862] (
) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 33.862] () Option “config_info” “udev:/sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0”
[ 33.862] (II) XINPUT: Adding extended input device “ADS7846 Touchscreen” (type: TOUCHSCREEN, id 7)
[ 33.862] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[ 33.863] (
) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[ 33.863] () ADS7846 Touchscreen: (accel) acceleration profile 0
[ 33.863] (
) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[ 33.863] () ADS7846 Touchscreen: (accel) acceleration threshold: 4
[ 33.863] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[ 33.863] (
) ADS7846 Touchscreen: Applying InputClass “calibration”
[ 33.863] (II) No input driver specified, ignoring this device.
[ 33.863] (II) This device may have been added with another device file.
[ 33.864] (II) config/udev: Adding input device lircd (/dev/input/event2)
[ 33.864] () lircd: Applying InputClass “evdev keyboard catchall”
[ 33.864] (
) lircd: Applying InputClass “libinput keyboard catchall”
[ 33.864] () lircd: Applying InputClass “evdev keyboard catchall”
[ 33.864] (II) Using input driver ‘evdev’ for ‘lircd’
[ 33.864] (
) lircd: always reports core events
[ 33.864] () evdev: lircd: Device: “/dev/input/event2”
[ 33.864] (–) evdev: lircd: Vendor 0 Product 0
[ 33.864] (–) evdev: lircd: Found keys
[ 33.864] (II) evdev: lircd: Configuring as keyboard
[ 33.864] (
) Option “config_info” “udev:/sys/devices/virtual/input/input2/event2”
[ 33.864] (II) XINPUT: Adding extended input device “lircd” (type: KEYBOARD, id 8)
[ 33.864] () Option “xkb_rules” “evdev”
[ 33.864] (
) Option “xkb_model” “pc105”
[ 33.864] () Option “xkb_layout” “us”
[ 33.871] (II) config/udev: removing device gpio_ir_recv
[ 33.930] (II) evdev: gpio_ir_recv: Close
[ 33.930] (II) UnloadModule: “evdev”
[ 33.930] (II) config/udev: Adding input device gpio_ir_recv (/dev/input/event1)
[ 33.930] (
) gpio_ir_recv: Applying InputClass “evdev keyboard catchall”
[ 33.930] () gpio_ir_recv: Applying InputClass “libinput keyboard catchall”
[ 33.930] (
) gpio_ir_recv: Applying InputClass “evdev keyboard catchall”
[ 33.930] (II) Using input driver ‘evdev’ for ‘gpio_ir_recv’
[ 33.930] () gpio_ir_recv: always reports core events
[ 33.930] (
) evdev: gpio_ir_recv: Device: “/dev/input/event1”
[ 33.930] (–) evdev: gpio_ir_recv: Vendor 0x1 Product 0x1
[ 33.930] (–) evdev: gpio_ir_recv: Found keys
[ 33.930] (II) evdev: gpio_ir_recv: Configuring as keyboard
[ 33.930] () Option “config_info” “udev:/sys/devices/platform/ir-receiver@15/rc/rc0/input1/event1”
[ 33.930] (II) XINPUT: Adding extended input device “gpio_ir_recv” (type: KEYBOARD, id 6)
[ 33.930] (
) Option “xkb_rules” “evdev”
[ 33.930] () Option “xkb_model” “pc105”
[ 33.930] (
) Option “xkb_layout” “us”
[ 33.931] (II) config/udev: removing device lircd
[ 33.990] (II) evdev: lircd: Close
[ 33.990] (II) UnloadModule: “evdev”
[ 33.990] (II) config/udev: Adding input device lircd (/dev/input/event2)
[ 33.990] () lircd: Applying InputClass “evdev keyboard catchall”
[ 33.990] (
) lircd: Applying InputClass “libinput keyboard catchall”
[ 33.990] () lircd: Applying InputClass “evdev keyboard catchall”
[ 33.990] (II) Using input driver ‘evdev’ for ‘lircd’
[ 33.990] (
) lircd: always reports core events
[ 33.990] () evdev: lircd: Device: “/dev/input/event2”
[ 33.990] (–) evdev: lircd: Vendor 0 Product 0
[ 33.990] (–) evdev: lircd: Found keys
[ 33.990] (II) evdev: lircd: Configuring as keyboard
[ 33.990] (
) Option “config_info” “udev:/sys/devices/virtual/input/input2/event2”
[ 33.990] (II) XINPUT: Adding extended input device “lircd” (type: KEYBOARD, id 8)
[ 33.990] () Option “xkb_rules” “evdev”
[ 33.990] (
) Option “xkb_model” “pc105”
[ 33.990] (**) Option “xkb_layout” “us”
volumio@volumio:~$