Lock screen and wifi are broken

Manjaro KDE (latest version, i'm careful with my updates :smiley: )
when I lock my screen and unlock it, I cannot connect to wifi. See post 6 (Lock screen and wifi are broken) for the solution.
For my previous bluetooth issue, I opened a seperate thread (Bluetooth gets disabled after unlocking of screen)

1 Like

Have you tried any of this beautiful writeup systemd services?

1 Like

:thinking: No, I'm not sure which one

We're not sure neither because we're missing the output of your:

inxi --full --verbosity=7 --filter 

:stuck_out_tongue_winking_eye: :innocent:

System:    Host: robotic Kernel: 5.4.27-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.3 
           tk: Qt 5.14.1 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 2325S3E v: ThinkPad X230 serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: LENOVO model: 2325S3E serial: <filter> UEFI [Legacy]: LENOVO v: G2ET92WW (2.52 ) date: 02/22/2013 
Battery:   ID-1: BAT0 charge: 17.4 Wh condition: 17.8/25.9 Wh (69%) volts: 16.2/14.8 model: SANYO 45N1019 type: Li-ion 
           serial: <filter> status: Unknown 
           Device-1: hid-34:88:5d:d2:15:c5-battery model: Keyboard K380 serial: N/A charge: N/A status: Discharging 
           Device-2: hidpp_battery_0 model: Logitech Wireless Mouse M215 2nd Gen serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
Memory:    RAM: total: 7.48 GiB used: 1.74 GiB (23.3%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: Dual Core model: Intel Core i5-3320M bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 L2 cache: 3072 KiB 
           bogomips: 20756 
           Speed: 1197 MHz min/max: 1200/3300 MHz Core speeds (MHz): 1: 1198 2: 1200 3: 1231 4: 1256 
           Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de 
           ds_cpl dtes64 dtherm dts epb ept erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida lahf_lm lm 
           mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pebs pge pln pni popcnt 
           pse pse36 pti pts rdrand rdtscp rep_good sep smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 
           tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt xtopology xtpr 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:0166 
           Display: x11 server: X.Org 1.20.7 driver: modesetting alternate: fbdev,intel,vesa compositor: kwin_x11 
           resolution: 1920x1200~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.3.5 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 chip ID: 8086:1e20 
           Sound Server: ALSA v: k5.4.27-1-MANJARO 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e v: 3.2.6-k port: 5080 bus ID: 00:19.0 
           chip ID: 8086:1502 
           IF: enp0s25 state: down mac: <filter> 
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel port: efa0 bus ID: 03:00.0 
           chip ID: 8086:0085 
           IF: wlp3s0 state: up mac: <filter> 
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: dynamic noprefixroute scope: global 
           IP v6: <filter> type: dynamic noprefixroute scope: global 
           IP v6: <filter> type: noprefixroute scope: link 
           WAN IP: <filter> 
Drives:    Local Storage: total: 119.24 GiB used: 21.42 GiB (18.0%) 
           ID-1: /dev/sda vendor: Toshiba model: THNSNF128GCSS size: 119.24 GiB speed: 6.0 Gb/s serial: <filter> rev: N102 
           scheme: MBR 
           Message: No Optical or Floppy data was found. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 116.87 GiB used: 21.42 GiB (18.3%) fs: ext4 dev: /dev/sda1 label: N/A 
           uuid: 8e62141f-65e2-4e28-86cc-9fdc12b28ee7 
Unmounted: Message: No unmounted partitions found. 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 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.2:3 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid 
           interfaces: 3 rev: 2.0 speed: 12 Mb/s chip ID: 046d:c52b 
           Device-2: 1-1.3:4 info: Upek TouchChip Fingerprint Coprocessor (WBF advanced mode) type: <vendor specific> 
           driver: N/A interfaces: 1 rev: 1.1 speed: 12 Mb/s chip ID: 147e:2020 
           Device-3: 1-1.4:5 info: Broadcom BCM20702 Bluetooth 4.0 [ThinkPad] type: <vendor specific> driver: btusb 
           interfaces: 4 rev: 2.0 speed: 12 Mb/s chip ID: 0a5c:21e6 serial: <filter> 
           Device-4: 1-1.6:6 info: Acer type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 5986:02d2 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip ID: 1d6b:0003 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 4-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 speed: 480 Mb/s chip ID: 8087:0024 
Sensors:   System Temperatures: cpu: 52.0 C mobo: 0.0 C 
           Fan Speeds (RPM): cpu: 1974 
Info:      Processes: 199 Uptime: 7m Init: systemd v: 244 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 running in: konsole 
           inxi: 3.0.37 

:stuck_out_tongue:

You have the iwlwifi driver, gleaned in bold below from your own output:

so this is the specific suspend service you're looking for:

:innocent:

2 Likes

Thank you! :smiley:
This seems to be working well as of now, so I'll leave this closed until it happens again (hopefully never)

1 Like

I unmarked your post as the solution, since one of the issues still occurs :frowning:

Wifi always works now. However, bluetooth doesn't work sometimes, and I have to dis and reconnect my bluetooth keyboard :confused:

I would load bluetooth 3-5 seconds after your wifi.

1 Like

Do I create all three of the services in the second one?
Also, what do you mean by

I would load bluetooth 3-5 seconds after your wifi.

If your bluetooth is working correctly at startup then you won't need the first start up service.

Generally if you are having conflicts between bluetooth and wifi it is best to load the wifi modules first and delay the startup of the bluetooth.

Disabling bluetooth coexistance can sometimes help.

Enter this command to create the required driver config file:

echo 'options bt_coex_active=0' | sudo tee /etc/modprobe.d/iwlwifi.conf
1 Like

It works at boot, so all I have to do is run echo 'options bt_coex_active=0' | sudo tee /etc/modprobe.d/iwlwifi.conf?

Simply run the command and reboot and see if things improve at all.

Haven't had an issue so far. I'll mark your answer as the solution if I don't have any more for a couple hours :stuck_out_tongue_winking_eye:

You can give the credit back to @Fabby if you figure things are all working better. I've got plenty of credits for solves already and Fabby deserves the credit as he is always super helpful.

I just toss a crumb or two out there these days as I'm not posting anywhere near as often as I used to.

Hopefully everything is resolved for you now.

2 Likes

Ok so they didn't improve ;(
The same issue actually worsened. now bluetooth is completely disabled after a lock screen for a long period of time

Oh wait lol - I replied at the exact same time!?
Also, I think your help is pretty useful

Post the service you wrote along with the output of lsusb.

I didn't write any services, simply ran echo 'options bt_coex_active=0' | sudo tee /etc/modprobe.d/iwlwifi.conf, unless you are talking about the iwlwifi service I wrote earlier, which was simply the one in Closing lid cause network deactivation

Here's the output of lsusb:

~ ❯ lsusb

Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 5986:02d2 Acer, Inc 
Bus 001 Device 005: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
Bus 001 Device 004: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Oooh Broadcom bluetooth. :sob:

Did you install any firmware from the AUR for your bluetooth?

If so which package did you install.

Did you not write the service @Fabby recommended for your wifi. You originally said that fixed your wifi issue.

What logitech device is using the unifying reciever?

Forum kindly sponsored by