Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to turn off the alarm and modify the resolution in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to turn off the alarm sound and modify the resolution in linux", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "how to turn off the alarm sound and modify the resolution in linux"!

Linux installed on VMware will emit "toot" alarm sound under Shell due to wrong input command or various reasons, which is not issued by sound card, but alarm of motherboard, so it cannot be solved by turning off slightly. Dormitory often sounded like this voice is very harsh, today found a solution online, write down:

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

But this method tried and did not work, but the idea is correct, bell-style value range is:none, visible, audible, want to remove the alarm sound should be

Remove the #before set bell-style visible in/etc/inputrc, if not, you can add it yourself.

Remove linux alarm sound

In fact, the kernel module pcspkr is the module that drives the system speaker, and it is disabled on the line. Type sudo modprobe -r pcspkr on the command line. *** The method is to add to the blacklist, as follows: in/etc/modprobe.d/blacklist, add blacklist pcspkr to test again, there is no annoying system horn sound.

1>Shell alarm sound

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 run the following command under terminal

1:rmmod pcspkr

2 :xset b off

Setting Resolution in 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, it is very simple, just grub, edit grub.conf

Add the resolution setting 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 for 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:

It looks like adding a line vga= 0x31? That's enough (I haven't used lilo for a long time, I can't remember a bit)

0x31? is to set specific resolution values, you can refer to the list, do not set randomly

1280 x 1024 is 0x31 a

1024x768 is 0x317

800 x 600 is 0x314

640 x 480 is 0x311

At this point, I believe that we have a deeper understanding of "how to turn off the alarm sound and modify the resolution in linux," may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report