Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
thinkpadt440 [2020/01/14 17:49] – crust | thinkpadt440 [2020/01/14 18:12] (Version actuelle) – [Le git lwfinger] crust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Linux sur Thinkpad T440 ====== | ====== Linux sur Thinkpad T440 ====== | ||
+ | ===== Une puce wifi Realtek et non une intel... ===== | ||
Normalement tout devrait fonctionner **out of the box** avec ce modèle | Normalement tout devrait fonctionner **out of the box** avec ce modèle | ||
- | Mais j'ai rencontré cependant un gros soucis **avec la puce WIFI** | + | Mais j'ai rencontré cependant un gros soucis **avec la puce WIFI** |
<code bash> | <code bash> | ||
Ligne 11: | Ligne 12: | ||
Dans un premier temps et après documentation, | Dans un premier temps et après documentation, | ||
- | - kernel 4 : avec le paquet **firmware-realtek** | + | * **kernel 4** : avec le paquet **firmware-realtek** |
- | - kernel 5 : prise en charge par le noyau | + | * **kernel 5** : prise en charge par le noyau |
Mais bon quelque soit le kernel utilisé, impossible de la faire fonctionner que ce soit sous Debian stable, testing, sid, xubuntu ou mint... Le wifi décroche au bout de quelques secondes. | Mais bon quelque soit le kernel utilisé, impossible de la faire fonctionner que ce soit sous Debian stable, testing, sid, xubuntu ou mint... Le wifi décroche au bout de quelques secondes. | ||
Ligne 18: | Ligne 19: | ||
Le plus bizarre c'est que lors de l' | Le plus bizarre c'est que lors de l' | ||
- | <code bash> | + | <code bash>tinu@Tinuviel-debianStable: |
Module | Module | ||
rtl8192ee | rtl8192ee | ||
Ligne 26: | Ligne 27: | ||
cfg80211 | cfg80211 | ||
video 40960 2 thinkpad_acpi, | video 40960 2 thinkpad_acpi, | ||
+ | |||
+ | Hé oui j'ai installé **firmware-realtek** car je pensais qu'ils allaient fonctionner... | ||
+ | |||
+ | ===== Un firmware-realtek | ||
+ | |||
+ | Et un extrait du **dmesg** avec les erreurs | ||
+ | <code bash> | ||
+ | |||
+ | [ 4.745574] Bluetooth: hci0: RTL: rom_version status=0 version=2 | ||
+ | |||
+ | [ 4.745577] Bluetooth: hci0: RTL: rtl: loading rtl_bt/ | ||
+ | |||
+ | [ 4.746542] bluetooth hci0: firmware: direct-loading firmware rtl_bt/ | ||
+ | [ 4.746561] Bluetooth: hci0: RTL: rtl: loading rtl_bt/ | ||
+ | |||
+ | [ 4.746573] bluetooth hci0: firmware: failed to load rtl_bt/ | ||
+ | [ 4.746605] firmware_class: | ||
+ | [ 4.746641] bluetooth hci0: Direct firmware load for rtl_bt/ | ||
+ | [ 4.746646] Bluetooth: hci0: RTL: cfg_sz -2, total sz 22176 | ||
+ | |||
+ | [ 4.755810] systemd[1]: Received SIGRTMIN+20 from PID 178 (plymouthd). | ||
+ | [ 4.756229] systemd[1]: plymouth-read-write.service: | ||
+ | [ 4.756729] systemd[1]: Started Tell Plymouth To Write Out Runtime Data. | ||
+ | [ 4.763454] systemd[1]: plymouth-start.service: | ||
+ | [ 4.763938] systemd[1]: Started Show Plymouth Boot Screen. | ||
+ | [ 4.764161] systemd[1]: Condition check resulted in Dispatch Password Requests to Console Directory Watch being skipped. | ||
+ | [ 4.797523] systemd[1]: Started Journal Service. | ||
+ | [ 4.807015] systemd-journald[244]: | ||
+ | [ 4.957516] psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3 | ||
+ | [ 5.012742] input: TPPS/2 IBM TrackPoint as / | ||
+ | [ 5.040716] intel_rapl_common: | ||
+ | [ 5.040719] intel_rapl_common: | ||
+ | [ 5.040720] intel_rapl_common: | ||
+ | [ 5.040721] intel_rapl_common: | ||
+ | [ 5.339873] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 | ||
+ | [ 5.339875] Bluetooth: BNEP filters: protocol multicast | ||
+ | [ 5.339882] Bluetooth: BNEP socket layer initialized | ||
+ | [ 8.716175] broken atomic modeset userspace detected, disabling atomic | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
| | ||
| | ||
Finalement, pour ce Thinkpad, voilà ce que j'ai installé en toile d' | Finalement, pour ce Thinkpad, voilà ce que j'ai installé en toile d' | ||
- | <code bash> | + | <code bash>root@Tinuviel-debianStable:# |
- | Normalement avec ces paquets, il n'a plus d' | + | Normalement avec ces paquets, il n'a plus d' |
- | Hé oui j'ai installé | + | Voilà donc le **dmesg** avec les autres erreurs corrigées malgré tous les switchs sur ON |
+ | |||
+ | |||
+ | |||
+ | <code bash> | ||
+ | 0: tpacpi_bluetooth_sw: | ||
+ | Soft blocked: no | ||
+ | Hard blocked: no | ||
+ | 1: hci0: Bluetooth | ||
+ | Soft blocked: no | ||
+ | Hard blocked: no | ||
+ | 2: phy0: Wireless LAN | ||
+ | Soft blocked: no | ||
+ | Hard blocked: no</ | ||
+ | |||
+ | <code bash> | ||
+ | [ | ||
+ | [ | ||
+ | [ 83.583361] rtlwifi: rtlwifi: rtl_hal_pwrseqcmdparsing Polling count exceeded, value = 0xff, expected = 0x0, mask = 0x | ||
+ | [ 83.643856] rtlwifi: rtlwifi: rtl_hal_pwrseqcmdparsing Polling count exceeded, value = 0xff, expected = 0x0, mask = 0x | ||
+ | [ 83.643862] rtl8192ee: Init MAC failed | ||
+ | </ | ||
+ | |||
+ | ===== Le git lwfinger ===== | ||
Après plusieurs lectures, je découvre qu'il existe un git proposant une alternative à **firmware-realtek** : [[https:// | Après plusieurs lectures, je découvre qu'il existe un git proposant une alternative à **firmware-realtek** : [[https:// | ||
Avant de travailler sur les paquets de ce git, les paquets suivants seront nécessaires à la compilation. | Avant de travailler sur les paquets de ce git, les paquets suivants seront nécessaires à la compilation. | ||
- | <code bash> | + | <code bash>root@Tinuviel-debianStable:# |
- | (pensez à adapter le linux-headers à votre kernel (uname -a)) | + | (pensez à adapter le linux-headers à votre kernel (**uname -a**)) |
Puis on clone et compile le nouveau driver | Puis on clone et compile le nouveau driver | ||
- | $ git clone https:// | + | <code bash> |
- | $ cd rtlwifi_new/ | + | tinu@Tinuviel-debianStable: |
- | $ make | + | tinu@Tinuviel-debianStable: |
- | # make install | + | tinu@Tinuviel-debianStable: |
+ | root@Tinuviel-debianStable: | ||
Et c'est là que ça se complique, ça ne va pas mieux... Après plusieurs recherches, je vois que la compilation à créer un dossier : rtl8192ee_revised.tar.bz2. Je tente ma chance : | Et c'est là que ça se complique, ça ne va pas mieux... Après plusieurs recherches, je vois que la compilation à créer un dossier : rtl8192ee_revised.tar.bz2. Je tente ma chance : | ||
- | $ bunzip2 rtl8192ee_revised.tar.bz2 | + | <code bash> |
- | $ tar xvf rtl8192ee_revised.tar rtl8192ee_revised/ | + | tinu@Tinuviel-debianStable: |
- | $ cd rtl8192ee_revised/ | + | tinu@Tinuviel-debianStable: |
- | $ make | + | tinu@Tinuviel-debianStable: |
- | # make install | + | tinu@Tinuviel-debianStable: |
+ | root@Tinuviel-debianStable: | ||
Un nouveau driver est créé : **8192ee** au lieu de **rt8192ee** | Un nouveau driver est créé : **8192ee** au lieu de **rt8192ee** | ||
Je le tente, on ne sait jamais. Donc avant de rebooter, je blackliste l' | Je le tente, on ne sait jamais. Donc avant de rebooter, je blackliste l' | ||
- | # cd / | + | <code bash> |
- | # nano blacklist.conf | + | root@Tinuviel-debianStable: |
Avec ce contenu | Avec ce contenu | ||
+ | <code bash> | ||
+ | root@Tinuviel-debianStable:# | ||
+ | blacklist rtl8192ee</ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Le reboot ===== | ||
+ | Et là nickel, tout roule et le dmesg indique la bonne prise en charge de la puce | ||
+ | <code bash> | ||
+ | [ 7.378594] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 7.380866] IPv6: ADDRCONF(NETDEV_UP): | ||
+ | [ 7.380924] RTW: rtw_ndev_notifier_call(wlp3s0) state:13 | ||
+ | [ 7.380927] RTW: _netdev_open(wlp3s0) , bup=0 | ||
+ | [ 7.380928] RTW: =======> | ||
+ | [ 7.381281] RTW: power-on :REG_CR 0x100=0xea. | ||
+ | [ 7.381281] RTW: =======> | ||
+ | [ 7.381282] RTW: ==> | ||
+ | [ 7.386175] RTW: SetHwReg: bMacPwrCtrlOn=1 | ||
+ | [ 7.386189] RTW: InitMAC_8192EE() <==== | ||
+ | [ 7.386943] RTW: ===> FirmwareDownload88E() fw source from Header. | ||
+ | [ 7.386944] RTW: FirmwareDownload8192E fw:NIC, size: 32286 | ||
+ | [ 7.386945] RTW: FirmwareDownload8192E: | ||
+ | [ 7.387488] RTW: =====> _8051Reset8192E(): | ||
+ | [ 7.389859] RTW: polling_fwdl_chksum: | ||
+ | [ 7.389871] RTW: =====> _8051Reset8192E(): | ||
+ | [ 7.418120] RTW: _FWFreeToGo8192E: | ||
+ | [ 7.418121] RTW: FWDL success. write_fw:1, 32ms | ||
+ | [ 7.418123] RTW: FwLoad SUCCESSFULLY!!! | ||
+ | [ 7.418123] RTW: 8192ee MAC Config Start! | ||
+ | [ 7.418673] RTW: 8192ee MAC Config Finished! | ||
+ | [ 7.418673] RTW: BB Config Start! | ||
+ | [ 7.419058] RTW: BB Config Finished! | ||
+ | [ 7.419059] RTW: RF Config started! | ||
+ | [ 7.957001] RTW: RF Config Finished! | ||
+ | [ 7.961003] RTW: InitializeAdapter8812E(): | ||
+ | [ 7.962339] RTW: ***** ASPM Capability ***** | ||
+ | [ 7.962342] RTW: CLK REQ: Enable | ||
+ | [ 7.962342] RTW: ASPM L0s: Enable | ||
+ | [ 7.962342] RTW: ASPM L1: Enable | ||
+ | [ 7.962357] RTW: ASPM L1OFF: | ||
+ | [ 7.962357] RTW: ***** ASPM CTRL Reg ***** | ||
+ | [ 7.962359] RTW: CLK REQ: Enable | ||
+ | [ 7.962360] RTW: ASPM L0s: | ||
+ | [ 7.962360] RTW: ASPM L1: Enable | ||
+ | [ 7.962375] RTW: ASPM L1OFF: | ||
+ | [ 7.962375] RTW: ***** ASPM Backdoor ***** | ||
+ | [ 7.962390] RTW: CLK REQ: | ||
+ | [ 7.962404] RTW: ASPM L0s: | ||
+ | [ 7.962419] RTW: ASPM L1: Disable | ||
+ | [ 7.962434] RTW: ASPM L1OFF: | ||
+ | [ 7.962434] RTW: ************************* | ||
+ | [ 8.173250] RTW: phy_SpurCalibration_8192E => | ||
+ | [ 8.232816] RTW: ===FixSpur NOT Pass! | ||
+ | [ 8.292361] RTW: === PathA=1, PathB=1 | ||
+ | [ 8.292362] RTW: ===FixSpur Pass! | ||
+ | [ 8.292632] RTW: read[REG_MGQ_TXBD_DESA_8192E] = 350c3000 | ||
+ | [ 8.292634] RTW: rtw_hal_set_macaddr_port wlp3s0- hw port(0) mac_addr =ac: | ||
+ | [ 8.292646] RTW: rtw_hal_get_macaddr_port wlp3s0- hw port(0) mac_addr =ac: | ||
+ | [ 8.292647] RTW: wlp3s0- hw port(0) mac_addr =ac: | ||
+ | [ 8.292827] RTW: MAC Address = ac: | ||
+ | [ 8.292867] RTW: +pci_intf_start | ||
+ | [ 8.292867] RTW: -pci_intf_start | ||
+ | [ 8.292869] RTW: rtw_cfg80211_init_wiphy: | ||
+ | [ 8.292870] RTW: [HT] HAL Support STBC = 0x01 | ||
+ | [ 8.292876] RTW: -871x_drv - drv_open, bup=1 | ||
+ | [ 8.292926] IPv6: ADDRCONF(NETDEV_UP): | ||
+ | [ 8.292929] RTW: cfg80211_rtw_set_power_mgmt(wlp3s0) enabled:1, timeout:-1 | ||
+ | [ 8.292930] RTW: rtw_ndev_notifier_call(wlp3s0) state:1 | ||
+ | [ 8.293074] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.293117] RTW: rtw_ndev_notifier_call(wlp3s0) state:9 | ||
+ | [ 8.293141] RTW: netdev_close(wlp3s0) , bup=1 | ||
+ | [ 8.293142] RTW: (2)871x_drv - drv_close, bup=1, hw_init_completed=_TRUE | ||
+ | [ 8.293143] RTW: -871x_drv - drv_close, bup=1 | ||
+ | [ 8.293165] RTW: rtw_ndev_notifier_call(wlp3s0) state:2 | ||
+ | [ 8.293252] RTW: LeaveAllPowerSaveModeDirect..... | ||
+ | [ 8.293254] RTW: rtw_hal_set_macaddr_port wlp3s0- hw port(0) mac_addr =96: | ||
+ | [ 8.293255] RTW: rtw_net_set_mac_address(wlp3s0): | ||
+ | [ 8.293263] RTW: rtw_ndev_notifier_call(wlp3s0) state:8 | ||
+ | [ 8.293437] RTW: rtw_ndev_notifier_call(wlp3s0) state:13 | ||
+ | [ 8.293438] RTW: _netdev_open(wlp3s0) , bup=1 | ||
+ | [ 8.293441] RTW: -871x_drv - drv_open, bup=1 | ||
+ | [ 8.293460] IPv6: ADDRCONF(NETDEV_UP): | ||
+ | [ 8.293462] RTW: cfg80211_rtw_set_power_mgmt(wlp3s0) enabled:1, timeout:-1 | ||
+ | [ 8.293463] RTW: rtw_ndev_notifier_call(wlp3s0) state:1 | ||
+ | [ 8.309243] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.309262] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.309437] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.309453] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.309839] RTW: cfg80211_rtw_get_txpower | ||
+ | [ 8.309868] RTW: rtw_ndev_notifier_call(wlp3s0) state:4 | ||
+ | [ 8.328862] RTW: cfg80211_rtw_flush_pmksa(wlp3s0) | ||
+ | [ 8.367918] RTW: rtw_ndev_notifier_call(wlp3s0) state:4 | ||
+ | [ 8.368194] IPv6: ADDRCONF(NETDEV_UP): | ||
+ | [ 8.369657] RTW: cfg80211_rtw_scan(wlp3s0) | ||
+ | [ 9.146090] fuse init (API version 7.27) | ||
+ | [ 9.724874] RTW: survey done event(13) band:0 for wlp3s0 | ||
+ | [ 9.724897] RTW: rtw_indicate_scan_done(wlp3s0) | ||
+ | [ 9.731207] RTW: rtw_ndev_notifier_call(wlp3s0) state:9 | ||
+ | [ 9.731394] RTW: netdev_close(wlp3s0) , bup=1 | ||
+ | [ 9.731395] RTW: (2)871x_drv - drv_close, bup=1, hw_init_completed=_TRUE | ||
+ | [ 9.731397] RTW: -871x_drv - drv_close, bup=1 | ||
+ | [ 9.731468] RTW: rtw_ndev_notifier_call(wlp3s0) state:2 | ||
+ | [ 9.731624] RTW: LeaveAllPowerSaveModeDirect..... | ||
+ | [ 9.731628] RTW: rtw_hal_set_macaddr_port wlp3s0- hw port(0) mac_addr =ac: | ||
+ | [ 9.731631] RTW: rtw_net_set_mac_address(wlp3s0): | ||
+ | [ 9.731664] RTW: rtw_ndev_notifier_call(wlp3s0) state:8 | ||
+ | [ 9.731894] RTW: rtw_ndev_notifier_call(wlp3s0) state:13 | ||
+ | [ 9.731896] RTW: _netdev_open(wlp3s0) , bup=1 | ||
+ | [ 9.731900] RTW: -871x_drv - drv_open, bup=1 | ||
+ | [ 9.732006] IPv6: ADDRCONF(NETDEV_UP): | ||
+ | [ 9.732048] RTW: cfg80211_rtw_set_power_mgmt(wlp3s0) enabled:1, timeout:-1 | ||
+ | [ 9.732148] RTW: rtw_ndev_notifier_call(wlp3s0) state:1 | ||
+ | [ 9.743860] RTW: cfg80211_rtw_scan(wlp3s0) | ||
+ | [ 9.743866] RTW: rtw_cfg80211_set_probe_req_wpsp2pie(wlp3s0) listen channel - country:XX, class:81, ch:6 | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||
+ | [ | ||