Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Wlan disappeared after suspend
Date: Tue, 13 Sep 2016 12:08:55
Message-Id: 72ddea8d-cf3d-74a3-3700-9ce6397be500@gentoo.org
In Reply to: [gentoo-user] Wlan disappeared after suspend by Bertram Scharpf
1 On 09/13/2016 04:23 AM, Bertram Scharpf wrote:
2 > Hi,
3 >
4 > after suspend, my wlan is dead and it cannot be restarted....
5 >
6 > What do I have to try?
7
8 I had this same problem with the ath5k driver (still do, I bet)
9 on my Thinkpad x61s. What happens if you run "sudo rfkill list"
10 after you resume from suspend? Does it show that the wireless is
11 "hard blocked"?
12
13 In my case, it was, so I tried something stupid. I patched my kernel
14 to answer "no" to the question "is rfkill enabled?"... and it worked!
15
16 --- a/drivers/net/wireless/ath/ath5k/rfkill.c 2012-05-28 21:16:04.000000000 -0400
17 +++ b/drivers/net/wireless/ath/ath5k/rfkill.c 2012-05-28 21:17:17.000000000 -0400
18 @@ -66,10 +66,8 @@
19 static bool
20 ath5k_is_rfkill_set(struct ath5k_hw *ah)
21 {
22 - /* configuring GPIO for input for some reason disables rfkill */
23 - /*ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio);*/
24 - return ath5k_hw_get_gpio(ah, ah->rf_kill.gpio) ==
25 - ah->rf_kill.polarity;
26 + /* Hard code this to work around a stupid bug. */
27 + return 0;
28 }
29
30 static void
31
32 Maybe you can do the same thing for your driver, if rfkill is actually the issue.
33 I have a possibly outdated writeup of the issue here:
34
35 http://michael.orlitzky.com/articles/thinkpad_x61s_ath5k_rfkill_issues.php

Replies

Subject Author
[gentoo-user] Emerge interferes with Git (Was: Wlan disappeared after suspend) Bertram Scharpf <lists@×××××××××××××××.de>
Re: [gentoo-user] Wlan disappeared after suspend Bertram Scharpf <lists@×××××××××××××××.de>