Hibernation and Standby problems

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Hibernation and Standby problems

Postby youdkelon on Fri Apr 17, 2009 2:18 pm

Hey all, whenever I return from hibernation or standby, I can't seem to connect to the internet.

Anyone know how to fix it?

Thanks
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Linux Mint is funded by ads and donations.
 

Re: Hibernation and Standby problems

Postby AK Dave on Fri Apr 17, 2009 5:09 pm

Wired or Wireless?

Show me the output of the following:
Code: Select all
lspci -vvnn && lsmod && lsusb


I predict that you're using ndiswrapper for a Windows wifi driver on your hardware. Or you have rtl8187 hardware. This is classic ndiswrapper wifi behavior for which there is no fix, but only a workaround, at this time. The workaround will be for you to go to Windows Wireless, unload your wifi driver, and then reload it. Like magic, wifi will return within seconds. Or modprobe -r && modprobe your rtl8187 module.

There are a couple of wifi kernel modules that are similarly problematic. Note that it is technically not the driver or kernel module that has the problem, but the wifi chipset or firmware itself. Specifically at fault: usb powered wifi. Wifi on the pci bus doesn't seem to do this nearly as often in my experience, but on the usb bus (example: rtl8187 hardware) likes to do this a lot.

I use the following "fixwifi.sh" script, set executable and linked to a launcher icon:
Code: Select all
#! /bin/bash
  sudo modprobe -r rtl8187 && sudo modprobe 8187
  exit
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Hibernation and Standby problems

Postby youdkelon on Sat Apr 18, 2009 2:18 pm

AK Dave wrote:Wired or Wireless?

Show me the output of the following:
Code: Select all
lspci -vvnn && lsmod && lsusb


I predict that you're using ndiswrapper for a Windows wifi driver on your hardware. Or you have rtl8187 hardware. This is classic ndiswrapper wifi behavior for which there is no fix, but only a workaround, at this time. The workaround will be for you to go to Windows Wireless, unload your wifi driver, and then reload it. Like magic, wifi will return within seconds. Or modprobe -r && modprobe your rtl8187 module.

There are a couple of wifi kernel modules that are similarly problematic. Note that it is technically not the driver or kernel module that has the problem, but the wifi chipset or firmware itself. Specifically at fault: usb powered wifi. Wifi on the pci bus doesn't seem to do this nearly as often in my experience, but on the usb bus (example: rtl8187 hardware) likes to do this a lot.

I use the following "fixwifi.sh" script, set executable and linked to a launcher icon:
Code: Select all
#! /bin/bash
  sudo modprobe -r rtl8187 && sudo modprobe 8187
  exit


Yeah its wireless, thanks for the help. I will try it.
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby youdkelon on Sat Apr 18, 2009 2:21 pm

00:00.0 Host bridge [0600]: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller [8086:29c0] (rev 10)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel modules: intel-agp

00:01.0 PCI bridge [0604]: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port [8086:29c1] (rev 10)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fa000000-fe9fffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f9ffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

00:1c.0 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 [8086:27d0] (rev 01)
Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.1 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 [8086:27d2] (rev 01)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge: 00000000f8f00000-00000000f8ffffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1d.0 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 [8086:27c8] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 4: I/O ports at cc00 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.1 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 [8086:27c9] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 19
Region 4: I/O ports at c880 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.2 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 [8086:27ca] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 18
Region 4: I/O ports at c800 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.3 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 [8086:27cb] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin D routed to IRQ 16
Region 4: I/O ports at c480 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.7 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller [8086:27cc] (rev 01) (prog-if 20)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 0: Memory at f9ffbc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1) (prog-if 01)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
Memory behind bridge: feb00000-febfffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel modules: intel-rng, iTCO_wdt

00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
Latency: 0
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at ffa0 [size=16]
Kernel driver in use: ata_piix
Kernel modules: ata_piix

00:1f.2 IDE interface [0101]: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller [8086:27c0] (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 19
Region 0: I/O ports at c400 [size=8]
Region 1: I/O ports at c080 [size=4]
Region 2: I/O ports at c000 [size=8]
Region 3: I/O ports at bc00 [size=4]
Region 4: I/O ports at b880 [size=16]
Capabilities: <access denied>
Kernel driver in use: ata_piix
Kernel modules: ata_piix

00:1f.3 SMBus [0c05]: Intel Corporation 82801G (ICH7 Family) SMBus Controller [8086:27da] (rev 01)
Subsystem: Micro-Star International Co., Ltd. Device [1462:7529]
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin B routed to IRQ 6
Region 4: I/O ports at 0400 [size=32]
Kernel modules: i2c-i801

01:00.0 VGA compatible controller [0300]: nVidia Corporation GeForce 8400 GS [10de:0422] (rev a1)
Subsystem: nVidia Corporation Device [10de:0523]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M]
Region 3: Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
Region 5: I/O ports at dc00 [size=128]
[virtual] Expansion ROM at fe9e0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nvidia

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 02)
Subsystem: Micro-Star International Co., Ltd. Device [1462:529c]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 220
Region 0: I/O ports at e800 [size=256]
Region 2: Memory at f8fff000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at f8fe0000 (64-bit, prefetchable) [size=64K]
Expansion ROM at feaf0000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

04:01.0 Ethernet controller [0200]: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter [168c:0013] (rev 01)
Subsystem: Atheros Communications Inc. Device [168c:2051]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at febf0000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath_pci
Kernel modules: ath_pci

Module Size Used by
wlan_wep 14080 1
af_packet 25728 4
binfmt_misc 16904 1
rfcomm 44432 0
sco 18308 2
bridge 56980 0
stp 10628 1 bridge
bnep 20480 2
l2cap 30464 6 rfcomm,bnep
bluetooth 61924 6 rfcomm,sco,bnep,l2cap
ppdev 15620 0
cpufreq_conservative 14600 0
cpufreq_stats 13188 0
cpufreq_powersave 9856 0
cpufreq_userspace 11396 0
cpufreq_ondemand 14988 0
freq_table 12672 2 cpufreq_stats,cpufreq_ondemand
video 25104 0
output 11008 1 video
container 11520 0
pci_slot 12552 0
wmi 14504 0
sbs 19464 0
sbshc 13440 1 sbs
battery 18436 0
ipt_REJECT 11136 1
ipt_LOG 13700 4
xt_limit 10372 4
ipt_addrtype 10496 4
xt_state 10112 2
xt_tcpudp 11008 7
xt_conntrack 11904 2
ip6_tables 21008 0
nf_nat_irc 10240 0
nf_conntrack_irc 13348 1 nf_nat_irc
nf_nat_ftp 10880 0
nf_nat 25368 2 nf_nat_irc,nf_nat_ftp
nf_conntrack_ipv4 21900 6 nf_nat
nf_conntrack_ftp 15652 1 nf_nat_ftp
nf_conntrack 72032 8 xt_state,xt_conntrack,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp
iptable_filter 10752 1
ip_tables 19600 1 iptable_filter
x_tables 22916 9 ipt_REJECT,ipt_LOG,xt_limit,ipt_addrtype,xt_state,xt_tcpudp,xt_conntrack,ip6_tables,ip_tables
ac 12292 0
lp 17156 0
snd_hda_intel 381488 3
snd_pcm_oss 46848 0
snd_mixer_oss 22784 1 snd_pcm_oss
snd_pcm 83204 2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy 10884 0
snd_seq_oss 38528 0
snd_seq_midi 14336 0
snd_rawmidi 29824 1 snd_seq_midi
snd_seq_midi_event 15232 2 snd_seq_oss,snd_seq_midi
snd_seq 57776 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
psmouse 45200 0
snd_timer 29960 2 snd_pcm,snd_seq
nvidia 6909268 36
wlan_scan_sta 20608 1
serio_raw 13444 0
pcspkr 10624 0
i2c_core 31892 1 nvidia
ath_rate_sample 19968 1
parport_pc 39204 1
parport 42604 3 ppdev,lp,parport_pc
evdev 17696 6
snd_seq_device 15116 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ath_pci 99096 0
wlan 211952 5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
intel_agp 33724 0
snd 63268 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ath_hal 198864 3 ath_rate_sample,ath_pci
soundcore 15328 1 snd
shpchp 37908 0
pci_hotplug 35236 1 shpchp
button 14224 0
iTCO_wdt 18596 0
iTCO_vendor_support 11652 1 iTCO_wdt
agpgart 42184 2 nvidia,intel_agp
snd_page_alloc 16136 2 snd_hda_intel,snd_pcm
ext3 133256 1
jbd 55444 1 ext3
mbcache 16004 1 ext3
sd_mod 42264 3
sr_mod 22212 0
crc_t10dif 9984 1 sd_mod
cdrom 43168 1 sr_mod
sg 39732 0
pata_acpi 12160 0
ata_generic 12932 0
ata_piix 24580 2
r8169 35972 0
libata 177312 3 pata_acpi,ata_generic,ata_piix
scsi_mod 155212 4 sd_mod,sr_mod,sg,libata
dock 16656 1 libata
ehci_hcd 43276 0
uhci_hcd 30736 0
usbcore 148848 3 ehci_hcd,uhci_hcd
thermal 23708 0
processor 42156 1 thermal
fan 12548 0
fbcon 47648 0
tileblit 10880 1 fbcon
font 16512 1 fbcon
bitblit 13824 1 fbcon
softcursor 9984 1 bitblit
fuse 60828 3
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby AK Dave on Mon Apr 20, 2009 2:29 am

