tomaspinho / rtl8821ce

Other
1.58k stars 412 forks source link

Random disconnects and DNS issues #312

Open jbhntr861 opened 1 year ago

jbhntr861 commented 1 year ago

Wifi seems to work for awhile after fresh reinstall. But then will diaconnect at random before finally not working at all.

HP Laptop

Model: 14-fq0110wm Kernel: 6.0.0-kali6-amd WiFi Chipset: RTL8821ce

$ sudo lshw

Description - Wireless Interface Product - RTL8821CE 802.11ac PCI WNA Vendor - Realtek Semiconductor Co. Phys ID - 0 bus info - pci@0000:01.00.0 Logical name - wlan0 Vers. - 00 Serial- 50:c2:e8:fc:1d:d9 Width - 64 bits Clock - 33mhz

capabilities

 pm msi pciexpress bus_master cap_list
 ethernet physical wireless

config

broadcast=yes driver=rtw_8821ce  
driver version=6.0.0-kali-amd64 
firmware=N/A ip=192.168.1.25 lat=0
link=yes wireless=IEEE 802.11 resources=: 
irq: 47 ioport: f000(256)mem  
gcf00000-fcf0ffff

Ping www.google.com

From MEDUSA (192.168.1.25) icmp_seq=8        
byce
From MEDUSA (192.168.1.25) icmp_seq=8     
Destination

From MEDUSA (192.168.1.25) icmp_seq-9        
Destination Host Unreachable

From MEDUSA (192.168.1.25) icmp_seq-10 
Destination Host Unreachable

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-11 ttl=100 
time-2689 ms

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-12 ttl-100    
time-1667 ms    
64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-13 ttl=100 
time-643 ms 64 bytes from     
yr-in-f99.1e100.net (74.125.136.99): 
icmp_seq-14 ttl-100 time-100 ms

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-15 ttl-100     
time-385 ms 64 bytes from  
yr-in-f99.1e100.net (74.125.136.99): 
icmp_seq-17 ttl-100 time-90.8 ms 64 
bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-17 ttl-100 
time-131 ms (DUP!)

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-17 ttl-100 
time-150 ms (DUP!)

64 bytes from yr-in-f99.1e100.net        
74.125.136.99): icmp_seq-18 ttl-100 
time-140 
ms

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-18 ttl-100           
time-155 ms (DUP!)

64 bytes from yr-in-f99.1e100.net 
(74.125.136.99): icmp_seq-18 ttl-100        
time-176 ms (DUPI)    
From MEDUSA (192.168.1.25) icmp_seq-20 
Destination Host Unreachable

From MEDUSA (192.168.1.25) icmp_seq=21 
Destination Host Unreachable

From MEDUSA (192.168.1.25) icmp_seq-22 
Destination Host Unreachable

From MEDUSA (192.168.1.25) icmp_seq=23 
Destination Host Unreachable

From MEDUSA (192.168.1.25) icmp_seq-24 
Destination Host Unreachable

Steps taken. Followed steps in Readme.md

sudo apt install build-essential 
gh repo clone tomaspinho/rtl8821ce 
sudo make -i -k
sudo make install
sudo ./dkms-install.sh

output

Error! Bad return status for modulr build on       
kernel : 6.0.0kali amdx86_64 Consult /../../
make.log 
DPKG error processing package 
realtek-rtl8723cs-dkms (--configure):
Installed realtek-rtl8723cs-dkms package 
post-installation script subprocess 
returned ERROR EXIT STATUS 10 

Make -j4 KVER=6.0.0-kali6-amd64 
KSRC=lib/modules/6.0.0Kali-etcetc/
build/...... bad EXIT STATUS 2
Refer to make.log one or more modules 
failed to install.

run-parts /etc/kerbel/headet_postinsy.d/
dkms exited with RETURN CODE 11
Failed to process /dkms at/var/lib/dpkg/i
bfo/linux-headers-6.0.0.postinst line 11
E sub process exit code 1

This happens after fresh install and using the remove script. I've tried just about everything I can think of and every troubleshooting thread I could find I have tried. Nothing changes. Anybody know the solution?

dubhater commented 1 year ago

Have you tried reading that make.log mentioned by the error message? It contains the information you need.

(Why are bits missing from the error message? Why do you have a driver for some RTL8723 chip? It won't help with RTL8821CE.)

jbhntr861 commented 1 year ago

These are very good questions I took some bits out of the error messages that repeated themselves. Guess I will edit them back in. You know I have no idea why that driver downloaded. I cloned the rtl8821ce and that one came up when I started the install. How should I go about a clean install again? Maybe purge everything like apt purge rtl** ???

I've been trying to get jt to work for a week now. Missing all kinds of work.

On Tuesday, January 10, 2023, dubhater @.***> wrote:

Have you tried reading that make.log mentioned by the error message? It contains the information you need.

(Why are bits missing from the error message? Why do you have a driver for some RTL8723 chip? It won't help with RTL8821CE.)

— Reply to this email directly, view it on GitHub https://github.com/tomaspinho/rtl8821ce/issues/312#issuecomment-1377648547, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2M6MCLCZLUA5C3Q4WSS3OLWRWP3RANCNFSM6AAAAAATXBM2FM . You are receiving this because you authored the thread.Message ID: @.***>

dubhater commented 1 year ago

If you installed it with apt, remove with apt. I don't know the exact command for that. But if you installed it with dkms, remove it with dkms. apt and dkms both have manuals where you can find instructions.

jbhntr861 commented 1 year ago

I installed wIth git/dkms and apt. I have apt purged and deleted all real-tek anything from my system and used dkms-remove.sh. I am now trying to use the rtl8821ce git repo that I have cloned to reinstall.

Supposedly I need to edit the makefile so that CC=gcc-8 so im working on getting that setup without internet. And of course my usb sticks will not read by my phone. But thats another issue will report when I make progress.

jbhntr861 commented 1 year ago

- [ ] @_found in dmesg. Not sure if it helps.

CPU: 0 PID: 702 Comm: RTW
CMD_THREAD
Tainted: G 10

23:06:09 MEDUSA kernel: Hardware name: HP HP Laptop 14-fq@xxx/8787, BIOS F.54
11/26/2021 6.0.0-kali6-amd64 #1 Debian
6.0.12-ikalii RIP: 0010: rtw_lps_state_chk+0x34/0x42 [8821ce] kernel: Code: 55 53 48 89 fd bb eb 00 00 00 be 04 00 00 00 48 89 of 68 77 62 f9 ff
84 RSP: 0018:ffffb2b083f7bca0 EFLAGS:

00010246 RAX: 0000000000000003 RBX: 0000000000000000. RCX: 0000000000016954 RDX: 0000000000000000 RSI: ffffffff9097c014 RDI: ffffb2b083f7bbf0 RBP: ffffb2b081209000 ROB: R09: 0000000000000000 R10: 0000000000000001 R11: 000000000000000 R12: ffffb2b063f7bd5c R13: ffffb2b081931000 R14: ffffb2b081931000 R15: 0000000000000000 FS: 000………………………………0(0000)
G5:ffff8af99b600000(0000) GS:000000000 CS: 0010 DS: 0000 ES: 0000 CRD: 0000000000050033 CR2: 00007f9331c5ccde CR3: 0000000031236000 CRA: 00000000003506f0

SetHwReg+0x180/0-718 [8821ce] rtl8821c_sethwreg-0ca4/excec [821ce] sethwreg-0-25/0-144 [8821ce] rtw hal_set_hwreg+0x15/0-1a rtw_set_ps_mode and7/0-1eb [8821ce) status_watchdog+0x1e2/8-2e8 [8821ce) PS Leave+0xca/07 [8821ce]? rtw_ni_dynamic_check_timer_handlder+0x1 4/0-14 rtw_iface_dynamic_chk_wk_hdl+055/0-1a3 rtw_mi_dynamic_check_timer_handlder 014/014 rtw_mi_dynamic_chk_wk_hdl+0xa/014 rtw_mi_process+0x60/079 [8821ce] rtw_ni_dynamic_chk_wk_hdl+01b/0-20 rtw_dynamic_chk_wk_hd1+0-e/0-49 rtw drvextra_cmd_hdl+0a9/0-417 [8821ce] rtw cad_thread+0x2a5/0x366 [8821ce] 7 session tracker_cmd_hal-0-1d2/e-1d2 7 rtw_stop_cmd_thread+0x41/0x41 [8821ce] kthread-8-e9/0-110 kthread_complete_and_exit-0-20/0-20 ret from fork+0-22/0-30 Jan 10 23:06:09 TASKS [ end trace 00000000000000001- MEDUSA systemd-timesyncd[602]:Timed - [ ] - > out waiting for reply from _
jbhntr861 commented 1 year ago

I installed wIth git and apt. I have apt purged and deleted all real-tek anything from my system.ans am.now trying to use the rtl8821cr git repo that i have cloned to reinstall

Supposedly i need to edit the makefile so that CC=gcc-8 so im working on getting that setup without internet. And of course my usb sticks will not read by my phone. But thats another issue will report when I make progress.

Still not able to get internet. Reinstalled to start fresh. Now not connecting at all.

jbhntr861 commented 1 year ago

Finally fixed this myself. Not sure if I know exactly what I did that worked but I started with a fresjh install. Reinstalled all dependencies (linux headers, build essential, etc) using a USB stick or apt-getoffline. I then used rtl8821ce offline installer. And reinstalled it. I tool everything off of my blacklist.conf though so I may just be using the driver that came with the computer but at least it works some of the time.