-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MacBook Pro][Linux] Host: MacBookPro14,1 (1.0)
#537
Comments
Host: MacBookPro14,1 (1.0)
Host: MacBookPro14,1 (1.0)
That's expected. SMBIOS reports model name ( that's However with Asahi Linux getting more and more popular, we may do it for Linux too, if one can confirm that Asahi Linux reports the same model name as macOS does. |
I think Neofetch fails to "beautify" the model name in this switch statement because of the |
I did. But the logs I linked above show that https://github.com/hykilpikonna/hyfetch/blob/b353cb724762b17a93d2b8ac189a82a1b471aacc/neofetch#L1527 is somehow still reached which puzzles me a bit. |
Impossible. The log shows |
I got |
Just add a line |
Oh.... yeah you're absolutely right. I missed that there's a second $ git diff
diff --git a/neofetch b/neofetch
index 5eecbe63..3700340b 100755
--- a/neofetch
+++ b/neofetch
@@ -1524,6 +1524,7 @@ get_model() {
model=$(sysctl -n hw.model)
fi
+ echo "HERE $model 1"
case $model in
Mac14,15): "MacBook Air (15-inch, M2, 2023)" ;;
Mac14,14): "Mac Studio (M2 Max, 2023)" ;;
@@ -1768,6 +1769,7 @@ get_model() {
model=${model//All Series}
model=${model//�}
+ echo "HERE $model 2"
case $model in
"Standard PC"*) model="KVM/QEMU (${model})" ;;
OpenBSD*) model="vmm ($model)" ;;
$ ./neofetch
.',;::::;,'. dracula@fedora
.';:cccccccccccc:;,. --------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 38.20230824.0 (Silverblue) x86_64
HERE MacBookPro14,1 1.0 2ccccccc:.
.;ccccccccccccc;.:dddl:.;ccccccc;. Host: MacBookPro14,1 1.0
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Kernel: 6.4.11-200.fc38.x86_64
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Uptime: 10 mins
,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Packages: 1480 (rpm), 139 (brew), 30 (flatpak-system)
:cccccccccccccc;MMM.;cccccccccccccccc: Shell: bash 5.2.15
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc: Resolution: 2560x1600
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; DE: GNOME 44.3 (wayland)
ccccc;XM0';cccc;MMM.;cccccccccccccccc' WM: Mutter
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; WM Theme: Adwaita
ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Theme: Adwaita [GTK2/3]
cccccc;dNMWXXXWM0:;cccccccccccccc:, Icons: Adwaita [GTK2/3]
cccccccc;.:odl:.;cccccccccccccc:,. Terminal: gnome-terminal
:cccccccccccccccccccccccccccc:'. CPU: Intel i5-7360U (4) @ 3.600GHz
.:cccccccccccccccccccccc:;,.. GPU: Intel Iris Plus Graphics 640
'::cccccccccccccc::;,. Memory: 2326.57 MiB / 7793.02 MiB
|
I'm curious what does |
Sure. I'm curious to know what made you curious. $ mount -l
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=4096k,nr_inodes=986109,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=1596012k,nr_inodes=819200,mode=755,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-vconsole-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /sysroot type btrfs (ro,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=258,subvol=/root)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on / type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=258,subvol=/root)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /etc type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=258,subvol=/root)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /usr type btrfs (ro,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=258,subvol=/root)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /sysroot/ostree/deploy/fedora/var type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=258,subvol=/root)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19705)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /var type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=256,subvol=/var)
/dev/nvme0n1p4 on /boot type ext4 (rw,relatime,seclabel)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,size=3990024k,nr_inodes=1048576,inode64)
/dev/mapper/luks-ecdf3111-d8f8-4148-a323-53da903d831f on /var/home type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=257,subvol=/home)
/dev/nvme0n1p3 on /boot/efi type hfsplus (rw,relatime,umask=22,uid=0,gid=0,nls=utf8)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
ramfs on /run/credentials/systemd-resolved.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=798004k,nr_inodes=199501,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) |
The |
Works as expected |
General description of bug:
I don't know. But I did noticed the bug doesn't occur on macOS using the same version:
I don't know how to use the latest dev build.
Often helpful information:
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
:The text was updated successfully, but these errors were encountered: