---
title: "Discussion on \"Keep your laptop up even when you close the lid on Linux\" | Hashnode"
description: "Discussion on \"Keep your laptop up even when you close the lid on Linux\". TLDR: You just have to edit the file /etc/systemd/logind.conf.\n$ sudo vi /etc/systemd/logind.conf # and the change the parameter to ignore\n\n[Login]\nHandleLidSwitch=ignore\nHandleLidSwitchDocked=ignore # This option specifically is the default on Debia..."
url: "https://hashnode.com/posts/keep-your-laptop-up-even-when-you-close-the-lid-on-linux/6342e059ad57b15b2565c8e9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Keep your laptop up even when you close the lid on Linux](https://blog.davidassigbi.com/keep-your-laptop-up-even-when-you-close-the-lid-on-linux?utm_source=hashnode&utm_medium=feed)

TLDR: You just have to edit the file /etc/systemd/logind.conf. $ sudo vi /etc/systemd/logind.conf # and the change the parameter to ignore \[Login\] HandleLidSwitch=ignore HandleLidSwitchDocked=ignore # This option specifically is the default on Debia...

Oct 9, 2022 · 1 min read · blog.davidassigbi.com  
Read the article

-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Mensah David Assigbi](https://hashnode.com/@davidassigbi)

@davidassigbi

  
[View profile](https://hashnode.com/@davidassigbi)

Full Stack IT Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
