maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers and shut down WLAN complitely [0.2.2 in extras] (https://talk.maemo.org/showthread.php?t=73682)

laasonen 2011-06-02 01:15

[ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers and shut down WLAN complitely [0.2.2 in extras]
 
Just coded a little status area applet which lets you switch between stock and bleeding edge drivers :) It also has a possibility to shut down WLAN complitely.

http://hosted.laasonen.net/attachment-LFGWWV.png

You can find it under name status-area-wlan-driver-selector-applet on extras-testing. Please vote, if you think its stable.

All ideas and feedback are welcome :)

How?
  • Install kernel-power (>=v46-wl1)
  • Download the bleeding edge drivers with the applets wizard, if you don't have them allready
  • First time when you bleeding edge drivers, it will ask for the folder where you saved the drivers, if you didn't use the applet's wizard

Applet is not showing up? You could try to run this as root:
Code:

apt-get install python python-hildondesktop
reboot
apt-get install --reinstall status-area-wlan-driver-selector-applet

My drivers are not located in MyDocs or memory card. How to select?
Code:

gconftool-2 --type string --set /apps/wlan_driver_selector/driver_folder /path/to/drivers/
Customized osso-wlan (optional)
Quote:

This fixes a bug where WLAN gets stuck, when you are connected to an
access point and go out-of-range.

WARNING: Installing this will break seamless upgrades to new PR versions.
Most likely you will have to reinstall normal osso-wlan version
before you can do OTA upgrades.

You can also skip this step, but keep in mind that the above mentioned bug
can occur. If this bug is triggered you have 3 options:
manually unset ssid, unload and reload driver or reboot your phone.
Run this as root:
Code:

apt-get install wget #If you don't have wget already
wget http://files.laasonen.net/osso-wlan_3.0.20+0m5-1_armel.deb
dpkg -i osso-wlan_3.0.20+0m5-1_armel.deb

Or click this on MicroB and then click "Open with App. manager".
Or download this with your PC, move it to your N900 and then open it with the file browser.

zylor 2011-06-02 01:38

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
But... how does this applet know from where does it need to pickup the drivers? Or they are included in the deb?

Mentalist Traceur 2011-06-02 01:45

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
I'm guessing it either
A: Assumes that the driver is in the default path, as per the instructions in the original package from lxp that they came in.
or
B: Performs epically awesome shell script voodoo, searching the system for a directory that has all of the files with the respective kernel module names in it, then saves that location to somewhere, then, if at some point it gets an error because those files are no longer there, it repeats the search.

Cuz B would be awesome...slow, but awesome.... but it's probably A.