Here we find everything we need to know: wrote:04:01.0 Ethernet controller [0200]: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter [168c:0013] (rev 01)
Subsystem: Atheros Communications Inc. Device [168c:2051]
[...]
Kernel driver in use: ath_pci
Kernel modules: ath_pci


Is this computer an Acer Aspire One? This is a common problem with this Atheros chipset, and the best how-to walkthrough to fix it relates to this card in an Acer Aspire One. Basic problem: the installer uses the ath_pci kernel module instead of the ath5k kernel module. Read on for the fix:

Wireless module (https://help.ubuntu.com/community/Aspir ... pire%20One)

There has been some confusion as to which wireless driver provides the best performance and reliability. I have found the following:
o madwifi from kernel (ath_pci) - does not attach to hardware.
o ath5k from intrepid backports (ath5k) - connects to hardware, but experiences disconnects on medium to heavy wireless activity, and can not communicate with some AP's using WPA2 PSK.
o madwifi-hal from http://snapshots.madwifi-project.org/ (ath_pci) - Everything works.

I recommend using the most recent snapshot of madwifi-hal from http://snapshots.madwifi-project.org/

Code: Select all
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6*/
make
sudo make install
sudo modprobe ath_pci


You may have to append ath_pci to /etc/modules:

Code: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
ath_pci


This driver should work under all conditions. I have tested the driver under heavy load (3MB/s sustained for 2 hours, no hangup), tested for correct suspend/resume functionality, and verified it communicates correctly with WEP, WPA, WPA2, against recent Linksys, Dlink, and Cisco hardware.

Now you should create a script to restart the interface on awake from suspend mode, as it will otherwise hang. As root, create /etc/pm/sleep.d/00wireless:

Code: Select all
#
# Restart WiFi interface after suspension
#

case "$1" in
        resume|thaw)
                /sbin/ifconfig wifi0 down
                /sbin/ifconfig wifi0 up
        ;;
        *)
        ;;
esac

exit $?


Don't forget to make it executable:

Code: Select all
sudo chmod u+x /etc/pm/sleep.d/00wireless


Wireless LEDs

* the wireless leds need an entry in /proc
* with wireless on/off works, but there is no notification in Gui

"To get your wireless led to blink for you based on traffic, put these lines at the end of /etc/sysctl.conf."

Code: Select all
dev.wifi0.ledpin=3
dev.wifi0.softled=1


Then either reboot or do sysctl -p

The led on the front will now do the association blink, as well as blink based on wireless traffic.

All thanks to here: https://help.ubuntu.com/community/AspireOne
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Hibernation and Standby problems

Postby youdkelon on Thu Apr 23, 2009 9:24 pm

AK Dave wrote:
Here we find everything we need to know: wrote:04:01.0 Ethernet controller [0200]: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter [168c:0013] (rev 01)
Subsystem: Atheros Communications Inc. Device [168c:2051]
[...]
Kernel driver in use: ath_pci
Kernel modules: ath_pci


Is this computer an Acer Aspire One? This is a common problem with this Atheros chipset, and the best how-to walkthrough to fix it relates to this card in an Acer Aspire One. Basic problem: the installer uses the ath_pci kernel module instead of the ath5k kernel module. Read on for the fix:

Wireless module (https://help.ubuntu.com/community/Aspir ... pire%20One)

There has been some confusion as to which wireless driver provides the best performance and reliability. I have found the following:
o madwifi from kernel (ath_pci) - does not attach to hardware.
o ath5k from intrepid backports (ath5k) - connects to hardware, but experiences disconnects on medium to heavy wireless activity, and can not communicate with some AP's using WPA2 PSK.
o madwifi-hal from http://snapshots.madwifi-project.org/ (ath_pci) - Everything works.

I recommend using the most recent snapshot of madwifi-hal from http://snapshots.madwifi-project.org/

Code: Select all
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6*/
make
sudo make install
sudo modprobe ath_pci


You may have to append ath_pci to /etc/modules:

Code: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
ath_pci


This driver should work under all conditions. I have tested the driver under heavy load (3MB/s sustained for 2 hours, no hangup), tested for correct suspend/resume functionality, and verified it communicates correctly with WEP, WPA, WPA2, against recent Linksys, Dlink, and Cisco hardware.

Now you should create a script to restart the interface on awake from suspend mode, as it will otherwise hang. As root, create /etc/pm/sleep.d/00wireless:

Code: Select all
#
# Restart WiFi interface after suspension
#

case "$1" in
        resume|thaw)
                /sbin/ifconfig wifi0 down
                /sbin/ifconfig wifi0 up
        ;;
        *)
        ;;
esac

exit $?


Don't forget to make it executable:

Code: Select all
sudo chmod u+x /etc/pm/sleep.d/00wireless


Wireless LEDs

* the wireless leds need an entry in /proc
* with wireless on/off works, but there is no notification in Gui

"To get your wireless led to blink for you based on traffic, put these lines at the end of /etc/sysctl.conf."

Code: Select all
dev.wifi0.ledpin=3
dev.wifi0.softled=1


Then either reboot or do sysctl -p

The led on the front will now do the association blink, as well as blink based on wireless traffic.

All thanks to here: https://help.ubuntu.com/community/AspireOne
.

thanks for the help AK, It's not an acer, its a custom desktop. ill try what u said though.
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby AK Dave on Thu Apr 23, 2009 9:32 pm

The heart of the fix, the most relevant part, is this chunk of code:
Code: Select all
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6*/
make
sudo make install
sudo modprobe ath_pci


However, don't forget to do this first!
Code: Select all
sudo apt-get install build-essentials


If you read above, the heart of the fix is to 1) download and untar the source code for a kernel module from the madwifi project, b) compile said source to create an actual binary kernel module, and c) modprobe it into place (may also need to edit /etc/modules). Well, step (b) is guaran-freakin-teed to FAIL FAIL FAIL if you don't have build-essentials on your system. So lets make sure you have it.

kthxbai
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Hibernation and Standby problems

Postby youdkelon on Fri Apr 24, 2009 8:10 am

AK Dave wrote:The heart of the fix, the most relevant part, is this chunk of code:
Code: Select all
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6*/
make
sudo make install
sudo modprobe ath_pci


