public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <mjo@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Wlan disappeared after suspend
Date: Tue, 13 Sep 2016 08:08:39 -0400	[thread overview]
Message-ID: <72ddea8d-cf3d-74a3-3700-9ce6397be500@gentoo.org> (raw)
In-Reply-To: <20160913082326.GA38638@becker.bs.l>

On 09/13/2016 04:23 AM, Bertram Scharpf wrote:
> Hi,
> 
> after suspend, my wlan is dead and it cannot be restarted....
> 
> What do I have to try?

I had this same problem with the ath5k driver (still do, I bet)
on my Thinkpad x61s. What happens if you run "sudo rfkill list"
after you resume from suspend? Does it show that the wireless is
"hard blocked"?

In my case, it was, so I tried something stupid. I patched my kernel
to answer "no" to the question "is rfkill enabled?"... and it worked!

--- a/drivers/net/wireless/ath/ath5k/rfkill.c	2012-05-28 21:16:04.000000000 -0400
+++ b/drivers/net/wireless/ath/ath5k/rfkill.c	2012-05-28 21:17:17.000000000 -0400
@@ -66,10 +66,8 @@
 static bool
 ath5k_is_rfkill_set(struct ath5k_hw *ah)
 {
-	/* configuring GPIO for input for some reason disables rfkill */
-	/*ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio);*/
-	return ath5k_hw_get_gpio(ah, ah->rf_kill.gpio) ==
-							ah->rf_kill.polarity;
+        /* Hard code this to work around a stupid bug. */
+        return 0;
 }
 
 static void

Maybe you can do the same thing for your driver, if rfkill is actually the issue.
I have a possibly outdated writeup of the issue here:

http://michael.orlitzky.com/articles/thinkpad_x61s_ath5k_rfkill_issues.php



  reply	other threads:[~2016-09-13 12:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  8:23 [gentoo-user] Wlan disappeared after suspend Bertram Scharpf
2016-09-13 12:08 ` Michael Orlitzky [this message]
2016-09-13 13:12   ` [gentoo-user] Emerge interferes with Git (Was: Wlan disappeared after suspend) Bertram Scharpf
2016-09-13 15:12     ` Rich Freeman
2016-09-13 15:19       ` Michael Orlitzky
2016-09-13 17:49       ` Bertram Scharpf
2016-09-17  8:31         ` [gentoo-user] " Kai Krakow
2016-09-17 13:54           ` Bertram Scharpf
2016-09-17 14:36             ` Rich Freeman
2016-09-17 15:18               ` Kai Krakow
2016-09-18  2:41               ` Bertram Scharpf
2016-09-13 13:18   ` [gentoo-user] Wlan disappeared after suspend Bertram Scharpf
2016-09-13 13:22     ` Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72ddea8d-cf3d-74a3-3700-9ce6397be500@gentoo.org \
    --to=mjo@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox