Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm thrilled using wicd to connect to wireless networks. But when I suspend my laptop using the special keys, I just want to disconnect from wireless without having to use any kind of GUI or curses user interface. It says in the documentation that wicd works by sending DBUS messages, so presumably it's possible to write a command that talks to the daemon directly. But I can't figure out how.

Does anybody know by means of what shell command I can tell the wicd daemon to disconnect me from my wireless network?

share|improve this question

2 Answers 2

I haven't had much luck with wicd-cli, but this does seem to work:

wicd-cli -yx

See 'wicd-cli --help' for some very sparse documentation.

share|improve this answer
up vote 2 down vote accepted

I wound up just using

sudo ifdown --force wlan0

and I follow up by using modprobe to unload the drivers. It turns out that wicd copes with this brutality just fine, and on resume from suspend, I reload the drivers, run wicd-curses, and it graciously connects me to my preferred network.

I love wicd!

share|improve this answer

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.