However, don't forget to do this first!
Code: Select all
sudo apt-get install build-essentials


If you read above, the heart of the fix is to 1) download and untar the source code for a kernel module from the madwifi project, b) compile said source to create an actual binary kernel module, and c) modprobe it into place (may also need to edit /etc/modules). Well, step (b) is guaran-freakin-teed to FAIL FAIL FAIL if you don't have build-essentials on your system. So lets make sure you have it.

kthxbai



Hey thanks again, Im a super noob at this, so first i need to (sudo apt-get install build-essentials), then the (wget http://snapshots.madwifi-project.org/ma ... t.tar.gz...)?
and after that it should work?
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby youdkelon on Fri Apr 24, 2009 8:13 am

hey i tried to get the pacakge, but this is what came up

sudo apt-get install build-essentials
[sudo] password for youdkelon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package build-essentials
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby AK Dave on Fri Apr 24, 2009 1:06 pm

drop the 's' and try again:
Code: Select all
sudo apt-get install build-essential
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Hibernation and Standby problems

Postby youdkelon on Sun Apr 26, 2009 10:09 am

Thanks for the help Ak, much appreciated.

One last question, how do I do these other steps?
I went to the etc folder but I couldn't find modules. I have no idea what I'm doing.
thanks again for the help.

AK Dave wrote:
You may have to append ath_pci to /etc/modules:

Code: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
ath_pci


This driver should work under all conditions. I have tested the driver under heavy load (3MB/s sustained for 2 hours, no hangup), tested for correct suspend/resume functionality, and verified it communicates correctly with WEP, WPA, WPA2, against recent Linksys, Dlink, and Cisco hardware.

Now you should create a script to restart the interface on awake from suspend mode, as it will otherwise hang. As root, create /etc/pm/sleep.d/00wireless:

Code: Select all
#
# Restart WiFi interface after suspension
#

case "$1" in
        resume|thaw)
                /sbin/ifconfig wifi0 down
                /sbin/ifconfig wifi0 up
        ;;
        *)
        ;;
esac

exit $?


Don't forget to make it executable:

Code: Select all
sudo chmod u+x /etc/pm/sleep.d/00wireless
youdkelon
Level 1
Level 1
 
Posts: 26
Joined: Tue Mar 31, 2009 10:46 am

Re: Hibernation and Standby problems

Postby nobitacu on Mon Apr 27, 2009 7:24 am

youdkelon wrote:Hey all, whenever I return from hibernation or standby, I can't seem to connect to the internet.

Anyone know how to fix it?

Thanks


Not sure if you've fixed this problem or not. However, I had the same problem on my laptop, only difference is, it's from coming out of Suspend, unless that's what you meant. Do make a backup copy of the file first before making changes, so in case it doesn't work, you can always replace the file again with the original backup, and it'll be as if nothing changed. Just save the file after you make the changes, then try it out. Let me know if this works for you or not.

Making Wireless work from Suspend.

In Root: Added the following to /usr/lib/pm-utils/sleep.d/10NetworkManager

case "$1" in
 hibernate|suspend)
  suspend_nm
  ;;
 thaw|resume)
  rmmod ath_pci
  modprobe ath_pci
  resume_nm
  ;;
 *) exit $NA
  ;;
esac
nobitacu
Level 1
Level 1
 
Posts: 12
Joined: Tue Mar 03, 2009 2:46 pm

Re: Hibernation and Standby problems

Postby zacbridgeman on Fri May 29, 2009 12:22 am

AK Dave, I had the exact same problem on my Sony Vaio laptop. I confirmed that it was the same Atheros card as well. I followed all of your instructions and now it works after suspend and hibernate like it is suppose to.

Thank you for putting all the knowledge to good use. My wife will let me keep Linux now.

Zac
zacbridgeman
Level 1
Level 1
 
Posts: 2
Joined: Fri May 29, 2009 12:15 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], deathwiz, Google Adsense [Bot], Mute Ant and 37 guests