Skip to content

[BUG] For DT systems, SoC compatible may be not the 2nd compatible string #1997

@Icenowy

Description

@Icenowy

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

Running fastfetch on some SoM-based boards (e.g. Lichee Pi 4A) will show the name of SoM in the CPU field because of it being the 2nd compatible string in DT's root compatible.

An example on Lichee Pi 4A:
CPU: lichee-module-4a (4)

A hexdump of the /proc/device-tree/compatible file:

root@lpi4a66 [ ~ ] # hexdump -C /proc/device-tree/compatible 
00000000  73 69 70 65 65 64 2c 6c  69 63 68 65 65 2d 70 69  |sipeed,lichee-pi|
00000010  2d 34 61 00 73 69 70 65  65 64 2c 6c 69 63 68 65  |-4a.sipeed,liche|
00000020  65 2d 6d 6f 64 75 6c 65  2d 34 61 00 74 68 65 61  |e-module-4a.thea|
00000030  64 2c 74 68 31 35 32 30  00                       |d,th1520.|
00000039

Example of another DTS with the same SoM compatible string: https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-manta.dts#L12

Version used

fastfetch 2.53.0 (riscv)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

apt from AOSC OS

Screenshots

No response

Configuration

System information

[
  {
    "type": "Title",
    "result": {
      "userName": "root",
      "fullUserName": "root",
      "hostName": "lpi4a66",
      "homeDir": "/root/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/bin/bash"
    },
    "stat": 0.01699999999254942
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.003000000026077032
  },
  {
    "type": "OS",
    "result": {
      "buildID": "20250916",
      "codename": "localhost",
      "id": "aosc",
      "idLike": "",
      "name": "AOSC OS",
      "prettyName": "AOSC OS (12.2.2)",
      "variant": "",
      "variantID": "",
      "version": "12.2.2 (localhost)",
      "versionID": "12.2.2"
    },
    "stat": 0.2906730002723634
  },
  {
    "type": "Host",
    "result": {
      "family": "",
      "name": "Sipeed Lichee Pi 4A",
      "version": "",
      "sku": "",
      "vendor": "",
      "serial": "",
      "uuid": ""
    },
    "stat": 0.2970060002990067
  },
  {
    "type": "BIOS",
    "result": {
      "date": "",
      "release": "",
      "vendor": "",
      "version": "",
      "type": "BIOS"
    },
    "stat": 0.17833600006997585
  },
  {
    "type": "Bootmgr",
    "error": "Failed to read efivar: BootCurrent",
    "stat": 0.020332999993115664
  },
  {
    "type": "Board",
    "result": {
      "name": "lichee-pi-4a",
      "vendor": "sipeed",
      "version": "",
      "serial": ""
    },
    "stat": 0.15500300005078316
  },
  {
    "type": "Chassis",
    "error": "chassis_type is not set by O.E.M.",
    "stat": 0.10766900004819036
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "riscv64",
      "name": "Linux",
      "release": "6.17.0+",
      "version": "#117 SMP Wed Oct  1 18:23:18 CST 2025",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.008667000103741884
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "257.6",
      "pid": 1
    },
    "stat": 2.469382999930531
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 3039870,
      "bootTime": "2025-10-09T14:52:07.433+0800"
    },
    "stat": 0.23767099995166063
  },
  {
    "type": "Loadavg",
    "result": [
      0.0,
      0.0,
      0.31
    ],
    "stat": 0.11400200007483363
  },
  {
    "type": "Processes",
    "result": 128,
    "stat": 0.6530129997991025
  },
  {
    "type": "Packages",
    "result": {
      "all": 1207,
      "amSystem": 0,
      "amUser": 0,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 1207,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "hpkgSystem": 0,
      "hpkgUser": 0,
      "linglong": 0,
      "mport": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "opkg": 0,
      "pacman": 0,
      "pacstall": 0,
      "paludis": 0,
      "pisi": 0,
      "pkg": 0,
      "pkgtool": 0,
      "pkgsrc": 0,
      "macports": 0,
      "rpm": 0,
      "scoopUser": 0,
      "scoopGlobal": 0,
      "snap": 0,
      "soar": 0,
      "sorcery": 0,
      "winget": 0,
      "xbps": 0,
      "pacmanBranch": ""
    },
    "stat": 0.6156790000386536
  },
  {
    "type": "Shell",
    "result": {
      "exe": "bash",
      "exeName": "bash",
      "exePath": "/usr/bin/bash",
      "pid": 741,
      "ppid": 716,
      "processName": "bash",
      "prettyName": "bash",
      "version": "5.2.37",
      "tty": 64
    },
    "stat": 2.0397080001421273
  },
  {
    "type": "Editor",
    "error": "$VISUAL or $EDITOR not set",
    "stat": 0.008334000129252672
  },
  {
    "type": "Display",
    "error": "Couldn't detect display",
    "stat": 17.523684999905527
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 0.05900100013241172
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.004000000189989805
  },
  {
    "type": "LM",
    "result": {
      "service": "login",
      "type": "TTY",
      "version": ""
    },
    "stat": 0.12800299981608987
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0.003334000241011381
  },
  {
    "type": "WM",
    "error": "No WM found",
    "stat": 0.00433299969881773
  },
  {
    "type": "WMTheme",
    "error": "WM Theme needs successful WM detection",
    "stat": 0.005332999862730503
  },
  {
    "type": "Theme",
    "error": "Theme isn't supported in TTY",
    "stat": 0.004666999913752079
  },
  {
    "type": "Icons",
    "error": "Icons aren't supported in TTY",
    "stat": 0.003333000000566244
  },
  {
    "type": "Font",
    "error": "Font isn't supported in TTY",
    "stat": 0.003333999775350094
  },
  {
    "type": "Cursor",
    "error": "Cursor isn't supported in TTY",
    "stat": 0.006667000241577625
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 13.956946999765933
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "vt220",
      "exe": "vt220",
      "exeName": "vt220",
      "exePath": "",
      "pid": 0,
      "ppid": 0,
      "prettyName": "vt220",
      "version": "",
      "tty": "/dev/ttyS0"
    },
    "stat": 0.337674000300467
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: vt220",
    "stat": 0.01733400020748377
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 210,
      "rows": 46,
      "width": 0,
      "height": 0
    },
    "stat": 100.34001299971715
  },
  {
    "type": "TerminalTheme",
    "error": "Failed to detect terminal theme",
    "stat": 100.2330100000836
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "lichee-module-4a",
      "vendor": "Sipeed",
      "packages": 1,
      "cores": {
        "physical": 4,
        "logical": 4,
        "online": 4
      },
      "frequency": {
        "base": 0,
        "max": 0
      },
      "coreTypes": [],
      "temperature": 31.954,
      "march": null
    },
    "stat": 1.2940259999595582
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 65536,
          "num": 4,
          "lineSize": 64,
          "type": "instruction"
        },
        {
          "size": 65536,
          "num": 4,
          "lineSize": 64,
          "type": "data"
        }
      ],
      "l2": [
        {
          "size": 1048576,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 3.926745000295341
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0
    ],
    "stat": 200.5746890003793
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": null,
        "coreCount": null,
        "coreUsage": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          },
          "type": null
        },
        "driver": "powervr",
        "name": "th1520-gpu",
        "temperature": null,
        "type": "Integrated",
        "vendor": "Thead",
        "platformApi": "DRM (card1)",
        "frequency": null,
        "deviceId": 0
      }
    ],
    "stat": 0.6223460002802312
  },
  {
    "type": "Memory",
    "result": {
      "total": 8328323072,
      "used": 236339200
    },
    "stat": 0.10800200002267957
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.04433399997651577
  },
  {
    "type": "Swap",
    "result": [],
    "stat": 0.04700100002810359
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 31017316352,
          "free": 33986252800,
          "total": 58015604736,
          "used": 24029351936
        },
        "files": {
          "total": 3604480,
          "used": 529726
        },
        "filesystem": "ext4",
        "mountpoint": "/",
        "mountFrom": "/dev/mmcblk1p4",
        "name": "rootfs",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-05-27T02:21:45.000+0800"
      },
      {
        "bytes": {
          "available": 128331776,
          "free": 165031936,
          "total": 473923584,
          "used": 308891648
        },
        "files": {
          "total": 128000,
          "used": 68
        },
        "filesystem": "ext4",
        "mountpoint": "/boot",
        "mountFrom": "/dev/mmcblk1p2",
        "name": "boot",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-05-27T02:21:45.000+0800"
      }
    ],
    "stat": 1.7583679999224842
  },
  {
    "type": "Btrfs",
    "result": [],
    "stat": 0.09900199994444847
  },
  {
    "type": "Zpool",
    "error": "dlopen libzfs.so failed",
    "stat": 6.792469000443816
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0.0816679997369647
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0.050334000028669834
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.0026669995859265327
  },
  {
    "type": "Media",
    "error": "No media found",
    "stat": 177.5298930001445
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "112.94.103.250",
      "location": "Guangzhou, CN"
    },
    "stat": 0.405007999856025
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "end0",
        "defaultRoute": {
          "ipv4": true,
          "ipv6": false
        },
        "ipv4": "10.42.0.150/24",
        "ipv6": "",
        "mac": "26:9e:2f:7c:a5:46",
        "mtu": 1500,
        "speed": 1000,
        "flags": "UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP"
      }
    ],
    "stat": 0.7636820003390312
  },
  {
    "type": "DNS",
    "result": [
      "10.42.0.1"
    ],
    "stat": 0.11633600015193224
  },
  {
    "type": "Wifi",
    "result": [],
    "stat": 0.52234400017187
  },
  {
    "type": "DateTime",
    "result": "2025-10-09T15:42:47.934+0800",
    "stat": 0.284339000005275
  },
  {
    "type": "Locale",
    "result": "C.UTF-8",
    "stat": 0.019334000069648027
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "",
      "conformanceVersion": "",
      "driver": "",
      "gpus": []
    },
    "stat": 1206.0245139999315
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.5 (Compatibility Profile) Mesa 25.1.9",
      "renderer": "llvmpipe (LLVM 20.1.8, 128 bits)",
      "vendor": "Mesa",
      "slv": "4.50",
      "library": "EGL 1.5"
    },
    "stat": 1282.225034000352
  },
  {
    "type": "OpenCL",
    "result": {
      "version": "3.0",
      "name": "rusticl",
      "vendor": "Mesa/X.org",
      "gpus": []
    },
    "stat": 960.5002480000257
  },
  {
    "type": "Users",
    "result": [],
    "stat": 0.324672999791801
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.0403350000269711
  },
  {
    "type": "BluetoothRadio",
    "error": "Failed to open /sys/class/bluetooth",
    "stat": 0.026334000285714865
  },
  {
    "type": "Sound",
    "error": "Failed to connect to pulseaudio context",
    "stat": 120.00340499961749
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0.04633399983868003
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.0853349999524653
  },
  {
    "type": "Mouse",
    "result": [],
    "stat": 0.05266800010576844
  },
  {
    "type": "Keyboard",
    "error": "opendir(\"/dev/input/by-path/\") == NULL",
    "stat": 0.03399999998509884
  },
  {
    "type": "Weather",
    "error": "Empty server response received",
    "stat": 1006.6455009998754
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "end0",
        "defaultRoute": true,
        "txBytes": 106,
        "rxBytes": 178,
        "txPackets": 1,
        "rxPackets": 1,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0.6510129999369383
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "mmcblk0",
        "devPath": "/dev/mmcblk0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "mmcblk0boot0",
        "devPath": "/dev/mmcblk0boot0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "mmcblk1",
        "devPath": "/dev/mmcblk1",
        "bytesRead": 17274470,
        "bytesWritten": 5734,
        "readCount": 259,
        "writeCount": 0
      },
      {
        "name": "mmcblk0boot1",
        "devPath": "/dev/mmcblk0boot1",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 1.171689999755472
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "mmcblk0",
        "devPath": "/dev/mmcblk0",
        "interconnect": "MMC",
        "kind": "SSD",
        "size": 7818182656,
        "serial": "0x69774662",
        "removable": false,
        "readOnly": false,
        "revision": "0x8",
        "temperature": null
      },
      {
        "name": "mmcblk0boot0",
        "devPath": "/dev/mmcblk0boot0",
        "interconnect": "MMC",
        "kind": "SSD",
        "size": 4194304,
        "serial": "",
        "removable": false,
        "readOnly": true,
        "revision": "",
        "temperature": null
      },
      {
        "name": "mmcblk1",
        "devPath": "/dev/mmcblk1",
        "interconnect": "MMC",
        "kind": "SSD",
        "size": 63864569856,
        "serial": "0x5a33a9b8",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      },
      {
        "name": "mmcblk0boot1",
        "devPath": "/dev/mmcblk0boot1",
        "interconnect": "MMC",
        "kind": "SSD",
        "size": 4194304,
        "serial": "",
        "removable": false,
        "readOnly": true,
        "revision": "",
        "temperature": null
      }
    ],
    "stat": 2.7233879999257624
  },
  {
    "type": "TPM",
    "error": "TPM is not supported by kernel",
    "stat": 0.05100099975243211
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "riscv",
      "version": "2.53.0",
      "versionGit": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Sep 24 2025, 10:42:07",
      "compiler": "gcc 14.3.0",
      "debugMode": false,
      "libc": "glibc 2.40"
    },
    "stat": 0.007667000405490398
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.003666999749839306
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.002001000102609396
  }
]

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
imagemagick6
zlib
sqlite3
egl
glx
opencl
libpulse
libddcutil
libelf
libzfs
linux/videodev2
linux/wireless

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions