Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

[BUG] Doesn't show GPUWU without root perms #243

Open
taep96 opened this issue Oct 2, 2023 · 5 comments
Open

[BUG] Doesn't show GPUWU without root perms #243

taep96 opened this issue Oct 2, 2023 · 5 comments

Comments

@taep96
Copy link

taep96 commented Oct 2, 2023

Describe the bug
Doesn't show GPUWU without root perms.

To Reproduce

  1. run uwufetch
  2. run sudo uwufetch

Expected behavior
Should always show the GPUWU

Screenshots
image

Desktop (please complete the following information):

  • OS: Nyarch Linuwu
  • Version: 2.1

Additional context
I've also tried neofetch and it displays it at all times

Are you already working on this bug?
No.

@taep96
Copy link
Author

taep96 commented Oct 2, 2023

My config:

host=false
resolution=false
shell=false

@ad-oliviero
Copy link
Owner

Do you have lshw installed?
If the issue persists, could you send the output of uwufetch -v after recompiling with make debug?

@taep96
Copy link
Author

taep96 commented Oct 5, 2023

Compiling it myself works both with and without lshw. The version that doesn't work is installed from Arch Linux extra.

uwufetch on  main via C v13.2.1-gcc
❯ ./uwufetch -v
[INFO]: main in uwufetch.c:785: version 2.1-34-g3439013
[INFO]: get_twidth in fetch.c:109: getting terminal width
[VARIABLE]: get_twidth in fetch.c:114: user_info->target_width = 58
[INFO]: get_info in fetch.c:616: getting os name from /etc/os-release
[VARIABLE]: get_info in fetch.c:636: user_info->os_name = "arch"
[INFO]: get_info in fetch.c:680: getting username and hostname
[VARIABLE]: get_info in fetch.c:682: user_info->host = "archlinux"
[VARIABLE]: get_info in fetch.c:684: tmp_user = "taep96"
[VARIABLE]: get_info in fetch.c:689: user_info->user = "taep96"
[INFO]: get_sys in fetch.c:125: getting sys_var struct
[INFO]: get_info in fetch.c:761: STARTING thread 0
[INFO]: get_info in fetch.c:761: STARTING thread 1
[INFO]: get_cpu in fetch.c:146: getting cpu name
[INFO]: get_info in fetch.c:761: STARTING thread 2
[INFO]: get_ram in fetch.c:180: getting ram
[VARIABLE]: get_cpu in fetch.c:173: user_info->cpu_model = "AMD Ryzen 7 5800X 8-Core Processor"
[INFO]: get_info in fetch.c:761: STARTING thread 3
[INFO]: get_gpu in fetch.c:285: getting gpu(s)
[INFO]: get_gpu in fetch.c:294: getting gpus with lshw
[INFO]: get_info in fetch.c:761: STARTING thread 4
[VARIABLE]: get_ram in fetch.c:246: user_info->ram_total = 32000
[VARIABLE]: get_ram in fetch.c:247: user_info->ram_used = 4283
[INFO]: get_info in fetch.c:761: STARTING thread 5
[INFO]: get_pkg in fetch.c:362: getting pkgs
[INFO]: get_pkg in fetch.c:397: trying pkgman 0: (apt)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/apt"
[WARNING]: get_pkg in fetch.c:417: pkgman (apt) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 1: (apk)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/apk"
[WARNING]: get_pkg in fetch.c:417: pkgman (apk) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 2: (emerge)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/qlist"
[WARNING]: get_pkg in fetch.c:417: pkgman (emerge) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 3: (flatpak)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/flatpak"
[WARNING]: get_pkg in fetch.c:417: pkgman (flatpak) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 4: (snap)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/snap"
[WARNING]: get_pkg in fetch.c:417: pkgman (snap) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 5: (guix)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/guix"
[WARNING]: get_pkg in fetch.c:417: pkgman (guix) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 6: (nix)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/nix-store"
[WARNING]: get_pkg in fetch.c:417: pkgman (nix) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 7: (pacman)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/pacman"
[INFO]: get_info in fetch.c:761: STARTING thread 6
[INFO]: get_info in fetch.c:761: STARTING thread 7
[INFO]: get_ker in fetch.c:536: getting kernel
[VARIABLE]: get_ker in fetch.c:543: user_info->kernel = "Linux 6.5.5-zen1-1-zen x86_64"
[INFO]: get_info in fetch.c:771: JOINING thread 0
[INFO]: get_info in fetch.c:771: JOINING thread 1
[VARIABLE]: get_upt in fetch.c:563: ((struct thread_varg*)argp)->thread_flags[7] = 0x1
[INFO]: get_upt in fetch.c:565: getting uptime
[VARIABLE]: get_upt in fetch.c:594: user_info->uptime = 0x136
[VARIABLE]: get_pkg in fetch.c:429: user_info->pkgman_name = "1440 (pacman)"
[INFO]: get_pkg in fetch.c:397: trying pkgman 8: (pkg)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/pkg"
[WARNING]: get_pkg in fetch.c:417: pkgman (pkg) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 9: (pkg)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/pkg_info"
[WARNING]: get_pkg in fetch.c:417: pkgman (pkg) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 10: (port)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/port"
[WARNING]: get_pkg in fetch.c:417: pkgman (port) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 11: (brew-cellar)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/brew"
[WARNING]: get_pkg in fetch.c:417: pkgman (brew-cellar) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 12: (brew-cask)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/brew"
[WARNING]: get_pkg in fetch.c:417: pkgman (brew-cask) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 13: (rpm)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/rpm"
[WARNING]: get_pkg in fetch.c:417: pkgman (rpm) executable not found!
[INFO]: get_pkg in fetch.c:397: trying pkgman 14: (xbps)
[VARIABLE]: get_pkg in fetch.c:398: current->command_path = "/usr/bin/xbps-query"
[WARNING]: get_pkg in fetch.c:417: pkgman (xbps) executable not found!
[VARIABLE]: get_gpu in fetch.c:333: user_info->gpu_model[i] = "Intel Corporation DG2 Arc A770"
[INFO]: get_info in fetch.c:771: JOINING thread 2
[INFO]: get_info in fetch.c:771: JOINING thread 3
[INFO]: get_info in fetch.c:771: JOINING thread 4
[INFO]: get_info in fetch.c:771: JOINING thread 5
[INFO]: get_info in fetch.c:771: JOINING thread 6
[INFO]: get_info in fetch.c:771: JOINING thread 7
[VARIABLE]: main in uwufetch.c:816: user_info.gpu_model[1] = ""
[INFO]: uwufy_all in uwufetch.c:450: uwufing everything
[INFO]: uwu_kernel in uwufetch.c:333: uwufing kernel
[VARIABLE]: uwu_kernel in uwufetch.c:394: kernel = "Linuwu 6.5.5-zen1-1-zen x86_64             "
[INFO]: uwu_hw in uwufetch.c:399: uwufing hardware
[INFO]: uwu_hw in uwufetch.c:399: uwufing hardware
[VARIABLE]: uwufy_all in uwufetch.c:456: user_info->cpu_model = "AMD Wyzen 7 5800X 8-Cowe Pwocessow"
[INFO]: uwu_hw in uwufetch.c:399: uwufing hardware
[VARIABLE]: uwufy_all in uwufetch.c:458: user_info->model = ""
[INFO]: uwu_pkgman in uwufetch.c:434: uwufing package managers
[VARIABLE]: uwufy_all in uwufetch.c:460: user_info->pkgman_name = "1440 (pacnyan)"
[VARIABLE]: print_ascii in uwufetch.c:611: ascii_file = "./res/ascii/arch.txt"
                     taep96@archlinux
        /\           OWOS     Nyarch Linuwu
       /  \          KEWNEL   Linuwu 6.5.5-zen1-1-zen x86_64
      /\   \         CPUWU    AMD Wyzen 7 5800X 8-Cowe Pwocessow
     / > ω <\        GPUWU    Inteww COwOpowation DG2 Arc A770
    /   __   \       MEMOWY   4283 MiB/32000 MiB
   / __|  |__-\      PKGS     1440: 1440 (pacnyan)
  /_-''    ''-_\     UWUPTIME 5m
                     ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
[INFO]: main in uwufetch.c:832: Execution completed successfully!

@ad-oliviero
Copy link
Owner

Maybe it is a bug in the latest version (2.1) which is the version in the extra repository. I will publish a new release when the libfetch-rewrite branch gets merged with main.

@taep96
Copy link
Author

taep96 commented Oct 5, 2023

I've checked out the tag and recompiled, as you said it's a bug in 2.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants