no wifi when laptop lid is closed

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mengus

no wifi when laptop lid is closed

Post by Mengus »

Im not sure this post is where it should be, but lets give it a try :)

Im trying to get my MSI GE70 2PE to run when laptop lid is closed. I set the Power management setting to 'do nothing' and did the same in gnome-tweak-tools. It didnt work.
I found a solution by editing /etc/systemd/logind.conf and setting HandleLidSwitch=ignore. Now the computer runs fine(I have external monitor plugged in).
However my wifi connection drops everytime I close the lid. the only way to turn it on again is by opening the lid and turning wifi off and then on again.

Im running mint 17 quiana cinnamon on a 64 bit machine.

Anyone knows how to solve this?

mintwifi output:

Code: Select all

-------------------------
* I. scanning WIFI PCI devices...
  -- Intel Corporation Wireless 3160 (rev 83)
      ==> PCI ID = 8086:08b3 (rev 83)
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:"GavleOpen"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 64:A0:E7:AF:40:72   
          Bit Rate=72.2 Mb/s   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=34/70  Signal level=-76 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:98   Missed beacon:0

-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr 44:8a:5b:46:ab:03  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:684889 (684.8 KB)  TX bytes:684889 (684.8 KB)

wlan0     Link encap:Ethernet  HWaddr 30:3a:64:3c:0f:b4  
          inet addr:10.3.9.120  Bcast:10.3.15.255  Mask:255.255.240.0
          inet6 addr: fe80::323a:64ff:fe3c:fb4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17341 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9162 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7228728 (7.2 MB)  TX bytes:1804712 (1.8 MB)

-------------------------
* V. querying DHCP...
RTNETLINK answers: File exists
-------------------------
* VI. querying nslookup google.com...
Server:		10.0.14.20
Address:	10.0.14.20#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.232.102
Name:	google.com
Address: 74.125.232.100
Name:	google.com
Address: 74.125.232.96
Name:	google.com
Address: 74.125.232.103
Name:	google.com
Address: 74.125.232.105
Name:	google.com
Address: 74.125.232.99
Name:	google.com
Address: 74.125.232.101
Name:	google.com
Address: 74.125.232.97
Name:	google.com
Address: 74.125.232.110
Name:	google.com
Address: 74.125.232.104
Name:	google.com
Address: 74.125.232.98
inxi -Fxz output:

Code: Select all

System:    Host: mengus-GE70-2PE Kernel: 3.13.0-24-generic x86_64 (64 bit, gcc: 4.8.2) 
           Desktop: Gnome Distro: Linux Mint 17 Qiana
Machine:   System: Micro-Star product: GE70 2PE version: REV:1.0
           Mobo: Micro-Star model: MS-1759 version: REV:0.B Bios: American Megatrends version: E1759IMS.519 date: 06/02/2014
CPU:       Quad core Intel Core i7-4710HQ CPU (-HT-MCP-) cache: 6144 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19951.5 
           Clock Speeds: 1: 800.00 MHz 2: 800.00 MHz 3: 800.00 MHz 4: 800.00 MHz 5: 2501.00 MHz 6: 800.00 MHz 7: 800.00 MHz 8: 800.00 MHz
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0 
           X.Org: 1.15.1 driver: nvidia Resolution: 1680x1050@60.0hz, 1680x1050@59.9hz 
           GLX Renderer: GeForce GTX 860M/PCIe/SSE2 GLX Version: 4.4.0 NVIDIA 340.24 Direct Rendering: Yes
Audio:     Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Card-2: Intel 8 Series/C220 Series Chipset High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-24-generic
Network:   Card-1: Intel Wireless 3160 driver: iwlwifi ver: in-tree: bus-ID: 05:00.0
           IF: wlan0 state: up mac: <filter>
           Card-2: Qualcomm Atheros Killer E2200 Gigabit Ethernet Controller driver: alx port: d000 bus-ID: 04:00.0
           IF: eth0 state: down mac: <filter>
Drives:    HDD Total Size: 1128.2GB (0.9% used) 1: id: /dev/sda model: HGST_HTS721010A9 size: 1000.2GB temp: 36C 
           2: id: /dev/sdb model: HFS128G3AMNB size: 128.0GB temp: 48C 
Partition: ID: / size: 102G used: 9.8G (11%) fs: ext4 ID: swap-1 size: 17.09GB used: 0.00GB (0%) fs: swap 
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:49C 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 209 Uptime: 47 min Memory: 1045.5/15968.2MB Runlevel: 2 Gcc sys: 4.8.2 Client: Shell inxi: 1.8.4 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

Hi,

try this

the ACPI lid-button may put it into suspend?

To stop, just disable the ACPI lid-button event.

Edit /etc/acpi/event/lidbtn and comment out the bottom two lines:

# /etc/acpi/events/lidbtn
# Called when the user closes or opens the lid
event=button[ /]lid # comment this out with a # at the beginning
action=/etc/acpi/lid.sh # same here

Reboot, and that should be it.
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

thanks for the reply. sadly, all that I find in the event folder is this:

Code: Select all

mengus@mengus-GE70-2PE /etc/acpi/events $ ls
asus-keyboard-backlight-down  asus-wireless-on  powerbtn
asus-keyboard-backlight-up    ibm-wireless      thinkpad-cmos
asus-wireless-off             lenovo-undock     tosh-wireless
maybe its possible to get it to call wireless-on script after I closed the lid?
It seems to be triggered by a hotkey. Not sure what key that would be though. perhaps the airplane key would trigger it?
Il give it a shot.
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

hehe, just noticed its pretty hard to push that button when lid is closed :roll:
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

:lol:
asus-wireless-on
check what's in there and check if you have the acpi-support installed (package manager)
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

yes. the acpi-support package is installed.
Its weird, the wireless will detect networks and try to connect to them but somehow it cant.
Is it possible to run that asus-wireless-on script somehow?
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

check in etc/pm/config.d if there is a file
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

etc/pm/config.d exists but is empty.
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

Hi,


seems there is a problem with suspend and hibernate on some machines with specific chipset.
However this should work (can't try it as I have another chip)

http://askubuntu.com/questions/452908/h ... d-in-14-04

Create a new file called /etc/polkit-1/localauthority/50-local.d/com.ubuntu.disable-suspend.pkla with the following contents:

[Disable suspend (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend when others are logged in (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no
ResultInactive=no
ResultAny=no

and then reboot.

This tells PolicyKit to automatically say "no" whenever anything asks if it's OK/possible to suspend. Logout menus will react to this by automatically removing the 'Suspend' menu choice.

I don't quite understand why, but the upower setting is needed for KDE but does not affect Unity. The login1 settings are needed for Unity but do not affect KDE.
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

the suspend button did indeed disapear, but the wireless still disconnects.
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

ok,

let's try this, edit etc/systemd/logind.conf and uncomment the line with #LidSwitchIgnoreInhibited=yes
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

still the same, this was a persistent one :)
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

Its weird that it can still see the networks, it just cant connect to anyone.
PatH57

Re: no wifi when laptop lid is closed

Post by PatH57 »

did you reboot? not sure what to try next.... :shock:
Mengus

Re: no wifi when laptop lid is closed

Post by Mengus »

yes, I did reboot. Also tried xfce to see if the problem is exclusivly cinnamon but yeah, no. no difference.
I have no idea either, its not the most important thing in the world I suppose, but it would be nice to get it to work.
thanks alot for the help though!
Locked

Return to “Networking”