maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Toggle Standby (LPM) Screen + Toggle WLAN (https://talk.maemo.org/showthread.php?t=88466)

Schturman 2013-01-21 12:10

Re: Toggle Standby (LPM) Screen
 
Or you can fix it by youself:
Code:

#!/bin/sh

# Toggle WLAN radio state

STATUS=$(/sbin/mcetool --status | grep -v grep | grep WLAN | awk '{print $2}' | head -1)

if [ $STATUS == "enabled" ]
    then
    sed -i 's/On/Off/' /home/user/.local/share/applications/netToggle.desktop
    `/sbin/mcetool --disable-radio=wlan`
    else
    sed -i 's/Off/On/' /home/user/.local/share/applications/netToggle.desktop
    `/sbin/mcetool --enable-radio=wlan`
fi

;)

BTW, nice icons :)

damuffinman 2013-01-21 12:35

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Strictly speaking this is isn't a "WLAN toggle" per se but rather toggles the entire Internet Connection (including 3G) so I think naming that is kind of misleading...

Just my 2p :)

thedead1440 2013-01-21 12:37

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Quote:

Originally Posted by damuffinman (Post 1316301)
Strictly speaking this is isn't a "WLAN toggle" per se but rather toggles the entire Internet Connection (including 3G) so I think naming that is kind of misleading...

Just my 2p :)

Yeah; it was a quick one as bibek wanted a .deb... I rather keep names short like lpm or wlan to toggle-... Couldn't think of a better name that would be short; if you have a suggestion I'll change it ;)

Anyway its a small script only so one can use whatever name one desires ;)

tommo 2013-01-21 13:44

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
hey, any chance of a media sharing toggle? i seem to be using it more and more so this would be very handy!

bibek 2013-01-21 14:37

Thanks thedead.
The icons are from custom icons thread, for wifitrans :p

imaginaryenemy 2013-01-21 15:41

Re: Toggle Standby (LPM) Screen
 
Quote:

Originally Posted by thedead1440 (Post 1316233)
You have to incept the package or use fixed origin if in open mode...

I thought I read that you didn't need inception? That it was available in the SDK repo, and I could just install Schturman's deb instead of getting the SDK repo?

thedead1440 2013-01-21 15:59

Re: Toggle Standby (LPM) Screen
 
Quote:

Originally Posted by imaginaryenemy (Post 1316337)
I thought I read that you didn't need inception? That it was available in the SDK repo, and I could just install Schturman's deb instead of getting the SDK repo?

You need to incept regardless of whether downloading .deb from SDK or from elsewhere... I've posted the link of .deb in OP too; grab it and incept it...

Lucazz990 2013-01-21 17:41

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
This is really cool!! Thanks to all :) btw is there a way to avoid the black screen with "turn on internet connection?"

thedead1440 2013-01-21 18:08

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Quote:

Originally Posted by Lucazz990 (Post 1316372)
This is really cool!! Thanks to all :) btw is there a way to avoid the black screen with "turn on internet connection?"

Which black screen? I've never had it; could you post a screenshot if possible?

Lucazz990 2013-01-22 16:33

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
1 Attachment(s)
Quote:

Originally Posted by thedead1440 (Post 1316378)
Which black screen? I've never had it; could you post a screenshot if possible?

This one, it comes every time i press the toggle to turn off the connection... it says "Turn the connection on? Internet connection is temporaryly disabled yes/no"
Of course no drama... :)


All times are GMT. The time now is 00:26.

vBulletin® Version 3.8.8