kodi on rbp4 "Unable to create GUI."

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Re: kodi on rbp4 "Unable to create GUI."

Postby Baumkuchen » Mon Dec 28, 2020 9:05 am

$this->bbcode_second_pass_code('', '[philipp@alarmpi ~]$ pacman -Q| grep linux
archlinuxarm-keyring 20140119-1
linux-api-headers 5.8-1
linux-firmware 20201218.646f159-1
linux-raspberrypi4 5.4.83-3
linux-tools-meta 5.10-2
util-linux 2.36.1-4
util-linux-libs 2.36.1-4
')

I copy'n'paste the output.
The system is usually up to date. I run -Syu regularly.
Baumkuchen
 
Posts: 9
Joined: Sun Dec 27, 2020 7:43 am

Re: kodi on rbp4 "Unable to create GUI."

Postby Baumkuchen » Mon Dec 28, 2020 9:33 am

Not sure if this is of any importance:

$this->bbcode_second_pass_code('', '
[philipp@alarmpi ~]$ sudo systemctl enable kodi
Failed to enable unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /usr/lib/systemd/system/lxdm.service.
[philipp@alarmpi ~]$ sudo systemctl enable kodi.service
Failed to enable unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /usr/lib/systemd/system/lxdm.service.
[philipp@alarmpi ~]$ ')

Will do what you just wrote now.
Baumkuchen
 
Posts: 9
Joined: Sun Dec 27, 2020 7:43 am

Re: kodi on rbp4 "Unable to create GUI."

Postby graysky » Mon Dec 28, 2020 9:37 am

$this->bbcode_second_pass_quote('Baumkuchen', 'N')ot sure if this is of any importance:

$this->bbcode_second_pass_code('', '
[philipp@alarmpi ~]$ sudo systemctl enable kodi
Failed to enable unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /usr/lib/systemd/system/lxdm.service.
[philipp@alarmpi ~]$ sudo systemctl enable kodi.service
Failed to enable unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /usr/lib/systemd/system/lxdm.service.
[philipp@alarmpi ~]$ ')

Will do what you just wrote now.


Please disable lxdm.service. You might need to manually delete it. As root:
$this->bbcode_second_pass_code('', 'systemctl disable lxdm
systemctl disable kodi
systemctl disable display-manager
rm /etc/systemd/system/display-manager.service
reboot')

When the system comes up, as root:
$this->bbcode_second_pass_code('', 'systemctl start kodi')
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi on rbp4 "Unable to create GUI."

Postby Baumkuchen » Mon Dec 28, 2020 10:01 am

Just so we are on the same page here, before I delete the display-manager (sounds kind of important)

I have the system as a desktop with Xfce and use Kodi for movies and music. Will disabling and rm a service compromise that?
Baumkuchen
 
Posts: 9
Joined: Sun Dec 27, 2020 7:43 am

Re: kodi on rbp4 "Unable to create GUI."

Postby graysky » Mon Dec 28, 2020 10:17 am

$this->bbcode_second_pass_quote('Baumkuchen', 'J')ust so we are on the same page here, before I delete the display-manager (sounds kind of important)

I have the system as a desktop with Xfce and use Kodi for movies and music. Will disabling and rm a service compromise that?


That's your problem! You can't have kodi.service and a display-manager like lxdm co-exist. The included service is for standalone operations where the primary monitor is for kodi. This is how the majority of RPi users treat the box: as a stand-alone appliance for kodi running 24/7, not as a desktop PC that is used to occasionally run kodi.

If you want to run kodi under your DE, you have to do running as your user, not as the kodi user. Just open a terminal and type 'kodi' or find kodi.desktop from your DE's menu to launch it.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi on rbp4 "Unable to create GUI."

Postby Baumkuchen » Mon Dec 28, 2020 10:26 am

That is exactly what I did. I think‌...
This is what gave me the Error:
$this->bbcode_second_pass_code('', '
$ kodi
ERROR: Unable to create GUI. Exiting
')
Baumkuchen
 
Posts: 9
Joined: Sun Dec 27, 2020 7:43 am

Re: kodi on rbp4 "Unable to create GUI."

Postby graysky » Tue Dec 29, 2020 11:36 am

Ah... you're running X11 I guess. We are providing kodi-gbm. I don't think it can run under X at all. I think your only option is to stop lxdm and then start kodi. You might have to reference the alias:

$this->bbcode_second_pass_code('', 'systemctl stop display-manager
systemctl start kodi')

Try it and let me know.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Previous

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 15 guests