Cannot open display!

Hello, a new installation on an older (2013) Supermicro workstation here :

                     ./o.                  nik@Phronesis
                   ./sssso-                -------------
                 `:osssssss+-              OS: EndeavourOS Linux x86_64
               `:+sssssssssso/.            Host: Supermicro X9DAi
             `-/ossssssssssssso/.          Kernel: 6.11.9-arch1-1
           `-/+sssssssssssssssso+:`        Uptime: 2 hours, 47 mins
         `-:/+sssssssssssssssssso+/.       Packages: 939 (pacman)
       `.://osssssssssssssssssssso++-      Shell: bash 5.2.37
      .://+ssssssssssssssssssssssso++:     Resolution: 3840x2160
    .:///ossssssssssssssssssssssssso++:    WM: sway
  `:////ssssssssssssssssssssssssssso+++.   Terminal: terminology
`-////+ssssssssssssssssssssssssssso++++-   Terminal Font: Source Code Pro
 `..-+oosssssssssssssssssssssssso+++++/`   CPU: Intel Xeon E5-2680 v2 (40) @ 3.600GHz
   ./++++++++++++++++++++++++++++++/:.     GPU: NVIDIA Quadro K2000D
  `:::::::::::::::::::::::::------``       Memory: 4828MiB / 257892MiB

I am trying to install and run various tools, like the AKM (see also : AKM, EndeavourOS tools) but I get

$ akm
==> Config file /etc/akm.conf read.
==> Info: detecting available kernel packages.

(yad:142833): Gtk-WARNING **: 07:01:00.549: cannot open display:
/usr/bin/akm: line 468: : command not found

I use Wayland + Sway, just fine it seems. I have read some similar/same error message here After updating system and changing kernel to zen one, system not booting - #5 by tankas yet it’s a different use-case.

Any ideas to fix this ? Thank you.

Please show the output of

echo $DISPLAY
echo $WAYLAND_DISPLAY

Note that akm is a simple wrapper for pacman, so instead you can install and uninstall kernel packages on the command line.

Never mind, I played around and I got it working.

For the records, however,

❯ echo $DISPLAY


❯ echo $WAYLAND_DISPLAY
wayland-1

So, there is no DISPLAY set :-).

Maybe relevant (as I got to see properly a screen during and after boot), especially the GRUB_GFXMODE variable :

# GRUB boot loader configuration

GRUB_DEFAULT='0'
GRUB_TIMEOUT='3'
GRUB_DISTRIBUTOR='EndeavourOS'
GRUB_CMDLINE_LINUX_DEFAULT='nowatchdog nvme_load=YES rd.luks.uuid=bf8ce39d-5339-4381-affc-6fd771f3940e loglevel=3'
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=3840x2160,1600x1200,1280x1024,1280x800,1024x768,auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY='true'

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND='/usr/share/endeavouros/splash.png'
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
GRUB_DISABLE_SUBMENU='false'

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false
GRUB_EARLY_INITRD_LINUX_STOCK=''

One thing that is still annoying, is the slowness of the GRUB menu. Really slow even rendering the menu, pixel-row-by-pixel-row from bottom to top… :-?

ps- We can “close” this “issue”.

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