Log*_*man 6 wireless drivers 13.04
好吧,Ubuntu 使我在 Linux 世界中感到非常受欢迎,在遇到严重问题时张开双臂。我想我不会说我是新手,但我已经将近 5 年没有使用 Ubuntu 了。
我遇到了一个大问题,我的 Alfa AWUS036H 无线适配器连接速度非常慢。下载 5MB 大约需要 5-10 分钟,我的提供商的下载速度为 100mbps。这在 Windows 上效果很好,但是现在我已经切换到 Ubuntu,我遇到了很多问题。
我在这里读到,如果我重新安装新版本的 Realtek RTL8187 驱动程序,它将解决我的速度问题。我下载了最新版本的 RTL8187L 驱动程序,按照提供的步骤操作,最后得到了这个堆栈跟踪:
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
CC [M] /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:153:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:155:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:168:12: error: ‘rtl8187_usb_probe’ undeclared here (not in a function)
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:169:16: error: ‘rtl8187_usb_disconnect’ undeclared here (not in a function)
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: At top level:
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3762:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3862:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
make[2]: *** [/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o] Error 1
make[1]: *** [_module_/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
这是我的 iwconfig:
lehmanlb@lehmanlb-p6710f:~/Desktop/rtl8187L_linux_1041.0209.2012$ iwconfigwlan1 IEEE 802.11bg ESSID:"6WFBC"
Mode:Managed Frequency:2.462 GHz Access Point: 00:7F:28:64:42:80
Bit Rate=54 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-30 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:89 Missed beacon:0
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=27 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Run Code Online (Sandbox Code Playgroud)
如果您需要更多信息,请告诉我!我很想在这里工作!谢谢。
最后一个答案对我来说在 LUbuntu 中很有魅力。我注意到每次重新启动时我都必须重复最后的步骤。无论如何,有没有像“水泥”一样将其作为永久的东西。我使用的是 HP All in on 1 deal,我不喜欢 BIOS 不允许我关闭它的板载 wifi,而且没有外部“关闭”开关。我尝试着接受好坏,并在 Realtek 运行 airmon-ng 时使用板载 wifi 互联网。不过,您从我这里获得了该网站的良好流量,现在已经访问该页面 20 次了,因为它实际上解决了我的问题。但我想真正“修复”它,而不是像我在这里一样用绷带包扎它。
回复:
sudo modprobe rtl8187
sudo iwconfig wlan1 rate 5.5M fixed
sudo iwconfig wlan1 frag 2346
sudo iwconfig wlan1 rts 2347
sudo iwconfig wlan1 txpower 30
set in rc.local ^^
Run Code Online (Sandbox Code Playgroud)
另外,我的这张特定卡的版本不允许我将其设置为 30 次方,而不出现经典错误:
无线请求“设置 Tx 功率”(8B26) 错误:设备 wlan1 上的 SET 失败;无效的论点。
为此,我先切换了数字 20,它不再出错了...想嗯,它的数字...所以尝试了 21、22 等,之前我的这张特定卡的版本高达 27它出错了。所以......我贡献了我的问题,那些在 txpower 部分有错误的人,尝试较小的数字。
小智 1
sudo modprobe rtl8187
sudo iwconfig wlan1 rate 5.5M fixed
sudo iwconfig wlan1 frag 2346
sudo iwconfig wlan1 rts 2347
sudo iwconfig wlan1 txpower 30
Run Code Online (Sandbox Code Playgroud)
在 rc.local 中设置 ^^