{
  "id": 11648456,
  "title": "Mon PC ne s'endort plus jamais : comment j'ai supprimé la veille et le verrouillage sous Linux",
  "url": "https://urgent.news/2026/10/03/mon-pc-ne-sendort-plus-jamais-comment-jai-supprime-la-veille-et-le",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-03T09:12:25.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/devdusud/mon-pc-ne-sendort-plus-jamais-comment-jai-supprime-la-veille-et-le-verrouillage-sous-linux-5hff"
  },
  "original_language": "fr",
  "account": "The user runs automation on their PC, keeping the screen on all night. However, by default, a modern Linux operating system locks the session after 15 minutes of inactivity and turns off the screen after 10 minutes. To prevent this, the user removed the settings in four layers.\n\n1. The desktop settings (COSMIC): In COSMIC for Pop!_OS 24.04, inactivity is managed by the CosmicIdle service. The settings are plain text files in the user's configuration directory. By setting the timeout values to zero, the screen no longer turns off, the session doesn't lock, and there's no sleep mode.\n\n2. System sleep (logind): The session manager can trigger actions on inactivity. The user instructs it to do nothing: they edited the logind.conf file to ignore the IdleAction. They also blocked the ability to put the system to sleep through systemctl, ensuring sleep isn't even requested manually.\n\n3. Screen saver inhibition (the safety belt): To ensure no session can be locked out, even if a setting changes, the user created a service that constantly keeps a screen saver inhibition active via D-Bus. This service runs as a user service and survives reboots.\n\n4. Firewall (bonus security): Since the machine is always awake and lit, the user closes the entry door by tightening the firewall settings: denying incoming traffic, allowing outgoing traffic, and allowing traffic from their local network.\n\nThe result is a screen that stays lit 24 hours a day, never locked out, and impossible to put to sleep. Everything continues to function as usual - microphones, speakers, videos, and applications remain operational. The only drawback is that the user must remember to manually turn off their screen. For a machine that works for the user at night, this is a good compromise. The author documents such settings and automations in their practical guides - link provided in the bio.",
  "summary": "Je pilote des automatisations sur mon PC : elles tournent la nuit, et je veux que l'écran reste allumé en permanence. Problème : par défaut, un Linux moderne verrouille la session après 15 minutes d'inactivité et éteint l'écran après 10. Voici comment j'ai tout supprimé, proprement, en quatre couches. 1. Les réglages du bureau (COSMIC) Sous COSMIC (Pop!_OS 24.04), l'inactivité est gérée par le…",
  "key_points": [
    "User disables screen timeout and lock on Pop!OS 24.04 Linux",
    "Created service to keep screen saver inhibition active",
    "Tightened firewall settings for added security"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}