Last visit was: It is currently 24/10/2014, 13:56


All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: N140 Karmic Realtek 8192E WiFi
PostPosted: 29/11/2009, 14:28 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
Hi all,

I received my N140 on Friday and so I've been busily getting Karmic NBR up and running on it this weekend. The nc10 scripts seem like a great start though I still have a number of issues with Fn keys not working etc at the moment. But anyway, first things first - the wifi...

My N140 (UK model) came with a Realtek 8192e network card which didn't work with the initial Karmic NBR install. I was able to get it working using ndiswrapper very quickly though (for anyone looking for how to do that it was simply a case of downloading the windows driver zip from samsung and unpacking it in a temporary location; then using the Ubuntu Software Center to install 'Windows Wireless Drivers' package, running that and pointing it at the .inf in the windows driver zip).

I had installed the nc10-scripts package as described in this forum and the next step was to test turning the wifi on/off with Fn+F9, which didn't work. I then found that 'sudo nc10 wifi on/off' didn't work either. So then I looked into the mechanism used by the scripts and here's what I found:

If I try turning off the wlan0 txpower with 'sudo iwconfig wlan0 txpower off' then the wifi disconnects from the access point and tries to reconnect again (spinning icon in the panel), eventually failing. Viewing the output of iwconfig however still shows 'Tx-Power:20 dBm' which means that the nc10 script assumes that the txpower is still on.

Switching the txpower back to normal with 'sudo iwconfig wlan0 txpower auto' allows the wifi to reconnect again. Sometimes it seems to try to reconnect straight away, without any user intervention, once I issue that command and it seems like when that happens I get prompted for the WPA key again. I cancel that and then use the panel applet to select my access point again and it then seems to connect to it fine using my stored credentials etc.

So, the above method of using txpower doesn't seem to work well with ndiswrapper from what I can tell. Instead, using the modprobe method as per previous versions of the nc10 wifi script seems to work well.

I can turn off the wifi with 'sudo modprobe -r ndiswrapper' and then turn it back on with 'sudo modprobe ndiswrapper' and at that point it connects back to my access point just fine.

So I reverted '/etc/default/nc10-scripts' and '/usr/lib/nc10/wifi.sh' back to how they were as of revision 21 and now the 'sudo nc10 wifi on/off' seems to work fine (though the wifi led is still constantly lit).

The Fn+F9 key press still doesn't work for me, but I'll look into that separately.

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 29/11/2009, 15:12 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
Hi and welcome to the forum :)

Thanks for reporting the problem, I can only test my scripts on my NC10 so I didn't know about it.
Then, I will add back the module removal method, along with the new iwconfig method, and a new option in /etc/default/nc10-scripts to select which method to use.

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 29/11/2009, 15:38 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
New package on the repository, changelog:
Code:
nc10-scripts (4.0~ppa6~nc10~karmic) karmic; urgency=low

  * Add back the module removal method for toggling wireless,
    along with the new iwconfig method.
  * Add a new option in '/etc/default/nc10-scripts' to select
    which method to use.

;)

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 29/11/2009, 18:09 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
voRia wrote:
New package on the repository, changelog:
Code:
nc10-scripts (4.0~ppa6~nc10~karmic) karmic; urgency=low

  * Add back the module removal method for toggling wireless,
    along with the new iwconfig method.
  * Add a new option in '/etc/default/nc10-scripts' to select
    which method to use.

;)


Thanks! I've just upgraded and tested it, works great. Thanks for the fast update :)

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 01/01/2010, 13:49 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
FYI, tigerbright on the sammynetbook.com forums has posted details of a native Linux driver for the 8192e that he/she obtained from realtek. I haven't tried it yet, but it sounds promising. See this post for details: http://sammynetbook.com/plugins/forum/f ... .php?43545

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 01/01/2010, 17:26 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
marshmn wrote:
FYI, tigerbright on the sammynetbook.com forums has posted details of a native Linux driver for the 8192e that he/she obtained from realtek. I haven't tried it yet, but it sounds promising. See this post for details: http://sammynetbook.com/plugins/forum/f ... .php?43545


I've now tested this out myself and can confirm that it works. In order to use it with the nc10-scripts I used the following settings in /etc/default/nc10-scripts:

Code:
WIRELESS_TOGGLE_METHOD=1
WIRELESS_MODULE="r8192e_pci"


(Note: I tried WIRELESS_TOGGLE_METHOD=0, but it gave an error that the operation is not supported by this card/driver).

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 03/01/2010, 15:39 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
Good to know. :)
Then I'll create a new package and I'll add it to the repo, containing this driver, for a fast and easy installation on ubuntu.
Give me some days. ;)

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 04/01/2010, 8:26 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
voRia wrote:
Good to know. :)
Then I'll create a new package and I'll add it to the repo, containing this driver, for a fast and easy installation on ubuntu.
Give me some days. ;)


Hi voRia,

This sounds good. One word of caution - I've been having problems with suspend/resume since installing this driver - with this module loaded the resume hangs. If I rmmod the module before the suspend then the resume works fine, but as I understand it the system is meant to remove network drivers automatically before the suspend so I'm not sure what's going on yet.

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 10/01/2010, 15:20 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
I've played around with the suspend/resume some more. The only way that I've so far managed to get this to work is to modify the following section in /usr/lib/pm-utils/sleep.d/55NetworkManager:

Code:
case "$1" in
        hibernate|suspend)
                modprobe -r r8192e_pci
                suspend_nm
                ;;


This removes the module before suspending network manager. Note that there is no need to re-insert the module on resume since the nc10-scripts take care of that nicely :)

Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 11/01/2010, 13:59 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
There is a new package on my experimental repository called "n140-wireless".
It installs the realtek driver for the latest kernel, along with a new pm rule which removes the module during the suspend/hibernate process, as you stated it's needed.

By installing the driver manually with the original Makefile, 2 other pm scripts are installed, but I don't know if they are really needed so I did not include them in 'n140-wireless'. Please test the package and let me know if everything work good or if the above original scripts are needed.

It's better if you completely uninstall the realtek driver installed manually and revert any change you have manually done to get it working properly, prior to test my package.

Cheers. ;)

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 11/01/2010, 23:54 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
I did a 'make uninstall' to remove my manually installed module, and backed out the config change I'd added to unload the module on suspend.

I then added the module from your experimental repository and can confirm that it seems to be working fine. I can connect to the wifi and suspend/resume works perfectly, so it looks good to me :)

Many thanks,
Matt


Top
 Profile  
 
 Post subject: Re: N140 Karmic Realtek 8192E WiFi
PostPosted: 22/01/2010, 23:57 
Newbie
Newbie

Joined: 29/11/2009, 14:10
Posts: 29
Just in case anyone comes across this thread looking for the solution... this module is now provided in voria's main ppa repository. So if you have the ppa in your sources you simply need to install the 'samsung-wireless' package.

Matt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki