Display 0

Get help for Volumio here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Display 0

Postby Waylander » Wed Oct 09 2019 13:05

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
Random avatar
Waylander
Fresh off the boat
Fresh off the boat
 
Posts: 8
Joined: Wed Oct 09 2019 12:57

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Display 0

Postby gvolt » Wed Oct 09 2019 21:48

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
Code: Select all
 ls -al /tmp/.X11-unix

and of
Code: Select all
systemctl status volumio-kiosk

Also please post the content of /boot/config.txt
Code: Select all
cat /boot/config.txt
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47


Display 0

Postby Waylander » Thu Oct 10 2019 11:02

Hi

thanks for coming back to me

the screen is an Elecrow 3.5 touch
https://www.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
Image

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

Image



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
Random avatar
Waylander
Fresh off the boat
Fresh off the boat
 
Posts: 8
Joined: Wed Oct 09 2019 12:57


Display 0

Postby gvolt » Thu Oct 10 2019 12:24

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
Code: Select all
ls -al /usr/share/X11/xorg.conf.d
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47


Display 0

Postby Waylander » Thu Oct 10 2019 16:17

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
Random avatar
Waylander
Fresh off the boat
Fresh off the boat
 
Posts: 8
Joined: Wed Oct 09 2019 12:57


Display 0

Postby gvolt » Thu Oct 10 2019 16:46

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
Code: Select all
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?
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47


Display 0

Postby Waylander » Thu Oct 10 2019 17:11

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
Random avatar
Waylander
Fresh off the boat
Fresh off the boat
 
Posts: 8
Joined: Wed Oct 09 2019 12:57


Display 0

Postby gvolt » Thu Oct 10 2019 17:34

Ok, when you have run Elecrow-LCD35 you could try to disable the lightdm service
Code: Select all
sudo systemctl disable lightdm
and reboot. Then check again the files in /tmp/.X11-unix and run systemctl status -l volumio-kiosk.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47


Display 0

Postby Waylander » Thu Oct 10 2019 18:52

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 http://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 http://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
Random avatar
Waylander
Fresh off the boat
Fresh off the boat
 
Posts: 8
Joined: Wed Oct 09 2019 12:57


Display 0

Postby gvolt » Thu Oct 10 2019 19:04

Great! :D

Did you disable lightdm? If not, could you check if the service is running?
Code: Select all
systemctl status lightdm

If you don't mind please post the output of
Code: Select all
cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests