[SOLVED] Rpi 4 + rpi touch display + touch plugin+ xserver

Hi. I´m a newbie here but I would really need some help with this.

I´m running Volumio, latest version 2.698 on a Rpi 4 together with Raspberry official touch display.
I installed touch display plugin which works just fine until I decided to install matchbox keyboard following instructions here https://forum.volumio.org/guide-for-setting-touchscreen-backlight-control-t11425.html
I only installed matchbox keyboard, nothing else.

After reboot touch display plugin become unresponsive when I try to apply changes to screensaver settings. This also affect brightness settings.
I got this message: “Error applying screensaver settings: Start of the xserver has not finished yet.”
Somebody out there that have a fix for this?
I browsed forum here but couldn`t find a solution
Best Regards /C

Please post the results of ls -al /tmp/.X11-unix ls -al /data/volumiokiosk ls -al ~/.xsessionrc and systemctl status -l volumio-kiosk

Ok. here they are

volumio@volumio:~$ ls -al /tmp/.X11-unix total 0 drwxrwxrwt 2 root root 60 Jan 18 10:28 . drwxrwxrwt 15 root root 600 Jan 18 13:41 .. srwxrwxrwx 1 root root 0 Jan 18 10:28 X0 volumio@volumio:~$

volumio@volumio:~$ ls -al /data/volumiokiosk total 60 drwxr-xr-x 10 volumio volumio 4096 Jan 19 01:28 . drwxr-xr-x 1 volumio volumio 4096 Jan 18 13:41 .. drwx------ 3 volumio volumio 4096 Jan 17 12:11 CertificateTransparency drwx------ 10 volumio volumio 4096 Jan 19 00:51 Default drwx------ 2 volumio volumio 4096 Jan 17 12:33 Dictionaries drwx------ 3 volumio volumio 4096 Jan 17 12:11 EVWhitelist drwx------ 2 volumio volumio 4096 Jan 17 12:02 FileTypePolicies -rw------- 1 volumio volumio 2872 Jan 19 01:28 Local State drwx------ 2 volumio volumio 4096 Jan 17 12:02 OriginTrials -rw-r--r-- 1 volumio volumio 5120 Jan 17 12:10 Safe Browsing Channel IDs -rw-r--r-- 1 volumio volumio 0 Jan 17 12:10 Safe Browsing Channel IDs-journal -rw-r--r-- 1 volumio volumio 7168 Jan 17 12:02 Safe Browsing Cookies -rw-r--r-- 1 volumio volumio 0 Jan 17 12:02 Safe Browsing Cookies-journal drwx------ 3 volumio volumio 4096 Jan 17 12:02 ShaderCache lrwxrwxrwx 1 volumio volumio 19 Jan 18 10:28 SingletonCookie -> 2907920725607163059 lrwxrwxrwx 1 volumio volumio 12 Jan 18 10:28 SingletonLock -> volumio-1334 lrwxrwxrwx 1 volumio volumio 50 Jan 18 10:28 SingletonSocket -> /tmp/.org.chromium.Chromium.53CuvU/SingletonSocket drwx------ 3 volumio volumio 4096 Jan 17 12:11 pnacl

volumio@volumio:~$ ls -al ~/.xsessionrc ls: cannot access /home/volumio/.xsessionrc: No such file or directory

[code][volumio@volumio:~$ systemctl status -l volumio-kiosk
● volumio-kiosk.service - Volumio Kiosk
Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled)
Active: active (running) since Sat 2020-01-18 10:28:41 UTC; 15h ago
Main PID: 1177 (startx)
CGroup: /system.slice/volumio-kiosk.service
├─1177 /bin/sh /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh
├─1200 xinit /etc/X11/Xsession /opt/volumiokiosk.sh – /etc/X11/xinit /xserverrc :0 -auth /tmp/serverauth.oiHGHffzkd
├─1201 /usr/lib/xorg/Xorg -nolisten tcp :0 -auth /tmp/serverauth.oiHG Hffzkd
├─1310 /bin/bash /opt/volumiokiosk.sh
├─1327 /usr/bin/ssh-agent /opt/volumiokiosk.sh
├─1332 matchbox-keyboard -d
├─1333 matchbox-window-manager -use_titlebar no
├─1334 /usr/lib/chromium-browser/chromium-browser --enable-pinch --pp api-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args =enable_stagevideo_auto=0 --disable-pinch --kiosk --no-first-run --disable-3d-ap is --disable-breakpad --disable-crash-reporter --disable-infobars --disable-sess ion-crashed-bubble --disable-translate --user-data-dir=/data/volumiokiosk --no-s andbox http://localhost:3000
├─1365 /usr/lib/chromium-browser/chromium-browser --type=zygote --no- sandbox --user-data-dir=/data/volumiokiosk --ppapi-flash-path=/usr/lib/chromium- browser/libpepflashplayer.so
└─1401 /usr/lib/chromium-browser/chromium-browser --type=renderer --d isable-3d-apis --disable-breakpad --disable-pinch --enable-pinch --no-sandbox – enable-features=AutofillCreditCardSigninPromo<AutofillCreditCardSigninPromo,Auto fillProfileCleanup<AutofillProfileCleanup,DocumentWriteEvaluator<DisallowFetchFo rDocWrittenScriptsInMainFrame,ExpectCTReporting<ExpectCTReporting,IncidentReport ingDisableUpload<SafeBrowsingIncidentReportingService,IncidentReportingModuleLoa dAnalysis<SafeBrowsingIncidentReportingServiceFeatures,IncidentReportingSuspicio usModuleReporting<SafeBrowsingIncidentReportingServiceFeatures,MaterialDesignUse rManager<MaterialDesignUserManager,NegotiateTLS13<TLS13Negotiation,NetworkTimeSe rviceQuerying<NetworkTimeQueries,NewAudio

Jan 18 10:28:41 volumio startx[1177]: Current version of pixman: 0.32.6
Jan 18 10:28:41 volumio startx[1177]: Before reporting problems, check http://wi ki.x.org
Jan 18 10:28:41 volumio startx[1177]: to make sure that you have the latest vers ion.
Jan 18 10:28:41 volumio startx[1177]: Markers: (–) probed, (**) from config fil e, (==) default setting,
Jan 18 10:28:41 volumio startx[1177]: (++) from command line, (!!) notice, (II) informational,
Jan 18 10:28:41 volumio startx[1177]: (WW) warning, (EE) error, (NI) not impleme nted, (??) unknown.
Jan 18 10:28:41 volumio startx[1177]: (==) Log file: “/var/log/Xorg.0.log”, Time : Sat Jan 18 10:28:41 2020
Jan 18 10:28:41 volumio startx[1177]: (==) Using config directory: “/etc/X11/xor g.conf.d”
Jan 18 10:28:41 volumio startx[1177]: (==) Using system config directory “/usr/s hare/X11/xorg.conf.d”
Jan 18 10:28:41 volumio startx[1177]: modprobe: FATAL: Module g2d_23 not found.
[/code]

Thanks for your prompt answer… ! Regards

I tried to answer 3 times but my post has not been published for any reason.

so here are my results…

volumio@volumio:~$ ls -al /tmp/.X11-unix
total 0
drwxrwxrwt 2 root root 60 Jan 18 10:28 .
drwxrwxrwt 15 root root 600 Jan 18 13:41 …
srwxrwxrwx 1 root root 0 Jan 18 10:28 X0

volumio@volumio:~$ ls -al /data/volumiokiosk
total 60
drwxr-xr-x 10 volumio volumio 4096 Jan 19 13:33 .
drwxr-xr-x 1 volumio volumio 4096 Jan 18 13:41 …
drwx------ 3 volumio volumio 4096 Jan 17 12:11 CertificateTransparency
drwx------ 10 volumio volumio 4096 Jan 19 13:05 Default
drwx------ 2 volumio volumio 4096 Jan 17 12:33 Dictionaries
drwx------ 3 volumio volumio 4096 Jan 17 12:11 EVWhitelist
drwx------ 2 volumio volumio 4096 Jan 17 12:02 FileTypePolicies
-rw------- 1 volumio volumio 2872 Jan 19 13:33 Local State
drwx------ 2 volumio volumio 4096 Jan 17 12:02 OriginTrials
-rw-r–r-- 1 volumio volumio 5120 Jan 17 12:10 Safe Browsing Channel IDs
-rw-r–r-- 1 volumio volumio 0 Jan 17 12:10 Safe Browsing Channel IDs-journal
-rw-r–r-- 1 volumio volumio 7168 Jan 17 12:02 Safe Browsing Cookies
-rw-r–r-- 1 volumio volumio 0 Jan 17 12:02 Safe Browsing Cookies-journal
drwx------ 3 volumio volumio 4096 Jan 17 12:02 ShaderCache
lrwxrwxrwx 1 volumio volumio 19 Jan 18 10:28 SingletonCookie → 2907920725607163059
lrwxrwxrwx 1 volumio volumio 12 Jan 18 10:28 SingletonLock → volumio-1334
lrwxrwxrwx 1 volumio volumio 50 Jan 18 10:28 SingletonSocket → /tmp/.org.chromium.Chromium.53CuvU/SingletonSocket
drwx------ 3 volumio volumio 4096 Jan 17 12:11 pnacl

volumio@volumio:~$ ls -al ~/.xsessionrc
ls: cannot access /home/volumio/.xsessionrc: No such file or directory

volumio@volumio:~$ ls -al ~/.xsessionrc
ls: cannot access /home/volumio/.xsessionrc: No such file or directory
volumio@volumio:~$
volumio@volumio:~$ ^C
volumio@volumio:~$ systemctl status -l volumio-kiosk
● volumio-kiosk.service - Volumio Kiosk
Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled)
Active: active (running) since Sat 2020-01-18 10:28:41 UTC; 1 day 3h ago
Main PID: 1177 (startx)
CGroup: /system.slice/volumio-kiosk.service
├─1177 /bin/sh /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh
├─1200 xinit /etc/X11/Xsession /opt/volumiokiosk.sh – /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.oiHGHffzkd
├─1201 /usr/lib/xorg/Xorg -nolisten tcp :0 -auth /tmp/serverauth.oiHGHffzkd
├─1310 /bin/bash /opt/volumiokiosk.sh
├─1327 /usr/bin/ssh-agent /opt/volumiokiosk.sh
├─1332 matchbox-keyboard -d
├─1333 matchbox-window-manager -use_titlebar no
├─1334 /usr/lib/chromium-browser/chromium-browser --enable-pinch --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --disable-pinch --kiosk --no-first-run --disable-3d-apis --disable-breakpad --disable-crash-reporter --disable-infobars --disable-session-crashed-bubble --disable-translate --user-data-dir=/data/volumiokiosk --no-sandbox localhost:3000
├─1365 /usr/lib/chromium-browser/chromium-browser --type=zygote --no-sandbox --user-data-dir=/data/volumiokiosk --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so
└─1401 /usr/lib/chromium-browser/chromium-browser --type=renderer --disable-3d-apis --disable-breakpad --disable-pinch --enable-pinch --no-sandbox --enable-features=AutofillCreditCardSigninPromo<AutofillCreditCardSigninPromo,AutofillProfileCleanup<AutofillProfileCleanup,DocumentWriteEvaluator<DisallowFetchForDocWrittenScriptsInMainFrame,ExpectCTReporting<ExpectCTReporting,IncidentReportingDisableUpload<SafeBrowsingIncidentReportingService,IncidentReportingModuleLoadAnalysis<SafeBrowsingIncidentReportingServiceFeatures,IncidentReportingSuspiciousModuleReporting<SafeBrowsingIncidentReportingServiceFeatures,MaterialDesignUserManager<MaterialDesignUserManager,NegotiateTLS13<TLS13Negotiation,NetworkTimeServiceQuerying<NetworkTimeQueries,NewAudio

Jan 18 10:28:41 volumio startx[1177]: Current version of pixman: 0.32.6
Jan 18 10:28:41 volumio startx[1177]: Before reporting problems, check wiki.x.org
Jan 18 10:28:41 volumio startx[1177]: to make sure that you have the latest version.
Jan 18 10:28:41 volumio startx[1177]: Markers: (–) probed, (**) from config file, (==) default setting,
Jan 18 10:28:41 volumio startx[1177]: (++) from command line, (!!) notice, (II) informational,
Jan 18 10:28:41 volumio startx[1177]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jan 18 10:28:41 volumio startx[1177]: (==) Log file: “/var/log/Xorg.0.log”, Time: Sat Jan 18 10:28:41 2020
Jan 18 10:28:41 volumio startx[1177]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Jan 18 10:28:41 volumio startx[1177]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Jan 18 10:28:41 volumio startx[1177]: modprobe: FATAL: Module g2d_23 not found.

I hope this will give you the necessary information.
Thanks for looking in to this…
regards C

Thanks, yes that helped. :slight_smile: I think I have localized the problem and hope to be able to provide a solution soon.

In the meantime please additionally post the result of cat /opt/volumiokiosk.sh .

results:

while true; do timeout 3 bash -c “</dev/tcp/127.0.0.1/3000” >/dev/null 2>&1 && break; done
sed -i ‘s/“exited_cleanly”:false/“exited_cleanly”:true/’ /data/volumiokiosk/Default/Preferences
sed -i ‘s/“exit_type”:“Crashed”/“exit_type”:“None”/’ /data/volumiokiosk/Default/Preferences
matchbox-keyboard -d &
matchbox-window-manager -use_titlebar no &
#openbox-session &
while true; do
/usr/bin/chromium-browser
–disable-pinch
–kiosk
–no-first-run
–disable-3d-apis
–disable-breakpad
–disable-crash-reporter
–disable-infobars
–disable-session-crashed-bubble
–disable-translate
–user-data-dir=‘/data/volumiokiosk’ --no-sandbox localhost:3000
done

Thank you!

sorry about your “disappearing” posts, for some reason they get picked out by forum rules…

@ClaesM
Could you test if the file attached below resolves your issue? You would need to move the file into /data/plugins/miscellanea/touch_display renaming it to index.js. Assuming you have downloaded or copied the attached file in a first step to /home/volumio you would have to execute the following steps:

mv /data/plugins/miscellanea/touch_display/index.js /data/plugins/miscellanea/touch_display/index.js.bak mv index_new.zip /data/plugins/miscellanea/touch_display/index.js volumio vrestart
If you want/have to revert:

mv /data/plugins/miscellanea/touch_display/index.js.bak /data/plugins/miscellanea/touch_display/index.js volumio vrestart

Edit: I exchanged the attachment as I initially had uploaded the wrong file…

1 Like

Thanks! It would be nice to know why they disappered…
regards

@gvolt

Thanks for all the work you put into this. I tried to download the file and I got this message:

is it possible for you to send it via pm or mail?

Edit Got your new file now… I´ll get back to you soon about the result! Thanks

Best regards C

@gvolt

I couldn’t open the new zip archive… there’s something wrong with it.

Best regards C

Don’ t try to open it - as I wrote just rename it to index.js. Reason for the .zip suffix is simply that the forum does not allow to upload file with .js …

1 Like

Ah, I see. I didn´t know that! I´ll get back to you soon
regards C

@gvolt

It works just as it should! I don´t know how to say Thank you for all your efforts and hard work to come up with this solution bur THANK YOU! :slight_smile:

Best Regards / C

Reason for your problem was that the Xserver display number has not been detected by the plugin. I have reworked the code of the dectection “routine” a little. Many thanks for your fast confirmation that it works! :slight_smile:

I will open a PR on Github soon, so the changes will be part of a new version of the plugin.

That sounds great! I don´t know if it´s important but I noticed there were no green box coming up telling me that settings are successfully applied. No red box with an error message either… Anyway, it all works now. Great work!

Regards C

That’s perfectly fine. The plugin does not acknowledge if a new setting has been applied and no problem has occured. Other plugins may handle that differently. AFAIK there is no general policy for this.

Sounds good! Just tell me if you need me to do some more tests.
Regards C

Many thanks for your helpfulness!