• jcs@lemmy.world
    link
    fedilink
    English
    arrow-up
    28
    ·
    1 day ago

    Disable suspend when the laptop lid is closed on a systemd-based GNU/Linux system:

    sudo sed -i 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/g' /etc/systemd/logind.conf
    sudo sed -i 's/#HandleLidSwitchExternalPower=suspend/HandleLidSwitchExternalPower=ignore/g' /etc/systemd/logind.conf
    sudo systemctl restart systemd-logind
    

    If you are in a TTY, you can blank the screen before closing the lid to prevent burn-in. After running this, come back later and press a key to turn the screen on again.

    alias blankscreen='setterm --blank=force; read ans; setterm --blank=poke'

  • AMoralNihilist@feddit.uk
    link
    fedilink
    arrow-up
    98
    ·
    2 days ago

    People arguing about lid closing when clearly the biggest sin is a laptop on a carpet. Please put a hard surface under to stop it hoovering up all dust and particles possible and having appalling airflow

    • MousePotatoDoesStuff@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      21 hours ago

      A hard surface is a start, but a cooler stand is … cooler. Best give it a separate power source rather than plug it into the laptop, too? Just guessing.

      • AMoralNihilist@feddit.uk
        link
        fedilink
        arrow-up
        2
        ·
        12 hours ago

        Yeah they can be good, but depends on what the pc is being used for. If it’s not running into thermal limits it’s much better off just trying to have decent airflow that won’t suck up too much dust.

        Laptops are usually designed pretty well when it comes to cooling vs. power when placed on a hard surface.

    • ikt@aussie.zoneOP
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      2 days ago

      I have mine upside down so lid on ground, fan facing upwards but if I had it the correct way up wouldn’t the fans be blowing outward/down?

      • nevetsg@aussie.zone
        link
        fedilink
        arrow-up
        6
        ·
        1 day ago

        All laptops I have used suck air in from the base and blow it out the side/back. I like your upside down solution.

      • eletes@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 days ago

        Your intake on the side would still be close to the carpet. Also outward and down would build up heat still

  • hexagonwin@lemmy.today
    link
    fedilink
    arrow-up
    46
    ·
    2 days ago

    why the lid thing tho? you can just disable lid detection and it’ll not suspend even after closing.

      • softotteep@pawb.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        You could remove the laptop screen like I did with my home server. Although you’ll have to put it very close to the router to get a WiFi signal afterwards.

        • village604@adultswim.fan
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          You can get an external antenna and run it to the wifi card. I did that with my beelink mini desktop because the wifi antenna was garbage.

        • dogs0n@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Why would u do that other than maybe saving space? Leaving it open would have been easier and the same thing.

          • softotteep@pawb.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 hours ago

            The screen was broken so it was just wasting space. It also made it easier to move around because I had to close the lid to slide it in place then open the lid so it gets airflow.

            • dogs0n@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              2 hours ago

              Fair enough if it’s broken.

              Personally, I’d live with the (small) hassle of having the screen attached (in general), because being able to use it still could be a life saver one day (and in such cases, having to reattach a screen or plug into another external one if possible would be way more annoying).

    • Thurstylark@lemmy.today
      link
      fedilink
      English
      arrow-up
      28
      ·
      2 days ago

      Makes me think of the time I was running a stripped down laptop motherboard as a server for a while. Was given a laptop with a broken screen, but it had a wired NIC, so I pulled the screen off, along with any other component that wasn’t necessary, and shoved it behind a TV where it was close to the router. Ran on that thing for years before being able to afford better equipment.

      An underrated feature of the laptop server: built-in UPS!

    • Rusty@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      10
      ·
      2 days ago

      Do you think that people that are using a laptop as a server know how to do that?

  • pewpew@feddit.it
    link
    fedilink
    arrow-up
    10
    ·
    2 days ago

    I’m using a crappy HP mini PC from 2016 with just 4GB of RAM and it runs my Nextcloud with Talk that I use instead of Discord. The most limiting factor is actually my internet connection… Only 8 megabits of upload only gets you so far (it used to be 20 megabits but my ISP screwed me over)

  • suodrazah@lemmy.world
    link
    fedilink
    arrow-up
    22
    arrow-down
    52
    ·
    2 days ago

    If you can’t turn off sleep, you shouldn’t be setting up servers.

    The laptop should already be closed.

    • ikt@aussie.zoneOP
      link
      fedilink
      arrow-up
      56
      arrow-down
      3
      ·
      2 days ago

      don’t gatekeep 😑 maybe that laptop is running windows 11 with teamspeak on it and a buggy video driver

          • MinnesotaGoddam@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            1 day ago

            Agreed. How dare they. They could be running a ham sandwich or something. fuck, it must be time to eat again. i hear my cat mewing feed me. I JUST FED YOU FIVE MINUTES AGO THEY’RE NOT GONNA FALL FOR IT DIPSHIT they’re falling for it aren’t they.

    • python@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      22 hours ago

      Fuck off, let people enjoy things. The idea that you need to be knowledgeable in something before trying it is an unnecessary hurdle to just play around with things and learn

    • Tar_Alcaran@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      2 days ago

      Funfact: not all windows laptops let you choose what happens when you close the lid.

      My previous laptop had options for shut down, sleep and hibernate. And if you wanted none of those, you could go fuck yourself (or install not-windows, which didn’t work for the shitty niche software I need)

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

      Probably, but this is much less janky than some 100% critical to the business infrastructure that I’ve personally witnessed in data centers.

      • ouRKaoS@lemmy.today
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        I’ve seen a laptop duct taped to the desk & wall with a similar note as the OP, so you would have to make a conscious effort to fuck with it.

    • notabot@piefed.social
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      2
      ·
      2 days ago

      Rather than snark, maybe offer some helpful pointers, or even ask if there’s a reason for it?