/etc/inputrcset bell-style none # 或 visible(視覺閃爍替代聲音)
~/.bashrc 加入echo "set bell-style none" >> ~/.bashrc
setterm 永久生效setterm -blength 0
# 加入 /etc/bashrc 或 ~/.bashrc
sudo modprobe -r pcspkr
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist
# /etc/gdm/custom.conf
[greeter]
SoundOnLogin=false
或終端執行 rmmod pcspkr; xset b off。
/boot/grub/grub.conf 或 menu.lst)在 kernel 行尾加 vga=XXX,常用對照表:
| 色深\解析度 | 640x480 | 800x600 | 1024x768 | 1280x1024 |
|---|---|---|---|---|
| 8bit | 769 | 771 | 773 | 775 |
| 16bit | 785 | 788 | 791 | 794 |
| 24bit | 786 | 789 | 792 | 795 |
範例:kernel /boot/vmlinuz-... ro root=LABEL=/ vga=791 rhgb quiet(1024x768 16bit)。
/etc/lilo.conf)加入 vga=0x317(1024x768)、0x31A(1280x1024)等十六進制值,重跑 lilo 生效。