maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Disable wifi on bluetooth connection (https://talk.maemo.org/showthread.php?t=70900)

mase 2011-03-10 15:44

Disable wifi on bluetooth connection
 
Hi!
Anybody got an idea, how to disable wifi or only wifi search, when
a bluetooth connection was established, and enable it again, when
disconnected?
I am using my N900 in-car to play music over a2dp. But the wlan
search makes the audio stutter.
Maybe this can be done via dbus.

pusak gaoq 2011-03-10 15:59

Re: Disable wifi on bluetooth connection
 
go to setting-connectivity-internet connections...
in the search interval button select 'never'...this will disable the auto search on your wifi connection...

mase 2011-03-10 16:07

Re: Disable wifi on bluetooth connection
 
But I want to have the search enabled, only disabled on bt connection.
When I reach a known wlan, the device should connect automatically,
when no bt connection was established.

pataphysician 2011-03-10 16:55

Re: Disable wifi on bluetooth connection
 
I don't think there is any easy way to do that automatically, but I think you could write your own custom dbus script to do it.

http://wiki.maemo.org/DbusScripts

mase 2011-03-10 17:30

Re: Disable wifi on bluetooth connection
 
That is what I want to do. The bt event can be monitored. But I found
no example how to enable / disable wifi via dbus.

pataphysician 2011-03-10 18:06

Re: Disable wifi on bluetooth connection
 
Check out the Fcron wiki page

http://wiki.maemo.org/Fcron

It has scripts to turn off and on wifi, I think you could use these with dbus-scripts as well.

So I think you would run a script to turn off WiFi, when the dbus event for Bt connection takes place, and reverse that on disconnect.

mase 2011-03-10 18:19

Re: Disable wifi on bluetooth connection
 
Quote:

Originally Posted by pataphysician (Post 965100)
Check out the Fcron wiki page

http://wiki.maemo.org/Fcron

It has scripts to turn off and on wifi, I think you could use these with dbus-scripts as well.

So I think you would run a script to turn off WiFi, when the dbus event for Bt connection takes place, and reverse that on disconnect.

Thanks! This could solve it!

Edit: The scripts provided there work. I want to use them with dbus-scripts.
I have to monitor in-car. There's many traffic on dbus. Hard to find out the
correct event. Does anybody have the events for bt connect or disconnect?
Otherwise I will try to find out by monitoring.


All times are GMT. The time now is 01:35.

vBulletin® Version 3.8.8