Re: [問題] UBUNTU上裝3.5G網卡
※ 引述《s200070221 (BrokenWings)》之銘言:
: 小弟我卸載之後
: 發現說還是不能使用
: 之後去查了一下別人的做法
: 發現是9.04的核心沒有某usb裝置的驅動
: 我下載了核心的更新檔 安裝了
: 但是現在還是不能用
: 用了gnome-ppp也不行
: 用原廠的安裝方法也不行
: 誰有圖文教學啊?
我的3.5G網卡是Bandluxe C120 for Ubuntu 9.04
會出現如下的情況,如果你的情況跟我的不同,請跳過這篇文章
把網卡插上USB後,開啟終端機,打上dmesg
出現以下訊息
usb 2-2: new full speed USB device using uhci_hcd and address 10
usb 2-2: configuration #1 chosen from 1 choice
usb-storage: probe of 2-2:1.0 failed with error -5
option 2-2:1.0: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
usb-storage: probe of 2-2:1.1 failed with error -5
option 2-2:1.1: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
scsi24 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb 2-2: reset full speed USB device using uhci_hcd and address 10
scsi 24:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
sr0: scsi-1 drive
sr 24:0:0:0: Attached scsi CD-ROM sr0
sr 24:0:0:0: Attached scsi generic sg0 type 5
usb 2-2: reset full speed USB device using uhci_hcd and address 10
usb 2-2: reset full speed USB device using uhci_hcd and address 10
usb 2-2: device descriptor read/64, error -71
usb 2-2: USB disconnect, address 10
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 2-2:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 2-2:1.1: device disconnected
usb 2-2: new full speed USB device using uhci_hcd and address 11
usb 2-2: configuration #1 chosen from 1 choice
usb-storage: probe of 2-2:1.0 failed with error -5
option 2-2:1.0: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
usb-storage: probe of 2-2:1.1 failed with error -5
option 2-2:1.1: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
scsi27 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 11
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb 2-2: reset full speed USB device using uhci_hcd and address 11
scsi 27:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
sr0: scsi-1 drive
sr 27:0:0:0: Attached scsi CD-ROM sr0
sr 27:0:0:0: Attached scsi generic sg0 type 5
usb 2-2: reset full speed USB device using uhci_hcd and address 11
usb 2-2: reset full speed USB device using uhci_hcd and address 11
usb 2-2: device descriptor read/64, error -71
usb 2-2: USB disconnect, address 11
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 2-2:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 2-2:1.1: device disconnected
scsi 27:0:0:0: rejecting I/O to dead device
scsi 27:0:0:0: rejecting I/O to dead device
scsi 27:0:0:0: rejecting I/O to dead device
scsi 27:0:0:0: rejecting I/O to dead device
會一直loop,最後終止
解決方法是用root權限編輯
/usr/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi
往下拉你會看到
<!-- Ignore the Huawei E220 USB HSDPA modem -->
<match key="@storage.originating_device:usb.vendor_id" int="0x12d1">
<match key="@storage.originating_device:usb.product_id" int="0x1003">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
把它複製一份接在後面,比如我的設定就變成
<!-- Ignore the Huawei E220 USB HSDPA modem -->
<match key="@storage.originating_device:usb.vendor_id" int="0x12d1">
<match key="@storage.originating_device:usb.product_id" int="0x1003">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
<!-- Ignore the Bandluxe C120 USB HSDPA modem -->
<match key="@storage.originating_device:usb.vendor_id" int="0x1a8d">
<match key="@storage.originating_device:usb.product_id" int="0x1002">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
我上網查了你的網卡的vendor id和product id
vendor=0x1da5 product=0x4512 (因為我沒有你的網卡,所以左邊數據尚待確認)
所以你的是
<!-- Ignore the Qisda H21 USB HSDPA modem -->
<match key="@storage.originating_device:usb.vendor_id" int="0x1da5">
<match key="@storage.originating_device:usb.product_id" int="0x4512">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
存檔後重新啟動,這樣應該就不會loop了
之後再用NetworkManager來設定行動寬頻即可
Bleed
--
World of bleed1979
http://bleed1979.myweb.hinet.net/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.177.97
推
11/15 11:46, , 1F
11/15 11:46, 1F
討論串 (同標題文章)