GDM service not starting automatically after boot

Hello there,

I am quite new to Linux, therefore apologies in advance in case of stupid questions.

I have the following issue: I updated the packages last week and since then, gdm service is not starting automatically upon booting up. Of course, I can use tty and start it by myself (systemctl start gdm.service), but how can I make this work automatically?

I already enabled the service with systemctl enable gdm.service, but that doesn’t help. Is there anyone that can help me debug this, as I have no idea where to go?

Thanks everyone in advance!

Hi and welcome to the forum :wave:

To start I would find out why the service is not started:
$ systemctl status gdm

If that does not give a clue
$ journalctl --boot --priority=err

Would output the errors during the current boot process.

Check the update threads for common issues after a update (2nd post always had solutions) start here

If you need help with interpreting the output please use the </> button in the editor to format the output correctly.

1 Like

What happens if you switch TTYs. Does GDM start on its own if you switch to TTY2/TTY1?

If that’s the case, you might need to enable kernel modesetting either via kernel parameter or EKMS.

Check this out:

EDIT: Please provide further information about your hardware as per below:

1 Like

Hello again :wave:

I’m sorry for getting back on this so late, I just didn’t have time to play with this.

I followed both of your advises, this is what I’ve figured out:
@El_Brujo GDM actually does start on its own if I switch to TTY1.

This is the GDM status directly after boot:

systemctl status gdm.service                                                                                                          
● gdm.service - GNOME Display Manager
     Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2021-06-05 11:39:21 CEST; 1min 38s ago
    Process: 659 ExecStartPre=/usr/lib/gdm-wait-for-drm (code=exited, status=0/SUCCESS)
   Main PID: 663 (gdm)
      Tasks: 3 (limit: 9395)
     Memory: 5.5M
     CGroup: /system.slice/gdm.service
             └─663 /usr/bin/gdm
lip 05 11:39:21 paula-pc systemd[1]: Starting GNOME Display Manager...
lip 05 11:39:21 paula-pc systemd[1]: Started GNOME Display Manager.
lip 05 11:39:23 paula-pc gdm[663]: Gdm: Child process -938 was already dead.

And the status from the journalctl:

journalctl --boot --priority=err                                                                                                                                                                                                                              
-- Journal begins at Mon 2021-04-05 14:04:00 CEST, ends at Sat 2021-06-05 11:55:42 CEST. --
lip 05 11:39:19 paula-pc kernel: platform MSFT0101:00: failed to claim resource 1: [mem 0xfed40000-0xfed40fff]
lip 05 11:39:19 paula-pc kernel: acpi MSFT0101:00: platform device creation failed: -16
lip 05 11:39:19 paula-pc kernel: 
lip 05 11:39:21 paula-pc kernel: snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
lip 05 11:40:40 paula-pc gdm-password][3750]: gkr-pam: unable to locate daemon control file

My system info:

