1 安装
sudo apt-get install pm-utils laptop-mode-tools
2 配置
# /etc/laptop-mode/conf.d/runtime-pm.conf
AUDOSUSPEND_DEVID_BLACKLIST="usbhid usb-storage"
还有一个
# /etc/laptop-mode/laptop-mode.conf
ENABLE_LAPTOP_MODE_ON_BATTERY=1
ENABLE_LAPTOP_MODE_O[......]
Tag Archives: Ubuntu
Leave a reply
今日神坑
Ubuntu制作离线安装源
需求:在一个没联网的机器安装若干deb包,其中依赖很复杂
1~3在联网机器执行,4在没网机器执行
1 下载所需deb包及其依赖
下面vim后面可以跟多个包
mkdir offline-debs
cd offline-debs
sudo apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-e[......]
Ubuntu解决ThinkPad休眠后触摸板失灵的问题
我的是T14,每次冷开机时触摸板都好用,休眠恢复后就各种失灵。
试了很多办法,目前这个管用:
sudo vim /lib/systemd/system-sleep/touchpad
#!/bin/bash
if [[ $1 == post ]]; then
modprobe -r psmouse
modprobe psmouse
fi
然后添加权限
chmod a+x /lib/systemd/system-sleep/touchpad
然后重启试试效果吧[......]
Ubuntu安装新内核
1 进入网站 https://kernel.ubuntu.com/~kernel-ppa/mainline/
2 找到对应版本,下载amd64的4个deb(排除low latency),例如:
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.19/linux-headers-5.5.19-050519_5.5.19-050519.202004210831_all.deb
wget https://kernel.ubunt[......]