Network and Suspend Issues

Archived topics about LMDE 1 and LMDE 2
Locked
kefka

Network and Suspend Issues

Post by kefka »

I'm currently experiencing a rather weird problem. I have an Aspire One 722. I have done everything necessary to get wireless working on the laptop, and it works perfectly. However, I have a strange problem connecting to a network at all after I suspend the computer. When I wake up from the suspend, everything looks fine, and all the possible wired and wireless connections are showing, but I cannot connect to them; If i try, I get spammed with the message "Wireless Network Disconnected" every 10 seconds or so. :? The only way to access a network is to reboot the computer.

I have seen that other people have had similar problems, but none of the solutions on the forum (or on any forum for that matter) have worked. I understand that wireless has problems on this laptop, but wireless works on a fresh reboot, so I'm at a loss.
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.
Sonsum

Re: Network and Suspend Issues

Post by Sonsum »

From what I've found, a lot of 12.04 Ubuntu counterparts can't get this laptop to resume from suspend at all.

I'm not sure if it will help your problem, but here's some useful Debian information regarding your laptop.

http://wiki.debian.org/InstallingDebian ... ireOne_722
titetanium
Level 2
Level 2
Posts: 81
Joined: Mon Jun 18, 2012 4:26 pm

Re: Network and Suspend Issues

Post by titetanium »

Hi,

If you have powertop, open a terminal and run it as sudo. If you don't have it, install it and then run sudo powertop in a terminal. Press the right arrow until tunables is showing. Look for the line "wireless powersaving for interface wlan0", wlan0 being what your wireless interface is called. Click on that line by pressing spacebar so it says bad. Press esc. Try suspending and resuming. It should have no problems connecting.

For a more permanent fix, you need to edit a certain file to turn wireless powersaving off globally. It should be /etc/pm/power.d/wireless, look for the block with this code:

Code: Select all

case $1 in
    true) wireless_powersave off ;;
    false) wireless_powersave off ;;
    *) exit $NA ;;
esac
and make sure the block looks exactly like this. If you don't have that file, copy it from /usr/lib/pm-utils/power.d/wireless and paste it into /etc/pm/power.d. Reboot and wireless will stick across suspend and hibernate.
halregen
Level 3
Level 3
Posts: 147
Joined: Fri Jul 12, 2013 5:40 am
Location: New Zealand

Re: Network and Suspend Issues

Post by halregen »

titetanium wrote:Hi,

If you have powertop, open a terminal and run it as sudo. If you don't have it, install it and then run sudo powertop in a terminal. Press the right arrow until tunables is showing. Look for the line "wireless powersaving for interface wlan0", wlan0 being what your wireless interface is called. Click on that line by pressing spacebar so it says bad. Press esc. Try suspending and resuming. It should have no problems connecting.

For a more permanent fix, you need to edit a certain file to turn wireless powersaving off globally. It should be /etc/pm/power.d/wireless, look for the block with this code:

Code: Select all

case $1 in
    true) wireless_powersave off ;;
    false) wireless_powersave off ;;
    *) exit $NA ;;
esac
and make sure the block looks exactly like this. If you don't have that file, copy it from /usr/lib/pm-utils/power.d/wireless and paste it into /etc/pm/power.d. Reboot and wireless will stick across suspend and hibernate.
I tried both of these solutions. The second one did not work. The first one, using powertop I could not get the space key to toggle "good" to "bad" in the line: "Good wireless powersaving for interface wlan0" I tried enter key instead that did notwork either. I had opened powertop with sudo.

Code: Select all

$ sudo powertop
Cannot load from file /var/cache/powertop/saved_results.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
RAPL device for cpu 0
RAPL device for cpu 0
Cannot load from file /var/cache/powertop/saved_parameters.powertop
Leaving PowerTOP
My system:
USB devices;

Code: Select all

$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
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 003 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 003 Device 003: ID 050d:845a Belkin Components F7D2101 802.11n Surf & Share Wireless Adapter v1000 [Realtek RTL8192SU]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PCI devices,

Code: Select all

$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 8 Series/C220 Series Chipset Family KT Controller (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation B85 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
It is a new home assembled PC.
How can I work this powertop.
Locked

Return to “LMDE Archive”