跳轉到內容

LPI Linux 認證/配置調變解調器和音效卡

來自華夏公益教科書,開放的書本,開放的世界

配置調變解調器和音效卡

[編輯 | 編輯原始碼]

詳細目標

[編輯 | 編輯原始碼]

權重: 1

描述
考生應能夠配置調變解調器和音效卡設定。
  • 關鍵知識領域
    • 確保裝置符合相容性要求(特別是調變解調器不是不受支援的“win-modem”)。
    • 驗證卡使用了正確的資源。
    • 配置調變解調器以進行外撥。
    • 設定序列埠速度。
  • 以下是使用檔案、術語和實用程式的部分列表
    • /proc/dma
    • /proc/interrupts
    • /proc/ioports
    • /proc/pci
    • lspci
    • lsusb

調變解調器

[編輯 | 編輯原始碼]

調變解調器是一種允許您透過電話線傳送數字資料的裝置。四種類型的調變解調器是

  • 外部: 透過序列埠連線。
  • USB: 透過 USB 連線。
  • 內部: ISA 或 PCI 板。
  • 內建: 主機板的一部分。

大多數新型調變解調器都是即插即用,您可以透過多種方式處理它

  • 序列驅動程式為您完成所有操作。
  • 使用 isapnp 程式。
  • 讓 PnP BIOS 完成配置。

要顯示 ISA 裝置的配置,請使用 pnpdump。此實用程式可以轉儲卡使用的資訊(IO 埠、中斷和 DMA 通道)。要配置任何 ISA 裝置,請使用 isapnp。有關更多資訊,請檢視 isapnp.conf 檔案的手冊頁。

序列埠

[編輯 | 編輯原始碼]

可以使用 setserial 配置外部調變解調器。

setserial [options] device [parameters]

The available serial ports are:
/dev/ttyS0 (COM1), port 0x3f8, irq 4
/dev/ttyS1 (COM2), port 0x2f8, irq 3
/dev/ttyS2 (COM3), port 0x3e8, irq 4
/dev/ttyS3 (COM4), port 0x2e8, irq 3

Common options:
-a: report all available information on a connected device.

Common parameters:
-port: Port number.
-irq: IRQ number.
-uart: Type of UART permitted (none, 8250, 16450,...).
-autoconfig: Ask the kernel to determine the UART, IRQ number,...
-baud_rate: Communication bandwidth. (Maximum: 115200 bytes/sec)

示例

setserial -g /dev/ttyS*

撥號輸出和輸入

[編輯 | 編輯原始碼]

為了使用調變解調器撥號輸出,您可以使用應用程式 setserialminicom。可以使用 -s 選項建立配置檔案。

minicom -s

為了能夠處理使用者撥入,系統需要能夠啟動 getty 程序來處理撥入會話。必須在 /etc/inittab 檔案中進行配置。

 D1:45:respawn:/sbin/agetty -mt60 19200,9600 ttyS0 vt100
 
 -m:          tells getty to try to extract the bps rate.
 19200,9600:  bps rate when it receives a BREAK character.
 t60:         timeout of 60 seconds.
 ttyS0:       Port on which the modem is connected.
 vt100:       Terminal type used in the TERM env variable.

修改 /etc/inittab 後,init 需要重新讀取它。

telinit -q

音效卡

[編輯 | 編輯原始碼]


華夏公益教科書