The wifi connection disconnects randomly

Need help with peripherals or devices?
Post Reply
Message
Author
elias333
Posts: 6
Joined: 2024-06-06 15:22

The wifi connection disconnects randomly

#1 Post by elias333 »

Hi, I'm new to using Debian. I have a:
RCA 2-in-1 tablet
model W101SA23T1
Intel Atom x5-Z8350 processor
2 GB of RAM
30 GB of storage
Windows 10 32-bits from the factory.

PROBLEM: The Wi-Fi connection disconnects randomly, it can go half an hour with a stable connection but sometimes it disconnects every 5 minutes. In Windows the Wi-Fi connection worked fine but the overall performance was bad.

Solutions I tried but they didn't work:
- first installation as the only system debian-12.0-amd64-netinst.iso.
- reinstall it again debian-12.5.0-amd64-netinst.iso.
- third installation debian-12.6.0-amd64-DVD-1.iso.
- disable bluetooth.
- install gnome alongside xfce.

I currently have Debian 12.6 as the only operating system, with only xfce.

I've reviewed the first 15 posts on this forum about disconnecting wifi, but I didn't understand some of them and others don't have directories to modify network settings.

What could I do? Thank you very much for taking the time to read this.
captura.jpg

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: The wifi connection disconnects randomly

#2 Post by Aki »

Hello,
elias333 wrote: 2024-08-18 02:50 PROBLEM: The Wi-Fi connection disconnects randomly, it can go half an hour with a stable connection but sometimes it disconnects every 5 minutes. In Windows the Wi-Fi connection worked fine but the overall performance was bad.
What is your wireless network interface adapter ? You can use the command:

Code: Select all

lspci -vnn -d ::0280
or the command:

Code: Select all

inxi -Na
What is your installed network manager ? You can use the command:

Code: Select all

apt list ifupdown network-manager connman
What is the ifupdown configuration ? You can use the command:

Code: Select all

cat /etc/network/interfaces
What is the WiFi neighbourhood ? You can check with the command:

Code: Select all

nmcli dev wifi list 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

elias333
Posts: 6
Joined: 2024-06-06 15:22

Re: The wifi connection disconnects randomly

#3 Post by elias333 »

Hi, these are the results of the command.
wireless network interface adapter:

Code: Select all

elias@CambioDebian:~$ lspci -vnn -d ::0280
elias@CambioDebian:~$ inxi -Na
Network:
  Message: No PCI device data found.
installed network manager:

Code: Select all

elias@CambioDebian:~$ apt list ifupdown network-manager connman
Listando... Hecho
connman/stable 1.41-3 amd64
ifupdown/stable,now 0.8.41 amd64 [instalado]
network-manager/stable,now 1.42.4-1 amd64 [instalado, automático]
the ifupdown configuration:

Code: Select all

elias@CambioDebian:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
the WiFi neighbourhood:

Code: Select all

nmcli dev wifi list
IN-USE  BSSID              SSID     MODE   CHAN  RATE        SIGNAL  BARS  SECURITY 
*       00:69:67:63:DB:B1  FAMS     Infra  10    270 Mbit/s  92      ▂▄▆█  WPA2     
        60:D2:DD:33:A2:1C  ROSALES  Infra  4     130 Mbit/s  69      ▂▄▆_  WPA2  

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: The wifi connection disconnects randomly

#4 Post by Aki »

Hello,

In previous message, no network device was detected by the lspci and inxi programs.

What is the output of lsusb command ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

elias333
Posts: 6
Joined: 2024-06-06 15:22

Re: The wifi connection disconnects randomly

#5 Post by elias333 »

Sorry for replying so late, here is the lsusb command.

Code: Select all

elias@CambioDebian:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1c4f:007c SiGma Micro USB Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
elias@CambioDebian:~$ 

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: The wifi connection disconnects randomly

#6 Post by Aki »

Hello elias333,

Unfortunately, I cannot understand what wireless device is using your computer.

Perhaps you can supply the full output of the following command (as normal user):

Code: Select all

inxi -Faz
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

elias333
Posts: 6
Joined: 2024-06-06 15:22

Re: The wifi connection disconnects randomly

#7 Post by elias333 »

Hello Aki, this is the complete command:

Code: Select all

elias@CambioDebian:~$ inxi -Faz
System:
  Kernel: 6.1.0-23-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-23-amd64
    root=UUID=99d9db28-c249-4b35-93a8-6d2bd3fcbb4a ro quiet
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.26.0 Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Portable System: RCA product: W101SA23T1 v: N/A
    serial: <superuser required>
  Mobo: RCA model: WT9S10WW00 serial: <superuser required> UEFI: N/A
    v: BSR2WEUS-S10W00-RCA-V08 date: 09/02/2017
Battery:
  ID-1: axp288_fuel_gauge charge: 98% condition: N/A volts: 3.6 min: N/A
    model: N/A type: Li-ion serial: N/A status: discharging
CPU:
  Info: model: Intel Atom x5-Z8350 bits: 64 type: MCP arch: Airmont level: v2
    built: 2015-17 process: Intel 14nm family: 6 model-id: 0x4C (76) stepping: 4
    microcode: 0x411
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
    desc: d-4x24 KiB; i-4x32 KiB L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 480 min/max: 480/1920 scaling: driver: intel_cpufreq
    governor: schedutil cores: 1: 480 2: 480 3: 480 4: 480 bogomips: 11520
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: disabled; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
    Integrated Graphics driver: i915 v: kernel arch: Gen-8 process: Intel 14nm
    built: 2014-15 ports: active: DSI-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:22b0 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1280x800 s-dpi: 96 s-size: 339x212mm (13.35x8.35")
    s-diag: 400mm (15.74")
  Monitor-1: DSI-1 res: 1280x800 hz: 60 size: N/A modes: 800x1280
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (CHV)
    direct-render: Yes
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series
    Imaging Unit driver: intel_atomisp2_pm v: kernel bus-ID: 00:03.0
    chip-ID: 8086:22b8 class-ID: 0480
  API: ALSA v: k6.1.0-23-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Message: No PCI device data found.
  IF-ID-1: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 29.12 GiB used: 4.86 GiB (16.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/mmcblk2 maj-min: 179:0 vendor: Samsung model: MBG4GC
    size: 29.12 GiB block-size: physical: 512 B logical: 512 B type: SSD
    serial: <filter> rev: 0x6 scheme: GPT
Partition:
  ID-1: / raw-size: 27.67 GiB size: 27.06 GiB (97.82%) used: 4.86 GiB (17.9%)
    fs: ext4 dev: /dev/mmcblk2p2 maj-min: 179:2
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 220 KiB (0.0%) fs: vfat dev: /dev/mmcblk2p1 maj-min: 179:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 976 MiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/mmcblk2p3 maj-min: 179:3
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 179 Uptime: 3m wakeups: 5 Memory: 1.84 GiB
  used: 758.1 MiB (40.3%) Init: systemd v: 252 target: graphical (5)
  default: graphical tool: systemctl Compilers: N/A Packages: pm: dpkg
  pkgs: 1355 libs: 799 tools: apt,apt-get,synaptic Shell: Bash v: 5.2.15
  running-in: xfce4-terminal inxi: 3.3.26
elias@CambioDebian:~$ 

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: The wifi connection disconnects randomly

#8 Post by Aki »

Hello,

For some reason it only detects that a wlan0 interface (a wireless interface) is configured, but it cannot collect any info on the used kernel module (driver):

Code: Select all

Network:
  Message: No PCI device data found.
  IF-ID-1: wlan0 state: up mac: <filter>
In the previous commands I asked you, neither lspci nor lsusb detected the wireless interface device.

Do you have any idea what kernel module drives the wireless interface?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

elias333
Posts: 6
Joined: 2024-06-06 15:22

Re: The wifi connection disconnects randomly

#9 Post by elias333 »

Hello, thank for
I have only been able to identify the kernel modules responsible for the wifi connection.
Module Size Used by
r8723bs 577536 0
cfg80211 1146880 1 r8723bs

It seems that my processor is a System on a Chip. It is not common. Therefore there is no specific driver in Linux and only the kernel module is the one that can make the wifi connection.

Code: Select all

elias@RCADebian:~$ lsmod
Module                  Size  Used by
cmac                   16384  3
algif_hash             16384  1
algif_skcipher         16384  1
qrtr                   49152  2
af_alg                 36864  6 algif_hash,algif_skcipher
bnep                   28672  2
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             380928  0
mei_hdcp               24576  0
kvm                  1146880  1 kvm_intel
irqbypass              16384  1 kvm
snd_soc_sst_bytcr_rt5651    36864  3
intel_rapl_msr         20480  0
ghash_clmulni_intel    16384  0
joydev                 28672  0
sha256_ssse3           32768  0
sha1_ssse3             32768  0
gpio_keys              20480  0
r8723bs               577536  0
aesni_intel           393216  4
wdat_wdt               20480  0
axp288_charger         28672  0
crypto_simd            16384  1 aesni_intel
libarc4                16384  1 r8723bs
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel
intel_cstate           20480  0
watchdog               45056  1 wdat_wdt
pcspkr                 16384  0
cfg80211             1146880  1 r8723bs
extcon_axp288          20480  0
axp288_adc             16384  0
extcon_core            32768  2 extcon_axp288,axp288_charger
axp20x_pek             16384  0
axp288_fuel_gauge      24576  0
binfmt_misc            28672  1
hci_uart              159744  0
btqca                  28672  1 hci_uart
btrtl                  28672  1 hci_uart
btbcm                  24576  1 hci_uart
btintel                45056  1 hci_uart
mei_txe                32768  1
intel_xhci_usb_role_switch    16384  1
bluetooth             958464  29 btrtl,btqca,btintel,hci_uart,btbcm,bnep
mei                   159744  3 mei_hdcp,mei_txe
processor_thermal_device_pci_legacy    16384  0
processor_thermal_device    20480  1 processor_thermal_device_pci_legacy
snd_intel_sst_acpi     20480  1
processor_thermal_rfim    16384  1 processor_thermal_device
roles                  20480  2 extcon_axp288,intel_xhci_usb_role_switch
processor_thermal_mbox    16384  2 processor_thermal_rfim,processor_thermal_device
processor_thermal_rapl    20480  1 processor_thermal_device
snd_intel_sst_core     69632  1 snd_intel_sst_acpi
snd_soc_sst_atom_hifi2_platform   114688  2 snd_intel_sst_core
snd_hdmi_lpe_audio     32768  1
intel_rapl_common      32768  2 intel_rapl_msr,processor_thermal_rapl
intel_soc_dts_iosf     20480  1 processor_thermal_device_pci_legacy
snd_soc_acpi_intel_match    81920  1 snd_intel_sst_acpi
intel_atomisp2_pm      16384  0
snd_soc_rt5651        106496  1
nls_ascii              16384  1
snd_soc_rl6231         20480  1 snd_soc_rt5651
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_soc_sst_bytcr_rt5651,snd_intel_sst_acpi
jitterentropy_rng      16384  1
nls_cp437              20480  1
vfat                   24576  1
fat                    90112  1 vfat
sha512_ssse3           49152  1
snd_soc_core          352256  3 snd_soc_rt5651,snd_soc_sst_bytcr_rt5651,snd_soc_sst_atom_hifi2_platform
sha512_generic         16384  1 sha512_ssse3
snd_intel_dspcfg       36864  1 snd_intel_sst_acpi
snd_compress           28672  1 snd_soc_core
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
ctr                    16384  0
snd_pcm               159744  6 snd_soc_rt5651,snd_soc_sst_bytcr_rt5651,snd_compress,snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core
drbg                   45056  1
kxcjk_1013             28672  0
intel_hid              28672  0
sparse_keymap          16384  1 intel_hid
industrialio_triggered_buffer    16384  1 kxcjk_1013
snd_timer              49152  1 snd_pcm
goodix_ts              36864  0
ansi_cprng             16384  0
kfifo_buf              16384  1 industrialio_triggered_buffer
snd                   126976  15 snd_soc_sst_bytcr_rt5651,snd_timer,snd_compress,snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core,snd_pcm
industrialio          114688  5 axp288_adc,industrialio_triggered_buffer,kfifo_buf,axp288_fuel_gauge,kxcjk_1013
ecdh_generic           16384  2 bluetooth
soundcore              16384  1 snd
rfkill                 36864  5 bluetooth,cfg80211
int3400_thermal        20480  0
pwm_lpss_platform      16384  0
int3403_thermal        20480  0
pwm_lpss               16384  1 pwm_lpss_platform
ecc                    40960  1 ecdh_generic
int3406_thermal        16384  0
int340x_thermal_zone    20480  2 int3403_thermal,processor_thermal_device
acpi_thermal_rel       16384  1 int3400_thermal
soc_button_array       24576  0
acpi_pad              184320  0
intel_int0002_vgpio    16384  1
evdev                  28672  19
parport_pc             40960  0
ppdev                  24576  0
lp                     20480  0
parport                69632  3 parport_pc,lp,ppdev
fuse                  176128  1
loop                   32768  0
dm_mod                184320  0
efi_pstore             16384  0
configfs               57344  1
efivarfs               24576  1
ip_tables              36864  0
x_tables               61440  1 ip_tables
autofs4                53248  2
ext4                  983040  1
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  167936  1 ext4
crc32c_generic         16384  0
hid_generic            16384  0
usbhid                 65536  0
hid                   159744  2 usbhid,hid_generic
i915                 3055616  5
drm_buddy              20480  1 i915
i2c_algo_bit           16384  1 i915
drm_display_helper    184320  1 i915
cec                    61440  2 drm_display_helper,i915
mmc_block              57344  4
rc_core                69632  1 cec
ttm                    94208  1 i915
drm_kms_helper        212992  2 drm_display_helper,i915
crct10dif_pclmul       16384  0
crct10dif_common       16384  1 crct10dif_pclmul
xhci_pci               24576  0
crc32_pclmul           16384  0
xhci_hcd              315392  1 xhci_pci
crc32c_intel           24576  2
drm                   614400  8 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm
usbcore               348160  3 xhci_hcd,usbhid,xhci_pci
spi_pxa2xx_platform    36864  0
usb_common             16384  2 xhci_hcd,usbcore
lpc_ich                28672  0
button                 24576  0
video                  65536  2 int3406_thermal,i915
axp20x_i2c             16384  0
wmi                    36864  1 video
axp20x                 36864  1 axp20x_i2c
sdhci_acpi             28672  0
sdhci                  81920  1 sdhci_acpi
dw_dmac                16384  8
dw_dmac_core           40960  1 dw_dmac
mmc_core              212992  4 r8723bs,sdhci,mmc_block,sdhci_acpi
elias@RCADebian:~$ 

Code: Select all

ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 88:83:5d:39:de:55 brd ff:ff:ff:ff:ff:ff

arzgi
Posts: 1584
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 81 times

Re: The wifi connection disconnects randomly

#10 Post by arzgi »

Try rfkill, you might have to install it first.

Code: Select all

arto@dell:~$ sudo rfkill
[sudo] arto-käyttäjän salasana: 
ID TYPE      DEVICE      SOFT      HARD
 2 wlan      phy2   unblocked unblocked
27 bluetooth hci0   unblocked unblocked
Here have been also threads of wifi going to sleep mode, one possibility.

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: The wifi connection disconnects randomly

#11 Post by Aki »

Hello,

The kernel module r8723bs is in the staging tree of the kernel (more work is needed) [1][2].

The driven device is connected to the computer's hardware via the sdio bus (secure data bus) [3], and this is probably the reason why it does not appear in the list of devices reported by the lspci and lsusb commands. By the way, this is the first time that I have come across a device like this.

These are the kernel module details and parameters (parm):

Code: Select all

sbin/modinfo r8723bs
filename:       /lib/modules/6.1.0-25-amd64/kernel/drivers/staging/rtl8723bs/r8723bs.ko
version:        v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     64E3ED3A8B2F49C9F507D9F
alias:          sdio:c*v024CdB723*
alias:          sdio:c*v024Cd0627*
alias:          sdio:c*v024Cd0626*
alias:          sdio:c*v024Cd0623*
alias:          sdio:c*v024Cd0525*
alias:          sdio:c*v024Cd0523*
depends:        cfg80211,mmc_core,libarc4
staging:        Y
retpoline:      Y
intree:         Y
name:           r8723bs
vermagic:       6.1.0-25-amd64 SMP preempt mod_unload modversions 
sig_id:         PKCS#7
signer:         Debian Secure Boot CA
sig_key:        32:A0:28:7F:84:1A:03:6F:A3:93:C1:E0:65:C4:3A:E6:B2:42:26:43
sig_hashalgo:   sha256
signature:      2F:49:F2:DA:13:7F:E7:90:35:9D:B4:23:43:30:25:9C:DF:0C:F6:00:
		AC:C5:96:18:90:FB:0E:AF:4C:1A:FB:AB:34:29:12:9E:D9:51:3C:4E:
		50:7A:AE:7D:BB:57:77:97:B9:91:EA:8E:54:D8:EA:FD:0C:99:78:F1:
		76:45:76:22:16:CA:DC:EC:B4:CD:9C:C1:70:62:AF:75:D1:3C:1E:50:
		CF:EE:EB:C2:D5:6A:31:ED:E6:23:C5:C5:F8:DE:54:D1:5D:E7:DD:4E:
		01:7E:5A:5B:E3:BB:D5:0D:B3:49:F1:AE:D5:24:32:0E:34:36:82:AC:
		39:86:EF:1E:B3:8A:15:F8:F9:1A:A8:EE:27:48:3A:E5:82:93:06:61:
		0E:A3:16:7E:7E:9F:E8:09:14:B8:F3:0D:6D:D7:04:E7:D5:97:D5:C5:
		32:98:0F:C1:BA:A0:99:F8:94:0F:EB:34:3D:FC:3C:FF:A8:E3:6C:54:
		AF:09:F9:1C:C7:26:4A:39:DE:58:20:DC:6E:E4:BD:89:2A:07:97:9F:
		64:FC:70:1D:28:8E:33:ED:90:25:EA:3A:BB:56:29:89:29:12:AF:5E:
		9A:86:63:78:75:C0:15:16:D8:2E:10:CC:D8:7B:52:3B:B9:72:DD:6B:
		18:E5:84:BF:F6:3A:DA:A9:6B:13:A0:3B:79:35:7B:2D
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_ant_num:Antenna number setting (int)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
The values for many of the above parameters can be derived from the source code [4].

Firmware installation is probably required and is available via the firmware-realtek package [5]: is it installed?

Hope this helps.

--
[1] https://sources.debian.org/src/linux/6.1.94-1/drivers/staging/rtl8723bs/
[2] https://docs.kernel.org/process/2.Process.html#staging-trees
[3] https://www.sdcard.org/developers/sd-standard-overview/sdio-isdio/
[4] https://sources.debian.org/src/linux/6.1.94-1/drivers/staging/rtl8723bs/os_dep/os_intfs.c/?hl=93#L16
[5] https://packages.debian.org/bookworm/firmware-realtek
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

elias333
Posts: 6
Joined: 2024-06-06 15:22

Re: The wifi connection disconnects randomly

#12 Post by elias333 »

Hello, I tried the sudo rfkill list command and it shows me that the Bluetooth and WiFi devices are active and not blocked. I also tried blocking the WiFi device and then unlocking it and nothing changed.

I also tried installing these drivers (firmware-iwlwifi, firmware-realtek, firmware-realtek-rtl8723cs-bt) and after installing them I lost my WiFi connection and Bluetooth and now I can't access the internet. I will try to install the full system again, then I will keep trying.

Code: Select all

elias@RCADebian:~$ sudo rfkill list
[sudo] password for elias: 
Sorry, try again.
[sudo] password for elias: 
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
elias@RCADebian:~$ sudo rfkill block 0
elias@RCADebian:~$ sudo rfkill unblock 0
elias@RCADebian:~$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
elias@RCADebian:~$ 
elias@RCADebian:~$ sudo apt install firm
firm-phoenix-ware                  firmware-microbit-micropython-doc
firmware-amd-graphics              firmware-misc-nonfree
firmware-ast                       firmware-myricom
firmware-ath9k-htc                 firmware-netronome
firmware-atheros                   firmware-netxen
firmware-bnx2                      firmware-nvidia-gsp
firmware-bnx2x                     firmware-nvidia-tesla-gsp
firmware-brcm80211                 firmware-qcom-media
firmware-cavium                    firmware-qcom-soc
firmware-intel-sound               firmware-qlogic
firmware-ipw2x00                   firmware-realtek
firmware-ivtv                      firmware-realtek-rtl8723cs-bt
firmware-iwlwifi                   firmware-samsung
firmware-libertas                  firmware-siano
firmware-linux                     firmware-sof-signed
firmware-linux-free                firmware-ti-connectivity
firmware-linux-nonfree             firmware-tomu
firmware-microbit-micropython      firmware-zd1211
UPDATE:
Hello, I have the Realtek firmware and the settings I have made only cause the random WiFi disconnection to last 6 seconds.

Code: Select all

elias@CambioDebian:~$ dpkg -s firmware-realtek
Package: firmware-realtek
Status: install ok installed
Priority: optional
Section: non-free-firmware/kernel
Installed-Size: 6881
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: all
Multi-Arch: foreign
Source: firmware-nonfree
Version: 20230210-5
Suggests: initramfs-tools
Description: Binary firmware for Realtek wired/wifi/BT adapters
 This package contains the binary firmware for Realtek Ethernet, wifi and
 Bluetooth adapters supported by various drivers.
 .
 Contents:
  * Realtek RTL8192E boot code (RTL8192E/boot.img)
  * Realtek RTL8192E init data (RTL8192E/data.img)
  * Realtek RTL8192E main code (RTL8192E/main.img)
  * Realtek RTL8192EE Bluetooth firmware (rtl_bt/rtl8192ee_fw.bin)
  * Realtek RTL8192EU Bluetooth firmware (rtl_bt/rtl8192eu_fw.bin)
  * Realtek RTL8723AU rev A Bluetooth firmware (rtl_bt/rtl8723a_fw.bin)
  * Realtek RTL8723BU rev B Bluetooth firmware (rtl_bt/rtl8723b_fw.bin)
  * Realtek RTL8723BS Bluetooth config
    (rtl_bt/rtl8723bs_config-OBDA8723.bin,
    rtl_bt/rtl8723bs_config-OBDA0623.bin)
  * Realtek RTL8723BS Bluetooth firmware (rtl_bt/rtl8723bs_fw.bin)
  * Realtek RTL8723D Bluetooth config (rtl_bt/rtl8723d_config.bin)
  * Realtek RTL8723D Bluetooth firmware (rtl_bt/rtl8723d_fw.bin)
  * Realtek RTL8761A Bluetooth firmware (rtl_bt/rtl8761a_fw.bin)
  * Realtek RTL8761B Bluetooth config (rtl_bt/rtl8761b_config.bin)
  * Realtek RTL8761B Bluetooth firmware (rtl_bt/rtl8761b_fw.bin)
  * Realtek RTL8761BU Bluetooth config (rtl_bt/rtl8761bu_config.bin)
  * Realtek RTL8761BU Bluetooth firmware (rtl_bt/rtl8761bu_fw.bin)
  * Realtek RTL8812AE Bluetooth firmware (rtl_bt/rtl8812ae_fw.bin)
  * Realtek RTL8821A Bluetooth firmware (rtl_bt/rtl8821a_fw.bin)
  * Realtek RTL8821C Bluetooth config (rtl_bt/rtl8821c_config.bin,
    rtl_bt/rtl8821a_config.bin)
  * Realtek RTL8821C Bluetooth firmware (rtl_bt/rtl8821c_fw.bin)
  * Realtek RTL8822B Bluetooth config (rtl_bt/rtl8822b_config.bin)
  * Realtek RTL8822B Bluetooth firmware (rtl_bt/rtl8822b_fw.bin)
  * Realtek RTL8822CS Bluetooth config (rtl_bt/rtl8822cs_config.bin)
  * Realtek RTL8822CS Bluetooth firmware (rtl_bt/rtl8822cs_fw.bin)
  * Realtek RTL8822CU Bluetooth config (rtl_bt/rtl8822cu_config.bin)
  * Realtek RTL8822CU Bluetooth firmware (rtl_bt/rtl8822cu_fw.bin)
  * Realtek RTL8852AU Bluetooth config (rtl_bt/rtl8852au_config.bin)
  * Realtek RTL8852AU Bluetooth firmware (rtl_bt/rtl8852au_fw.bin)
  * Realtek RTL8852BU Bluetooth config (rtl_bt/rtl8852bu_config.bin)
  * Realtek RTL8852BU Bluetooth firmware (rtl_bt/rtl8852bu_fw.bin)
  * Realtek RTL8852CU Bluetooth config (rtl_bt/rtl8852cu_config.bin)
  * Realtek RTL8852CU Bluetooth firmware (rtl_bt/rtl8852cu_fw.bin)
  * Realtek RTL8105E-1 firmware (rtl_nic/rtl8105e-1.fw)
  * Realtek RTL8106E-1 firmware, version 0.0.1 (rtl_nic/rtl8106e-1.fw)
  * Realtek RTL8106E-2 firmware, version 0.0.1 (rtl_nic/rtl8106e-2.fw)
  * Realtek RTL8107E-1 firmware, version 0.0.2 (rtl_nic/rtl8107e-1.fw)
  * Realtek RTL8107E-2 firmware, version 0.0.2 (rtl_nic/rtl8107e-2.fw)
  * Realtek RTL8125 firmware (rtl_nic/rtl8125a-3.fw)
  * Realtek RTL8125B firmware (rtl_nic/rtl8125b-1.fw)
  * Realtek RTL8125B firmware (rtl_nic/rtl8125b-2.fw)
  * Realtek RTL8152/RTL8153 firmware (rtl_nic/rtl8153a-2.fw)
  * Realtek RTL8152/RTL8153 firmware (rtl_nic/rtl8153a-3.fw)
  * Realtek RTL8152/RTL8153 firmware (rtl_nic/rtl8153a-4.fw)
  * Realtek RTL8152/RTL8153 firmware (rtl_nic/rtl8153b-2.fw)
  * Realtek RTL8153C firwmare (rtl_nic/rtl8153c-1.fw)
  * Realtek RTL8156A firwmare (rtl_nic/rtl8156a-2.fw)
  * Realtek RTL8156B firwmare (rtl_nic/rtl8156b-2.fw)
  * Realtek RTL8111D-1/RTL8168D-1 firmware (rtl_nic/rtl8168d-1.fw)
  * Realtek RTL8111D-2/RTL8168D-2 firmware (rtl_nic/rtl8168d-2.fw)
  * Realtek RTL8168E-1 firmware (rtl_nic/rtl8168e-1.fw)
  * Realtek RTL8168E-2 firmware (rtl_nic/rtl8168e-2.fw)
  * Realtek RTL8168E-3 firmware, version 0.0.4 (rtl_nic/rtl8168e-3.fw)
  * Realtek RTL8168F-1 firmware, version 0.0.5 (rtl_nic/rtl8168f-1.fw)
  * Realtek RTL8168F-2 firmware, version 0.0.4 (rtl_nic/rtl8168f-2.fw)
  * Realtek's RTL8168fp/RTL8117 firmware (rtl_nic/rtl8168fp-3.fw)
  * Realtek RTL8168G-1 firmware, version 0.0.3 (rtl_nic/rtl8168g-1.fw)
  * Realtek RTL8168G-2 firmware, version 0.0.1 (rtl_nic/rtl8168g-2.fw)
  * Realtek RTL8168G-3 firmware, version 0.0.1 (rtl_nic/rtl8168g-3.fw)
  * Realtek RTL8168H-1 firmware, version 0.0.2 (rtl_nic/rtl8168h-1.fw)
  * Realtek RTL8168H-2 firmware, version 0.0.2 (rtl_nic/rtl8168h-2.fw)
  * Realtek RTL8402-1 firmware, version 0.0.1 (rtl_nic/rtl8402-1.fw)
  * Realtek RTL8411-1 firmware, version 0.0.3 (rtl_nic/rtl8411-1.fw)
  * Realtek RTL8411-2 firmware, version 0.0.1 (rtl_nic/rtl8411-2.fw)
  * Realtek RTL8188EE firmware (rtlwifi/rtl8188efw.bin)
  * Realtek RTL8188EU firmware (rtlwifi/rtl8188eufw.bin)
  * Realtek RTL8192CE/RTL8188CE firmware (rtlwifi/rtl8192cfw.bin)
  * Realtek RTL8192CE/RTL8188CE B-cut firmware
    (rtlwifi/rtl8192cfwU_B.bin)
  * Realtek RTL8188CE A-cut firmware, version 4.816.2011
    (rtlwifi/rtl8192cfwU.bin)
  * Realtek RTL8192CU/RTL8188CU UMC A-cut firmware
    (rtlwifi/rtl8192cufw_A.bin)
  * Realtek RTL8192CU/RTL8188CU UMC B-cut firmware
    (rtlwifi/rtl8192cufw_B.bin)
  * Realtek RTL8192CU/RTL8188CU fallback firmware
    (rtlwifi/rtl8192cufw.bin)
  * Realtek RTL8192CU/RTL8188CU TMSC firmware
    (rtlwifi/rtl8192cufw_TMSC.bin)
  * Realtek RTL8192DE firmware (rtlwifi/rtl8192defw.bin)
  * rtlwifi/rtl8192eu_ap_wowlan.bin
  * Realtek RTl8192EU non-WoWLAN firmware (rtlwifi/rtl8192eu_nic.bin,
    rtlwifi/rtl8192eefw.bin)
  * Realtek RTl8192EU WoWLAN firmware (rtlwifi/rtl8192eu_wowlan.bin)
  * Realtek RTL8192SE/RTL8191SE firmware, version 4.816.2011
    (rtlwifi/rtl8192sefw.bin)
  * Realtek RTL8192SU/RTL8712U firmware (rtlwifi/rtl8712u.bin)
  * Realtek RTL8723AU rev A wifi-with-BT firmware
    (rtlwifi/rtl8723aufw_A.bin)
  * Realtek RTL8723AU rev B wifi-with-BT firmware
    (rtlwifi/rtl8723aufw_B.bin)
  * Realtek RTL8723AU rev B wifi-only firmware
    (rtlwifi/rtl8723aufw_B_NoBT.bin)
  * Realtek RTL8723BE firmware, version 36 (rtlwifi/rtl8723befw_36.bin)
  * Realtek RTL8723BE firmware (rtlwifi/rtl8723befw.bin)
  * Realtek RTL8723BS BT firmware (rtlwifi/rtl8723bs_bt.bin)
  * Realtek RTl8723BU AP WoWLAN firmware
    (rtlwifi/rtl8723bu_ap_wowlan.bin, rtlwifi/rtl8723bs_ap_wowlan.bin)
  * Realtek RTl8723BU non-WoWLAN firmware (rtlwifi/rtl8723bu_nic.bin,
    rtlwifi/rtl8723bs_nic.bin)
  * Realtek RTl8723BU WoWLAN firmware (rtlwifi/rtl8723bu_wowlan.bin,
    rtlwifi/rtl8723bs_wowlan.bin)
  * Realtek RTL8723DE firmware (rtlwifi/rtl8723defw.bin)
  * Realtek RTL8723AE rev B firmware (rtlwifi/rtl8723fw_B.bin)
  * Realtek RTL8723AE rev A firmware (rtlwifi/rtl8723fw.bin)
  * Realtek RTL8821AEFW firmware (rtlwifi/rtl8812aefw.bin)
  * Realtek RTL8821AEFW wowlan firmware (rtlwifi/rtl8812aefw_wowlan.bin)
  * Realtek RTL8821AE firmware, version 29 (rtlwifi/rtl8821aefw_29.bin)
  * Realtek RTL8821AE firmware (rtlwifi/rtl8821aefw.bin)
  * Realtek RTL8821AE firmware (rtlwifi/rtl8821aefw_wowlan.bin)
  * Realtek RTL8822BE firmware (rtlwifi/rtl8822befw.bin)
  * Realtek 8821C firmware (rtw88/rtw8821c_fw.bin)
  * Realtek 8822BE firmware (rtw88/rtw8822b_fw.bin)
  * Realtek 8822CE firmware (rtw88/rtw8822c_fw.bin)
  * Realtek 8822C firmware (rtw88/rtw8822c_wow_fw.bin)
  * rtw88/rtw8723d_fw.bin
  * Realtek RTL8852A firmware, version v0.9.12.2 (rtw89/rtw8852a_fw.bin)
  * Realtek RTL8852B firmware, version v0.27.32.1
    (rtw89/rtw8852b_fw.bin)
  * Realtek RTL8852C firmware, version v0.27.56.10
    (rtw89/rtw8852c_fw.bin)
Homepage: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
I then changed information in a few files to try to fix the error:

I commented out each line in the file /etc/network/interfaces

I added this information to the file /etc/NetworkManager/NetworkManager.conf

Code: Select all

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=no
Then I made the wlan0 interface not turn off for power saving with the command: iwconfig wlan0 power off
iwconfig wlan0 power off.png
and in the file /etc/NetworkManager/system-connections/ within my connection file I added this so that it tries to reconnect to the network as many times as necessary.

Code: Select all

[connection]
autoconnect-retries=0

Post Reply