Touch display plugin installation issues - X server does not start

Just for future reference, in case anyone else stumbles across this thread like I did:

I ran into the same issue enabling the touch plugin on a clean install. I ended up fixing the install issue with a simple sudo dpkg --configure -a via SSH and reinstalling the plugin, this at least fixed the install port.

Second (and perhaps unnecessary for others) is that X failed to start, which I confirmed by running systemctl status -l volumio-kiosk.service. This reported the following:



● volumio-kiosk.service - Volumio Kiosk
   Loaded: loaded (/lib/systemd/system/volumio-kiosk.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2024-03-03 14:58:40 CET; 9min ago
  Process: 1077 ExecStart=/usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh -- -nocursor (code=exited, status=1/FAILURE)
 Main PID: 1077 (code=exited, status=1/FAILURE)

Mar 03 14:57:34 volumio systemd[1]: Started Volumio Kiosk.
Mar 03 14:57:34 volumio startx[1077]: /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
Mar 03 14:58:40 volumio startx[1077]: xinit: giving up
Mar 03 14:58:40 volumio startx[1077]: xinit: unable to connect to X server: Cannot assign requested address
Mar 03 14:58:40 volumio startx[1077]: xinit: server error
Mar 03 14:58:40 volumio systemd[1]: volumio-kiosk.service: Main process exited, code=exited, status=1/FAILURE
Mar 03 14:58:40 volumio systemd[1]: volumio-kiosk.service: Failed with result 'exit-code'.

What appeared to be causing this was Xorg.wrap: Only console users are allowed to run the X server. I fixed this by adding the following to /etc/X11/Xwrapper.config (file was empty): allowed_users = anybody.

After restarting the kiosk service with a simple sudo systemctl restart volumio-kiosk.service X worked!
All I had to do after that was add lcd_rotate = 2 to /boot/userconfig.txt because for some reason the rotation option in the settings did nothing and my 7" Pi official touchscreen was upside down.

After all this everything is up and running on my Pi4B+Pi touch+HifiBerry DAC+.