Skip to content
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

Mangohud not worked #134679

Closed
dan4ik605743 opened this issue Aug 18, 2021 · 13 comments
Closed

Mangohud not worked #134679

dan4ik605743 opened this issue Aug 18, 2021 · 13 comments
Labels
0.kind: bug Something is broken

Comments

@dan4ik605743
Copy link
Member

dan4ik605743 commented Aug 18, 2021

Describe the bug

Mangohud does not work in Intel + NVIDIA configuration.

Steps To Reproduce

Steps to reproduce the behavior:

  1. environment.systemPackages = with pkgs; [ mangohud ];
  2. mangohud {glxgears,vkcube}

Expected behavior

MANGOHUD: Failed to open 64bit libXNVCtrl.so.0: libXNVCtrl.so.0: cannot open shared object file: No such file or directory
MANGOHUD: XNVCtrl loader failed to load

Screenshots

image
image
image

Additional context

I think this is due to my iron laptop Intel + Nvidia

Notify maintainers

@zeratax

Metadata

λ ~ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.10-xanmod1-cacule, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210802_47e96bb`
 - nixpkgs: `/nix/store/1inzjq0zh5qrl0196qxicl0j83fia916-source`

Maintainer information:

attribute: mangohud
@dan4ik605743 dan4ik605743 added the 0.kind: bug Something is broken label Aug 18, 2021
@dan4ik605743
Copy link
Member Author

My notebook
image
xsever.videoDrivers = [ "nvidia" ];

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 10d0
Kernel driver in use: i915
Kernel modules: i915

04:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 105e
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

@kira-bruneau
Copy link
Contributor

Hmm, that's strange. I added addOpenGLRunpath.driverLink to LD_LIBRARY_PATH in #127469 to support Nvidia cards. The way this library is loaded is impure though, and depends on how your system is set up.

Do you see libXNVCtrl.so.0 under /run/opengl-driver/lib?

@zeratax Is MangoHud still working on your computer with the Nvidia card?

@kira-bruneau
Copy link
Contributor

kira-bruneau commented Aug 19, 2021

Oh, I also noticed, you might be using a channel that doesn't have the latest version. This was fixed in v0.6.3. Maybe this fix should be backported?

@dan4ik605743
Copy link
Member Author

dan4ik605743 commented Aug 19, 2021

libXNVCtrl.so.0

ls: cannot access '/run/opengl-driver/lib/libXNVCtrl.so.0': No such file or directory
ls: cannot access '/run/opengl-driver-32/lib/libXNVCtrl.so.0': No such file or directory

@dan4ik605743
Copy link
Member Author

@kira-bruneau What does it mean?

@dan4ik605743
Copy link
Member Author

dan4ik605743 commented Aug 19, 2021

image

@zeratax
Copy link
Contributor

zeratax commented Aug 19, 2021

@kira-bruneau

mhmm on nixos 21.05 with mangohud from unstable i get:
  • system: "x86_64-linux"
  • host os: Linux 5.10.57, NixOS, 21.05.2521.7bbca9877ca (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.15
  • channels(root): "nixos-21.05.2521.7bbca9877ca, nixos-hardware, nixos-unstable-21.11pre309670.253aecf69ed"
  • channels(kaine): "home-manager-21.05"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
vkcube: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/ag4r80ffsdmq08ngvsbw4kz18kzxbvr4-mangohud-0.6.5/lib/mangohud/libMangoHud.so)
vkcube: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/lg104nh0szci8slz5z6494m457jm5y3p-gcc-10.3.0-lib/lib/libstdc++.so.6)

and I can't get a display manager to run on nixos-unstable :/

also libXNVCtrl.so.0 is for me also not on /run/opengl-driver/lib

@dan4ik605743 what does your mangohud config look like? i am a little bit surprised to see the mangohud window anyways, even if it is empty

@legendofmiracles
Copy link
Contributor

legendofmiracles commented Aug 20, 2021

@zeratax Is MangoHud still working on your computer with the Nvidia card?

It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib 🤔
image

@dan4ik605743
Copy link
Member Author

@zeratax Is MangoHud still working on your computer with the Nvidia card?

It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib
image

################### File Generated by GOverlay ###################
#fps_limit=
toggle_fps_limit=F1
vsync=1
gl_vsync=0
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FF7800,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FF7800,CC0000
cpu_color=2e97cb
cpu_text=CPU
io_color=a491d3
swap
vram
vram_color=ad64c1
ram
ram_color=c26693
fps
engine_color=eb5b5b
gpu_color=2e9762
wine_color=eb5b5b
frame_timing=1
frametime_color=00ff00
media_player_color=ffffff
background_alpha=0.4
font_size=24
background_color=020202
position=top-left
text_color=ffffff
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
output_folder=/home/uncouteau
media_player_name=spotify

@dan4ik605743
Copy link
Member Author

@zeratax Is MangoHud still working on your computer with the Nvidia card?

It works for me, on a nvidia-intel prime setup, although the library is also not in /run/opengl-drivers/lib
image

image

@dan4ik605743
Copy link
Member Author

dan4ik605743 commented Aug 20, 2021

M ... And how can I be ... Maybe it is connected with the nucleus and NVIDIA drivers.

Put now 455 NVIDIA drivers and kernel 5_4. Still as it was, no change.

@dan4ik605743
Copy link
Member Author

I don't even know what to think and what to five.

@dan4ik605743
Copy link
Member Author

Apparently Mangohud is not where it does not work with my laptop characteristic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants