[PLUGIN] Touch Display

Hi,

Since a few days, i don’t understand why i don’t manage to active the display of my lcd screen on my raspberry 3b+… (rpi 3.5 / 480*320)
In fact, after two days searching for the way, i succeeded … unfortunately, my SD card burned out before i made an img. And now, i am not able to reproduce the solution.

Here are the steps i did :

git clone https://github.com/goodtft/LCD-show
cd LCD-show/
sudo mkdir /etc/X11/xorg.conf.d
cd usr/
sudo cp tft35a-overlay.dtb /boot/overlays/
sudo cp LCD-show/usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo
sudo cp -rf 99-calibration.conf-35-0 /etc/X11/xorg.conf.d/99-calibration.conf
sudo mkdir -p /usr/share/X11/xorg.conf.d/
sudo cp -rf 99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

entering this :

	Section “InputClass”
		Identifier “calibration”
		MatchProduct “ADS7846 Touchscreen”
		Option “Calibration” “268 3880 3936 227” (this is what used to work in the good last try)
		Option “SwapAxes” “0”
		Driver “evdev”
	EndSection

my config.txt (i tried a few codes, i think that the problem is here) :

initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=0
force_eeprom_read=0
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dtoverlay=tft35a
include userconfig.txt

my userconfig.txt :

dtparam=spi=on
dtoverlay=tft35a
sudo apt update
sudo apt install lightdm
sudo apt install xserver-xorg-input-evdev
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
I changed Driver “fbturbo” to Driver “fbdev” and enter the fb1 option

then

systemctl status volumio-kiosk (was inactive)
systemctl start volumio-kiosk

Have an idea ?
Thanks a lot.

Why don’t you just install the plugin “Touch Display” ?

Yes, i forgot to write that i installed volumio and then installed the plugin “Touch Display”, last version of the driver. Volumio alert me with : “Touch display : error establishing connection to driver”

I suggest to start with a fresh Volumio installation and then proceed as follows:

  1. Install the Touch Display plugin.

  2. Connect to Volumio via SSH.

  3. Execute

    sudo apt-get -y install xserver-xorg-video-fbturbo

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

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

    sudo curl -L https://github.com/goodtft/LCD-show/raw/master/usr/tft35a-overlay.dtb -o /boot/overlays/tft35a.dtbo

    sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-calibration.conf-35-90 -o /etc/X11/xorg.conf.d/99-calibration.conf

    sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-fbturbo.conf -o /usr/share/X11/xorg.conf.d/99-fbturbo.conf

    cat >> /boot/userconfig.txt <<EOL
    
    dtparam=spi=on
    dtoverlay=tft35a
    EOL
    
  4. Reboot.

1 Like

Thank you, but i already did that without success.

I reinstalled the driver, by command first (no success), in the interface then, and without knowing why, it succeeded…

Hello,

When I rotate 90 degrees in the TOUCH DISPLAY settings, the screen saver does not trigger.
When I do no rotation, the screen saver works perfectly.

Florian

@patrick_chirac

Florian, how do you imagine that people can help you, by just telling it’s not working?
Please specify at least:

  • Used SBC
  • Used touchscreen, preferable with a link to it.

Output of:

cat /boot/config.txt
cat /boot/userconfig.txt

Hello,
I’m French (nobody is perfect)

Screen : generic

Raspberry 3b+, DAC and Oled

config.txt

initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=1
force_eeprom_read=0

include userconfig.txt

#### Volumio i2s setting below: do not alter ####
dtoverlay=allo-boss-dac-pcm512x-audio

And userconfig.txt

#Add your custom config.txt options to this file, which will be preserved during updates

dtparam=spi=on

Please rotate the display by 90 deg. using the Touch Display plugin’s option. Then post the output of

cat /boot/userconfig.txt

Also specify the results that

DISPLAY=:0 xset q

gives when executed firstly before and secondly after the time has elapsed after which the screen saver should be activated.

userconfig was posted above:

dtparam=spi=on

Yes, thanks I saw that, but since @patrick_chirac wrote that he had rotated the display by 90 deg. I would have expected to see

#### Touch Display rotation setting below: do not alter ####
display_lcd_rotate=1
display_hdmi_rotate=1

Therefore, to be on the safe side, I have suggested to set the desired rotation using the Touch Display plugin’s option and posting the content of “/boot/userconfig.txt” (again).

After rotate by 90 deg

# Add your custom config.txt options to this file, which will be preserved duri$
dtparam=spi=on

#### Touch Display rotation setting below: do not alter ####
display_lcd_rotate=1
display_hdmi_rotate=1

The saver no longer activates, I took 5 seconds, 120 seconds, nothing. If I don’t rotate, I reboot the PI, then it works with 120 seconds or 5 seconds.

1 Like

With the screen rotated please execute

DISPLAY=:0 xset q

before the screensaver should be activated and post the result.

Do the same after the screensaver should be activated.

Rotate 90 and screenSaver ON:

volumio@volumio:~$ DISPLAY=:0 xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fon                                                                                                                                                                                                                                           ts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/u                                                                                                                                                                                                                                           sr/share/fonts/X11/75dpi,built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

Rotate 0 deg and screensaver on (5 sec)

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /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
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 5
  DPMS is Enabled
  Monitor is Off

Ohhhhhh ! under voltage detected .Would this be related?

Might be. This should be ruled out as the cause of your problem (and fixed anyway).

What you could also try when the screen is rotated and screensaver timeout is set to 0 is executing

DISPLAY=:0 xset s off +dpms dpms 0 0 5

and checking if the screen goes black after 5 seconds.

Then run

DISPLAY=:0 xset q

again and post the output.

Hello, I have a problem
I have Volumino version 3.546 installed on a RasperyPi with the touchscreen plugin 3.3.7
I have a 7 inch touchscreen
I see the image from the Volomio but the touchscreen doesn’t respond everywhere, the play button can’t be operated. My touchscreen has a resolution of 640*480
What can I do to make it work?
I have a Volumino Free Account
Thanks for the help

Please reveal brand and exact model name of the screen.

My monitor model is Joy-it RB-LCD10-2