mantic on raspberry5: x and/or lightdm problems

Bug #2044718 reported by Silvia
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SDDM
New
Undecided
Unassigned
linux-raspi (Ubuntu)
Invalid
Undecided
Unassigned
ubuntu-raspi-settings (Ubuntu)
Fix Released
Undecided
Unassigned
xorg-server (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

running mantic on raspberry5, graphical sessions doesn't start unless on gdm3; while performing installation, Ubuntu Budgie graphical session goes on without problems but at reboot DE doesn't start.
Tried installing "classical" ubuntu and DE came on w/o problems; installed budgie-desktop and lightdm side by side and budgie didn't start; installed sddm with same results. Only gdm3 works
See attached logs collection

Revision history for this message
Silvia (cabinstewardess) wrote :
Silvia (cabinstewardess)
description: updated
Juerg Haefliger (juergh)
tags: added: kern-8618
Revision history for this message
Silvia (cabinstewardess) wrote (last edit ):

found a workaround (thanking fossfreedom of Budgie team for gldriver suggestion): accessed system via Ctrl-Alt-Fxx and installed raspi-config, then downloaded gldriver-test_0.15_all.deb from Debian repo and installed it. After reboot everything is working properly

Juerg Haefliger (juergh)
Changed in linux-raspi (Ubuntu):
status: New → Invalid
Revision history for this message
fossfreedom (fossfreedom) wrote :

Reassigning to xorg-server initially.

Ubuntu doesn't have gldriver-test to enable xorg desktops to work on a raspi5.

So is there an equivalent package for Ubuntu or should gldriver-test be added to the ubuntu repo?

Revision history for this message
Juerg Haefliger (juergh) wrote :

If this is an X specific package then I'd say adding it to Ubuntu won't fly. X is dead and Wayland is the future. But I've been proven to be wrong in the past :-)

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Ubuntu will continue supporting Xorg in 24.04 at least, which will be supported until 2034(?). For specific Arm boards it might be OK to say we only support Wayland, but this is the first I've heard of it with respect to Raspberry Pi. It doesn't sound like a big technical hurdle(?)

tags: added: raspi raspigfx
tags: added: raspi-gfx
removed: raspigfx
Revision history for this message
Juerg Haefliger (juergh) wrote :

Ok. Thanks for the clarification regarding X support. In that case we need to understand what gldriver_test is doing that fixes things.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
Dennis Golden (dlgintx) wrote :

This certainly effected my use of kubuntu-desktop. As far as I know, kubuntu requires X11 so I can't believe that it can be ignored.

Dennis

Changed in linux-raspi (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Juerg Haefliger (juergh) wrote :

gldriver_test:

Description: Various graphics-related config services
 Installs systemd services to manage various aspects of configuration
 of video drivers on Raspberry Pi.

http://archive.raspberrypi.org/debian/pool/main/g/gldriver-test/

Revision history for this message
Juerg Haefliger (juergh) wrote :

OK, it's an X config. It runs this script:

#!/bin/bash

# Choose an appropriate "Primary GPU" for Xorg
# This should normally be vc4 (not v3d) but when some
# other display is enabled on Pi5, it should match that.

IDENTIFIER=vc4
MATCHDRIVER=vc4

if raspi-config nonint is_pifive; then
  if ls /dev/dri/by-path/ | grep -q '\(vec\|dsi\|dpi\)-card' ; then
    IDENTIFIER=rp1
    MATCHDRIVER='rp1-vec|rp1-dsi|rp1-dpi'
  fi
fi

sed -e "s/XXX/${IDENTIFIER}/" << EOF | sed -e "s/YYY/${MATCHDRIVER}/" > /etc/X11/xorg.conf.d/99-v3d.conf.tmp
Section "OutputClass"
  Identifier "XXX"
  MatchDriver "YYY"
  Driver "modesetting"
  Option "PrimaryGPU" "true"
EndSection
EOF

mv -f /etc/X11/xorg.conf.d/99-v3d.conf.tmp /etc/X11/xorg.conf.d/99-v3d.conf

Revision history for this message
Juerg Haefliger (juergh) wrote :

And:

#!/bin/bash

# Glamor should not run on platforms prior to Pi 4.

if ! raspi-config nonint gpu_has_mmu ; then
        if ! [ -e /usr/share/X11/xorg.conf.d/20-noglamor.conf ] ; then
                cat > /usr/share/X11/xorg.conf.d/20-noglamor.conf << EOF
Section "Device"
        Identifier "kms"
        Driver "modesetting"
        Option "AccelMethod" "msdri3"
        Option "UseGammaLUT" "off"
EndSection
EOF
        fi
else
        if [ -e /usr/share/X11/xorg.conf.d/20-noglamor.conf ] ; then
                rm /usr/share/X11/xorg.conf.d/20-noglamor.conf
        fi
fi

Revision history for this message
Dennis Golden (dlgintx) wrote :

So what does that mean for ubuntu? Will it be included or will we have to include this on our own?

Revision history for this message
Dennis Golden (dlgintx) wrote :

So does this mean that ubuntu will include this or will we have to do it on our own?

Revision history for this message
Juerg Haefliger (juergh) wrote :

This should go into a raspi specific package/config.

Changed in linux-raspi (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Dennis Golden (dlgintx) wrote :

I agree; however, I don't know exactly how to proceed/who to report it to. Suggestions would be greatly appreciated. The current work around works great, but it's still a manual work around with everyone having to search for an answer.

Dennis

Revision history for this message
Dave Jones (waveform) wrote :

I'll have a look at this next week; there's a bunch of things I need to shove in ubuntu-raspi-settings anyway this cycle and something like this is already present in there but I'll see if it needs enhancing (it won't be able to rely on raspi-config though, so I'll have to change those bits out).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-raspi-settings - 24.04.2

---------------
ubuntu-raspi-settings (24.04.2) noble; urgency=medium

  * Removed etc/netplan/01-use-network-manager.yaml: An equivalent is
    now provided under /lib by ubuntu-desktop-settings (LP: #2042866)
  * usr/share/initramfs-tools/hooks/zz-exclude-nvidia: New hook to exclude
    nvidia modules from the raspi initramfs (LP: #2060032)
  * usr/bin/update-v3d-config: Add script and corresponding service to update
    the X11 configuration for Pi 5 displays (LP: #2044718)
  * etc/X11/xorg.conf.d/99-vc4-primary.conf: Renamed to 99-v3d.conf
  * d/ubuntu-raspi-settings-desktop.lintian-overrides: Remove unknown tags,
    add tags for update-v3d-config
  * d/ubuntu-raspi-settings.lintian-overrides: Add override for appstream
    metadata
  * ubuntu-raspi-settings: Removed lz4 dependency; we removed the need for
    this in 24.04.1 when removing the obsolete initramfs-tools hack
  * Remove meson build dependency; dh_install is sufficient

 -- Dave Jones <email address hidden> Wed, 03 Apr 2024 14:37:51 +0100

Changed in ubuntu-raspi-settings (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.