LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 01-21-2013, 08:53 PM   #1
wrobertz
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
resuming after pm-suspend produce an rfkill hard block on WLAN0


I tried pm-suspend on my Dell Inspiron 17R laptop running Slackware 14. After resuming, most everything was fine, except that wlan0 has a hard block. If I do rfkill list, I get:
0: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: yes
1: dell-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes

I tried "rfkill unblock wlan" and even "rfkill unblock all", but neither work. So... at this point, I have no connection to the internet. (I'm writing this from another computer...)

This is the 1st time I've tried pm-suspend. By the way, I use wpa_supplicant to bring up wlan0. I've tried to bring restart the network but that didn't work:
/etc/rc.d/rc.inet1 restart
SIOCSIFFLAGS: Operation not possible due to RF-kill
rfkill: WLAN hard blocked
rfkill: WLAN hart blocked
Could not set interface wlan0 flats: Operation not possible due to RF-kill
...
I saw elsewhere that people had downgraded dhcpcd from 5.5.5-1 back to 5.5.4-1; haven't tried that yet. Current version of dhcpcd is 5.5.6.

Any thoughts? Thanks in advance!
 
Old 01-25-2013, 07:35 PM   #2
Tryptophan
LQ Newbie
 
Registered: Jan 2013
Location: Buenos Aires, Argentina
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Hi, i have the same problem here... I have a Dell Studio 1558 with Slackware 14.0 recently installed and i can't unblock the devices. I've tried "rfkill unblock wlan/all/0" and nothing happened, so i don't have internet on my Linux.

Any help would be appreciate..

Cheers
 
Old 01-26-2013, 05:31 AM   #3
wrobertz
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Tryptophan, first, I found that on my Dell laptop, Fn<F2> would unblock both the hard and soft blocks that rfkill did. (I had to reboot or suspend/resume for them to actually unblock.) Seems that /usr/lib/pm-utils/sleep.d/49bluetooth-generic does a 'rfkill block bluetooth', which also results in both soft and hard blocks on dell-wifi, which don't seem to be unblocked with a 'rfkill unblock ...'. So I removed the execute bit on this file: chmod -x /usr/lib/pm-utils/sleep.d/49bluetooth-generic so that it's no longer called by pm-suspend.

Next, my IT person from my previous job suggested the following:
echo 'SUSPEND_MODULES="uhci_hd button ehci_hd iwlwifi"' > /etc/pm/config.d/modules.
This will result in the wifi modules to be specifically unloaded before suspend and
reloaded after resume.

Finally, I found that although wifi (wlan0) had been properly resumed, I always have to restart dhcpcd:
dhcpcd -d -t 20 wlan0
It would be nice to have this done automatically after the wifi is resumed, but I haven't been able to figure out how to do this.

The above works for me, and I thus have added the acpi hook in /etc/acpi/acpi_handler.sh:
case "2" in
...
lid) pm-suspend
;;

Hope this helps!
 
Old 01-26-2013, 08:47 AM   #4
Tryptophan
LQ Newbie
 
Registered: Jan 2013
Location: Buenos Aires, Argentina
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Wrobertz, pressing fn+F2 was enough!!. Thank you so much for your help!! .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems after resuming from suspend to ram chessonly Linux - General 1 08-10-2012 08:55 AM
[SOLVED] After Resuming from suspend, my network is down and must be restarted bret381 Linux - Networking 3 04-06-2012 08:30 PM
[SOLVED] Internet is very slow after resuming from suspend jsteel Linux - Networking 9 06-18-2009 04:16 AM
monitor does not turn on after resuming from suspend nappaji Puppy 2 08-24-2006 09:19 PM
Software Suspend - freezes while resuming TazG Linux - Software 2 08-11-2004 11:19 AM


All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration