[PLUGIN] Touch Display

There is somewhat wrong in my config, because the screen does not go blank.

I use the waveshare display, but did NOT configure the screen to be always on. They have this option on their webpage, but I did not use it.

Any suggestions why there might be a conflict? Thank you!

@gvolt

Any idea?

Please post the output of

cat /boot/userconfig.txt

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

hdmi_group=2
hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
display_rotate=1

I am using a waveshare 7.9 in screen, and the only configuration I did was what they recommended for initial setup. That includes the above plus the touch rotation

sudo apt-get install xserver-xorg-input-libinput
sudo mkdir /etc/X11/xorg.conf.d
sudo cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/
sudo nano /etc/X11/xorg.conf.d/40-libinput.conf

and then add Option “CalibrationMatrix” “0 1 0 -1 0 1 0 0 1” in the touchscreen part.

I did NOT set the screen to always ON.

sudo nano /etc/lightdm/lightdm.conf
xserver-command=X -s 0 -dpms

Again, I did not do this.

There is no need for the touch rotation to add code, there is a button on the back for it. Have the same screen.

I can confirm the screen stays always active. Despite of the setting “No Screensaver while playing” (on/off).
Even after emptying the queue, display stays on.
Tested with:
Volumio: V3.378 and V3.782
Touch Display: V3.5.1 and V3.5.2

volumio@rpi4-hfb-ws:~$ cat /boot/userconfig.txt
# Add your custom config.txt options to this file, which will be preserved during updates
max_usb_current=1
max_framebuffer_height=1280
#disable_fw_kms_setup=1

hdmi_group=2
hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
dtoverlay=gpio-ir,gpio_pin=23
dtparam=i2c_arm_baudrate=1000000
dtparam=spi=on

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

Even if I force it via the terminal, it stays on:

export DISPLAY=:0
xset dpms force off

Screen blinks and turns on again.

volumio@rpi4-hfb-ws:~$ xset dpms force off
volumio@rpi4-hfb-ws:~$ 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/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: 10
  DPMS is Enabled
  Monitor is Off

Doing the same on a DSI screen, I can control on/off. Releated to HDMI?

Yeah the factory documentation mentions the button as an option. They recommended the software method. Nonetheless I am happy to ditch the factory recs if I can make the screen saver come on and turn off the screen.

Were you ever able to make the screen darken out after some time (when not playing)?

No, as stated in my previous post

1 Like

I have RPi 4 Model B Rev 1.5
Volumio: 3.779
Official Raspberry Touch Display 2
Screen started working but the touch is moved a few centimeters higher,
I tried everything from previous posts.

Hey @Nebojsa_Artiko,

Somehow you missed this:

Kind Regards,

This is my config

userconfig.txt

[all]
display_auto_detect=1
dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch

display_lcd_rotate=1
display_hdmi_rotate=1

I try with:
dtoverlay=vc4-kms-v3d-pi4
dtoverlay=vc4-kms-dsi-ili9881-7inch
result is the same.

lsmod.txt (4.5 KB)

Hey @Nebojsa_Artiko,

From your original config you have 90 degree CCW rotation, please try

[all]
display_auto_detect=1
dtoverlay=vc4-kms-v3d-pi4,nohdmi
dtoverlay=vc4-kms-dsi-ili9881-7inch,rotation=270
display_lcd_rotate=1
display_hdmi_rotate=1

Kind Regards,

That’s it, thank you very much

Hello. I’m having trouble getting my Pi5 and BigTreeTech TFT50 DSI screen to play nice with Volumio.

I have a brand new install of volumio and have only installed the Touch Display plugin, latest versions of OS and Plugin.

I see there is a ton of dtoverlay configurations throughout this thread for various displays, i’m hoping someone can point me in the right direction for my configuration.

I have the TFT50 connected via DSI to “Disp 0” on my Pi5. Thanks for any and all help.

SideNote: I have also confirmed the Pi and TFT50 work just fine together by slapping a MicroSD card with PiOS fresh out of the imager into the Pi and it immediately displays Debian without issue.

UPDATE: I just solved my own issue by continuing to fumble :man_facepalming:

I resolved this by setting the below two lines in the userconfig:

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch,dsi0

I had tried before, but never tried to designate dsi0 as I ASSUMED it would be the default display output, but it seems dsi1 is the default… now i know.