Choose style:

Author Topic: Internet Disabled when I suspend the Computer.  (Read 2301 times)

0 Members and 1 Guest are viewing this topic.

Offline psionx

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Internet Disabled when I suspend the Computer.
« on: July 01, 2014, 08:47:41 am »
My internet connection is disabled when I suspend the computer and after I log in again there is no way to reactivate it, only with a reboot.
Is this a bug, how can i get over it.

I have installed Peppermint OS 5 in a dual boot with Windows 7.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25660
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Internet Disabled when I suspend the Computer.
« Reply #1 on: July 01, 2014, 10:02:41 am »
After coming out of suspend, try opening a teminal and running
Code: [Select]
nmcli nm sleep false
if that brings your wirelesss back to life .. continue below.

Open a terminal and run
Code: [Select]
sudo touch /etc/pm/sleep.d/nm-resume.sh
then
Code: [Select]
sudo chmod +x /etc/pm/sleep.d/nm-resume.sh
then
Code: [Select]
sudo gedit /etc/pm/sleep.d/nm-resume.sh
when a BLANK file opens, make it read:-
Code: [Select]
#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
;;
*)
;;
esac
exit $?
SAVE the file, and exit gedit.

Now suspend/resume to test.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline psionx

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: Internet Disabled when I suspend the Computer.
« Reply #2 on: July 01, 2014, 04:27:50 pm »
Thank you for the quick answer.
I experienced this problem twice today but it's not happening anymore.  :)
If it happens again I will try the commands that you gave to me.

Thanks again,

P.S. I am really enjoying Peppermit, is the best distro so far. In the last two weeks I have tried Ubuntu, Xubuntu, Mint, Fedora, openSUSE, Manjaro, Debian etc...  ;)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25660
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Internet Disabled when I suspend the Computer.
« Reply #3 on: July 01, 2014, 06:47:52 pm »
Great news .. no point fixing it if it's no longer broken ..

That's some distinguished company you've placed us amongst, it's good to hear you're enjoying Peppermint :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec