• jcs@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    5 hours 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
    82
    ·
    18 hours 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

    • ikt@aussie.zoneOP
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      17 hours 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
        2
        ·
        3 hours 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
        4
        ·
        16 hours 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
    41
    ·
    17 hours ago

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

    • Thurstylark@lemmy.today
      link
      fedilink
      English
      arrow-up
      26
      ·
      17 hours 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
      2
      arrow-down
      9
      ·
      15 hours 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
    8
    ·
    17 hours 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
    49
    ·
    20 hours ago

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

    The laptop should already be closed.

    • python@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      22 minutes 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

    • ikt@aussie.zoneOP
      link
      fedilink
      arrow-up
      55
      arrow-down
      3
      ·
      20 hours 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
            2
            ·
            6 hours 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.

    • somehacker@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      19 hours 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
        ·
        19 hours 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.

    • Tar_Alcaran@sh.itjust.works
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      19 hours 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)

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

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