You are not logged in.

#1 2013-05-07 12:48:44

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

[SOLVED] ALX driver breaking suspend / hibernation

UPDATE
Now the package in AUR have a patch that fixes problem with suspen/hibernation. Please test it!
Workaround described below is no longer needed.






Old workarount (no longer needed)
There is a bug in alx driver (for modern Atheros ethernet) that breaks suspend (in my case when I wake my Lenovo laptop without plugged power source and try suspend again I get only errors). Also after first suspend alx stops working (you have to reload module).

This is very basic workaround I've made after reading this section https://wiki.archlinux.org/index.php/Sy … stem-sleep . This script unloads alx module before suspend and loads it again after wake:

Step 1:

/usr/lib/systemd/system-sleep/alx.sh

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Going to $2..."
    modprobe -r alx
    ;;
  post/*)
    echo "Waking up from $2..."
    modprobe alx
    ;;
esac

Step 2:

# chmod a+x /usr/lib/systemd/system-sleep/alx.sh

Last edited by Druedain (2013-05-09 10:54:41)

Offline

#2 2013-05-07 14:53:54

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] ALX driver breaking suspend / hibernation

better post this bug in their ML, so the devs can workaround this issue.
http://lists.infradead.org/mailman/list … ed-drivers


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-05-07 14:59:26

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

Re: [SOLVED] ALX driver breaking suspend / hibernation

Do you know how to check if no one else posted bug report earlier? I've seen some reports on Launchpad with responses, but I don't know if Ubuntu devs post them upstrem. If yes, then I don't want to make mess with duplicated reports. Unfortunately I don't know how does mailing lists work, so I don't know how to check that.

Last edited by Druedain (2013-05-07 15:00:29)

Offline

#4 2013-05-07 15:10:44

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] ALX driver breaking suspend / hibernation

There is a thread already going on regarding this, please contribute in the ML.
http://lists.infradead.org/pipermail/un … 00074.html

A simple google search should get you started on using mailing lists.
https://www.google.com/search?q=how+doe … 20&bih=923

Last edited by hadrons123 (2013-05-07 15:11:03)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#5 2013-05-09 10:49:55

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

Re: [SOLVED] ALX driver breaking suspend / hibernation

There was already a patch. The owner of the package dkms-alx from AUR updated it with this patch and now suspend works out-of-the-box.

Thanks for you help hadrons123!

Offline

Board footer

Powered by FluxBB