How to run GDM in debug mode?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • How to run gdm in debug mode to view verbose messages?

Resolution

  1. Set Enable=true in the debug section of the /etc/gdm/custom.conf configuration file.

    [debug]
    Enable=true
    
  2. Restart the gdm service, using the below commands:

    • RHEL 6

      # init 3
      # init 5
      
    • RHEL 7 and later

      # systemctl restart gdm.service
      

Diagnostic Steps

Check the GDM logs.

  • In RHEL 6, the logs are stored at /var/log/gdm.

  • In RHEL 7 and later, the GDM log messages are sent to the system journal. You can read them with

    # journalctl --boot --unit gdm.service
    
SBR
Components

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.