Jump to content


Photo

Wicd Redux


  • Please log in to reply
10 replies to this topic

#1 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 20 April 2011 - 01:35 AM

iinstall wicd as per their instructions

stop Network manager
create your wifi connection and mark it connect automatically this will also put wicd in the session autostart
run your session autostart gui remove BOTH wicd and NetworkManager from it...

replace /opt/pandora/scripts/op_wifi.sh with this:
#!/bin/sh
#
# Released under the GPL

# This script simply toggles internal WiFi on or off.
cd /
if [ "`lsmod | grep wl1251`" ]
then
	notify-send -u normal "WLAN" "WLAN is being disabled..." -i /usr/share/icons/hicolor/32x32/apps/nm-no-connection.png
	# this kills the gui too so it doesnt complain the daemon is down
	# we kill the daemon so that restarting the daemon connects any
	# automatic connections
	kill -9 `ps ax | grep wicd | grep -v grep | awk '{print $1}'`
	ifconfig wlan0 down
	ifconfig wlan1 down
	rmmod board_omap3pandora_wifi wl1251_sdio wl1251
else
	notify-send -u normal "WLAN" "WLAN is being enabled..." -i /usr/share/icons/hicolor/32x32/apps/nm-device-wired.png
	/etc/init.d/wl1251-init start
	# gui starts daemon if needed...
	wicd-gtk
fi
enjoy...

#2 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 20 April 2011 - 02:30 AM

so if I understand correctly, this is your howto for replacing NetworkManager with WICD... how does it fair with the "new" wifi driver as opposed to the standard HF5 driver?

#3 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 20 April 2011 - 06:03 AM

no idea, using hf5 stock booting from SD with many modifications, YMMV

#4 peelie

peelie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 381 posts

Posted 25 April 2011 - 11:38 PM

hi
canīt connect to my wifi using wicd says bad password?

#5 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 26 April 2011 - 05:01 AM

hi
try the correct password ?

#6 peelie

peelie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 381 posts

Posted 26 April 2011 - 07:36 AM

hi
try the correct password ?


:) i have - looking on the net seems either need to downgrade wicd or uninstall netmanager? whats best way to downgrade on pandora?

edit/

ah i may be using passphrase instead of passkey? will check when i get home!

Edited by peelie, 26 April 2011 - 07:47 AM.


#7 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 26 April 2011 - 07:45 AM

ensure that NetworkManager is *disabled* as I mentioned...

stop it running when your session starts

ensure it is not running with

ps ax | grep NetworkManager

#8 peelie

peelie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 381 posts

Posted 26 April 2011 - 11:22 AM


hi
try the correct password ?


:) i have - looking on the net seems either need to downgrade wicd or uninstall netmanager? whats best way to downgrade on pandora?

edit/

ah i may be using passphrase instead of passkey? will check when i get home!


edit2

ahah success!but seems you have to keep running killall NetworkManager after booting into Pandora?

edit3

sorted this by making killall script and running it from op_wifi script

Edited by peelie, 26 April 2011 - 12:17 PM.


#9 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 26 April 2011 - 03:25 PM

is there a cleaner way to disable network manager? What about uninstalling it completely?

#10 chris_c

chris_c

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male

Posted 26 April 2011 - 03:33 PM

is there a cleaner way to disable network manager? What about uninstalling it completely?

just preventing it running by deleting its links in /etc/rc5.d/ is more than sufficient, you could probably uninstall it with opkg
but I don't really see the point...

aside from the easier and more comprehensive configuration gui, wicd will be most useful if you are rolling your own debian install on
SD, by not having all the dependencies that NM has you're pulling a lot less in, as the NM cruff is there now it might be hard to find
out what of its dependencies you can remove without borking something else, I'm guessing that opkg's querying abilities ain't as good as
apt...

#11 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 26 April 2011 - 04:03 PM

it would surprise me if opkg couldn't handle dep issues for uninstalling as it seems to handle them just fine for installing. Booting to SD to learn about un/installing for angstrom has been an interesting process in and of itself. I have not looked into documentation as of yet, but I'm sure it should be just as functional as (apt, as you mentioned for Debian or...) pacman for Arch.

You can add an argument to the -R (remove) function of pacman to grab all the dependancies that are not tied to some other package (end command is "pacman -Rs xyz" vs "pacman -R xyz")... I'm pretty sure I saw something similar in "opkg --help", but am not remembering it at the moment and not posting this from my Pandora (yes, I was actually able to surgically detach it from my fingers for more than just eating, sleeping and going to the bathroom :P)... I wanna say the argument was --force-depends, but don't quote me on that. :D