Notices


Reply
Thread Tools
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#1
this situation is 100% repeatable on my N900 with CSSU, with or without overclocking.
how to reboot:
1. connect to the wifi
2. open cutetube-qml. you have to have a youtube account and be signed in.
3. exit cutetube-qml
4. immediately (~1 second) after turn your wifi off with wifi switcher.
5. phone reboots

the phone will not reboot if:
- you don't have a youtube account (not signed in with cutetube-qml) or
- wait ~5 seconds after closing cutetube-qml and then turn wifi off.

Versions of the software:
cutetube-qml 0.9.4 (the same was with .3 and .2; don't know for previous versions)
wifi switcher 0.0.9

Can anybody else reproduce this behavior?
 
Posts: 69 | Thanked: 55 times | Joined on Nov 2009
#2
Please try this fix. It modifies the script in /usr/sbin/wifi.sh
by adding a 3 second pause before disconnecting
the network. You can edit the script yourself with nano
editor as root by adding a "sleep 3" coomand after this
if statement:

if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
# ADD IT HERE
sleep 3
run-standalone.sh dbus-send --system \
--dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi

Let me know if it helps. Eventually increase the value to 4 or 5
or more to see if it makes any difference.

BTW: what happens if you go to the connection manager instead and disable the connection from there? Does it reboot the same.
If yes file a bug at the cutetube-qml people.

Last edited by farmatito; 2011-06-04 at 13:36.
 

The Following User Says Thank You to farmatito For This Useful Post:
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#3
If I just disconnect from the connection manager it doesn't reboot.

Thanks for the fix, I guess it will work but I think I'll just wait few seconds before disconnecting, I don't want to always wait 3 seconds to click on the pop-up.
Speaking of the pop-up (the one saying that the wifi is now disabled), is it possible to make it go away by itself after few seconds, not that I have to click on it every time?
 
Posts: 69 | Thanked: 55 times | Joined on Nov 2009
#4
Originally Posted by ivanrajkovic View Post
If I just disconnect from the connection manager it doesn't reboot.

Thanks for the fix, I guess it will work but I think I'll just wait few seconds before disconnecting, I don't want to always wait 3 seconds to click on the pop-up.
Speaking of the pop-up (the one saying that the wifi is now disabled), is it possible to make it go away by itself after few seconds, not that I have to click on it every time?
The pop-up could be changed as you say but i prefer the user to be fully aware and acknowledge the status of wifi.
 
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#5
Originally Posted by farmatito View Post
The pop-up could be changed as you say but i prefer the user to be fully aware and acknowledge the status of wifi.
is there any quick fix for the pop-up? I think that the status bar icon is enough for a user to see if the wifi is disabled.
 
Posts: 69 | Thanked: 55 times | Joined on Nov 2009
#6
Originally Posted by ivanrajkovic View Post
is there any quick fix for the pop-up? I think that the status bar icon is enough for a user to see if the wifi is disabled.
Comment out the line that runs the pop-up.
 

The Following User Says Thank You to farmatito For This Useful Post:
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#7
OK, there are some strange things happening with my phone.

I commented out the line 63 in wifi.sh:
# print_msg "WLAN DISABLED" "OK"
and that works as expected.

But after some more testing, with and without the pop-up, my phone reboots after disabling wifi, regardless of any other application.
Another problem is that after the reboot, in 4 out of 5 times, the file wifi.sh is totally empty so I have to reinstall wifi-switcher.

I would say that it looks like the phone doesn't like fast wifi enabled/disabled cycles (~10 seconds between enabling and disabling).
Or maybe this is just something with my phone, can anyone else repeat this behavior?

Anyway, thanks for your help. If you have any idea why this is happening, I would be grateful.

EDIT: well, now my phone rebooted after disabling wlan after I have used the wifi for ~30 minutes...

Last edited by ivanrajkovic; 2011-06-05 at 13:01.
 
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#8
I guess it is the same problem as here:
http://talk.maemo.org/showpost.php?p...9&postcount=71

i switched wlan power savings to maximum and it doesn't reboots any more.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:12.