since the installation of LM 19.1 I have problems with my laptop after suspend: If I had the WiFi on before its switched of now, and trying to get it back on results into the laptop freezing. If I dont try getting it back on, it will instead not properly shut down (i.e. being in shutdown loop for over 10h so i forcefully shut it down).
I have read a couple of other threads that deal with this problem:
But I couldn't really extract what this means for me. I've tried but failed to install a new driver and I'm not that happy with the solution "just don't use suspend" (I am using a laptop and it just automatically goes into suspend when i close the lid). I would also like to avoid going back to 18.2 as suggested in one of the posts.
On the German website "https://www.linuxmintusers.de" I got advice for a workaround (https://www.linuxmintusers.de/index.php?topic=56661.0): since the problem is not occuring if I switch of the wifi before suspending (I'm doing this manually rn), the idea was to have a script that does the switching of for me before suspending. Yet the code doesn't execute, or only after resuming.
Code to execute before suspending:
Code: Select all
#!/bin/sh case $1/$2 in pre/*) echo "aktivate $2..." /bin/sh -c 'play -v 1.0 /usr/share/mint-artwork/sounds/login.oga' /bin/systemctl stop network-manager.service /bin/sh -c 'play -v 1.0 /usr/share/mint-artwork/sounds/login.oga' /sbin/modprobe -rf ath10k_pci btusb /bin/sh -c 'play -v 1.0 /usr/share/mint-artwork/sounds/login.oga' ;; post/*) echo "wakeup from $2..." /bin/sh -c 'play -v 1.0 /usr/share/mint-artwork/sounds/login.oga' /sbin/modprobe ath10k_pci btusb /bin/sh -c 'play -v 1.0 /usr/share/mint-artwork/sounds/login.oga' /bin/systemctl start network-manager.service ;; esac
Code: Select all
System: Host: Bufis Kernel: 4.15.0-118-generic x86_64 bits: 64 Desktop: MATE 1.20.1 Distro: Linux Mint 19.1 Tessa Machine: Type: Laptop System: LENOVO product: 80M5 v: Lenovo U31-70 serial: <filter> Mobo: LENOVO model: Lenovo U31-70 v: No DPK serial: <filter> UEFI [Legacy]: LENOVO v: AFCN30WW(V2.02) date: 10/01/2015 Battery: ID-1: BAT1 charge: 25.9 Wh condition: 27.9/35.0 Wh (80%) CPU: Topology: Dual Core model: Intel Core i3-5010U bits: 64 type: MT MCP L2 cache: 3072 KiB Speed: 800 MHz min/max: 500/2000 MHz Core speeds (MHz): 1: 800 2: 801 3: 798 4: 798 Graphics: Device-1: Intel HD Graphics 5500 driver: i915 v: kernel Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 20.0.8 Audio: Device-1: Intel Broadwell-U Audio driver: snd_hda_intel Device-2: Intel Wildcat Point-LP High Definition Audio driver: snd_hda_intel Sound Server: ALSA v: k4.15.0-118-generic Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter> Device-2: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter driver: ath10k_pci IF: wlp3s0 state: up mac: <filter> Device-3: Atheros type: USB driver: btusb Drives: Local Storage: total: 465.76 GiB used: 341.11 GiB (73.2%) ID-1: /dev/sda vendor: Seagate model: ST500LM000-SSHD-8GB size: 465.76 GiB Partition: ID-1: / size: 453.58 GiB used: 341.10 GiB (75.2%) fs: ext4 dev: /dev/dm-0 ID-2: swap-1 size: 3.92 GiB used: 8.5 MiB (0.2%) fs: swap dev: /dev/dm-1 Sensors: System Temperatures: cpu: 45.0 C mobo: 45.0 C Fan Speeds (RPM): N/A