jeudi 23 janvier 2025

Volumio, écran tactile 3.5 MPI3508 sur RPI 3B+

 

 

 https://community.volumio.com/t/volumio-with-3-5-tft-touch-screen-gpio-rpi-3b/11265/323

 

Assurez vous d'avoir une installation "fraiche" de Volumio.

  1. Connecter vous à Volumio en ssh (https://developers.volumio.com/SSH%20Connection)

  2. Installer le plugin "Touch display" mais ne le rendez pas effectif tout de suite.

  3. Executez:

volumio kernelsource (installation des sources du noyau ce qui prend un peu de temps) 

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/blob/master/usr/99-calibration.conf-3508-0 -o /etc/X11/xorg.conf.d/99-calibration.conf

Ci-dessous le contenu de ce qui sera collé dans 99-calibration.conf

cat >> /etc/X11/xorg.conf.d/99-calibration.conf <<EOL
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3945 233 3939 183"
        Option  "SwapAxes"      "1"
EndSection

 

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

Ci-dessous le contenu de ce qui sera collé dans 99-fbturbo.conf

cat >> /usr/share/X11/xorg.conf.d/99-fbturbo.conf <<EOL
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.

Section "Device"
        Identifier      "Allwinner A10/A13/A20 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"

        Option          "SwapbuffersWait" "true"
EndSection

On modifie le fichier userconfig.txt ce qui permet au système de prendre en compte les différents paramètres de l'écran et de la partie tactile

cat >> /boot/userconfig.txt <<EOL

dtparam=spi=on
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
hdmi_cvt 480 320 60 6 0 0 0
dtoverlay=ads7846
dtparam=cs=1
dtparam=penirq=25
dtparam=penirq_pull=2
dtparam=speed=50000
dtparam=swapxy=0
dtparam=pmax=255
dtparam=xohms=150
dtparam=xmin=200
dtparam=xmax=3900
dtparam=ymin=200
dtparam=ymax=3900
EOL
On redémarre 
  1. Reboot.

Si tout se passe bien, vous rendez effectif le plugin "Touchdisplay" et l'écran devrai afficher une page.

C'est terminé. 

Merci à la communauté Volumio pour son aide.

https://community.volumio.com/t/raspberry-pi3-hdmi-touch-screen/6729

 

 


 


sudo nano app-013f2d5c5e.css
press [CTRL]+W to search and type in "volumeManager{margin-top"
this should show the line:
	[code]

@media (max-width:767px){#trackManagerWrapper{left:-30px;right:-30px}}#trackManager,.volumeManager{margin-top:110px}
[/code]
change margin-top:110px to margin-top:55px

You can also search for:
		webkit-scrollbar{width:10px;height:10px}:
and change the width to a larger number to make the scroll bar more finger friendly (40px should be fine)[/spoiler]

Aucun commentaire: