Article Title: Disable alarm sound and modify resolution in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
For Linux installed on Vmware, the "beep" alarm will be issued in Shell due to incorrect commands or various reasons. It is not issued by the sound card, but by the motherboard, so it cannot be solved by disabling the speaker. The bedroom often sounds harsh. Today I found a solution on the Internet and noted it down:
Remove the # Before set bell-style none in/etc/inputrc, and then restart the system.
However, this method does not work, but the train of thought is correct. The value range of bell-style is none, visible, and audible. If you want to remove the alarm sound, it should be
Remove the # Before set bell-style visible in/etc/inputrc. If you do not have this sentence, add it yourself.
Remove linux alert sound
In fact, the kernel module pcspkr is the driver system horn module. Just disable it. Run sudo modprobe-r pcspkr on the command line. The best way is to add it to the blacklist. The method is as follows: add blacklist pcspkr to/etc/modprobe. d/blacklist to test again. There is no annoying system speaker sound.
1> shell alarm
Method 1
# Vi/etc/inputrc
======================================
# Do not bell on tab-completion
Set bell-style none
======================================
Method 2
# Echo "set bell-style none" >> ~ /. Bashrc
Note: The tab alarm sound in shell is removed. If there are other alarms, run the following command:
Setterm-blength 0
Or add it to/etc/bashrc.
2> register an alert when you log on to the machine group.
# Vi/etc/TPD/custom. conf
======================================
[Greeter]
Browser = true
SoundOnLogin = false
======================================
Or run the following command in the terminal.
1: rmmod pcspkr
2: xset B off
Set Resolution on the Linux character Interface
Vi/boot/grub/menu. lst
| 640x480 800x600 1024x768 1280x1024
256 | 0x301 0x303 0x305 0x307
32 k | 0x310 0x313 0x316 0x319
64 k | 0x311 0x314 0x317 0x31A
16 M | 0x312 0x315 0x318 0x31B
In fact, grub is easy to edit. conf.
Add resolution settings after kernel/boot/vmlinuz-2.6.9-1.667 ro root = LABEL =/rhgb quiet:
Kernel/boot/vmlinuz-2.6.9-1.667 ro root = LABEL =/vga = 791 rhgb quiet
Values corresponding to different colors and resolutions
Depth ----- 640x480 ---- 800x600 ---- 1024x768 ----- 1280x1024
8bit --------- 769--------771--------773----------775
15bit -------- 784--------787--------790----------793
16bit -------- 785--------788--------791----------794
24bit -------- 786--------789--------792------------795
Lilo:
Seems to add a line vga = 0x31? That's it. (lilo is useless for a long time. It's hard to remember)
0x31? Is to set the specific resolution value, you can refer to the list, do not set garbled
1280x1024 is 0x31a
1024x768 is 0x317
314 x
311 x