Linux off the alarm tone and modify the resolution

  

Vmware installed Linux, in the Shell due to the wrong command or for various reasons, will be issued "dudu" rdquo; alarm sound, not the sound card issued, but The alarm of the motherboard, so it can not be solved by turning off the speaker. The sound that often sounded in the bedroom was very harsh. I found a solution on the Internet today, and wrote down:

Remove the # before the set bell-style none in /etc/inputrc, and then restart the system.

However, this method does not work, but the idea is correct. The range of bell-style is: none, visible, audible. If you want to remove the alarm, it should be

Remove the # before the set bell-style visible in /etc/inputrc. If you don't have this sentence, you can add it yourself.

Remove the linux alarm sound

In fact, the kernel module pcspkr is the module that drives the system speaker, disable it on the line. On the command line, type: sudo modprobe -r pcspkr. The best way is to add to the blacklist, as follows: In /etc/modprobe.d/blacklist, add blacklist pcspkr to test again, no nasty system speaker sound.

1>shell Alarm Sounds

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 above only removes the tab alarm sound in the shell. If there are other alarm sounds, you can use the following command:

Setterm -blength 0

or add it to /etc/bashrc.

2>gdm login alarm

#vi /etc/gdm/custom.conf

================= =========

[greeter]

Browser=true

SoundOnLogin=false

======== ==================

Or follow the command in the terminal

1:rmmod pcspkr

2 :xset b off

Setting the resolution under the Linux character interface

vi /boot/grub/menu.lst

|  640x480 800x600 1024x768 1280x1024

256 |  0x301 0x303 0x305 0x307

32k |  0x310 0x313 0x316 0x319

64k |  0x311 0x314 0x317 0x31A

16M |  0x312 0x315 0x318 0x31B

In fact, very simple, that is grub, edit grub.conf

in kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/rhgb quiet Add the resolution setting:

kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/vga=791 rhgb quiet

Different colors and resolutions Value

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:

It seems to add a line vga=0x31? It will do (it hasn't used lilo for a long time, can't remember it)

Where 0x31? is to set the specific resolution value, please refer to the list, do not mess up

1280x1024 is 0x31a

1024x768 is 0x317

800x600 is 0x314< Br>

640x480 is 0x311

Copyright © Windows knowledge All Rights Reserved