Hello Volumio users !
I have Raspberry PI 3 model B, I also bought a 3.5 inch TFT resistive touchscreen display - “GoodTFT MHS35”.
I was able to run this screen with Volumio, everything works fine, but when switching tracks I get an error.
Touch Display
Error setting screensaver timeout: Error: Command failed: /bin/bash -c "/usr/bin/xset -display :0 s off +dpms 0 0 0" No protocol specified /usr/bin/xset: unable to open display ":0"
I’ll write the commands I executed
I install and activate Touch Display Plugin
Then I proceeded to install the display and touchscreen driver
git clone https://github.com/goodtft/LCD-show
cd LCD-show/
sudo mkdir /etc/X11/xorg.conf.d
sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/
sudo cp ./usr/mhs35-overlay.dtb /boot/overlays/mhs35.dtbo
sudo cp -rf ./usr/99-calibration.conf-mhs35-90 /etc/X11/xorg.conf.d/99-calibration.conf
sudo mkdir -p /usr/share/X11/xorg.conf.d/
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Then I modify the 99-calibration.conf file and add the Driver “evdev” option:
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
the file should be:
Section “InputClass”
Identifier “calibration”
MatchProduct “ADS7846 Touchscreen”
Option “Calibration” “3936 227 268 3880”
Option “SwapAxes” “1”
Driver “evdev”
EndSection
I modify the /boot/config.txt
sudo nano /boot/config.txt
add the last line:
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
dtoverlay=mhs35
Install missing packages:
sudo apt update
sudo apt install lightdm
sudo apt install xserver-xorg-input-evdev
After a reboot, everything works fine, but like I said, when I switch tracks I get an error:
Touch Display
Error setting screensaver timeout: Error: Command failed: /bin/bash -c "/usr/bin/xset -display :0 s off +dpms 0 0 0" No protocol specified /usr/bin/xset: unable to open display ":0"