You are not logged in.

#1 2013-04-26 13:57:01

HaMF
Member
From: Germany
Registered: 2007-07-21
Posts: 8

[solved] unload module alx on suspend fails

Hi!

I'm having trouble getting my ethernet card to work properly with  suspend to ram (pm-suspend). Its a Qualcomm Atheros AR8161 Gigabit Ethernet Adapter (builtin ethernet-card of the Asus N56VZ) that I'm running with the alx-module that I build from the compat-drivers (compat-drivers-3.9-rc2-2-su, so version 1.2.3 of the alx module) on kernel 3.8.8-2. The driver works fine except it breaks suspend. A first suspend works fine (see suspend.log, upper part), however, after resuming, NetworkManager does not detect a cable being plugged in. Trying to suspend again fails results in the lower part  of suspend.log. Removing and probing the module again (reload.log) seems to work fine and resets the whole thing (network works, one suspend works, all following do not work)

Logs see https://gist.github.com/anonymous/5467609

I created a file SUSPEND_MODULES="alx" /etc/pm/config.d/modules (rights 644) that as far as I understand is supposed to unload and load the module upon suspend and resume but for some reason this does not seem to work properly. Why is that, am I just missing a typo? How can I fix it?

Any help is appreciated! smile
  Hannes

PS:

 $ lspci -v
04:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)
	Subsystem: ASUSTeK Computer Inc. N56VZ
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at f7800000 (64-bit, non-prefetchable) [size=256K]
	I/O ports at d000 [size=128]
	Capabilities: [40] Power Management version 3
	Capabilities: [58] Express Endpoint, MSI 00
	Capabilities: [c0] MSI: Enable- Count=1/16 Maskable+ 64bit+
	Capabilities: [d8] MSI-X: Enable+ Count=16 Masked-
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [180] Device Serial Number [...]
	Kernel driver in use: alx

PPS: This bug is related and it has been reported that SUSPEND_MODULES is a workaround: https://bugs.launchpad.net/ubuntu/+sour … ug/1130037. There has just been a bug filled that is kind of related: https://bugs.archlinux.org/task/34971 but I'm not sure if its of any use if I postmy information there.
PPPS: This is also kind of related but does not provide any information http://askubuntu.com/questions/263867/u … -lid-close (I just list it for documentation purpose)

Last edited by HaMF (2013-05-07 14:02:50)

Offline

#2 2013-05-07 12:10:54

Druedain
Member
From: Poland
Registered: 2011-12-27
Posts: 51

Re: [solved] unload module alx on suspend fails

„Sleep hooks

Systemd does not use pm-utils to put the machine to sleep when using systemctl suspend, systemctl hibernate or systemctl hybrid-sleep; pm-utils hooks, including any custom hooks, will not be run. However, systemd provides two similar mechanisms to run custom scripts on these events.” – from wiki, so the sad thing is it's not as easy as in Ubuntu.

But (I guess) it's not impossible. I've got the same problem with ALX so I'm gonna try to make my own hook based on Wiki tips. Currently this Wiki page https://wiki.archlinux.org/index.php/Pm-utilspm is outdated (for Systemd user), so I'll try this section https://wiki.archlinux.org/index.php/Sy … management .

Offline

#3 2013-05-07 12:38:58

Druedain
Member
From: Poland
Registered: 2011-12-27
Posts: 51

Re: [solved] unload module alx on suspend fails

I think I found solution smile

https://bbs.archlinux.org/viewtopic.php … 5#p1269055

Last edited by Druedain (2013-05-07 12:48:54)

Offline

#4 2013-05-07 14:02:05

HaMF
Member
From: Germany
Registered: 2007-07-21
Posts: 8

Re: [solved] unload module alx on suspend fails

that works well. thanks!

Offline

#5 2013-05-09 10:56:54

Druedain
Member
From: Poland
Registered: 2011-12-27
Posts: 51

Re: [solved] unload module alx on suspend fails

Check the new version of package dkms-alx from AUR. Now it has patch that fixes suspend / hibernation issues. Workaround is no longer needed.

Offline

Board footer

Powered by FluxBB