Closed flipflop133 closed 10 months ago
Fastfetch detects more by default. Try fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM:WMTheme:Theme:Icons:Terminal:CPU:GPU:Memory:Break:Colors --ds-force-drm
Ok, I thought it would be faster by default as stated in the package description, I guess my assumption was wrong, but still as it's written in C it should in theory display at least the same items faster, it feels like it's slowing down retrieving one item. Still when displaying the same items Neofetch is still faster.
And using --ds-force-drm is indeed faster but doesn't show the same options:
Do you have 2 displays?
Yes I do.
But why only BNQ78F5 was detected previously?
Indeed, when I disconnect the second display it's much faster:
EDIT: when I'm using two displays, I'm just connecting my laptop to my BenQ monitor and displaying only on the BenQ monitor.
But why only BNQ78F5 was detected previously?
No idea, I didn't changed the setup except for my last message.
What if you open both two?
It takes a bit more time:
Compare to neofetch? You should use --stat
to display the time costs.
Wait. I see that fastfetch prints 4.7 GHz CPU freq, while neofetch prints 2.8 GHz. Which one is correct?
it seems that it's slowing down detecting the monitors.
Wait. I see that fastfetch prints 4.7 GHz CPU freq, while neofetch prints 2.8 GHz. Which one is correct?
4.7Ghz is the maximum freq aka boost freq, while 2.8Ghz is the base freq, so there's no "correct" one here. While I would say 4.7GHz is what the user would expect here, so fastfetch is correct imo.
More info on my processor here.
What does fastfetch --format json
print?
[
{
"type": "Title",
"result": {
"userName": "francois",
"hostName": "fox",
"homeDir": "/home/francois/",
"exePath": "/usr/bin/fastfetch",
"userShell": "/bin/bash",
"pageSize": 4096
}
},
{
"type": "Separator",
"error": "Unsupported for JSON format"
},
{
"type": "OS",
"result": {
"buildID": "rolling",
"codename": "",
"id": "arch",
"idLike": "",
"name": "Arch Linux",
"prettyName": "Arch Linux",
"variant": "",
"variantID": "",
"version": "",
"versionID": ""
}
},
{
"type": "Host",
"result": {
"family": "IdeaPad 5 15ITL05",
"name": "82FG",
"version": "IdeaPad 5 15ITL05",
"sku": "LENOVO_MT_82FG_BU_idea_FM_IdeaPad 5 15ITL05",
"sysVender": "LENOVO"
}
},
{
"type": "Kernel",
"result": {
"architecture": "x86_64",
"name": "Linux",
"release": "6.6.2-arch1-1",
"version": "#1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000",
"displayVersion": ""
}
},
{
"type": "Uptime",
"result": {
"uptime": 8858330,
"bootTime": 1701098589637
}
},
{
"type": "Packages",
"result": {
"all": 824,
"apk": 0,
"brew": 0,
"brewCask": 0,
"choco": 0,
"dpkg": 0,
"emerge": 0,
"eopkg": 0,
"flatpakSystem": 0,
"flatpakUser": 0,
"nixDefault": 0,
"nixSystem": 0,
"nixUser": 0,
"pacman": 824,
"paludis": 0,
"pkg": 0,
"pkgtool": 0,
"port": 0,
"rpm": 0,
"scoop": 0,
"snap": 0,
"winget": 0,
"xbps": 0,
"opkg": 0,
"pacmanBranch": ""
}
},
{
"type": "Shell",
"result": {
"exe": "/bin/bash",
"exeName": "bash",
"pid": 60277,
"processName": "bash",
"version": "5.2.21"
}
},
{
"type": "Display",
"result": [
{
"width": 2560,
"height": 1440,
"id": 0,
"name": "BNQ78F5",
"primary": false,
"refreshRate": 59.9505501052548,
"rotation": 0,
"scaledHeight": 1440,
"scaledWidth": 2560,
"type": "Unknown"
}
]
},
{
"type": "DE",
"error": "No DE found"
},
{
"type": "WM",
"result": {
"processName": "i3",
"prettyName": "i3",
"protocolName": "X11",
"pluginName": ""
}
},
{
"type": "WMTheme",
"error": "Unknown WM: i3"
},
{
"type": "Theme",
"result": "Adwaita [GTK3/4]"
},
{
"type": "Icons",
"result": "Papirus-Light [GTK3/4]"
},
{
"type": "Font",
"result": {
"display": "Open Sans (12pt) [GTK3/4]",
"fonts": [
"",
"",
"Open Sans (12pt)",
"Open Sans (12pt)"
]
}
},
{
"type": "Cursor",
"result": {
"theme": "Bibata-Modern-Classic",
"size": ""
}
},
{
"type": "Terminal",
"result": {
"processName": "kitty",
"exe": "kitty",
"exeName": "kitty",
"pid": 60263,
"prettyName": "kitty",
"version": "0.31.0"
}
},
{
"type": "TerminalFont",
"result": {
"font": {
"name": "JetBrainsMonoNF-Regular",
"size": "14",
"styles": [],
"pretty": "JetBrainsMonoNF-Regular (14pt)"
},
"fallback": {
"name": "",
"size": "",
"styles": [],
"pretty": ""
}
}
},
{
"type": "CPU",
"result": {
"cpu": "11th Gen Intel(R) Core(TM) i7-1165G7",
"vendor": "GenuineIntel",
"cores": {
"physical": 4,
"logical": 8,
"online": 8
},
"frequency": {
"min": 0.4,
"max": 4.7
},
"temperature": null
}
},
{
"type": "GPU",
"result": [
{
"coreCount": null,
"memory": {
"dedicated": {
"total": null,
"used": null
},
"shared": {
"total": null,
"used": null
}
},
"driver": "i915",
"name": "Iris Xe Graphics",
"temperature": null,
"type": "Unknown",
"vendor": "Intel"
}
]
},
{
"type": "Memory",
"result": {
"total": 16551911424,
"used": 4354154496
}
},
{
"type": "Swap",
"result": {
"total": 4294963200,
"used": 0
}
},
{
"type": "Disk",
"result": [
{
"bytes": {
"available": 447285997568,
"free": 449736421376,
"total": 511555141632,
"used": 61818720256
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "btrfs",
"mountpoint": "/",
"mountFrom": "/dev/mapper/root",
"name": "",
"volumeType": [
"Regular"
]
},
{
"bytes": {
"available": 447285997568,
"free": 449736421376,
"total": 511555141632,
"used": 61818720256
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "btrfs",
"mountpoint": "/.snapshots",
"mountFrom": "/dev/mapper/root",
"name": "",
"volumeType": [
"Subvolume"
]
},
{
"bytes": {
"available": 459071488,
"free": 459071488,
"total": 535805952,
"used": 76734464
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "vfat",
"mountpoint": "/boot",
"mountFrom": "/dev/nvme0n1p1",
"name": "",
"volumeType": [
"Hidden"
]
},
{
"bytes": {
"available": 447285997568,
"free": 449736421376,
"total": 511555141632,
"used": 61818720256
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "btrfs",
"mountpoint": "/home",
"mountFrom": "/dev/mapper/root",
"name": "",
"volumeType": [
"Subvolume"
]
},
{
"bytes": {
"available": 447285997568,
"free": 449736421376,
"total": 511555141632,
"used": 61818720256
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "btrfs",
"mountpoint": "/var/cache/pacman/pkg",
"mountFrom": "/dev/mapper/root",
"name": "",
"volumeType": [
"Subvolume"
]
},
{
"bytes": {
"available": 447285997568,
"free": 449736421376,
"total": 511555141632,
"used": 61818720256
},
"files": {
"total": 0,
"used": 0
},
"filesystem": "btrfs",
"mountpoint": "/var/log",
"mountFrom": "/dev/mapper/root",
"name": "",
"volumeType": [
"Subvolume"
]
}
]
},
{
"type": "LocalIp",
"result": [
{
"defaultRoute": true,
"ipv4": "192.168.0.13/24",
"ipv6": "",
"mac": "",
"name": "wlan0"
}
]
},
{
"type": "Battery",
"result": [
{
"capacity": 96.0,
"manufacturer": "Celxpert",
"modelName": "L19C4PF1",
"status": "Charging",
"technology": "Li-poly",
"temperature": null,
"cycleCount": 724
}
]
},
{
"type": "PowerAdapter",
"error": "Not supported on this platform"
},
{
"type": "Locale",
"result": "en_US.UTF-8"
},
{
"type": "Break",
"error": "Unsupported for JSON format"
},
{
"type": "Colors",
"error": "Unsupported for JSON format"
}
]
I tried this command:
fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM:WMTheme:Theme:Icons:Terminal:CPU:GPU:Memory:Break:Colors --stat
and then without Display:
fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:DE:WM:WMTheme:Theme:Icons:Terminal:CPU:GPU:Memory:Break:Colors --stat
And as you can notice on the screenshot, the stat tool seems broken too, as the +-500ms delay was one time reported for the Display and another time for the DE.
It's expected. It's displayserver that costs the time, which is used both for display module and lm / de module
I ran this command using last build:
fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM:WMTheme:Theme:Icons:Terminal:CPU:GPU:Memory:Break:Colors --stat
and it's still slow using two monitors as you can see on the screenshot below, if you think it's just how it should be and it's xrandr fault, then you can just close this issue I guess.
Can you try the dev build with --ds-force-drm?
So I tried the following command with two monitor and with the laptop monitor disabled:
fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM:WMTheme:Theme:Icons:Terminal:CPU:GPU:Memory:Break:Colors --stat --ds-force-drm
Without --ds-force-drm
, it's still slow but using --ds-force-drm
doesn't show WM, theme and icons.
I'm able to reproduce this issue. Seems that it only happens when an external display is connected and the builtin display is disabled.
It's really strange. I will investigate it more tomorrow.
On my slow linux machine, Display
costs about 1257ms. xcb_randr_get_screen_info_reply
costs 592ms and xcb_randr_get_screen_resources_reply
costs 608ms.
Thanks god KDE is deprecating X11!
Even though xcb should be in theory more modern and faster, maybe using the older style is more efficient in this case.
Should be fixed in the latest dev build. Please test.
I can confirm it's now fixed, good job!
General description of bug:
fastfetch 2.2.3-1
with paruI think it's slowing down when trying to display the shell informations.
Comparison image
Often helpful information:
The content of the configuration file you use (if any)
Output of
env NO_CONFIG=1 fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false
:Output of
fastfetch --list-features
: