Wanted to share an anecdote (I hope that’s OK). I jumped to Linux on my gaming pc last August (Bazzite) and I’ve been having a blast. Almost everything works either out of the box or with a minor tweak (the tweak being updating Proton). But I am the sole linux user in my D&D/gaming group, so obviously this is the source of some of our banter.

Last night, we decided to play some Valheim. Bought it before switching to Linux and never tried it, so steam had to install some compatibilty stuff. But once everything was installed, it too worked like a charm (surprise surprise). We were having fun, sailing around on our crappy raft mighty longship and striking a nice pose while doing so. I decided to take a screenshot, but didn’t know if there was a keybind to disable the HUD, so I asked the two more experienced Valheimers with whom I was playing. Neither of them knew it by heart, but one of them looked it up. He said: “It should be Ctrl + F3”. I tried it and it didn’t work for me, but it did for him. “Wow, imagine playing on linux where nothing works” our other friend chimed in (jokely, don’t worry). Our first, more helpful friend said: “Maybe try Ctrl + Alt + F3?” So I did. Then, my whole computer froze, just as we landed on the edge of a dark forest with our raft. I thought: Oh fuck what did I do this time. Pressing again didn’t help, but after about 20/30 seconds, I was greeted with a shell login. Now I could hear my friends and the game in the background again, and they could hear me, but all I saw was a shell. I decided to log in, and still only got a shell. So, as my friends were frantically fighting a skeleton, I was searching for what on earth happened, and, more importantly, how to fix it.

Thankfully, I wasn’t the first idiot to start pressing random buttons on their Linux system, and someone had this exact issue years back as well. I had a quick read, and learned that apparently the Ctrl + Alt + Fx buttons switch between virtual terminals. The post on the Ubuntu forums mentioned needing to switch to terminal 7 (Ctrl + Alt + F7), which also didn’t work. But trying the other buttons, I found that the desktop environment is on terminal 2 (at least on Bazzite/Fedora).

And the funny thing here is that, even though I was essentially gone for a full minute, maybe a minute and a half, my character was fine, my Linux naysayer friend had died to a skeleton, and I had learned something new about our great OS :)

  • mazzilius_marsti@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    6 days ago

    That shortcut to switch between different virtual consoles is very useful. If somehow your desktop crashes, this can be used to login and fix.

  • wwb4itcgas@lemm.ee
    link
    fedilink
    arrow-up
    13
    ·
    6 days ago

    TTY’s are one of those thing that aren’t as often required these days as they used to be, but - and trust me on this - should you ever encounter one of the increasingly rare situations where you really need them, you’ll suddenly be very, very glad they exist.

    • Blubber28@lemmy.worldOP
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      6 days ago

      Oh I not bashing on the feature, don’t worry. I was just very surprised when my computer seemed to freeze XD.

      Out of curiousity, what kind of use cases do/did they have?

      • wwb4itcgas@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        6 days ago

        Well, as an example, when nvidia next demonstrates that one of the biggest companies on the face of planet Earth just cannot possibly afford to hire a couple of more developers to maintain their drivers and keep up with Kernel development and your Window Manager consequently fails to run, a TTY is nice for downgrading the drivers to a version that actually works. :)

      • ik5pvx@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        6 days ago

        You don’t need a desktop for a server. A local TTY allows the same stuff as connecting over SSH but you can do whatever you need to bring up the network. The drawback is having to go to the data centre…

  • olosta@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    6 days ago

    Traditionally virtual tty 1 through 6 were text terminal. So X used the 7th, that’s why some older forums tells you to go there.

    Nowadays, the graphical session manager will spawn on vtty 1, and sessions will dynamically use the others. So on a mostly single user computer, Ctrl+alt+F2 is likely to work. With multiple users, you can actually switch users or come back to the session manager this way.

    If you switch to an unused vtty, systemd will spawn a text login prompt. And when you login, some logind dark magic makes the system realize your are entitled to hear the audio output of your application still running on your graphical session.

    Valheim uses proton? I’m pretty sure it ran natively a few years back.

  • TerHu@lemm.ee
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    6 days ago

    i‘m glad you learned about how to switch tty! now this is a very rare situation, but if you log into your computer, then switch to some tty, log in there too, do things, lock it, and leave the computer, the other tty is still unlocked because you need to lock both the tty you logged into.
    i know this is a super rare/ hypothetical situation, but i think you should know.

  • Cpo@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    4 days ago

    Its also an easy way to access and fix your system if the windowing environment does not work (wich almost never happens unless Nvidia drivers, although that has improved a lot as well).

  • boreengreen@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    6 days ago

    Valheim runs natively on linux. No need to install compatability layers. Can also probably use steams screenshot button or whatever your desktop enviroment uses.

    • Blubber28@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      6 days ago

      Ah then I don’t know what steam was installing XD. It did download and install something before installing Valheim, so I assumed it had to do with compatibility. Either way, I’m just happy that it works, and works well :)

      • boreengreen@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        6 days ago

        It is possible that you are running the windows version. You can find out in properties of the game. If the ‘force compatability tool’ is checked, under compatability, it will download the windowns version and run it through compatability layers. Otherwise you might have just seen the dialog about precompiling shaders.

        Worth noting that sometimes developers make a linux version of their game, but neglects maintaining it. In those cases it is preferable to just run the windows version with comp layers. I think the linux native valheim version is alright though. Good devs.

  • Tenderizer78@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    I’m part-way through Valheim right now. Single-player on Windows, I’m gonna change to Linux in a few weeks I think.