0

I am complete beginner not much knowledge about Linux it would nice if anyone would help i am trying to fix it for long. This is my first post if there are any mistakes please forgive me.Sorry for such a long post and Thank You.

System Information

uname -a
Linux 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

i don't know will it matter or not but my laptop uses uefi firmware.

neofetch
            .-/+oossssoo+/-.               samarth@samarth-HP-Laptop-15s-dr1xxx 
        `:+ssssssssssssssssss+:`           ------------------------------------ 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.4 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: HP Laptop 15s-dr1xxx 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.13.0-40-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 hour, 23 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2397 (dpkg), 9 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.17 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: LoginIcons [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i5-10210U (8) @ 4.200GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel UHD Graphics 
      -+sssssssssssssssssyyyssss+-         GPU: NVIDIA GeForce MX130 
        `:+ssssssssssssssssss+:`           Memory: 2499MiB / 7754MiB 
            .-/+oossssoo+/-.

Network Device Details

sudo lshw -C network 
  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eno1
       version: 15
       serial: 84:2a:fd:cd:34:45
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.17.0-051700-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:16 ioport:4000(size=256) memory:b4304000-b4304fff memory:b4300000-b4303fff
  *-network
       description: Wireless interface
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlo1
       version: 00
       serial: 28:cd:c4:cc:8a:a3
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw_8821ce driverversion=5.17.0-051700-generic firmware=N/A ip=192.168.0.104 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:141 ioport:3000(size=256) memory:b4200000-b420ffff

I have tried the following :-

  1. I have changed the powersave mode like this : -
cat /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
[connection]
wifi.powersave = 2
  1. Tried by reading forums but after this disconnecting get reduced , but speed is still slow.
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/&usbcore.autosuspend=-1 /' /etc/default/grub
sudo update-grub
sudo systemctl reboot

Edited 3.sudo ip link set devName mtu 1492 solved the connection breaking issue for me.My default mtu is 1500 and mtu in router config is 1480 is it not a problem? But Network is still sometime slow.

Errors i found after 3rd are :-

journalctl -u NetworkManager
sup-iface[0x563452621110,wlo1]: connection disconnected (reason -4)

reason -4 means NM_DEVICE_STATE_REASON_CONFIG_FAILED now what would be the fix? and some errors on bootup

ifupdown: interfaces file /etc/network/interfaces doesn't exist
Error: failed to open /run/network/ifstate

1 Answers1

-1

I Updated DKMS from software and updates (gui),which solved my issue ,as there is no problem now for a week and no errors in journalctl too. Now i am using

dkms -V
dkms:2.8

and

dkms status
nvidia, 470.103.01, 5.13.0-40-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.13.0-40-generic, x86_64: installed
virtualbox, 6.1.32, 5.13.0-39-generic, x86_64: installed
virtualbox, 6.1.32, 5.13.0-40-generic, x86_64: installed