Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I noticed that, when I unplugged my laptop, or closed/opened the lid, my wireless connection dropped, every time.

I tracked it down to pm-powersave, and made it stop, see below.

This could also cause repeated requests for network passwords.

share|improve this question
1  
Please post your solution as an answer to this question instead of including it in your question. –  N.N. Oct 13 '11 at 6:27
    
Reason: Because else it will pollute the list of unanswered questions. You may and should even accept your own answer if it is right, which avoids remarks from the system for low acceptance rate. –  user unknown Oct 13 '11 at 16:52
    
Thanks for pointing that out. I fixed it. –  waltinator Oct 13 '11 at 20:15
    
Well done, that's the way to self-document, woo! –  Jorge Castro Oct 13 '11 at 20:21
add comment

2 Answers

up vote 9 down vote accepted

I've found that /usr/sbin/pm-powersave turns OFF my wireless card when I switch to battery or suspend by closing the laptop's lid. I've gotten wireless to stay up between hibernates by executing sudo /usr/sbin/pm-powersave false. The man pm-powersave page says I can create an empty file /etc/pm/power.d/wireless to prevent /usr/lib/pm-utils/power.d/wireless from running and doing its magic. I've done it, and it works for me.

I found this by doing an ls -lrt /var/log just after the event, and looking at the last 100 so lines of the recently modified logs. I use this technique to start answering many questions about what my system just did.

share|improve this answer
add comment

Thank you for posting this! I went through mountains to find out why my wireless card is not working properly until I found this post. It worked for me too !

share|improve this answer
    
Hi, this should have been posted as a comment! :) Good to know that your problem is fixed too. –  oaskamay Apr 3 '13 at 20:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.