Keybinds doesn't work, but mangohud seems started in logs
Describe the bug Keybinds doesn't work, but mangohud seems shows signs of life in logs, at least in beggining
List relevant hardware/software information
- Linux Distribution Ubuntu 22.04
- MangoHud version today build
- GPU AMD Ryzen 4800H / Geforce 1660 Ti
To Reproduce Steps to reproduce the behavior:
- Builded
- Added config based on example:
toggle_hud=Shift_R+F12
toggle_fps_limit=Shift_L+F10
reload_cfg=Shift_R+F11
- Run mangohud /home/usr0/Ga/CaC_Generals/start-zerohour.sh
- Got in logs sings that mangohud works
- Game launched in menu (virtual desktop wine). Works OK
- keybinds doesn't do anything
Expected behavior ShiftR+F12 show hud ShiftR+F11 show parsing config
Additional context
========================================================================
Game: Command and Conquer: Generals Zero Hour
Version: 1.4
Wine: wine-5.12-14075-gdf982e6865c
========================================================================
wineserver: using server-side synchronization.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
[2023-05-03 23:12:06.060] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:06.060] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:06.298] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:06.298] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:06.684] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:06.684] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
00c4:err:xrandr:xrandr14_get_adapters Failed to get adapters
[2023-05-03 23:12:06.975] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:06.975] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:07.311] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:07.311] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:07.631] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:07.631] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:07.924] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:07.924] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:08.294] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:08.295] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:08.637] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-explorer.conf' [ not found ]
[2023-05-03 23:12:08.637] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:09.070] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:09.113] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:09.113] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:09.269] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:09.270] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:09.270] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:09.621] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:09.621] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:09.711] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:09.857] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:09.857] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:09.981] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:10.044] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:10.044] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:10.168] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:10.494] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/.config/MangoHud/wine-generals.conf'
[2023-05-03 23:12:10.501] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:10.501] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:10.591] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:10.591] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
00d4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
[2023-05-03 23:12:10.879] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:10.879] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:10.952] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:10.952] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:11.133] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:11.133] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
00d4:fixme:imm:ImeSetActiveContext (0xe90030, 1): stub
00d4:fixme:imm:ImmReleaseContext (0002005E, 00E90030): stub
00c4:fixme:imm:ImeSetActiveContext (0x930030, 0): stub
00c4:fixme:imm:ImmReleaseContext (00010020, 00930030): stub
0110:fixme:oleacc:find_class_data unhandled window class: L"Button"
0110:fixme:oleacc:find_class_data unhandled window class: L"Button"
[2023-05-03 23:12:11.539] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:11.539] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
[2023-05-03 23:12:11.911] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/usr0/.config/MangoHud/wine-tabtip.conf' [ not found ]
[2023-05-03 23:12:11.911] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/usr0/Ga/CaC_Generals/wine/bin/MangoHud.conf'
0110:fixme:oleacc:find_class_data unhandled window class: L"Button"
0110:fixme:oleacc:find_class_data unhandled window class: L"Button"
0110:fixme:oleacc:find_class_data unhandled window class: L"Button"
00d4:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "AMD". Returning HW_VENDOR_NVIDIA.
00d4:fixme:d3d:wined3d_swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
00d4:err:ole:com_get_class_object class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
00d4:err:ole:com_get_class_object class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
00d4:err:ole:create_server class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
00d4:err:ole:com_get_class_object no class object {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} could be created for context 0x7
0138:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
P.S. Tested on other game - native linux no wine. Keybinds not working also:
usr0@pc0:~$ mangohud env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/openra_cnc.desktop /snap/bin/openra.cnc %U
Platform is Linux (X64)
Engine version is release-20230225
Runtime: .NET CLR 6.0.14
Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 3840x2160
No custom resolution provided, using desktop resolution
Using resolution: 3840x2160
Using window scale 1.00
OpenGL renderer: RENOIR (renoir, LLVM 15.0.6, DRM 3.47, 5.19.0-41-generic)
OpenGL version: 4.6 (Core Profile) Mesa 22.2.5
Using default sound device
Internal mods:
cnc: Tiberian Dawn (release-20230225)
d2k: Dune 2000 (release-20230225)
modcontent: Mod Content Manager (release-20230225)
ra: Red Alert (release-20230225)
ts: Tiberian Sun (release-20230225)
External mods:
d2k-release-20230225: Dune 2000 (release-20230225)
ra-release-20230225: Red Alert (release-20230225)
cnc-release-20230225: Tiberian Dawn (release-20230225)
Loading mod: cnc
^C
usr0@pc0:~$ mangohud --dlsym env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/openra_cnc.desktop /snap/bin/openra.cnc %U
Platform is Linux (X64)
Engine version is release-20230225
Runtime: .NET CLR 6.0.14
Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 3840x2160
No custom resolution provided, using desktop resolution
Using resolution: 3840x2160
Using window scale 1.00
OpenGL renderer: RENOIR (renoir, LLVM 15.0.6, DRM 3.47, 5.19.0-41-generic)
OpenGL version: 4.6 (Core Profile) Mesa 22.2.5
Using default sound device
Internal mods:
cnc: Tiberian Dawn (release-20230225)
d2k: Dune 2000 (release-20230225)
modcontent: Mod Content Manager (release-20230225)
ra: Red Alert (release-20230225)
ts: Tiberian Sun (release-20230225)
External mods:
d2k-release-20230225: Dune 2000 (release-20230225)
ra-release-20230225: Red Alert (release-20230225)
cnc-release-20230225: Tiberian Dawn (release-20230225)
Loading mod: cnc
Are you using wayland?
Are you using wayland?
Seems X11

usr0@pc0:~$ echo $WAYLAND_DISPLAY
usr0@pc0:~$ loginctl
SESSION UID USER SEAT TTY
2 1000 usr0 seat0 tty2
1 sessions listed.
usr0@pc0:~$ loginctl show-session 2 -p Type
Type=x11
Thank you for reply. Mangohud seems only one way to limit fps on the fly (increase decrease like msi afterburner, without restarting game). In C&C Generals (and other SAGE engine games) this is only one way to control game speed
And you're not using Shift_L instead of Shift_R or something?
And you're not using Shift_L instead of Shift_R or something?
Tried both. Didn't helped
mangohud is hidden by default? Logs doesn't mean that mangohud is working as expected
Closing due to inactivity