Display 0

Hi All

I am trying to gwet volumio funtioning on a Pi3b+ with a 3.5 Touch screen,

now I must be loosing the plot because i followed some posts and got it all working fine, well as best you can on a 3.5 screen,

then for some reason that im not sure of i pushed the reset user data button, and completely broke it, at this point I had not had any issues at all

so I reflashed the SD card reinstaled everything that same way, but i now have an issue with the touch screen pages, when ever they get enabled i get this error in the volumio.log

2019-10-09T12:56:28.599Z - info: CALLMETHOD: miscellanea touch_display saveScreensaverConf [object Object]
2019-10-09T12:56:28.600Z - info: CoreCommandRouter::executeOnPlugin: touch_display , saveScreensaverConf
2019-10-09T12:56:28.625Z - error: Error setting screensaver timeout: Error: Command failed: /bin/bash -c “/usr/bin/xset -display :0 s off +dpms dpms 0 0 120”
No protocol specified
/usr/bin/xset: unable to open display “:0”

It never did it on the first install, and I have now reinstalled it 3 times and on different cards, and i still get the same

any pointers would be helpful

Regards Martin

PS I would point out that I am fairly new to Raspberrys and Linux

Hi Waylander,

please provide some more information:

What is the brand and exact model of your screen?

How is the screen connected (HDMI, USB, GPIO…)?

Did you have to install some kind of driver for the screen or does the screen need some entry in /boot/config.txt (which might be missing)? If so, what commands have been executed / which modifications have been done to /boot/config.txt?

Does the screen (its backlight) light up when your system starts?

After starting / trying to start the plugin, what is the result of

 ls -al /tmp/.X11-unix

and of systemctl status volumio-kiosk
Also please post the content of /boot/config.txt

cat /boot/config.txt

Hi

thanks for coming back to me

the screen is an Elecrow 3.5 touch
elecrow.com/wiki/index.php? … spberry_Pi

the screen is working perfectly it loads and touch is working, it just puts up a red banner on the screen every time you play or stop music

and the entry above gets written into the logs

The device loaded and ready to go

the error and pop up when any kind of play function, or update music library is run

results of the commands in order

root@968media:/home/volumio# ls -al /tmp/.X11-unix
total 0
drwxrwxrwt 2 root root 80 Oct 10 10:50 .
drwxrwxrwt 13 root root 440 Oct 10 10:51 …
srwxrwxrwx 1 root root 0 Oct 10 10:49 X0
srwxrwxrwx 1 root root 0 Oct 10 10:50 X1
root@968media:/home/volumio#

root@968media:/home/volumio# systemctl status volumio-kiosk
â volumio-kiosk.service - Volumio Kiosk
Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled)
Active: active (running) since Thu 2019-10-10 10:50:39 UTC; 8min ago
Main PID: 1339 (startx)
CGroup: /system.slice/volumio-kiosk.service
ââ1339 /bin/sh /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh – -nocursor
ââ1367 xinit /etc/X11/Xsession /opt/volumiokiosk.sh – /usr/bin/X :1 -nocursor -auth /tmp/serverauth.e4uYV7Pe9O
ââ1368 /usr/lib/xorg/Xorg :1 -nocursor -auth /tmp/serverauth.e4uYV7Pe9O
ââ1383 /bin/bash /opt/volumiokiosk.sh
ââ1447 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /opt/volumiokiosk.sh
ââ1450 /usr/bin/dbus-launch --exit-with-session /opt/volumiokiosk.sh
ââ1451 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
ââ1456 /usr/bin/openbox --startup /usr/lib/arm-linux-gnueabihf/openbox-autostart OPENBOX
ââ1457 /usr/lib/chromium-browser/chromium-browser --enable-pinch --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flas…
ââ1472 /usr/lib/gvfs/gvfsd
ââ1476 /usr/lib/gvfs/gvfsd-fuse /home/volumio/.gvfs -f -o big_writes
ââ1492 /usr/lib/notification-daemon/notification-daemon
ââ1494 /usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py --tray
ââ1499 /usr/lib/at-spi2-core/at-spi-bus-launcher
ââ1503 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
ââ1507 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
ââ1509 /usr/bin/xbindkeys -f /etc/xbindkeysrc
ââ1515 /usr/lib/chromium-browser/chromium-browser --type=zygote --no-sandbox --user-data-dir=/data/volumiokiosk --ppapi-flash-path=/usr/lib/chr…
ââ1568 /usr/lib/arm-linux-gnueabihf/gconf/gconfd-2
ââ1570 /usr/lib/chromium-browser/chromium-browser --type=renderer --disable-3d-apis --disable-breakpad --disable-pinch --enable-pinch --no-sand…

Oct 10 10:50:39 968media startx[1339]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Oct 10 10:50:39 968media startx[1339]: (==) Log file: “/var/log/Xorg.1.log”, Time: Thu Oct 10 10:50:39 2019
Oct 10 10:50:39 968media startx[1339]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Oct 10 10:50:39 968media startx[1339]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Oct 10 10:50:40 968media startx[1339]: modprobe: FATAL: Module g2d_23 not found.
Oct 10 10:50:42 968media org.a11y.Bus[1451]: Activating service name=‘org.a11y.atspi.Registry’
Oct 10 10:50:42 968media org.a11y.Bus[1451]: Successfully activated service ‘org.a11y.atspi.Registry’
Oct 10 10:50:42 968media org.a11y.atspi.Registry[1503]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Oct 10 10:51:20 968media systemd[1]: Started Volumio Kiosk.
Oct 10 10:51:45 968media systemd[1]: Started Volumio Kiosk.
root@968media:/home/volumio#

root@968media:/home/volumio# cat /boot/config.txt
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

— added by elecrow-pitft-setup Wed Oct 9 12:34:12 UTC 2019 —

hdmi_force_hotplug=1
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
dtoverlay=elecrow35a,speed=22000000,fps=60

— end elecrow-pitft-setup Wed Oct 9 12:34:12 UTC 2019 —

root@968media:/home/volumio#

hope this all helps

Regards

Thanks for the additional info.

There are two unix domain sockets (X0 and X1) in /tmp/.X11-unix. systemctl status volumio-kiosk shows that X1 is used by the xserver started through volumio-kiosk.service. The plugin just deals with the domain socket X0 hence you get the error message.

We have to investigate why there are two sockets (X0 and X1) and why X1 is used.

Do you have another display connected?

If not, do you know what executing Elecrow-LCD35 changed on your system?

Edit: Please post the result of ls -al /usr/share/X11/xorg.conf.d

Hi Thanks for coming back again
the result of the command

volumio@968media:~$ ls -al /usr/share/X11/xorg.conf.d
total 32
drwxr-xr-x 2 root root 4096 Oct 9 12:34 .
drwxr-xr-x 1 root root 4096 Oct 9 12:26 …
-rw-r–r-- 1 root root 1099 Sep 24 2016 10-evdev.conf
-rw-r–r-- 1 root root 1350 Nov 11 2016 10-quirks.conf
-rw-r–r-- 1 root root 944 Oct 9 12:34 45-evdev.conf
-rw-r–r-- 1 root root 607 Oct 9 12:34 99-fbturbo.conf
volumio@968media:~$

I know when you run it it copies a lot of files and downloads a lot too
i am sure evdev is one and possible lightdm

other than that it too fast to see.

you canswitch back and forth from 3.5 touch to HDMI, run ./Elecrow-LCD35 hdmi command and reboot

but now i think im going to have to rebuild it again as all sound has stopped and it cant now see the 320GB USB in music library, which was working this morning

If you are going to start from scratch, try with just the additions to /boot/config.txt and installing the plugin. Do not run Elecrow-LCD35 and see if the screen displays the UI nevertheless. At least lightdm is not needed at all to display the Volumio UI.

Before you nuke your current installation please post the result of cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf

P.S. Do you use the ability to switch between the touchscreen and HDMI? I guess you will not see the error message after you switched to HDMI… could you test this, too?

Hi

I have rebuilt it and just added the lines to config.txt

root@968media:/home/volumio# cat /boot/config.txt
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=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
dtoverlay=elecrow35a,speed=22000000,fps=60

and installed the touch plugin, nothing from the screen not even a flicker,

I see it calls an overlay so i think i will have to install the drivers for the screen

Ok, when you have run Elecrow-LCD35 you could try to disable the lightdm service sudo systemctl disable lightdm and reboot. Then check again the files in /tmp/.X11-unix and run systemctl status -l volumio-kiosk.

Hi

we seem to have some success now

the volumio now loads with no errors after installing the Elecrow drivers,

I have run the command and here is the result

volumio@968media:~$ systemctl status -l volumio-kiosk
â volumio-kiosk.service - Volumio Kiosk
Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled)
Active: active (running) since Thu 2019-10-10 17:40:20 UTC; 1h 9min ago
Main PID: 1216 (startx)
CGroup: /system.slice/volumio-kiosk.service
ââ1216 /bin/sh /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh – -nocursor
ââ1241 xinit /etc/X11/Xsession /opt/volumiokiosk.sh – /usr/bin/X :0 -nocursor -auth /tmp/serverauth.BWRb4GMqi6
ââ1242 /usr/lib/xorg/Xorg :0 -nocursor -auth /tmp/serverauth.BWRb4GMqi6
ââ1339 /bin/bash /opt/volumiokiosk.sh
ââ1356 /usr/bin/ssh-agent /opt/volumiokiosk.sh
ââ1359 /usr/bin/openbox --startup /usr/lib/arm-linux-gnueabihf/openbox-autostart OPENBOX
ââ1360 /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
ââ1384 /usr/bin/xbindkeys -f /etc/xbindkeysrc
ââ1386 /usr/lib/chromium-browser/chromium-browser --type=zygote --no-sandbox --user-data-dir=/data/volumiokiosk --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so
ââ1471 /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

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

I think it would be good to post out what I did in what order with your amazing help, it all seems to be functioning

I will test it out a bit more and then post up the sequence

Great! :smiley:

Did you disable lightdm? If not, could you check if the service is running? systemctl status lightdm
If you don’t mind please post the output of cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf

Light DM

volumio@968media:/boot$ systemctl status lightdm
â lightdm.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
volumio@968media:/boot$

99-fbturbo.conf

volumio@968media:/boot$ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf

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 FBDEV”
Driver “fbturbo”
Option “fbdev” “/dev/fb1”

    Option          "SwapbuffersWait" "true"

EndSection
volumio@968media:/boot$

So what we did

clean install of Volumio on a 16GB SD card

run first config
go on the dev page enable SSH

Enabled Touch Plugin, Nothing

added the config for Elecrow to the 3.5 touch, No effect

Installed the Elecrow Drivers

sudo git clone github.com/Elecrow-keen/Elecrow-LCD35.git
cd Elecrow-LCD35
sudo ./Elecrow-LCD35

that installs the overlay and all other software needed

reboot and the screen springs to life with prompt then loads Volumio in Chromium

few more things to do

the images are a bit big for the 3.5 screen so I have some script to make it all a bit smaller

the Spotify Plugin needs a new index.js file and your token from spotify

as explained here

spotify-playlists-not-working-anymore-t11918.html

Script for CCS to shrink the display

cp /volumio/http/www/styles/app-.css /volumio/http/www/styles/app-css.orig
sed -i "s/(#trackManager{.
)top:50/\1top:85/g" /volumio/http/www/styles/app-.css
sed -i “s/.knobWrapper{position/@media (max-width:767px){.knobWrapper{zoom:.40;position:relative;width:210px;height:210px;margin:0 auto 15px}}.knobWrapper{position/g” /volumio/http/www/styles/app-
.c

I hope this helps others and once again thank you so much for your valuable assistance

Thanks much for your feedback. :slight_smile: