• Dicska@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 days ago

    This reminds me of the afternoon computer activity in secondary school. It was like a boarding school, but the opposite of posh: you got cheap accommodation in a side building if the school was too far (or, more likely, if it was not too far but your family couldn’t afford to drop you off every day and/or public transport was awful from your village).

    We would use one of the computer rooms in the school for Internet, homework and games (around 25 years ago it was your only chance at the Internet).

    There was a separate PC in the room. The entire monitor and keyboard were covered with a similar sheet: “I’m the server, don’t touch me”, or something less suggesting.

    One of the girls asked the teacher why the monitor wouldn’t turn on after pressing Power. Mind you, this was at the time when you could instantly turn PCs on/off with the power button. She shut down the server. The tech savvy student jumped at it like your average surgeon in a doctors show. To no avail.

  • FedX@quokk.au
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    As everyone is saying, to can get a laptop to run with the screen closed, but, in the off chance you are wondering how to do that, let me inform you!

    If you are using systemd, then edit /etc/systemd/logind.conf and add (on uncomment) a line HandleLidSwitch=ignore. If, like me, you use elogind, than it’s the exact same process, except you edit the file /etc/elogind/logind.conf. If it’s something else, then IDK, read the manual.

    However, the screen will keep running. There are quite a number of ways of doing this, but the most efficient would probably be using a simple daemon to disable the screen after a timeout for systemd:

    [Service]  
    ExecStartPost=-/usr/bin/setterm --blank 1 --powerdown 2 --powersave on  
    

    Or for the much superior dinit:

    type = scripted  
    command = /usr/bin/setterm --blank 1 --powerdown 2 --powersave on  
    

    Although, there are quite a number of ways of doing this. ACPI will give you more flexibility in the execution; your able to intercept precise key-codes and change how they interact in various ways, but this is probably the way I would do it.

    • Honytawk@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      If you want to do it on Windows you go:

      Settings > System > Power & Battery > Lid, Power & Sleep button controls and set it to “nothing”

        • Honytawk@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 days ago

          Nah, plenty of dedicated game servers are ran on it. Running one right now of Enshrouded.

          Can’t do that on Linux, because it doesn’t support it, except through some wanky third party software.

          It is much easier to run on Windows. As is shown by how easy this setting is changed on Windows compared to Linux. You don’t have to copy paste some unknown commands that could do harm, you just flick a switch in the GUI.

          Because that is what a GUI is for. Easy access to settings.

          It is also your type of comments that make people hate the Linux community. Such entitled bitches who think they are right all the time even when they are proven wrong. You are a detriment to your fanclub.

          • Bold Omi@lemmy.today
            link
            fedilink
            arrow-up
            0
            ·
            6 days ago

            I do not use Linux to be a member of a ‘fanclub’. I use it because I refuse to run a sloppy corporate spyware operating system with inferior efficiency and customizability.

  • Saryn@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 days ago

    Yooo I use the exact same laptop for a home server also! (One of its fans needs to be replaced though and I’ve been putting that off for a while now so the thing sounds like a goddamn lawnmower while hidden away at the back of a half empty closet)

  • Wirlocke@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    7 days ago

    Don’t let server-normativity get you down! Servers can have all kinds of body types.

    A laptop can be a server, a raspberry pi can be a server, a cluster of junk phones can be a server, a smart fridge can be a server.

    Be sure to spread server body positivity!

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 days ago

    You jest, but that’s my home assistant server. An old, god knows when, toshiba laptop that still has a lid latch and cd reader. The battery is still good and having a battery means free UPS (I hooked it to external mcu that can cut power at around 80% because it doesn’t have charge control feature yet).

    • soaringbirdie@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      Do not trust your 80% limit! I had such a limit too but my Dell XPS 13’s battery expanded a lot and became a fire hazard! No one should run their home server on a laptop unless you can do it without the battery.

    • queerlilhayseed@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      Almost all of my servers are former PCs and laptops that got too old to be comfortable daily drivers. lots of stuff, like DNS or file syncing, can be run on machines with hardly any computing power.

      Home server is a natural retirement plan for hardware that’s old but still works. Especially because you kind of have to start small if you only have one dinky machine, and you can grow your setup organically as you get newer gear.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        7 days ago

        Agree. This is the main reason why I sweep up old laptop whenever I can. Because those got batteries that can prove useful when the power goes out AND you’re using a consumer grade storage device (learned that the hard way lol)

        • queerlilhayseed@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          7 days ago

          I do that too, just make sure you look at the batteries at regular intervals because I’ve had a few that got alarmingly swollen before I found and delicately extracted them. the laptops are still going strong, they just share a communal battery now (the UPS).

  • mastertigurius@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 days ago

    Reminds me of the dumbest last-minute task I was made to do while setting up a data storage rack for my previous boss. On top of all of the other stuff, I had to place a laptop which was to be the remote access for managing the whole thing from a country on the other side of Europe. Didn’t take long before I had to go back there.