Reply
Thread Tools
Posts: 8 | Thanked: 0 times | Joined on Aug 2010 @ The Netherlands
#1
Hello, I have used wifiswitcher for the last 2 months and since a few days ago my phone started shutting down (but not always) when turning off the wifi card. I use the stock kernel and haven't tweaked/undervolted/overclocked my phone in any way, nor did I upgrade the wifiswitcher package. Might it be a hardware defect?
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#2
I don't know how the WifiSwitcher operates.. but it might unload the kernel module and that's not always good. It could cause a kernel panic that makes the phone reboot. What does your "dmesg" say? You open xterminal and write dmesg. It would not show you the cause of reboot but maybe something els.

I am not sure what the best solution would be. A reflash would probably fix this cause wifiswitcher are generally stable.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#3
If it happens when using wifi-switcher only may be you should stop using it?
 
Posts: 8 | Thanked: 0 times | Joined on Aug 2010 @ The Netherlands
#4
AlMehdi: I would try running dmesg but as my phone shuts down I can't read it. dmesg doesn't show anything unusual going on when shutting down wifiswitcher without the phone crashing.

I just remembered I edited the powersave settings for my wlan card, so I'll revert them to how they were. If that doesn't work I shall try reflashing, it's worth a shot.

9000: Well it's a very useful app so I'll leave that as a last resort
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#5
Originally Posted by Maxime View Post
9000: Well it's a very useful app so I'll leave that as a last resort
I've a cleaner and safer way to switch wifi on/off by triggering a script but it'd need some tinkering to setup. I can show you if you'd like to try.
 
Posts: 8 | Thanked: 0 times | Joined on Aug 2010 @ The Netherlands
#6
Originally Posted by 9000 View Post
I've a cleaner and safer way to switch wifi on/off by triggering a script but it'd need some tinkering to setup. I can show you if you'd like to try.
Sure, would be useful in case wifiswitcher stopped working altogether for me, or just for debugging purposes. Thanks.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#7
Save the following script as wifi.sh

Code:
#!/bin/sh
# Description: Turn WiFi on/off
# Original script from http://wiki.maemo.org/Desktop_Command_Execution_Widget_scripts
# Modified by 9000 @ talk.maemo.org on 27/6/2010
#
out=`ifconfig wlan0`
if [ $? -eq "0" ] ; then
if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod crc7
stop wlancond
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Disabled'
exit 2
else
modprobe crc7
modprobe mac80211
modprobe wl12xx
wl1251-cal
stop wlancond
start wlancond
iwconfig wlan0 mode managed
ifconfig wlan0 up
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Enabled'
exit 0
fi
Make it executable:
Code:
chmod u+x /home/user/wifi.sh
Execute it:

Code:
echo "/home/user/wifi.sh" | sudo gainroot
 
Posts: 8 | Thanked: 0 times | Joined on Aug 2010 @ The Netherlands
#8
Thanks for the script 9000.

I just wanted to say that my phone hasn't crashed/rebooted since I set the powersaving mode of the wifi to maximum instead of intermediate.
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#9
Originally Posted by 9000 View Post
Save the following script as wifi.sh

Code:
#!/bin/sh
# Description: Turn WiFi on/off
# Original script from http://wiki.maemo.org/Desktop_Command_Execution_Widget_scripts
# Modified by 9000 @ talk.maemo.org on 27/6/2010
#
out=`ifconfig wlan0`
if [ $? -eq "0" ] ; then
if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod crc7
stop wlancond
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Disabled'
exit 2
else
modprobe crc7
modprobe mac80211
modprobe wl12xx
wl1251-cal
stop wlancond
start wlancond
iwconfig wlan0 mode managed
ifconfig wlan0 up
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Enabled'
exit 0
fi
Make it executable:
Code:
chmod u+x /home/user/wifi.sh
Execute it:

Code:
echo "/home/user/wifi.sh" | sudo gainroot


Dear 9000.
i want to ask you about the script that you did show us, do i have to install wifi switcher with this script or its just stand alone ?
thank you
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#10
Originally Posted by moudy91 View Post
Dear 9000.
i want to ask you about the script that you did show us, do i have to install wifi switcher with this script or its just stand alone ?
thank you
You don't need to install wifi switcher for using this script.
 
Reply

Thread Tools

 
Forum Jump


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