Wired connection / network service disabled after session idles out

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
mdzieg
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2023 7:35 am

Wired connection / network service disabled after session idles out

Post by mdzieg »

Hi,

I am new mint user and my only problem is newtork interface.

Everything works fine till i leave my computer on until screen gets locked. Not sure how much time is needed but when I come back and unlock with my password i see disabled networking.

I am unable to enable it with UI and also in the console.

I tried running:

Code: Select all

sudo /etc/init.d/networking restart
and

Code: Select all

sudo systemctl restart networking
The only solution at the moment is to reboot my computer which is super annoying.

Do any of you have an idea what is wrong and how to fix this?

My setup is latest XFCE Mint.
mdzieg
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2023 7:35 am

Re: Wired connection / network service disabled after session iddles out

Post by mdzieg »

i disabled for now session locking, i only left monitors setting so they get turned off
this is acceptable workaround but the problem with lockscreen and newtork services still remains
User avatar
karlchen
Level 22
Level 22
Posts: 17028
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Wired connection / network service disabled after session idles out

Post by karlchen »

Hello, mdzieg.

Please, provide your Linux Mint System Report.
The step by step instruction on how to share your Linux Mint System Report can be found in that post over there: How to post your Linux Mint System Information (inxi report)

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for more than 12 months now.
The Prophet's Song
mdzieg
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2023 7:35 am

Re: Wired connection / network service disabled after session idles out

Post by mdzieg »

that should be it:

Code: Select all

System:
  Kernel: 5.15.0-58-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: Xfce 4.16.0
    tk: Gtk 3.24.23 wm: xfwm dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: ASUSTeK product: N76VZ v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: N76VZ v: 1.0 serial: <superuser required> UEFI: American Megatrends
    v: N76VZ.214 date: 07/09/2013
CPU:
  Info: quad core model: Intel Core i7-3610QM bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 cache:
    L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 3102 high: 3122 min/max: 1200/3300 cores: 1: 3108 2: 3122 3: 3084 4: 3095
    5: 3104 6: 3103 7: 3099 8: 3108 bogomips: 36715
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: ASUSTeK N56VZ driver: i915 v: kernel
    ports: active: none off: LVDS-1 empty: VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166
  Device-2: NVIDIA GK107M [GeForce GT 650M] vendor: ASUSTeK N56VZ driver: nvidia v: 390.157
    pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:0fd1
  Device-3: Sunplus Innovation Asus Webcam type: USB driver: uvcvideo bus-ID: 1-1.3:3
    chip-ID: 1bcf:2883
  Device-4: Logitech Logitech Webcam C925e type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 3-2.1:4 chip-ID: 046d:085b
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915,nvidia display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 93 diag: 604mm (23.8")
  OpenGL: renderer: GeForce GT 650M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.157 direct render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
  Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0e1b
  Device-3: Logitech Logitech Webcam C925e type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 3-2.1:4 chip-ID: 046d:085b
  Sound Server-1: ALSA v: k5.15.0-58-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: AzureWave AW-NE186H
    driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0032
  IF: wlp3s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: ASUSTeK N56VZ driver: alx v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 1969:1091
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: TP-Link UB500 Adapter type: USB driver: btusb v: 0.8 bus-ID: 3-3:3 chip-ID: 2357:0604
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.1
    sub-v: 8a6b
Drives:
  Local Storage: total: 476.94 GiB used: 27.43 GiB (5.8%)
  ID-1: /dev/sda vendor: GOODRAM model: SSDPR-CX400-512-G2 size: 476.94 GiB speed: 6.0 Gb/s
    serial: <filter>
Partition:
  ID-1: / size: 467.89 GiB used: 13.71 GiB (2.9%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 5.2 MiB (1.0%) fs: vfat dev: /dev/sda1
Swap:
  Alert: No swap data was found.
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 8087:0024
  Device-1: 1-1.3:3 info: Sunplus Innovation Asus Webcam type: Video driver: uvcvideo rev: 2.0
    speed: 480 Mb/s chip-ID: 1bcf:2883
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 8087:0024
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Hub-6: 3-2:2 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1a40:0101
  Device-1: 3-2.1:4 info: Logitech Logitech Webcam C925e type: Video,Audio
    driver: snd-usb-audio,uvcvideo rev: 2.0 speed: 480 Mb/s chip-ID: 046d:085b
  Device-2: 3-2.2:5 info: SteelSeries ApS Sensei Ten type: HID,Mouse driver: hid-generic,usbhid
    rev: 1.1 speed: 12 Mb/s chip-ID: 1038:1832
  Device-3: 3-2.3:6 info: Kinesis Advantage2 Keyboard type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 29ea:0102
  Device-4: 3-3:3 info: TP-Link UB500 Adapter type: Bluetooth driver: btusb rev: 1.1
    speed: 12 Mb/s chip-ID: 2357:0604
  Hub-7: 4-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: 65.0 C mobo: N/A gpu: nvidia temp: 57 C
  Fan Speeds (RPM): cpu: 2700
Repos:
  Packages: apt: 2220
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https: //brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/git-core-ppa-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/git-core-ppa-jammy.gpg] https: //ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/microsoft-prod.list
    1: deb [arch=amd64,arm64,armhf] https: //packages.microsoft.com/debian/11/prod bullseye main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vera main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https: //updates.signal.org/desktop/apt xenial main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 307 Uptime: 2h 54m Memory: 15.51 GiB used: 4.21 GiB (27.1%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.3.0 alt: 11 Client: Unknown python3.10 client inxi: 3.3.13
mdzieg
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2023 7:35 am

Re: Wired connection / network service disabled after session idles out

Post by mdzieg »

ok, so nobody is able to help me with this annoying issue?
after one of the recent updates computer is locking again and i cannot enable network when logging back.
User avatar
coffee412
Level 6
Level 6
Posts: 1499
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: Wired connection / network service disabled after session idles out

Post by coffee412 »

I am on the Mate desktop but this should be similar in the menus:

First thing I would do is go into your menus and turn off power saving. Change what happens with closing the lid and other options - Change to shutdown.

Go to your screen saver and turn off locking the screen and password protect.

Then reboot and see if you are still having the problem.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
mdzieg
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2023 7:35 am

Re: Wired connection / network service disabled after session idles out

Post by mdzieg »

i changed to "do nothing" and i looks okay as it does not suspend the computer.
i also disabled suspend mode in systemd completely so it does not kick in
i do not care whether my computer is running or not, as long as the screen goes off - which it does

but something is not okay under the hoods
User avatar
coffee412
Level 6
Level 6
Posts: 1499
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: Wired connection / network service disabled after session idles out

Post by coffee412 »

Go see if power management of the wifi is on. I would turn it off.

Code: Select all

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Look for:

Code: Select all

[connection]
wifi.powersave = 3
Change the 3 to a 2.

Code: Select all

NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
NM_SETTING_WIRELESS_POWERSAVE_IGNORE  (1): don't touch existing setting
NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
NM_SETTING_WIRELESS_POWERSAVE_ENABLE  (3): enable powersave
See if that helps after a reboot.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
Post Reply

Return to “Networking”