摘要: 安装acpid软件包 添加服务到开机自启级别"default" (OpenRC) 启动服务 编写规则 # emacs /etc/acpi/events/lid # emacs /etc/acpi/actions/lid.sh # emacs chmod +x /etc/acpi/actions/li 阅读全文
posted @ 2018-04-09 14:24 riocke 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 无声 更改 ~/.mednafen/mednafen-xxx.cfg 文件中 Select sound driver 部分 sound.driver default -> sound.driver sdl 参考:https://forums.gentoo.org/viewtopic-p-796547 阅读全文
posted @ 2017-12-23 16:34 riocke 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: # emerge-webrsync # emerge-auDN --with-bdeps=y @world Kernel # cd /usr/src/linux # make oldconfig # make modules_prepare # make -j5 && make modules_in 阅读全文
posted @ 2017-12-16 17:26 riocke 阅读(413) 评论(0) 推荐(0) 编辑
摘要: equery - gentoo package query tool e.g. 查看已安装的软件包或者给定包列表 - 查看portage tree中的给定包列表 > 结果列表中 > 第一个字段部分含义 > "I"(installed)已安装,"P"(portage)存在于portage tree中 阅读全文
posted @ 2017-12-14 11:11 riocke 阅读(502) 评论(0) 推荐(0) 编辑
摘要: ft2build.h:没有那个文件或目录 注释掉config.mk 21行 使用XF86媒体按键 dwm.c文件中添加头文件”#include <X11/XF86keysym.h>” Patches:systray,noborder 参见archwiki Bar高度 dwm.c 中: bh = dr 阅读全文
posted @ 2017-11-26 22:07 riocke 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 字体渲染 1、字体dpi指定在Xft和fontconfig中,屏幕dpi指定在/etc/X11/xinit/xserver中。 以下选项为个人主观感觉,请自行测试斟酌。 对于文泉驿微米黑和Droid Sans字体 antialias:1,autohint:0,hinting:1,hintstyle: 阅读全文
posted @ 2017-10-08 10:01 riocke 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 检查 timedatectl status <此为systemd命令> 更改ntp配置 sudo vim /etc/ntp.conf 立即同步 ntpd -qg 写入硬件时钟 hwclock -w 启动时启用ntpd服务 systemctl enable ntpd 阅读全文
posted @ 2017-09-19 18:44 riocke 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 多窗口分割 ”:sp/vsp“ 纵向/横向分割窗口 “Ctrl+w” 在窗口中跳转 多文件打开 vim name1 name2 name3 “:n/n filename/bn/bp” 当打开多个文件时在多个文件中跳转/下一个文件/上一个文件(不能在多窗口中跳转) #不是同时打开多个文件时,进行跳转会 阅读全文
posted @ 2017-06-13 12:10 riocke 阅读(130) 评论(0) 推荐(0) 编辑
摘要: fuser -um /dev/sdax -u pid后面显示进程拥有者名称 -m 指定已挂载的块设备) kill -9 xxxx 阅读全文
posted @ 2017-05-26 12:26 riocke 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 cat or watch grep \"cpu MHz\" /proc/cpuinfo 2 cat or watch /sys/class/thermal/thermal_zone0/temp 3 -- cpupower frequency-set -u (设置cpuMAX频率,单位:GHz、MHz) -- cpupower frequency-set -d (设置cpuMIN频率,单位:G... 阅读全文
posted @ 2017-04-25 15:10 riocke 阅读(1223) 评论(0) 推荐(0) 编辑