fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10.23k stars 398 forks source link

[BUG] X11 displayed instead of Wayland on Gentoo/Hyprland. #1337

Closed blucybrb14de closed 2 days ago

blucybrb14de commented 5 days ago

Hello,

It appears that fastfetch currently is displaying Hyprland :D (X11), instead of Hyprland :D (Wayland), which is not a major issue, but is somewhat annoying. :(

I am currently using version: 2.27.1, I'm not sure when this happened but I think it was a couple versions prior that it started, the issue doesn't seem resolved.

Installed on Gentoo GNU/Linux via emerge app-misc/fastfetch. System compiler is llvm/clang. inxi-output.log

Screenshot:

Fastfetch

The content of the configuration file you use (if any):

{
  "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
  "modules": [
    "title",
    "break",
    "os",
    "host",
    "kernel",
    "uptime",
    "packages",
    "shell",
    "display",
    "wm",
    "cursor",
    "terminal",
    "terminalfont",
    "cpu",
    "gpu",
    "break",
    "colors",
    "break"
  ]
}

Output of fastfetch -c ci.jsonc --format json:

[
  {
    "type": "Title",
    "result": {
      "userName": "kyle",
      "hostName": "Linux-BattleStation",
      "homeDir": "/home/kyle/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/bin/zsh"
    },
    "stat": 0.004691004753112793
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.00024199485778808594
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "",
      "id": "gentoo",
      "idLike": "",
      "name": "Gentoo",
      "prettyName": "Gentoo Linux",
      "variant": "",
      "variantID": "",
      "version": "",
      "versionID": "2.15"
    },
    "stat": 0.023469999432563782
  },
  {
    "type": "Host",
    "result": {
      "family": "1A582021 Razer Blade",
      "name": "Blade 15 - RZ09-0485",
      "version": "9.04",
      "sku": "RZ09-0485ZED3",
      "vendor": "Razer",
      "serial": "",
      "uuid": ""
    },
    "stat": 0.2621050029993057
  },
  {
    "type": "Bios",
    "result": {
      "date": "01/13/2023",
      "release": "1.3",
      "vendor": "Razer",
      "version": "1.03",
      "type": "UEFI"
    },
    "stat": 0.034133002161979675
  },
  {
    "type": "Bootmgr",
    "result": {
      "name": "Linux",
      "firmware": "\\EFI\\BOOT\\BOOTX64.EFI",
      "secureBoot": false
    },
    "stat": 1.2603550106287003
  },
  {
    "type": "Board",
    "result": {
      "name": "CH590",
      "vendor": "Razer",
      "version": "4",
      "serial": ""
    },
    "stat": 0.017812013626098633
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Notebook",
      "vendor": "Razer",
      "version": "",
      "serial": ""
    },
    "stat": 0.02463500201702118
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.10.10-cachyos-6.10.10-Netrunner-Edition",
      "version": "#1 SMP PREEMPT_DYNAMIC Fri Oct  4 13:31:22 PDT 2024",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.1832599937915802
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "256.7",
      "pid": 1
    },
    "stat": 5.085293993353844
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 115540230,
      "bootTime": "2024-10-11T16:39:43.261-0700"
    },
    "stat": 0.03939799964427948
  },
  {
    "type": "Loadavg",
    "result": [
      0.33,
      0.59,
      0.66
    ],
    "stat": 0.018901005387306213
  },
  {
    "type": "Processes",
    "result": 663,
    "stat": 0.6454880088567734
  },
  {
    "type": "Packages",
    "result": {
      "all": 1446,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 1427,
      "eopkg": 0,
      "flatpakSystem": 19,
      "flatpakUser": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "pacman": 0,
      "paludis": 0,
      "pkg": 0,
      "pkgtool": 0,
      "macports": 0,
      "rpm": 0,
      "scoop": 0,
      "snap": 0,
      "winget": 0,
      "xbps": 0,
      "opkg": 0,
      "am": 0,
      "sorcery": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "linglong": 0,
      "pacstall": 0,
      "pacmanBranch": ""
    },
    "stat": 4.43368199467659
  },
  {
    "type": "Shell",
    "result": {
      "exe": "bash",
      "exeName": "bash",
      "exePath": "/usr/bin/bash",
      "pid": 3276693,
      "ppid": 3265544,
      "processName": "bash",
      "prettyName": "bash",
      "version": "5.2.37",
      "tty": 19
    },
    "stat": 1.2181349992752075
  },
  {
    "type": "Editor",
    "result": {
      "type": "Visual",
      "name": "emacsclient -c -a emacs",
      "path": "",
      "version": ""
    },
    "stat": 0.05194300413131714
  },
  {
    "type": "Display",
    "result": [
      {
        "id": 0,
        "name": "eDP-1",
        "primary": false,
        "output": {
          "width": 1600,
          "height": 900
        },
        "scaled": {
          "width": 1600,
          "height": 900
        },
        "physical": {
          "width": 340,
          "height": 190
        },
        "refreshRate": 59.94602069950036,
        "rotation": 0,
        "bitDepth": 0,
        "hdrStatus": null,
        "type": "Builtin",
        "manufactureDate": null,
        "serial": null
      }
    ],
    "stat": 3.9270950108766556
  },
  {
    "type": "Brightness",
    "result": [
      {
        "name": "nvidia_wmi_ec_backlight",
        "max": 255.0,
        "min": 0.0,
        "current": 12.0
      }
    ],
    "stat": 0.06425800919532776
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.0005100071430206299
  },
  {
    "type": "LM",
    "result": {
      "service": "sddm",
      "type": "Wayland",
      "version": ""
    },
    "stat": 0.0397379994392395
  },
  {
    "type": "DE",
    "result": {
      "processName": "Hyprland",
      "prettyName": "Hyprland",
      "version": ""
    },
    "stat": 0.2115899920463562
  },
  {
    "type": "WM",
    "result": {
      "processName": "Hyprland :D",
      "prettyName": "Hyprland :D",
      "protocolName": "X11",
      "pluginName": ""
    },
    "stat": 0.00098399817943573
  },
  {
    "type": "WMTheme",
    "error": "Unknown WM: Hyprland :D",
    "stat": 0.0009579956531524658
  },
  {
    "type": "Theme",
    "result": {
      "theme1": "",
      "theme2": "Sweet-Ambar-Blue-Dark-v40 [GTK2/3]"
    },
    "stat": 0.10821500420570374
  },
  {
    "type": "Icons",
    "result": {
      "icons1": "",
      "icons2": "Adwaita [GTK2/3]"
    },
    "stat": 0.0010899901390075684
  },
  {
    "type": "Font",
    "result": {
      "display": "Cantarell (11pt) [GTK2/3]",
      "fonts": [
        "",
        "Cantarell (11pt)",
        "Cantarell (11pt)",
        ""
      ]
    },
    "stat": 0.2057889997959137
  },
  {
    "type": "Cursor",
    "result": {
      "theme": "Bibata-Modern-Classic",
      "size": "24"
    },
    "stat": 0.0010320097208023071
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 0.0005979984998703003
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "tmux: server",
      "exe": "tmux",
      "exeName": "tmux",
      "exePath": "/usr/bin/tmux",
      "pid": 4129,
      "ppid": 1,
      "prettyName": "tmux",
      "version": "3.5",
      "tty": "/dev/pts/19"
    },
    "stat": 0.05217999219894409
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: tmux: server",
    "stat": 0.008116006851196289
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 98,
      "rows": 34,
      "width": 1274,
      "height": 918
    },
    "stat": 0.0010079890489578247
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 182,
        "g": 182,
        "b": 182,
        "dark": false
      },
      "bg": {
        "r": 0,
        "g": 0,
        "b": 0,
        "dark": true
      }
    },
    "stat": 0.22230300307273865
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "13th Gen Intel(R) Core(TM) i7-13800H",
      "vendor": "GenuineIntel",
      "cores": {
        "physical": 14,
        "logical": 20,
        "online": 20
      },
      "frequency": {
        "base": 2900,
        "max": 5200
      },
      "coreTypes": [
        {
          "count": 12,
          "freq": 2500
        },
        {
          "count": 8,
          "freq": 1800
        }
      ],
      "temperature": 49.0
    },
    "stat": 1.894095003604889
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 49152,
          "num": 6,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "instruction"
        },
        {
          "size": 32768,
          "num": 8,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 65536,
          "num": 8,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 1310720,
          "num": 6,
          "lineSize": 64,
          "type": "unified"
        },
        {
          "size": 2097152,
          "num": 2,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 25165824,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 1.7384480088949203
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0,
      4.761904761904762,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      5.0,
      5.0,
      0.0,
      5.263157894736842,
      5.0,
      0.0
    ],
    "stat": 200.35887598991394
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": 0,
        "coreCount": 4608,
        "coreUsage": 0.0,
        "memory": {
          "dedicated": {
            "total": 8295219200,
            "used": 710410240
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "nvidia (proprietary) 550.120",
        "name": "NVIDIA GeForce RTX 4070 Laptop GPU",
        "temperature": 45.0,
        "type": "Discrete",
        "vendor": "NVIDIA",
        "platformApi": "DRM (card0)",
        "frequency": 3105,
        "deviceId": 1000
      }
    ],
    "stat": 428.7196059972048
  },
  {
    "type": "Memory",
    "result": {
      "total": 16387026944,
      "used": 14781292544
    },
    "stat": 0.020410001277923584
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.02124100923538208
  },
  {
    "type": "Swap",
    "result": {
      "total": 33584832512,
      "used": 7107657728
    },
    "stat": 0.007571011781692505
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 197497585664,
          "free": 197497585664,
          "total": 315261976576,
          "used": 117764390912
        },
        "files": {
          "total": 386918806,
          "used": 1181142
        },
        "filesystem": "zfs",
        "mountpoint": "/",
        "mountFrom": "tank/ROOT/system",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-07-03T20:58:02.876-0700"
      },
      {
        "bytes": {
          "available": 507904000,
          "free": 507904000,
          "total": 871104512,
          "used": 363200512
        },
        "files": {
          "total": 992112,
          "used": 8
        },
        "filesystem": "zfs",
        "mountpoint": "/boot/efi",
        "mountFrom": "boot",
        "name": "",
        "volumeType": [
          "Hidden"
        ],
        "createTime": "2024-07-10T20:18:27.868-0700"
      },
      {
        "bytes": {
          "available": 197497585664,
          "free": 197497585664,
          "total": 197497847808,
          "used": 262144
        },
        "files": {
          "total": 385737671,
          "used": 7
        },
        "filesystem": "zfs",
        "mountpoint": "/etc/zfs/keys",
        "mountFrom": "tank/keystore",
        "name": "",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2024-07-08T21:49:24.262-0700"
      },
      {
        "bytes": {
          "available": 197497585664,
          "free": 197497585664,
          "total": 845921779712,
          "used": 648424194048
        },
        "files": {
          "total": 386044326,
          "used": 306662
        },
        "filesystem": "zfs",
        "mountpoint": "/home",
        "mountFrom": "tank/home",
        "name": "",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2024-07-03T20:58:27.424-0700"
      }
    ],
    "stat": 0.1887339949607849
  },
  {
    "type": "Btrfs",
    "error": "opendir(\"/sys/fs/btrfs\") == NULL",
    "stat": 0.011982008814811707
  },
  {
    "type": "Zpool",
    "result": [
      {
        "name": "boot",
        "state": "ONLINE",
        "used": 364457984,
        "total": 1006632960,
        "version": 5000,
        "fragmentation": 18446744073709551615
      },
      {
        "name": "tank",
        "state": "ONLINE",
        "used": 776387850240,
        "total": 1005022347264,
        "version": 5000,
        "fragmentation": 32
      }
    ],
    "stat": 2.9194579869508743
  },
  {
    "type": "Battery",
    "result": [
      {
        "capacity": 98.0,
        "manufacturer": "Razer",
        "manufactureDate": "",
        "modelName": "Blade",
        "status": "AC Connected",
        "technology": "Unknown",
        "serial": "CNB1RC30-02482CT00378-A08",
        "temperature": null,
        "cycleCount": 0
      }
    ],
    "stat": 18.01647800207138
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 1.3611699938774109
  },
  {
    "type": "Player",
    "result": {
      "player": "qutebrowser",
      "playerId": "chromium.instance3240141",
      "url": ""
    },
    "stat": 4.041113987565041
  },
  {
    "type": "Media",
    "result": {
      "song": "I use Emacs. I use SystemD. I use Gentoo.",
      "artist": "Swindles McCoop",
      "album": "",
      "status": "Paused"
    },
    "stat": 0.0007729977369308472
  },
  {
    "type": "DateTime",
    "result": "2024-10-13T00:45:24.166-0700",
    "stat": 0.015879005193710327
  },
  {
    "type": "Locale",
    "result": "C.utf8",
    "stat": 0.001515999436378479
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "1.3.277",
      "conformanceVersion": "1.3.2",
      "driver": "NVIDIA [550.120]",
      "gpus": [
        {
          "type": "Discrete",
          "vendor": "NVIDIA",
          "name": "NVIDIA GeForce RTX 4070 Laptop GPU",
          "driver": "550.120",
          "platformApi": "Vulkan 1.3.277",
          "deviceId": 10336,
          "memory": {
            "dedicated": {
              "total": 8585740288,
              "used": null
            },
            "shared": {
              "total": 12290270208,
              "used": null
            }
          },
          "deviceId": 10336
        }
      ]
    },
    "stat": 108.15295299887657
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.5 (Compatibility Profile) Mesa 24.2.4",
      "renderer": "llvmpipe (LLVM 18.1.8, 256 bits)",
      "vendor": "Mesa",
      "slv": "4.50",
      "library": "EGL 1.5"
    },
    "stat": 281.44329300522804
  },
  {
    "type": "OpenCL",
    "error": "fastfetch was compiled without OpenCL support",
    "stat": 0.0038670003414154053
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "kyle",
        "hostName": "",
        "sessionName": "tty2",
        "clientIp": "0.0.0.0",
        "loginTime": "2024-10-12T21:51:58.674-0700"
      }
    ],
    "stat": 0.07247099280357361
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": true,
        "main": false,
        "volume": 39,
        "name": "Raptor Lake-P/U/H cAVS Speaker",
        "identifier": "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink"
      },
      {
        "active": true,
        "main": true,
        "volume": 39,
        "name": "Razer BlackShark V2 Pro 2.4 Analog Stereo",
        "identifier": "alsa_output.usb-1532_Razer_BlackShark_V2_Pro_2.4_O001000007-00.analog-stereo"
      }
    ],
    "stat": 4.608914002776146
  },
  {
    "type": "Camera",
    "result": [
      {
        "name": "Integrated RGB Camera: Integrat",
        "vendor": "",
        "colorSpace": "sRGB",
        "id": "usb-0000:00:14.0-2",
        "width": 1280,
        "height": 720
      },
      {
        "name": "Integrated RGB Camera: Integrat",
        "vendor": "",
        "colorSpace": "sRGB",
        "id": "usb-0000:00:14.0-2",
        "width": 640,
        "height": 360
      }
    ],
    "stat": 96.14273498952389
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.04546800255775452
  },
  {
    "type": "Weather",
    "result": "+10°C - Clear (not found)",
    "stat": 0.07684400677680969
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "wlo1",
        "defaultRoute": true,
        "txBytes": 2856,
        "rxBytes": 10040,
        "txPackets": 27,
        "rxPackets": 23,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0.17012500762939453
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "NVMe CA6-8D1024",
        "devPath": "/dev/nvme0n1",
        "bytesRead": 2695168,
        "bytesWritten": 1544192,
        "readCount": 208,
        "writeCount": 119
      }
    ],
    "stat": 0.08599099516868591
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "NVMe CA6-8D1024",
        "devPath": "/dev/nvme0n1",
        "interconnect": "NVMe",
        "kind": "SSD",
        "size": 1024209543168,
        "serial": "00221950099B",
        "removable": false,
        "readOnly": false,
        "revision": "ERA0906",
        "temperature": 36.85
      }
    ],
    "stat": 23.98971299827099
  },
  {
    "type": "TPM",
    "error": "TPM device is not found",
    "stat": 0.016251996159553528
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.27.1",
      "versionGit": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Oct  7 2024, 22:44:45",
      "compiler": "clang 19.1.1",
      "debugMode": false,
      "libc": "glibc 2.40"
    },
    "stat": 0.0011439919471740723
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.00104600191116333
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.00033999979496002197
  }
]

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
x11
dbus
egl
glx
libpulse
libzfs
System yyjson
linux/videodev2
linux/wireless

Tested on bash 5.2.37, and zsh 5.9.

CarterLi commented 5 days ago

This issue usually happens when fastfetch fails to connect wayland display server. Please check if $XDG_RUNTIME_DIR is set. If yes, please check if wayland-info works ( usually installed by package wayland-util )

CarterLi commented 5 days ago

It does work for another user: https://github.com/fastfetch-cli/fastfetch/issues/1338

blucybrb14de commented 4 days ago

It appears that $XDG_RUNTIME_DIR is set to /run/user/1000 however, wayland-info outputs wayland-info failed to create display: No such file or directory, it might be a Hyprland specific issue, I used alacrity.

CarterLi commented 4 days ago

You should fix it somehow, or all your programs will be run in Xwayland mode.

CarterLi commented 2 days ago

Not a fastfetch bug