Urgent.News

What's breaking now, across thousands of outlets.

AI

Mon PC ne s'endort plus jamais : comment j'ai supprimé la veille et le verrouillage sous Linux

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…

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.

1. 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.

2. 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.

3. 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.

4. 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.

The 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.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Can JEV / TEV replace Embedding for intent recognition? | Jev / TEV 能不能干掉 Embedding 做意图识别?

Jev / TEV 能不能干掉 Embedding 做意图识别? 不能完全替代,但可以干掉一大半传统 Embedding 意图识别的场景,二者有明确分工,不是简单谁取代谁。 先把两套方案本质讲通俗: 1、老方案:Embedding 向量做意图识别 流程:句子 → 向量化 → 向量相似度检索,匹配预先写好的意图库 原理: 语义相似度匹配 ,靠向量空间远近判断属于哪个意图 适合:意图集合…

How AI Learns: Forward Pass and Loss Explained with 2 + 1

Our inputs are 2 and 1, and the correct answer is 3. But the network initially predicts 0.7. Why? A neural network doesn’t automatically know the rules of addition.

  • Forward pass calculates prediction using inputs and network weights
  • Loss measures discrepancy between prediction and correct answer
  • Backpropagation adjusts weights to minimize loss

More from Saturday 3 October →