Mentalist Traceur 2011-06-02 02:03

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Just looked at the source code - looks like (I skimmed, and I'm not that experienced with Python code making GUIs, so I might be reading this wrong), it's going to actually give you a menu to download the bleeding edge drivers, and then has a configuration option of pointing it to the directory where the bleeding edge drivers are.

laasonen 2011-06-02 02:11

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by Mentalist Traceur (Post 1020598)
Just looked at the source code - looks like (I skimmed, and I'm not that experienced with Python code making GUIs, so I might be reading this wrong), it's going to actually give you a menu to download the bleeding edge drivers, and then has a configuration option of pointing it to the directory where the bleeding edge drivers are.

Yes, it will ask for the folder where you have saved the drivers and then saves it to gconf. It has a download button which open the bleeding edge drivers's homepage on microb.

F2thaK 2011-06-02 02:15

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
is there issues with the bleeding edge?

edit: didnt realise the bleeding edge was free now either. cool. downloading!

do we need to extract the tar ?

laasonen 2011-06-02 02:25

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by F2thaK (Post 1020601)
is there issues with the bleeding edge?

edit: didnt realise the bleeding edge was free now either. cool. downloading!

I haven't had any issues, but I haven't used it much. Some people say it drains the battery faster, so I'm only using it when needed.

price 2011-06-02 02:31

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
I've installed it trough FAM but i'cant see it in status menu. i'm on CSSU.15

Mentalist Traceur 2011-06-02 02:33

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
I use the bleeding edge driver all the time. Some people do say there's battery issues, but I use it as my default driver all the time, and I see no noticeable battery life decrease.

laasonen 2011-06-02 02:36

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by F2thaK (Post 1020601)
do we need to extract the tar ?

Yes, the wl1251-maemo/binary/compat-wireless/ folder.

Quote:

Originally Posted by price (Post 1020615)
I've installed it trough FAM but i'cant see it in status menu. i'm on CSSU.15

I managed to successfully install it with FAM, HAM and APT :/ You could try to kill the hildon-status-menu and see, if it starts:
Code:

killall hildon-status-menu

shawwawa 2011-06-02 03:03

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
@laasonen,

This applet is definitely what I want all the time. Really cooool and useful .... thank you very much !

p.s.: I also saw that .deb has been located in the repos. :)

sr00t 2011-06-02 03:18

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
most long package name ever

F2thaK 2011-06-02 03:27

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
so we need to install kernel-46 wlan ? :( I dont want to downgrade from v47.......

laasonen 2011-06-02 03:35

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by F2thaK (Post 1020632)
so we need to install kernel-46 wlan ? :( I dont want to downgrade from v47.......

No, v47 works also.

maxximuscool 2011-06-02 03:39

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Do you need to use this with Kernel power? Can't it be done with stock kernel?
Kernel power makes my hildon-home goes nuts every 24hours. Stock kernel still doing good after 3days.

F2thaK 2011-06-02 03:48

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
how can you check the bleeding edge is in use?
with the applet when I select it to go to stock it says "stock already in use"

thanks

laasonen 2011-06-02 04:12

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by F2thaK (Post 1020639)
how can you check the bleeding edge is in use?
with the applet when I select it to go to stock it says "stock already in use"

thanks

If you are using bleeding edge drivers this shouldn't output anything:
Code:

cat /proc/modules | grep wl12xx
I seem have forgotten to add one line to postinst so it might give error about rights when enabling drivers.
This should fix it:
Code:

update-sudoers
Uploaded 0.1.0-3 which has this fixed.

Mentalist Traceur 2011-06-02 04:13

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Yes you have to use it with kernel-power. Stock doesn't support the right cfg80211 module (i.e. one that's a module and not statically compiled in).

f2that, as root:
Code:

lsmod|grep "wl12"
If there's a wl1251-spi in there, then most likely, the bleeding-edge one is loaded completely and correctly.

HellFlyer 2011-06-02 06:24

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Guys I cant install the applet. Everytime I try to do it I get this error

Code:

1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up status-area-wlan-driver-selector-applet (0.1.0-3) ...
Usage: update-python-modules [-v] [-c] package_directory [...]
update-python-modules [-v] [-c] package.dirs [...]
update-python-modules [-v] [-a|-f|-p]

update-python-modules: error: status-area-wlan-driver-selector-applet.dirs is not a recognized python-support module.
dpkg: error processing status-area-wlan-driver-selector-applet (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
status-area-wlan-driver-selector-applet
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nokia-N900:~#


Any help?

frostbyte 2011-06-02 06:28

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by HellFlyer (Post 1020700)
Guys I cant install the applet. Everytime I try to do it I get this error

Code:

1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up status-area-wlan-driver-selector-applet (0.1.0-3) ...
Usage: update-python-modules [-v] [-c] package_directory [...]
update-python-modules [-v] [-c] package.dirs [...]
update-python-modules [-v] [-a|-f|-p]

update-python-modules: error: status-area-wlan-driver-selector-applet.dirs is not a recognized python-support module.
dpkg: error processing status-area-wlan-driver-selector-applet (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
status-area-wlan-driver-selector-applet
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nokia-N900:~#


Any help?


Same error log for me as well.

laasonen 2011-06-02 06:57

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Uploaded new version to auto builder.

Meanwhile here is a .deb.

peppino 2011-06-02 07:13

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
IMHO, is better use always bleeding edge drivers. I have installed in /lib/modules so I load always these modules. The quality of wifi is improved with bleeding edge drivers. The bleeding edge drivers is NOT only for injection.

shawwawa 2011-06-02 07:39

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Hi laasonen,

The ver 0.1.0-4 got the same version upgrade issue as the ver0.1.0-3. :)


Code:

Get:1 http://repository.maemo.org fremantle/free status-area-wlan-driver-selector-applet 0.1.0-4 [8880B]
Fetched 8880B in 0s (13.7kB/s)                         
(Reading database ... 35787 files and directories currently installed.)
Preparing to replace status-area-wlan-driver-selector-applet 0.1.0-3 (using .../status-area-wlan-driver-selector-applet_0.1.0-4_armel.deb) ...
Unpacking replacement status-area-wlan-driver-selector-applet ...
Setting up status-area-wlan-driver-selector-applet (0.1.0-4) ...
Usage: update-python-modules [-v] [-c] package_directory [...]
      update-python-modules [-v] [-c] package.dirs [...]
      update-python-modules [-v] [-a|-f|-p]

update-python-modules: error: status-area-wlan-driver-selector-applet.dirs is not a recognized python-support module.
dpkg: error processing status-area-wlan-driver-selector-applet (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 status-area-wlan-driver-selector-applet
E: Sub-process /usr/bin/dpkg returned an error code (1)


laasonen 2011-06-02 07:40

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Maemo.org's builder doesn't seem to build my package like my scratchbox. I hope the fifth build will work correctly.

EDIT: Seems to work :)

cvetkov.i 2011-06-02 08:50

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Thanks :):):):) it was very borring to load it with Xtrem when i need the Driver.Now it is fatser and easy:D

F2thaK 2011-06-02 09:22

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
1 Attachment(s)
if i select bleeding edge then reboot, will bleeding edge still be loaded after reboot? thanks




Quote:

Originally Posted by laasonen (Post 1020642)
If you are using bleeding edge drivers this shouldn't output anything:
Code:

cat /proc/modules | grep wl12xx

tried it and it seems its not loaded? with v5

see attachment..thx

laasonen 2011-06-02 09:34

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by F2thaK (Post 1020790)
if i select bleeding edge then reboot, will bleeding edge still be loaded after reboot? thanks

It just loads the modules. It doesn't make any permanent changes. Maybe in later versions :rolleyes:

price 2011-06-02 12:37

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by laasonen (Post 1020618)
Yes, the wl1251-maemo/binary/compat-wireless/ folder.



I managed to successfully install it with FAM, HAM and APT :/ You could try to kill the hildon-status-menu and see, if it starts:
Code:

killall hildon-status-menu

i've tried to remove one of my status-applet and reinstall the wlan-driver-selector but i can't see them. what can i do? thank you

F2thaK 2011-06-02 13:05

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
sorry to ask this here, but how to permenantly install the bleeding edge drivers?

mrwormp 2011-06-02 14:48

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
[QUOTE=laasonen;1020642]If you are using bleeding edge drivers this shouldn't output anything:
Code:

cat /proc/modules | grep wl12xx
The first time i tried this code it works. but after a phone restart and loading the drivers the code output something even tho the app says bleeding edge is loaded so i am not sure if the drivers are really loaded. so is there another way to check if it is loaded.

Hotshot 2011-06-02 15:29

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Might need to give this a try!

moepda 2011-06-02 16:32

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by price (Post 1020910)
i've tried to remove one of my status-applet and reinstall the wlan-driver-selector but i can't see them. what can i do? thank you

likewise but no joy...

any help would be much appreciated

sr00t 2011-06-02 16:54

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
I have the wl1251-maemo drivers uncompressed.
Well, I put "Select location of Bleeding Edge drivers" and cannot find the correct path inside this folder.
Paths would be:
Code:

wl1251-maemo/binary
wl1251-maemo/binary/compat-wireless
wl1251-maemo/binary/kernel-power
wl1251-maemo/binary/osso-wlan
wl1251-maemo/patches
wl1251-maemo/patches/compat
wl1251-maemo/patches/compat-wireless
wl1251-maemo/patches/kernel-power
wl1251-maemo/patches/osso-wlan
wl1251-maemo/patches/wireless-testing
wl1251-maemo/source


What path should I choose to the applet to detect it?


edit: path is inside MyDocs. full path would be /home/user/MyDocs/wl1251-maemo/wl1251-maemo (yeah, double folder here).-

hstende 2011-06-02 17:38

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Like some others I can't get the status-applet showing.
I have tried restartedand rebooted the device but det apllet is not showing. I tried uninstalling another aplet and still I can't see the applet.

price 2011-06-02 17:43

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by moepda (Post 1021099)
likewise but no joy...

any help would be much appreciated

i define myself a noob. i use linux (maemo, ubuntu, xubuntu and linux mint) for 2 years and i love how it works. i don't know how to solve this problem and i wish someone can help me. i really appreciate a suggestion from a power-user. i've checked and all the dependencies are installed. i'm on power-kernel 47 and cssu .15.
i have also installed cpu-mem applet, simple-brightness applet, 2g-3g mode selector, and wlan-switcher.
can something of these applet conlict with driver-seletor?

sr00t 2011-06-02 17:52

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by price (Post 1021140)
i define myself a noob. i use linux (maemo, ubuntu, xubuntu and linux mint) for 2 years and i love how it works. i don't know how to solve this problem and i wish someone can help me. i really appreciate a suggestion from a power-user. i've checked and all the dependencies are installed. i'm on power-kernel 47 and cssu .15.
i have also installed cpu-mem applet, simple-brightness applet, 2g-3g mode selector, and wlan-switcher.
can something of these applet conlict with driver-seletor?

Maybe 2g/3g selector. I've got the rest installed and I see the applet (but I can't make it work, see two posts above ^).
So try seeing if that selector is causing you problems.

Mentalist Traceur 2011-06-02 18:04

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
A though on the applet not appearing for some people: This status menu applet is written in Python. Sometimes, when a status menu python applet is the first python program you install, the app managers **** up somehow, and something ends up not working, and the status menu applet you installed doesn't show up.

So, as an alternative, I recommend uninstalling and reinstalling, and if THAT doesn't fix it, uninstalling, installing python by itself first, with "apt-get install python" as root in x-terminal, and then trying to install the applet again.

mrwormp 2011-06-02 18:36

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
The app is not loading the drivers again for me. after I install the program, it worked but after a phone restart it did not work again even tho the app says that the drivers are loaded.

price 2011-06-02 19:19

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by Mentalist Traceur (Post 1021151)
A though on the applet not appearing for some people: This status menu applet is written in Python. Sometimes, when a status menu python applet is the first python program you install, the app managers **** up somehow, and something ends up not working, and the status menu applet you installed doesn't show up.

So, as an alternative, I recommend uninstalling and reinstalling, and if THAT doesn't fix it, uninstalling, installing python by itself first, with "apt-get install python" as root in x-terminal, and then trying to install the applet again.

thank you for the help mentalist ;) i've followed your instruction: i've unistalled all the applets and all the dependencies of python, i've rebooted the phone and then i've installed the driver-selector but it never appeared. now i've reinstalled all the programs. i'm waiting for new instruction. thank you very much

sr00t 2011-06-02 20:08

Re: [ANNOUNCE] Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
Quote:

Originally Posted by sr00t (Post 1021113)
I have the wl1251-maemo drivers uncompressed.
Well, I put "Select location of Bleeding Edge drivers" and cannot find the correct path inside this folder.
Paths would be:
Code:

wl1251-maemo/binary
wl1251-maemo/binary/compat-wireless
wl1251-maemo/binary/kernel-power
wl1251-maemo/binary/osso-wlan
wl1251-maemo/patches
wl1251-maemo/patches/compat
wl1251-maemo/patches/compat-wireless
wl1251-maemo/patches/kernel-power
wl1251-maemo/patches/osso-wlan
wl1251-maemo/patches/wireless-testing
wl1251-maemo/source


What path should I choose to the applet to detect it?


edit: path is inside MyDocs. full path would be /home/user/MyDocs/wl1251-maemo/wl1251-maemo (yeah, double folder here).-

Can someone help me with this please?


All times are GMT. The time now is 22:13.

vBulletin® Version 3.8.8