Sunday, January 27, 2013

dmesg junk with the EW7811-UN WiFi adapter

I posted awhile back on my Google+ account about my issues with the Edimax EW7811-UN WiFi adapter that worked great with the RasPi, but got no love under Ubuntu. It's an awesome little device...when it works...and it's so tiny! Anyway, a cool cat named Cian McGovern has a great write-up (don't forget to go to the Comment he mentions in the post) at http://www.cianmcgovern.com/getting-the-edimax-ew-7811un-working-on-linux/

One other issue - by default the Realtek driver has power saving turned on. What you get is a whole buncha crap like this in dmesg:

[ 1139.170000] rtl8192c_dm_RF_Saving(): RF_Normal
[ 1139.170000] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 1139.850000] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save.. 

[ 1139.850000] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 1141.170000] rtl8192c_dm_RF_Saving(): RF_Save
[ 1145.170000] rtw_set_ps_mode(): Enter 802.11 power save mode...

I noticed the same junk spilling into dmesg on my Raspberry Pi, and I saw a lot of messages doing a Google search with people wanting to get rid of all this debug(?) stuff. I believe there's flags when you compile the driver to shut it off at that level, but even easier is to:
  1. Create a file called 8192cu.conf in /etc/modprobe.d
  2. In that file put "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" (without the quotes)
  3. Easiest thing to do after you've created the file is to restart your box.
The above is love from http://linux-sunxi.org/Wifi, and whomever wrote that is now my new best friend for the day - to bad there's only 3 more hours in this day. :-)

No comments:

Post a Comment