[PLUGIN] Touch Display

Did you already modify /boot/config.txt and download joy-IT-Display_Driver-35a-overlay.dtb
from http://anleitung.joy-it.net/wp-content/uploads/2017/04/anleitung.joy-it.net/upload/joy-IT-Display_Driver-35a-overlay.dtb?

If not login to Volumio via SSH (https://volumio.github.io/docs/User_Manual/SSH.html) and download joy-IT-Display_Driver-35a-overlay.dt:

wget anleitung.joy-it.net/upload/joy-IT-Display_Driver-35a-overlay.dtb

joy-IT-Display_Driver-35a-overlay.dtb has to be copied into /boot/overlays sudo cp joy-IT-Display_Driver-35a-overlay.dtb /boot/overlays/joy-IT-Display_Driver-35a-overlay.dtbo
Then open /boot/config.txt:

sudo nano /boot/config.txt

It seems you have to add the following lines to /boot/config.txt:

dtparam=spi=on dtoverlay=joy-IT-Display_Driver-35a-overlay:rotate=270,swapxy=1 config_hdmi_boost=7 hdmi_drive=1 hdmi_ignore_edid=0xa5000080
Close nano with Ctrl+x, y and the return/enter key to save the file.

Install the touch display plugin and reboot. It could be that the touch directions are inverted and/or rotated. Please test and report back.

Hi everyone!

(Since I did not know on which thread to post my question, I put it in duplicate on the 2 threads of the plugins concerned (I would update the one that will not have an answer))

Is there a command line to refresh the display? For example, when I do an update search, the screen shows me the pop-up window specifying if there is a new version or not. Even if I close this window on my smartphone, it doesn’t close it on the screen of my player (and I cannot do it manually since I do not have a touch screen). At this point I have to disable then enable touchdisplay plugin for the window to close. So I was wondering if it was possible to assign a function to a button of the remote to refresh the display. The trick is that I would also like to use it to refresh the track info when these are wrong: sometimes the specified track info are those of the track that comes after the one that is listening. Maybe a command line to refresh webUI?.. Not sure it will work for track infos…

Any proposals?

@DipterePow
This is a problem with modals I reported here (https://github.com/volumio/volumio-plugins/issues/179) a while ago.

You could try to create a node script which calls the closeModals function (https://github.com/volumio/Volumio2/blob/d6f5205965e6a5c7e2439c9505f9960a914ca877/app/index.js#L1938) and assign that script to a button of your remote.

Okay, thank you very much. I just have to use these lines for the script, right?

[code]CoreCommandRouter.prototype.closeModals = function () {
var self=this;
this.pushConsoleMessage(‘CoreCommandRouter::Close All Modals sent’);

return self.broadcastMessage('closeAllModals', '');

}[/code]

Hi,

would it be possible to add a new Feature to your really good Plugin?
a Zoom-Option would be nice.

I use --force-device-scale-factor=1.5 in volumiokiosk.sh, but it would be nice to have the option on the settings-Page where you can choose from 70% to maybe 200% in 10% steps

regards
Roman

The --force-device-scale-factor flag seems to have issues sometimes as reported here. Alternatively manipulating /data/volumiokiosk/Default/Preferences as described in the linked thread has the risk that the structure / content of the Preferences file could change on any update of the chromium browser. While this would not be an issue for the current Jessie based Volumio (because there will most probably no more updates for chromium browser :wink: ) this could change when Volumio will be based on Buster which is in development right now. I will think about your request, but IMHO the better way to tackle the issue would be an option in Volumio itself allowing to scale the UI.

First thank you for the link, I didn’t found that one. But till now I don’t have any issues. For sure an integrated scale option would be the best option. But I had a look at the UI programming, and there are so many hardcoded sizes espacially at the circles, that I don’t think this will happen soon :stuck_out_tongue_winking_eye: .

And the UI on 3.xx was not really better when I tested it a few weeks ago.

Thank you for keeping it in mind!

2 Likes

hello,
i recently got the Allo DigiOne Signature with RPI4.
it sounds just fine but now i would like to have the 7" hdmi display working.
ideally, i would like something like jivelite which would show what is playing on squeezelite. please advise on the best way to do this.

i just tried to install Touch Display plugin but it crashed at about 70% completion.
thank you for any insights…

Hi @gchip7groundie,

what is the Volumio and the Touch Display plugin version?

What is the exact brand and model name of the display?

Did you install any other software (e.g. some kind of drivers) for the display?

My guess is the installation did not crash but probably you did not wait long enough to let it finish. During its installation the plugin downloads quite a lot of packages in the background and installs them. This can definitely take several minutes.

I would recommend to try installing the plugin again. Possibly connect to Volumio via SSH and watch the logs with sudo journactl -f during the installation process.

hi, this is the latest volumio download:
volumio-2.777-2020-05-25-pi.img.zip
and the plug-in is also the latest on the web UI.

yes, install was doing a lot of installs and then, it seemed to be stuck at 70% for several minutes. that is when i rebooted.
if in fact i am able to install this plug-in successfully,
will i be closer to my goal of jivelite-like abilities?
what exactly will i be able to do with this plug-in?
how about LXDE? can i install it?

have you changed the default password in volumio? If yes, it prevent from installing plugins… yes, it’s a ‘bug’

@ gchip7groundie So the Touch Display plugin is working now?

I don’t know jivelite so can’t comment on that topic. Same goes for squeezelite, but there in the category “music-service” you find a squeezelite plugin available to install and configure a Squeezelite client. What I can say is that the Touch Display plugin “just” shows the same content you can see in a web browser from another device.

I would not recommend that. LXDE will probably interfere with the Xserver the Touch Display plugin uses.

no, i have restored Volumio before the plug-in attempt.
squeezelite is installed and working great.
it’s just that i prefer to interact with it on the local 7" screen instead of external browser or app. i am going to look into how i can install jivelite; i am rather surprised that someone else has not done this already. most people who run LMS, squeezelite also run jivelite for UI.

i agree LXDE would not be helpful.
what is the best way to start some app (e.g., jivelite or squeezelite) upon boot?
via rc.local?

What is the difference with touch display plugin + virtual keyboard (both from Gvolt)?

As far as I see jivelite is a UI / visualization for the LMS. Volumio has its own UI and you can’t run two UIs at once on the same screen (well, at least not without a lot of work I guess :wink: ).

I may be wrong, but would jivelite not be redundant when using the squeezelite plugin and the Volumio UI? The squeezelite plugin also controls the start of squeezelite so there would be no need using rc.local or an own systemd service file to accomplish autostart.

If you are unsure if your system has been messed up by the past installation attempts I would suggest to start from scratch and install the touch display plugin and the squeezelite plugin. As pointed out above, don’t change the default password.

yes, it’s either jivelite or volumio as far as UI is concerned.
for someone using squeezelite, jivelite is the preferred UI.
as for my question about rc.local, i’m curious how the touch-display-plugin gets started.
since if i manage to get jivelite installed, i’d want to start it in a similar way.

When the touch display plugin is started it starts a systemd service (volumio-kiosk.service) which launches an Xserver executing /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh -- -nocursor. volumiokiosk.sh in essence starts the openbox window manager and the chromium-browser in kiosk mode showing the Volumio UI.

thanks for your info and help.

UPDATE:
i managed to set up jivelite by copying relevant files from an existing sd card.
when run, it did show its first logo, then blank screen.
thinking it was missing all normal graphic support,
i installed lxde which took a while, perhaps 30 minutes or so.
upon boot, lxde showed up beautifully and from there, jivelite could be run.

of course, i only wanted jivelite when booted, so in /usr/bin/startlxde
i made the following change to run jivelite instead of lxde:
#exec /usr/bin/lxsession -s LXDE-pi -e LXDE
Add another line below it that says this:
exec /home/pi/jivelite/jivelite/bin/jivelite

NOTE: upon lxde install, wifi did not work. i believe someone else reported this.
i solved by enabling Network Manager, setting up wpa_supplicant.service and
dhclient.service. all is explained in the following link:

I have this plugin installed (v1.1.8) on a RP3B+ with this touchscreen. I installed via the plugin manager in settings.

Everything seems to work except the screensaver does not seem to function for me.

I reduced the time to 10 seconds for the purpose of testing. After ten seconds the screens flashes off. In that it seems to go to sleep as desired but instantly awakes.

This happens if the music (web radio) is playing or not. “No screensaver whilst playing” is set to off.

Screen is rotated 90’.

GPU and mouse settings are both off.

Please capture the log with sudo journalctl -f in the moment you set the screensaver timeout in the UI and then until the screen gets activated. Then post the log as text in code tags.

Edit: If possible test the screensaver function using another HDMI monitor to rule out an issue with your touchscreen.

1 Like