Wave share and volumio

Hi gvolt, thanks for the quick reply.

Disabling and re-enabling the plugin leads to the error message:

systemctl status -l volumio-kiosk.service

shows:

plugin off:

● volumio-kiosk.service - Volumio Kiosk Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled) Active: inactive (dead)
plugin on:

[code]● volumio-kiosk.service - Volumio Kiosk
Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled)
Active: failed (Result: exit-code) since Tue 2020-05-05 17:01:12 UTC; 32s ago
Process: 1388 ExecStart=/usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh – -nocursor (code=exited, status=1/FAILURE)
Main PID: 1388 (code=exited, status=1/FAILURE)

May 05 17:00:58 volumio startx[1388]: at http://wiki.x.org
May 05 17:00:58 volumio startx[1388]: for help.
May 05 17:00:58 volumio startx[1388]: (EE) Please also check the log file at “/var/log/Xorg.0.log” for additional information.
May 05 17:00:58 volumio startx[1388]: (EE)
May 05 17:00:58 volumio startx[1388]: (EE) Server terminated with error (1). Closing log file.
May 05 17:01:12 volumio startx[1388]: xinit: giving up
May 05 17:01:12 volumio startx[1388]: xinit: unable to connect to X server: Cannot assign requested address
May 05 17:01:12 volumio startx[1388]: xinit: server error
May 05 17:01:12 volumio systemd[1]: volumio-kiosk.service: main process exited, code=exited, status=1/FAILURE
May 05 17:01:12 volumio systemd[1]: Unit volumio-kiosk.service entered failed state.[/code]

What I meant with ‘screen worked’ was that I could see the volumio interface. Calibration was wrong - so i thought I needed the two following steps.

I have a slight different screen than piotr: “Waveshare 3.5inch RPi LCD (B) v2”
so I modified the steps accordingly:

cd ~ git clone https://github.com/swkim01/waveshare-dtoverlays sudo cp waveshare-dtoverlays/waveshare35b-v2.dtbo /boot/overlays/waveshare35b-v2.dtbo echo dtoverlay=waveshare35b-v2 >> /boot/config.txt sudo reboot
-> Install the touch_display plugin and enable it from the webUI.

sudo systemctl stop volumio-kiosk.service sudo sed -i "s+/dev/fb0+/dev/fb1+" /usr/share/X11/xorg.conf.d/99-fbturbo.conf cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo systemctl start volumio-kiosk.service

[code]sudo nano /boot/config.txt

initramfs volumio.initrd
gpu_mem=64
max_usb_current=1
dtparam=audio=on
dtparam=spi=on
dtoverlay=waveshare35b-v2:rotate=90
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=0[/code]

[code]sudo nano /usr/share/X11/xorg.conf.d/99-callibration.conf

Section “InputClass”
Identifier “calibration”
MatchProduct “ADS7846 Touchscreen”
Option “TransformationMatrix” “0 -1 1 1 0 0 0 0 1”
Option “SwapAxes” “0”
EndSection[/code]

Ok, the Xserver fails to start which also leads to the error message you saw on enabling the plugin.

Could you please show the result of ls -al /tmp/.X11-unix

total 0 drwxrwxrwt 2 root root 40 May 5 17:00 . drwxrwxrwt 11 root root 400 May 5 17:01 ..

I just tried to find out if your display needs the modification of 99-fbturbo.conf which changed the framebuffer from fb0 to fb1. I did not find the information right now, but you may try reverting that change nonetheless.

:astonished: that worked
Thank you so much!

[code]Section “Device”
Identifier “Allwinner A10/A13 FBDEV”
Driver “fbturbo”
Option “fbdev” “/dev/fb0”

    Option          "SwapbuffersWait" "true"

EndSection[/code]

[code]ls -al /tmp/.X11-unix

total 0
drwxrwxrwt 2 root root 60 May 5 18:34 .
drwxrwxrwt 12 root root 420 May 5 18:34 …
srwxrwxrwx 1 root root 0 May 5 18:34 X0[/code]

:smiley:

My pleasure!

Is there any way to modify the GUI to fit small screens better? (e.g. scaling, smaller symbols)
I found some css tweaks - but they don’t work.

Did you already find these tweaks? I did not try them myself so I can’t comment on them.

Be aware that modifying those .css files will have the effect that system updates would not work anymore. You would have to delete userdata to be able to update and then apply the changes again.

I found a description how to use the chrome kiosk scaling to fit the GUI better to small screens here

I just did a fresh install (volumio-2.779) and followed all the steps as described in my post above.

