ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Debian

¹ØµôÄÖÐÄµÄ PC À®°È

·¢²¼Ê±¼ä:2009-07-25 15:39:06À´Ô´:ºìÁª×÷Õß:Áõ³å
Ô­ÎÄÁ´½Ó£º¹ØµôÄÖÐÄµÄ PC À®°È

±¾ÎÄÓÉ andot·¢±í

Ç°¼¸Ì죬°ì¹«ÊÒÒ»¸ö¸çÃÇ×°Á˸ö Windows 2003£¬Ã»×°Éù¿¨Çý¶¯£¬Ã»ÓÐÉùÒôÒ²¾Í°ÕÁË£¬µ«ÊÇÄǸö PCÀ®°È×ÜÊÇϲ»¶ÔÚÇÃÃüÁîʱà½à½µÄÂҽУ¬ÈÃÈËÄÖÐÄ¡£ºóÀ´£¬´ò¿ªÉ豸¹ÜÀíÆ÷£¬Ôڲ鿴ÀѡÉÏÏÔʾÒþ²ØµÄÉ豸£¬È»ºóÏÂÃæ¾ÍÁгöÒ»¸ö·Ç¼´²å¼´ÓÃÇý¶¯³ÌÐòÁбíÀ´£¬Ñ¡ÖÐBeep É豸£¬°ÑËü½ûÓÃ¾Í OK ÁË¡£

½ñÌ죬ÎÒÔÚ VMware Player Àï×°Á˸ö Ubuntu 6.06 Server£¬ËüµÄÃüÁîÐÐÏ£¬ÄǸö PC À®°ÈÒ²×ÜÊÇà½à½ÂҽУ¬ÉÏÍøÒ»ËÑ£¬ÕÒµ½ºÃ¼¸ÖÖ°ì·¨À´½ûÖ¹Ëü¡£×î¼òµ¥µÄ¾ÍÊÇÔÚ /etc/profile ÎļþÖÐÌí¼ÓÒ»¾ä£º

setterm -blength 0

»òÕßÔÚ /etc/inputrc ÎļþÖаÑ
set bell-style none

Õâ¾ä¿ªÆô¡£

×îºÝµÄÒ»ÖÖ°ì·¨ÊÇÖ±½Ó¸Éµô PC À®°ÈÄ£¿é£¬ÔÚ /etc/modprobe.d/blacklist ÖÐÌí¼Ó£º
#silly speaker beep
blacklist pcspkr

ÕâÑùÏ´ÎÆô¶¯ºó£¬PC À®°È¾Í¹öµ°ÁË¡£

Èç¹û²»ÏëµÈµ½Ï´ÎÆô¶¯£¬Ö±½ÓÇÃÈ룺
sudo rmmod pcspkr

Ö®ºó£¬Õû¸öÊÀ½ç¾ÍÇå¾²ÁË£¡
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 5 ÌõÆÀÂÛ

  1. jagub ÓÚ 2009-07-25 16:20:43·¢±í:

    ÉÏÖÜÎÒ²»ÊÇÔÚUbuntu°æÀïÃæÌù¹ýÁËÂð

  2. nahcoiii ÓÚ 2009-07-25 16:07:48·¢±í:

    blacklist×îÓÐЧ

  3. ΢±¦±´ ÓÚ 2009-07-25 16:03:55·¢±í:

    set bell-style none ½ûÓÃÁËÎı¾Ä£Ê½ÏÂÂÒÏì¡£
    Õâ¸öxset -bÖα겻Öα¾£¬ÖØÆôºó»¹»áÏ죬£¬£¬

  4. ΢±¦±´ ÓÚ 2009-07-25 16:02:10·¢±í:

    ÒýÓÃ:
    ÕâÀïÊÇArchµÄ£ºhttp://wiki.archlinux.org/index.php/%E7%A6%81%E7%94%A8%E5%96%87%E5%8F%AD_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29

    ½ûÓÃÀ®°È (¼òÌåÖÐÎÄ) From Arc ...
    Áõ³å ·¢±íÓÚ 2009-7-25 15:53

    ÆäʵÎÒ¿ªÊ¼ÓÃarchµÄʱºòÒ²ºÜ·³£¬¾ÍÊÇÄǸöpcÀ®°È¡£ÕæÊǷѾ¢£¬ºóÀ´·¢ÏÖ½ûÓÃsnd_pcspÄ£¿é¾ÍÐÐÁË¡£¼ÓÈëblacklist¾ÍÐÐÁË

  5. Áõ³å ÓÚ 2009-07-25 15:53:34·¢±í:

    ÕâÀïÊÇArchµÄ£ºhttp://wiki.archlinux.org/index.php/%E7%A6%81%E7%94%A8%E5%96%87%E5%8F%AD_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29

    ½ûÓÃÀ®°È (¼òÌåÖÐÎÄ) From ArchWiki Jump to: navigation, search

    [table][tr][td] i18n[/td][/tr][tr][td] English[/td][/tr][tr][td] §²§å§ã§ã§Ü§Ú§Û[/td][/tr][tr][td] §µ§Ü§â§Ñї§ß§ã§î§Ü§Ñ[/td][/tr][tr][td] ¼òÌåÖÐÎÄ[/td][/tr][/table] È«¾ÖÉèÖà [list][*] ¿ÉÒÔÔÚ /etc/rc.conf µÄMODULESÊý×éÖÐÌí¼Ó !pcspkr À´ÍêÈ«½ûÓÃPCÀ®°È:[/list]MODULES=( ... !pcspkr ... )

    [list][*] Èç¹ûÔËÐÐ lsmod | grep snd_pcsp »áÊä³öһЩ½á¹û, ÔòÐèÒªÌí¼Ó !snd_pcsp:[/list]MODULES=( ... !snd_pcsp ... )

    Óû§ÉèÖà [list][*] ÔÚXÖйصôPCÀ®°È:[/list]$ xset -b
    ½«ÕâÌõÃüÁî¼ÓÈëÆô¶¯Îļþ, ÀýÈç ~/.xinitrc, ¿ÉÒÔÔÚÿ´ÎXÆô¶¯Ê±¹ØµôPCÀ®°È.

    [list][*] ÔÚ¿ØÖÆ̨ÖйصôPCÀ®°È:[/list]$ setterm -blength 0
    ºÍÉÏÃæ·½·¨ÀàËÆ, ½«ÕâÌõÃüÁî¼ÓÈë ~/.bashrc ÖоͿÉÒÔÔÚÿ´ÎµÇÈë¿ØÖÆ̨ʱ¹ØµôPCÀ®°È.

    [list][*] ÁíÒ»ÖÖ·½·¨Êǽ«ÏÂÃæµÄÃüÁî¼ÓÈë ~/.inputrc:[/list]$ set bell-style none

    [list][*] Èç¹ûʹÓÃALSA, ¿ÉÒÔÊÔÊÔÏÂÃæµÄÃüÁî¹ØµôPCÀ®°È:[/list]$ amixer set 'PC Speaker' 0% mute