Hello Linux Gaming friends :)

I’ve been tinkering on and off with my wife’s laptop (Mint 22) to get a few of her games working on Linux, namely House Flipper 2. It experiences frequent OS crashes, despite everything saying that this game should work on Linux (hell, it’s even Steam Deck verified).

I’m not necessarily asking how to make this particular game run, but in my tinkering with different Proton versions I find myself asking: what is the difference between these versions of Proton? Why do some work better than others? How does one version work, say Hotfix or Experimental, but not a numbered release?

Just trying to learn to add some knowledge to my toolbelt, or whatever 😅. Thanks!

  • marighost@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    I meant that House Flipper 2 the game causes the laptop to hard crash somewhat frequently, as in, the entire computer must be powered off to do anything. Can’t open a terminal, can’t alt+tab out, etc. I didn’t mean to imply that Proton was causing the crashing, I simply wanted to know how one version of Proton could be different than another, so I appreciate the reply.

    • Contramuffin@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      14 hours ago

      I’ve encountered that issue. Check your GPU settings. It seems on some GPU’s, the default voltage is too low. So if you run any game that taxes the GPU too much, it’ll just crash and require a hard reboot. The solution is to either lower your GPU clocks or raise your GPU voltage. There was a post on Lemmy a while back that I’ve saved. Let me try to dig it up…

      Edit: https://lemmy.dbzer0.com/post/58404212

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      2 days ago

      I meant that House Flipper 2 the game causes the laptop to hard crash somewhat frequently, as in, the entire computer must be powered off to do anything. Can’t open a terminal, can’t alt+tab out, etc.

      Gotcha. Yeah, Proton itself shouldn’t really be able to do that absent other bugs or hardware problems. Closest one could get should maybe be eating up nearly all the memory on the system and causing it to swap heavily and run very slowly. A bug with Wayland or your compositor could cause the interface to (mostly) freeze, though not the underlying system, but just Proton alone or the game really shouldn’t.

      https://store.steampowered.com/app/1190970/House_Flipper_2/

      It looks like this is a 3D game, and absent any additional information, making a sheer guess, I’d be kind of inclined to suspect some sort of issue related to the 3D drivers, just because that’s something in the kernel that the game would exercise.

      Assuming that this is a systemd-based Linux distro — most are today — if you open a terminal, you can view the system logs via the journalctl command.

      journalctl -b will view the logs for the current boot. journalctl -b-1 will view the logs for the previous boot, journalctl -b-2 for the boot before that, etc.

      journalctl -k will show only the logged lines coming from the Linux kernel (which will include problems with drivers and such).

      journalctl -r will show the log lines in reverse order, so the stuff right at the top is the last stuff logged before the system rebooted.

      You probably could just go back and look now, since the logs are probably still around, though I don’t know how many boots ago it was. Or, next time it freezes, you might reboot and then run:

      $ journalctl -krb-1
      

      That’ll show you what, if any, errors the kernel was logging right before you rebooted the laptop.

      That might give some indication as to cause.

      Might also try leaving off the “-k” flag, as it’s also possible that whatever caused the problem logged something at the userspace level, even if the problem is likely in the kernel.

        • okwhateverdude@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          FWIW, I experience similar behavior sometimes (hard graphics freeze with a game) but like what tal@ says, the underlying system is still running. If you make sure sshd is configured and you have an account on the laptop with your key, you can most of the time get into the running system and restart gdm/lightdm which will kill your DE session, reset the GPU, and get you back into the DE. Given you mention a laptop: what I’ve seen that exacerbates this issue is when the laptop has a integrated and discrete GPU and you’re driving an external display. For my gaming laptop, it has an RTX2060 in it and the HDMI port is driven from the dGPU, but rendering is negotiated with the iGPU. What helps is disabling the external monitor and/or disabling the iGPU in the UEFI settings. I even experience issues in Windows with this: stutters if iGPU and dGPU enabled and driving the external display.

          • tal@lemmy.today
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            2 days ago

            It’s also not absolutely impossible that it’s a legitimate hardware problem — I had two of those Intel desktop processors that destroyed themselves, which often manifested itself early-on as Firefox freezing; Firefox just happened to be really good at tripping problems resulting from that. I also once had a video card that would overheat — part of a line where the manufacturer hadn’t put enough thermal paste or something on the GPU, and if you ran it for a while, it would overheat. But most heat-intensive hardware, CPUs and GPUs, will throttle themselves to avoid overheating; in practice, most overheating problems today tend to result in just worse performance, not instability. I think that heat tends to be blamed more often than it’s an actual cause of instability.

            I think that it can be disabled, though I can’t recall the mechanism at the moment (I always want it enabled, and have it enabled on my computer), but normally Control-Alt-F1, Control-Alt-F2, etc will switch you out of Xorg/Wayland to a Linux console. Once out of Wayland and on a Linux console, Alt-Right-Arrow and Alt-Left-Arrow will cycle among the virtual consoles, and Alt-F1, Alt-F2, etc directly switch to one. On my Debian system, the first seven run a text terminal, and the eighth runs Wayland. Especially on modern systems that use KMS (kernel-mode setting) rather than Xorg to manage the video card, that should likely get a system that has something else wrong to a usable, text-based console, as long as the kernel can at least talk to the video card. Probably a good idea to confirm that one can do this ahead of a freeze.

            If you have Magic Sysrq enabled (I think that modern distros may have it off by default or restrict some Magic Sysrq combinations; I typically want it available, at least when I control physical access to the computer), that’ll often work if nothing else will, as the kernel grabs it at a low level, though the functionality is pretty limited. Might be able to do Magic Sysrq-k — dunno what happens under Wayland for sure, but that might have the kernel kill off Wayland if it can — and that might get you to a text console or restart Wayland. On my system, I suspect that it’d kill Wayland and my compositor and bring me back to an emptty login prompt, but most people don’t run emptty, so might effectively log them out and bring them back to a graphical login prompt. Can hit Magic Sysrq-t (this will hang things up for a while, then log a backtrace of the running tasks, which can sometimes be helpful to give an indication of what code in the kernel — drivers and such — are running, maybe deadlocked). If you’re on a text console, that output will probably be directly visible. If the kernel is still in a state where it can write to the disk and you’ve got some daemon (journald, under systemd, or older log daemons on non-systemd systems) still functional, that’ll not just display the log to the console, but also log it to the disk. Can persistently enable all the Magic Sysrq key combinations with kernel.sysrq=1 in /etc/sysctl.conf. That’s a bit more specialized — like, if the reason that your screen isn’t showing anything is because the kernel’s just unable to talk to the video hardware to update things, that may not provide useful clues. But if it’s a bug where drivers are actually deadlocked or something, threads are in kernel code and not exiting, that can let you know what code is running (like, “oh, there’s a thread wedged in my Bluetooth driver”). More helpful for tracking down a cause than just saying "well, my system just stopped running and nothing is updating on the screen, even if you’re not a kernel developer.

    • Random_Character_A@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      Yea. When I still had a PC with NVidia, game crash could make the entire system unresponsive. Had to hard reset, because even other TTYs were unaccessible.

      • marighost@piefed.socialOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        And unfortunately, the wife’s laptop has Nvidia. So far it’s played nice with everything she likes to play on her laptop, but HF2 (the one game she reeeeeally wants to play, of course) is giving us trouble.