解决Linux关机时音响会发出巨响的问题

如果你上网搜“linux pop sound on shutdown”会发现许多发行版都存在这个问题。我这边的发行版是Fedora,机器是惠普的暗影精灵第一代。

我试了一下,关机或者重启前用将系统静音并不能解决问题,仍然会听到“砰”一声响。

Arch wiki给出的建议是新建这样一个modprobe配置(比如文件名是 /etc/modprobe.d/modprobe.conf ),里面写上

options snd_hda_intel power_save=0

试了一下居然奏效了。虽然不太明白为什么要这么做(Arch wiki上给的https://www.kernel.org/doc/Documentation/sound/alsa/powersave.txt直接404了) ,但是确实重启时听不到那吓人的“砰”声了。

Installing nvidia driver on Fedora 29

Forewords

Installing the nvidia driver on Fedora has been a painful experience for me. If I don’t get it wrong, I have been trying since F26!

I will not touch on bumblebee. I will instead use nvidia-xrun to utilize the driver.

This article serves as a reminder for myself on what did I do to make things work for my Intel/nvidia hybrid laptop. It might hopefully help other people as well.

继续阅读“Installing nvidia driver on Fedora 29”

Notes on setting up a Raspberry Pi as an NAT mode IPv4/IPv6 dual stack wireless access point

The offical document turns out to be a good example of setting up an NAT mode IPv4 only wireless access point. In this post, I will extend the official doc a little bit, by adding the IPv6 stack to the RPi AP. I will also touch on a few lines about enabling 802.11n in hostapd. 继续阅读“Notes on setting up a Raspberry Pi as an NAT mode IPv4/IPv6 dual stack wireless access point”

GNU nano basics| nano编辑器的使用提示

命令行选项

-m 此选项可激活鼠标,按住shift建即可选择文本。对应nanorc的set mouse
-l 显示行号。对应nanorc的set linenumbers
-E--tabstospaces 把已有文件中的tab转换为空格。对应nanorc的set tabstospaces
-i--autoindent 启动自动缩进。对应nanorc的set autoindent
-A--smarthome启动智能home键。对应nanorc的set smarthome
-$--softwrap 开启自动折行。对应nanorc的set softwrap
继续阅读“GNU nano basics| nano编辑器的使用提示”