inxi --admin --verbosity=7 --filter --no-host --width                                                                                                                                                                                                                     
  Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=725e3735-3cc9-4a92-a81b-aafd1235dbbb rw quiet splash apparmor=1 
  security=apparmor resume=UUID=3d0ac009-bc34-4620-b189-355b16b62087 
  Desktop: GNOME 3.38.4 tk: GTK 3.24.29 wm: gnome-shell dm: GDM 40.0 
  Distro: Manjaro Linux base: Arch Linux 
  Type: Laptop System: Acer product: Aspire V5-591G v: V1.04 serial: <filter> 
  Mobo: Acer model: Usopp_SLS v: V1.04 serial: <filter> UEFI-[Legacy]: Insyde 
  v: 1.04 date: 10/27/2015 
  ID-1: BAT1 charge: 29.2 Wh (100.0%) condition: 29.2/55.9 Wh (52.3%) 
  volts: 12.9 min: 11.1 model: SANYO AL15B32 type: Li-ion serial: <filter> 
  status: Full 
  ID-2: hidpp_battery_0 charge: N/A condition: N/A volts: 3.8 min: N/A 
  model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A 
  serial: <filter> status: Discharging 
  RAM: total: 7.67 GiB used: 2.63 GiB (34.4%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
  Info: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP 
  arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: E2 cache: 
  L2: 6 MiB bogomips: 41621 
  Speed: 800 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
  Device-1: Intel HD Graphics 530 vendor: Acer Incorporated ALI driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:191b class-ID: 0300 
  Device-2: NVIDIA GM107M [GeForce GTX 950M] vendor: Acer Incorporated ALI 
  driver: nvidia v: 460.80 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:139a class-ID: 0302 
  Device-3: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 1-9:7 
  chip-ID: 04f2:b520 class-ID: 0e02 
  Display: x11 server: 1.20.11 compositor: gnome-shell driver: 
  loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 21.0.3 
  direct render: Yes 
  Device-1: Intel 100 Series/C230 Series Family HD Audio 
  vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
  bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403 
  Device-2: C-Media Audio Adapter (Unitek Y-247A) type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-5:3 chip-ID: 0d8c:0014 
  class-ID: 0300 
  Sound Server-1: ALSA v: k5.10.36-2-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.28 running: yes 
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Foxconn driver: ath10k_pci v: kernel port: 4000 bus-ID: 07:00.0 
  chip-ID: 168c:003e class-ID: 0280 
  IF: wlp7s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000 
  bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp8s0 state: down mac: <filter> 
  WAN IP: <filter> 
  Device-1: Foxconn / Hon Hai type: USB driver: btusb v: 0.8 bus-ID: 1-7:5 
  chip-ID: 0489:e09f class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends 
  Message: No logical block device data found. 
  Message: No RAID data found. 
  Local Storage: total: 1.14 TiB used: 132.1 GiB (11.3%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: THNSNJ256G8NU 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 0101 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD10JPVX-22JC3T0 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 1A01 scheme: MBR 
  Message: No optical or floppy data found. 
  ID-1: / raw-size: 230.47 GiB size: 225.79 GiB (97.97%) 
  used: 27.98 GiB (12.4%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: 725e3735-3cc9-4a92-a81b-aafd1235dbbb 
  ID-2: /home raw-size: 931.51 GiB size: 915.81 GiB (98.31%) 
  used: 104.11 GiB (11.4%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 label: N/A 
  uuid: 0f0dc157-29d0-41d9-9477-2b3938fcbcc0 
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 3d0ac009-bc34-4620-b189-355b16b62087 
  Message: No unmounted partitions found. 
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0610 class-ID: 0900 
  Hub-3: 1-1.1:4 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0608 class-ID: 0900 
  Hub-4: 1-1.1.1:6 info: ASIX AX68004 ports: 7 rev: 1.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 0b95:6804 class-ID: 0900 
  Device-1: 1- info: Logitech USB Receiver type: Keyboard,Mouse,HID 
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c539 class-ID: 0300 
  Device-2: 1- 
  info: Logitech G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard 
  type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 046d:c343 class-ID: 0300 
  serial: <filter> 
  Device-3: 1-5:3 info: C-Media Audio Adapter (Unitek Y-247A) type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 0d8c:0014 class-ID: 0300 
  Device-4: 1-7:5 info: Foxconn / Hon Hai type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0489:e09f 
  class-ID: e001 
  Device-5: 1-9:7 info: Chicony HD WebCam type: Video driver: uvcvideo 
  interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b520 
  class-ID: 0e02 
  Device-6: 1-10:9 info: Realtek RTS5129 Card Reader Controller 
  type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129 
  class-ID: ff00 serial: <filter> 
  Hub-5: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-6: 2-6:2 info: Genesys Logic hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 05e3:0616 class-ID: 0900 
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  Processes: 286 Uptime: 13m wakeups: 8 Init: systemd v: 247 tool: systemctl 
  Compilers: gcc: 10.2.0 Packages: 1447 pacman: 1433 lib: 428 flatpak: 0 
  snap: 14 Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.04

I will take a look at the other topics meanwhile… hopefully there is a solution without messing with Kernel though :sweat_smile:

Thanks a lot!

1 Like

Hi @acerinth

No worries. Thanks for taking some time to report back to us! :+1:

I see that you have an optimus laptop.

Most likely, you may fix that issue by doing Early KMS as explained in ArchWiki.

EDIT: You just need to do it for the Intel GPU.

Good luck dealing with that!

Let us know if you need anything else from here. :smiley:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.