• FedX@quokk.au
    link
    fedilink
    English
    arrow-up
    0
    ·
    22 hours 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
      ·
      21 hours 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
          ·
          16 hours 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.

  • Saryn@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    23 hours 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
    ·
    1 day 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!

  • moth@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I love how everyone is debating the best way to run a server on a laptop, but only one other person has noticed they’ve got it sitting directly on the carpet with no airflow. poor thing probably has idle temps of 90 degrees.

    • leftzero@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      2 days ago

      Not enough pixels to identify it as carpet, could just as well be tile, or some particularly ugly linoleum.

      Maybe it’s not even the floor and it’s on a chipboard table, or a particularly ugly formica one.

  • mastertigurius@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 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.

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 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
      ·
      1 day 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
      ·
      2 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
        ·
        2 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
          ·
          2 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).