1

I am running Xubuntu 14.04 LTS on Dell Vostro 5470. Wifi connects automatically after starting the laptop. The main problem is that wifi is turned off by default when waking the laptop from suspend after closing the lid. I tried

sudo rfkill list all

both bluetooth and wifi are soft-blocked. I would like the wifi to automatically reconnect after waking the laptop without using FN key.

Thanks in advance

1 Answers1

0

I suggest you try:

gksudo gedit /usr/lib/pm-utils/sleep.d/99restartNM

Use nano or kate or leafpad if you don't have the text editor gedit.

Write the following file:

#!/bin/bash

case "$1" in
  hibernate)
    # put commands to run on hibernation here
    ;;
  thaw)
    # put commands to run when returning from hibernation here
    ;;
  suspend)
    # put commands to run on suspend here
    ;;
  resume) 
    # put commands to run when returning from suspension
    service network-manager restart
    ;;
esac

Proofread carefully and give special attention to spacing and punctuation; save and close the text editor. Reboot and test.

chili555
  • 61,330