Hello!
(Sorry for the intentionally broken links, I am a new user so I can’t post more than 2 links)
I am trying to make Volumio (3.819) and the touchscreen plugin (3.5.1) work with my Adafruit PiTFT 3.5 with resistive touchscreen. I am getting partway there — I am able to get X to start running on the touchscreen — but I’m having trouble making the plugin actually use it.
Here is the set of steps that I have performed that has gotten me closest to it working.
-
Flash a new SD card from the latest image.
-
Do the setup wizard.
-
Go to
volumio.local/devand Enable SSH. -
Log in to volumio.local via ssh (user/pass volumio/volumio)
-
sudo apt install raspi-config -
(Now working from this set of instructions: h ttps://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2):
sudo apt install python3-venv
python -m venv env --system-site-packages
cd ~
sudo apt-get update
sudo apt-get install -y git python3-pip
pip3 install --upgrade adafruit-python-shell click
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts
sudo -E env PATH=$PATH python3 adafruit-pitft.py
-
In the wizard, choose 3.5 resistive, and “console mode”.
-
(Now working from this set of instructions starting at step 6: h ttps://community.volumio.com/t/volumio-2-and-pitft-adafruit-2-8/7560/6) Modify
/boot/config.txtto add the linedtparam=i2c_vc=onwhich was the only one missing. -
Edit the file
/boot/cmdlineto verify that the following was at the end:fbcon=map:10 fbcon=font:VGA8x8 consoleblank=0 -
Reboot.
-
Install touch plugin via web interface.
So this is where I’m at now: Having done all the above, the console shows on the touchscreen.
If I run the following commands:
sudo systemctl stop volumio-kiosk.service
FRAMEBUFFER=/dev/fb1 startx
Then X starts up on the touchscreen and the mouse pointer shows! However, I can’t figure out how to configure the plugin to use the correct frame buffer device.
All of the instructions I’ve found so far for the PiTFT touchscreens rely on modifying the configuration of the fbturbo X driver to use fb1 instead of fb0, but the newer PiTFT drivers appear not to use fbturbo anymore. I tried installing xserver-xorg-video-fbturbo, but that did not solve the problem and it produced errors in the X.org logs.
Wondering if anyone has already gotten this to work and can shove me in the right direction?
The touchscreen calibration is also off by 90 degrees, but that’ll be the next problem ![]()