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

[Bug]: kernel panic (?) when running game with use discrete gpu on while in optimus mode that do not like this toggle #49

Open
ghtesting2020 opened this issue Dec 30, 2022 · 0 comments

Comments

@ghtesting2020
Copy link

Describe the bug

please let me know if the below does not make sense or needs more explanation. It is a long description i know.

I am on optimus/prime laptop (intel cpu and nvidia gpu). Currently I use optimus manager and force laptop into GPU only mode so i can use external monitor via HDMI that is hardwired to GPU chip.

Some of my games will not run if I have the “use discrete gpu” toggle on but work and run on the GPU if I turn it off (that alone does not make sense to me) while others will not run if I do not have discrete GPU checked off. Currently all of my games are in 1 bottle so I think a workaround would be making 2 bottles, one with use discrete on and one with use discrete off however this is not ideal.

If I launch a game that does not work with use discrete GPU toggle on then my entire computer freezes/dies and the Caps Lock on my laptop flashes. I am assuming a kernel panic is happening but I do not see any specific logs journalctl.

I am guessing this is a kernel panic because I cannot switch to a different tty with ctrl + alt + f (number 2-12) and if any sound was playing it repeats until I hold the power button to turn it off.

Would be nice if this could be addressed even though there is a work around. Someone might end up losing data or some kind of corruption.

The games in question:
Guild Wars 2: runs with use Discrete GPU on but does NOT work with use Discrete GPU off. The launcher launches for a second then a CoherentUI crash occurs.

Unreal Tournament 2004: runs with Use Discrete GPU OFF but does NOT work with Use Discrete GPU on. The entire computer freezes/crashes.

To Reproduce

  1. use your optimus or prime laptop in optimus mode using optimus manager with external monitor connected via hardwired to gpu HDMI
  2. toggle on "use discrete gpu"
  3. launch Unreal Tournament 2004
  4. Entire computer freezes/dies and if a sound was playing it will repeat forever until you hold power button to kill. Other tty session do not work.

Package

Flatpak from Flathub

Distribution

arch

Troubleshooting Logs

Official Package: true
Version: 2022.12.14.1
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        nvidia: &id002
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
        intel: &id001
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: *id001
        discrete: *id002
Kernel:
    Type: Linux
    Version: 6.0.15-hardened1-1-hardened
Distro:
    Name: GNOME
    Version: '43'
Disk:
    Total: 4103133001
    Free: 4102013021
RAM:
    MemTotal: 15.5GiB
    MemAvailable: 13.1GiB
Bottles_envs: null

Additional context

I have a lot of logs in journalctl but I am not sure exactly what should be looking for.
I tried both of the below commands and did not see anything that stood out but i could be wrong due to lack of knowledge.

journalctl --priority 2..3
journalctl -b -p 3

@ghtesting2020 ghtesting2020 changed the title [Bug]: kernel panic (?) when running game with use discrete mode on while optimus mode works with use discrete mode off [Bug]: kernel panic (?) when running game with use discrete gpu on that while in optimus mode Dec 30, 2022
@ghtesting2020 ghtesting2020 changed the title [Bug]: kernel panic (?) when running game with use discrete gpu on that while in optimus mode [Bug]: kernel panic (?) when running game with use discrete gpu on while in optimus mode that do not like this toggle Dec 30, 2022
@mirkobrombin mirkobrombin transferred this issue from bottlesdevs/Bottles Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant