Pare de 16.04 de atualizar as configurações de wifi

1

Eu tenho um notebook HP 255 G4 com um adaptador Realtek WiFi. Eu preciso executar alguns comandos no terminal para fazer o wifi funcionar. O problema é que depois de cada atualização, o sistema descarta as alterações feitas por mim e o wifi pára de funcionar. Não é um problema tão grande quando estou em casa e posso me conectar via ethernet, mas quando estou ausente e posso usar apenas wifi, é um problema. Então, posso de alguma forma fazer com que o sistema operacional não altere essas configurações?

Em geral, para que o wifi funcione, eu uso:

sudo apt-get remove rtlwifi-newdkms
reboot
sudo apt-get install git build-essential
git clone http://github.com/lwfinger/rtlwifi_new
cd rtlwifi_new
make
sudo make install
reboot
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl823be ant_sel=2
sudo echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/rtlbtcoex.conf

Ou existe uma maneira de criar um arquivo executável que possa executar os comandos acima e conter arquivos da pasta rtl8723be_new que são necessários?

A versão do Ubuntu é 16.04.02 LTS, versão do kernel 4.10.0-28-genérica.

Antes de instalar este driver, procurei soluções na Internet, e essa é a que funciona para mim. É possível obter outra solução, eu simplesmente não a encontrei.

o resultado de sudo apt purge rtlwifi-new-dkms é "o pacote não pode ser encontrado" (estou usando o búlgaro, portanto, não estou copiando o resultado da saída). Eu não executo o comando de desinstalação, porque preciso de Wi-Fi por enquanto e, se fizer isso, não serei capaz de usar a rede. A saída do comando grep ... é:

/etc/modprobe.d/rtlbtcoex.conf:options rtl8723be ant_sel=2
[   20.774353] rtlwifi: loading out-of-tree module taints kernel.
[   20.774483] rtlwifi: module verification failed: signature and/or required key missing - tainting kernel
[   20.804759] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[   20.804763] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[   20.896118] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
[   20.896127] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_config.bin
[   20.896135] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[   21.070430] rtl8723be: Using firmware rtlwifi/rtl8723befw_36.bin
[   21.078507] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[   21.079068] rtlwifi: rtlwifi: wireless switch is on
[   21.897621] rtl8723be 0000:02:00.0 wlo1: renamed from wlan0
[   31.202106] rtl8723be 0000:02:00.0 wlo1: disabling HT as WMM/QoS is not supported by the AP
[   31.202109] rtl8723be 0000:02:00.0 wlo1: disabling VHT as WMM/QoS is not supported by the AP
[ 3659.493015] rtlwifi: rtlwifi: wireless switch is on
[ 3662.476260] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[ 3662.476264] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[ 3662.476296] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
[ 3662.476299] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_config.bin
[ 3662.476306] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[ 3666.277764] rtl8723be 0000:02:00.0 wlo1: disabling HT as WMM/QoS is not supported by the AP
[ 3666.277769] rtl8723be 0000:02:00.0 wlo1: disabling VHT as WMM/QoS is not supported by the AP
[ 4037.305961] rtlwifi: AP off, try to reconnect now
[ 4045.075961] rtl8723be 0000:02:00.0 wlo1: disabling HT as WMM/QoS is not supported by the AP
[ 4045.075965] rtl8723be 0000:02:00.0 wlo1: disabling VHT as WMM/QoS is not supported by the AP
[ 7658.772095] rtlwifi: rtlwifi: wireless switch is on
[ 7661.007611] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[ 7661.007618] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[ 7661.007652] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
[ 7661.007656] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_config.bin
[ 7661.007663] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[ 7664.946554] rtl8723be 0000:02:00.0 wlo1: disabling HT as WMM/QoS is not supported by the AP
[ 7664.946558] rtl8723be 0000:02:00.0 wlo1: disabling VHT as WMM/QoS is not supported by the AP
    
por Методи Шотлеков 29.07.2017 / 13:23

1 resposta

2

Você não precisa de nenhum driver da fonte para o kernel 4.10. Você precisa removê-los. Executar

sudo apt purge rtlwifi-new-dkms
cd rtlwifi_new
sudo make uninstall

O adaptador sem fio será gerenciado pelo módulo em árvore e deve funcionar bem, a menos que você o coloque na blacklist em algum lugar.

Se o Wi-Fi não funcionar, adicione a saída de grep rtl /etc/modprobe.d/*; dmesg | grep rtl à sua pergunta.

    
por Pilot6 29.07.2017 / 16:27