However - no matter what i change in “/usr/share/X11/xorg.conf.d/99-calibration.conf” - it has no effect to my touchscreen.
Was there some recent change to volumio or the touch plugin? This worked before.
My touch is still 90° rotated with respect to the screen.

What post are you referring to and what are you trying to achieve / what is not working? Scaling?

Depends what changes respectively possible effects of changes you have in mind :wink: The last version of the plugin is 1.1.8 and has already been published on May 25, version 1.1.7 had been published on Mar 7. The changes from 1.1.7 to 1.1.8 were not related to scaling or calibration. What version of the plugin have you been using before the fresh install (I assume you are now using version 1.1.8)?

Hi,
thanks for the reply. I refer to the posts from 5th of may.

I just tried to make a fresh install of volumio and set up the touch plugin. But I can’t get the touch input to match the screen (GUI). Whatever I do in “99-calibration.conf” has no effect.
I’m now using 1.1.8 and from the dates I assume I used 1.1.7 before the fresh install.
Was there any change on how/where to handle the “TransformationMatrix”?

No, not from the plugin at least. Please post the results of ls -al /usr/share/X11/xorg.conf.d and ls -al /etc/X11/xorg.conf.d.

Hi,

total 36
drwxr-xr-x 2 root root 4096 Jul 10 20:12 .
drwxr-xr-x 1 root root 4096 Jul 10 20:03 …
-rw-r–r-- 1 root root 1350 Nov 11 2016 10-quirks.conf
-rw-r–r-- 1 root root 788 Jul 10 20:24 40-libinput.conf
-rw-r–r-- 1 root root 2747 Oct 28 2016 70-wacom.conf
-rw-r–r-- 1 root root 170 Jul 10 20:24 99-calibration.conf
-rw-r–r-- 1 root root 607 Jul 10 20:14 99-fbturbo.conf

total 20
drwxr-xr-x 2 root root 4096 Jul 11 06:01 .
drwxr-xr-x 1 root root 4096 Jul 10 20:05 …
-rw-r–r-- 1 root root 366 Jul 11 06:01 95-touch_display-plugin.conf

btw, is the file called “99-calibration.conf” or “99-callibration.conf”? The internet is not quite shure about that…

“calibration” would be the correct spelling but that should not matter. If possible PM me the “99-callibration.conf” and post the result of 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-07-11 06:01:05 UTC; 1h 40min ago
 Main PID: 1234 (startx)
   CGroup: /system.slice/volumio-kiosk.service
           ├─1234 /bin/sh /usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh -- -nocursor
           ├─1259 xinit /etc/X11/Xsession /opt/volumiokiosk.sh -- /usr/bin/X :0 -nocursor -auth /tmp/serverauth.tZbHK2r4xL
           ├─1260 /usr/lib/xorg/Xorg :0 -nocursor -auth /tmp/serverauth.tZbHK2r4xL
           ├─1343 /bin/bash /opt/volumiokiosk.sh
           ├─1360 /usr/bin/ssh-agent /opt/volumiokiosk.sh
           ├─1365 /usr/bin/openbox --startup /usr/lib/arm-linux-gnueabihf/openbox-autostart OPENBOX
           ├─1366 /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
           ├─1392 /usr/bin/xbindkeys -f /etc/xbindkeysrc
           ├─1396 /usr/bin/pulseaudio --start
           ├─1416 /usr/lib/chromium-browser/chromium-browser --type=zygote --no-sandbox --user-data-dir=/data/volumiokiosk --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so
           ├─1449 /bin/sh /usr/bin/start-pulseaudio-x11
           ├─1450 /usr/bin/xprop -root -spy
           └─1488 /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

Jul 11 06:01:05 volumio startx[1234]: Markers: (--) probed, (**) from config file, (==) default setting,
Jul 11 06:01:05 volumio startx[1234]: (++) from command line, (!!) notice, (II) informational,
Jul 11 06:01:05 volumio startx[1234]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jul 11 06:01:05 volumio startx[1234]: (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul 11 06:01:05 2020
Jul 11 06:01:05 volumio startx[1234]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Jul 11 06:01:05 volumio startx[1234]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Jul 11 06:01:05 volumio startx[1234]: modprobe: FATAL: Module g2d_23 not found.
Jul 11 06:01:08 volumio pulseaudio[1396]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
Jul 11 06:01:08 volumio pulseaudio[1396]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
Jul 11 06:01:08 volumio pulseaudio[1396]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist

systemctl result looks normal.

As proposed by gvolt:
Moving 99-calibration.conf to /etc/X11/xorg.conf.d solved the problem.

1 Like

I have install it with help from this page. But i cant calibrate it.

What is the brand and exact model name / number of your screen?