avatar

sunday

Sunday's Blog

  • 首页
Home 让debian12笔记本盒盖不休眠
文章

让debian12笔记本盒盖不休眠

Posted 2024-12-21 Updated 2024-12- 30
By sunday
5~6 min read

1.打开终端,编辑 /etc/systemd/logind.conf 文件,查找下面的选项并改成下面那样

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
LidSwitchIgnoreInhibited=no

2.执行重启生效命令 systemctl restart systemd-logind

3.还是没效果的话,再执行

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

4.debian12 GNOME 就是图形桌面版本,有个Tweaks应用程序,打开这个应用程序,在"常规"选项卡中,关闭"合上笔记本盖时挂起"开关

疑难杂症
疑难杂症
License:  CC BY 4.0
Share

Further Reading

Mar 27, 2025

解决nextjs15使用useLocalStorage报错的问题

已经在组件中使用"use client"声明了,还是报错,错误如下: Unhandled Runtime Error Error: useLocalStorage is a client-only hook 1.解决方案1-使用 dynamic 导入 import dynamic from 'nex

Dec 21, 2024

让debian12笔记本盒盖不休眠

1.打开终端,编辑 /etc/systemd/logind.conf 文件,查找下面的选项并改成下面那样 HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore LidSwitchIgnoreInhibited=no

Dec 3, 2024

如何查找字体的family名称

有时一些软件引用字体总是需要填写字体的family名称,但是实际情况是字体文件的名称不总是等于family里的名称 1.mac上查找字体family名称 请确保安装了fontconfig 没有则执行 brew install fontconfig 然后执行查找命令 fc-scan -b /Users

OLDER

cursor IDE 编辑器从命令行打开

NEWER

解决Windows无法安装到这个磁盘 选中的磁盘具有MBR分区表

Recently Updated

  • nextjs15使用better-sqlite3的连接报错问题
  • nextjs + clerk + supabase + realtime 实时监听数据库更改
  • 解决nextjs15使用useLocalStorage报错的问题
  • mac上使用nodejs appium控制chrome浏览器
  • 2024年终总结

Trending Tags

nginx acme 强制跳转HTTPS nodejs 代理 mac 神器 vue3 工具 docker

Contents

©2025 sunday. Some rights reserved.

Using the Halo theme Chirpy