kali linux gnome3.4桌面合上笔记本盖子依然保持唤醒设置方法

本文介绍如何通过命令行设置 Kali Linux 以防止在关闭笔记本电脑盖子时进入睡眠状态。提供了两种不同的命令,分别用于充电状态和电池供电状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Kali Linux: How to keep your laptop running when you close the lid

I wanted to run some software on my laptop but I wanted to close the lid of my laptop so it would be easier to carry with me but every time when I closed the lid my laptop went to sleep
and stopped everything what it was doing =( I didn’t find any settings from Kali Linux GUI but you can do some small command line kung fu:

This setting disable the sleep mode when your laptop charger is plugged in and you close the lid:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action nothing

And this one disable the sleep mode when you are running your laptop on battery mode:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action nothing

After that your laptop should stay a wake even if you close the lid =)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值