maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Advanced Interface Switcher (https://talk.maemo.org/showthread.php?t=60473)

412b 2011-09-28 11:51

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by Estel (Post 1097984)
Updated without any problems here.

412b, did I told You how awesome You are? One day a constructive suggestion, same day confirmation from You, and update next day. The same happened with advanced-power-monitor.

thanks You very much, and eagerly waiting for standard hildon preferences button! :)

Thanks :)
AP and AIS code is easy-maintainable, so adding some config is really fast thing. I'll need some time to get the correct names of the settings applets and adding feature to the UI. Nevertheless, I'm planning to add it this week.

For those interested in support for Bleeding Edge: as those drivers seem to be added to kp (or not, let's wait a bit) and have no stable packaging for kernels at the moment (and centralized maintaining), this feature won't be implemented in nearest future.

412b 2011-09-28 11:54

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by longuist (Post 1098047)
Updated again and found out that after a restart everything is ok (<=1). After some testing i found the reason for this. Once you enter the settings page of AIS CPU-Time for the process gets and stays high till next restart. So there must be an error (settings not exited correctly). As you normally just do it once its no big error though.
Hope this helps and thanks again.

Did you press "Save" button or just closed via tapping outside of the dialog?

longuist 2011-09-28 12:02

Re: [ANNOUNCE] Advanced Interface Switcher
 
Just closed without saving, but tested now, it doesnt matter.

Edit: btw i think the problem was not introduced with the last version, just got stronger.

Estel 2011-09-29 03:16

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by longuist
Once you enter the settings page of AIS CPU-Time for the process gets and stays high till next restart.

Can't reproduce that. On my device, everything is fine, no matter what I do in preferences and how do I exit. Tried in many different scenarios - after long (few days) runtime, then after fresh reboot... seems 100% fine all the time.

/Estel

longuist 2011-09-29 14:44

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1098044)
I've got maximum activity of 29 (with blinking). What other status bar applets do you have installed?
And can post the outputs of powertop and top?

Sorry for the delay.

Installed status bar applets:

fm-carkit
SSH Status and Switcher
keyboard-layout-applet
Flashlight
Simple Brightness Applet

outputs before:
http://pastebin.com/LRm5uZjk

outputs after (opening settings; no blinking):
http://pastebin.com/Z4XCsQV6

Dont has significant impact on CPU-Time (top is the wrong tool to measure average CPU-time) & dont know how important the activity value is, but seems to wake up the CPU more often.

As Estel cant reproduce, it seems more complicated or just happens on my device. And again, as it only happens when changing settings its not a bug with high priority, if at all ;)
Thanks again.

412b 2011-10-03 14:30

Re: [ANNOUNCE] Advanced Interface Switcher
 
About adding "XXX Settings" to dialog...
Unfortunatelly the only way I've found at the moment is using ugly osso bindings, which is really disappointing... If someone knows easier way to do it, sharing is welcomed :)

LavaCroft 2011-10-19 03:37

Re: [ANNOUNCE] Advanced Interface Switcher
 
Thanks for this fine application, it has cleaned up my status menu a lot.

Estel 2011-12-24 02:39

Re: [ANNOUNCE] Advanced Interface Switcher
 
Idea for very little, but useful upgrade:
Adding customizable option in settings for wifi,that put New content in advifsw_wlan_on.sh
Code:

#!/bin/sh
modprobe wl12xx
wl1251-cal
stop wlancond
start wlancond
ifconfig wlan0 up
sleep 1
iw reg set JP
sleep 1

Rationale:
Many users know about tweak, that allow unlocking of channel 12,13 (and possibly 14, after some more tinkering) connectivity via our device. Yet, most people doesn't know (especially those with reg set to EU by default), that every WiFi shutdown/enabling (by any tool) bring default settings back.

US people may notice it, cause they lose capability to connect using upper channels, but for EU people, channels 12/13 are still working, with less frequency hopping range for 13 (that is, channel 13 works, but is "crippled" in efficiency, especially, on crowded neighborhood, with many AP's using channel 11 or up). So, for anyone using *any* interface switcher, executing iw reg set JP at every reboot, is just Placebo effect, at least after disabling and enabling wifi (for people using wifi disabled on startup via AIS settings, it's placebo from the beginning).

This simple tweak of wifi-enable procedure makes it real. Generally, there should be no problem for enabling it for everyone without customizable setting - it only enhance connecting possibilities (even for folks worried about law in US - it's forbidden to broadcast AP's on channel 13, and we're just enabling possibility to connect to such AP's - for when outside US, or for situation, when one want to connect for own AP, 'illegally' broadcasting on upper channels), but it have little drawback - it require iw tools package. That is why I though about customizable switch.

Ideally, instead of using 'iw reg set JP', AIU settings would allow to entry totally customizable command (line for putting there, whatever user want) - that would be executed after sleep 1, and would be followed by another sleep 1 (it works flawlessly on all situations, only using such sleep's - so, basically, 'iw reg st JP' in my example, would be replaced by user-customizable string).

Of course, this approach require a little more effort to include, but IMO is best possible solution, enhancing AUI by possibility of automating every custom command - that user need to put after bringing interface up - that one feel fancy. Others may just leave such field blank...

/Estel

nerfiaux 2012-03-07 14:58

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
Hi ,
here below is attached the french translation for advanced-switcher.
could it be possible for someone to make the corresponding deb package.
thx in "advance"d :-).

Nerfiaux

412b 2012-04-12 18:20

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by nerfiaux (Post 1175940)
Hi ,
here below is attached the french translation for advanced-switcher.
could it be possible for someone to make the corresponding deb package.
thx in "advance"d :-).

Nerfiaux

again sorry for a delay, I'll upload translation for AIS today or tomorrow.

412b 2012-07-15 18:05

Re: [ANNOUNCE] Advanced Interface Switcher
 
An update released to devel.
Main features:
- support for WLAN driver switching (needs backports modules or any corresponding to your kernal :))
- removed connected button
- cell part now show operator name (like in status bar) in messages and in status menu
- added "connecting" and "disconnecting" to wlan and "connecting" to GSM
- some minor fixes
- POT file for translations is now available in garage's svn

i'm a taking a look at the custom user scripts to be run at some event. suggestions and ideas are welcomed. @Estel, that one about setting JP i took into account ;)

dy1ng 2012-07-18 22:30

Re: [ANNOUNCE] Advanced Interface Switcher
 
hey,
since this update, sometimes i can't connect to wifi after once i disconnected

disabling the module and re-enable doesn't help, just rebooting, but then this again..

any suggestions?

Mentalist Traceur 2012-07-18 23:55

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1237866)
- cell part now show operator name (like in status bar) in messages and in status menu

Keep in mind, that because buttons are so small in status menu, operator name doesn't fit and you end up being unable to see the connected/unconnected bit of info at a glance.

So I think it's great that it shows operator name in the notification messages, but I think it should stick to just showing "<>" in the status menu button when connected.

Quote:

Originally Posted by 412b
i'm a taking a look at the custom user scripts to be run at some event. suggestions and ideas are welcomed. @Estel, that one about setting JP i took into account ;)

While we're on the subject, the JP setting is currently not supported in the injection capable driver (I have no desire to call it bleeding edge at this point, it's ~ a year old by now). I believe the regulatory region for that driver is hardcoded.

So that leads me to point out that if you have support for custom scripts, I hope you remember to make them flexible enough to be able to decide if they fire on events for either wifi driver, or for both.

412b 2012-07-19 06:37

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by dy1ng (Post 1239484)
hey,
since this update, sometimes i can't connect to wifi after once i disconnected

disabling the module and re-enable doesn't help, just rebooting, but then this again..

any suggestions?

what exact build are you using?
by "can't connect" do you mean that network is visible, but connection fails? (for consistance also check, is wlancond is started)
i had that behaviour in recent builds, but in last can't reproduce, meanwhile i'll upload an update this week/begining of next week, on which i can't reproduce that behaviour.

412b 2012-07-19 06:45

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by Mentalist Traceur (Post 1239514)
Keep in mind, that because buttons are so small in status menu, operator name doesn't fit and you end up being unable to see the connected/unconnected bit of info at a glance.

So I think it's great that it shows operator name in the notification messages, but I think it should stick to just showing "<>" in the status menu button when connected.

Good point, I'll think about improvements during weekend :)

Quote:

Originally Posted by Mentalist Traceur (Post 1239514)
While we're on the subject, the JP setting is currently not supported in the injection capable driver (I have no desire to call it bleeding edge at this point, it's ~ a year old by now). I believe the regulatory region for that driver is hardcoded.

So that leads me to point out that if you have support for custom scripts, I hope you remember to make them flexible enough to be able to decide if they fire on events for either wifi driver, or for both.

At the moment scripts are flexible enough :)
5 main events:
1. if down (/usr/bin/advifsw/post-down)
2. loaded default driver (/usr/bin/advifsw/post-load0)
3. loaded injection driver (/usr/bin/advifsw/post-load1)
4. unloaded driver (/usr/bin/advifsw/post-unload)
5. if up (/usr/bin/advifsw/post-up)

In those dirs you can put your scripts (don't forget to +x them).

dy1ng 2012-07-19 12:13

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1239592)
what exact build are you using?
by "can't connect" do you mean that network is visible, but connection fails? (for consistance also check, is wlancond is started)
i had that behaviour in recent builds, but in last can't reproduce, meanwhile i'll upload an update this week/begining of next week, on which i can't reproduce that behaviour.


my version: 0.3.11-9

all networks are visible, but i can't connect to any of them untl i do not restart the system

however, since i reinstall the package, this behaviour is gone.. i hope it's don't come back

and i'll check this wlancond thing

sorry for my noobish english, and thanks for the fast reply

peterleinchen 2012-07-19 18:50

Re: [ANNOUNCE] Advanced Interface Switcher
 
Did you play with "bleeding edge" driver and lost signal while connected to an AP?
This would explain that behaviour (would have needed unload of bleeding and reloading stock/bleeding again).

peterleinchen 2012-07-19 19:05

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by Mentalist Traceur (Post 1239514)
Keep in mind, that because buttons are so small in status menu, operator name doesn't fit and you end up being unable to see the connected/unconnected bit of info at a glance.

For my use case and networks, it matches easily to distinguish.
Having a dual sim adapter and switching automatically via icon/app click between networks Vodafone (shown as Vod) and o2 - de (o2 ).
But for other maybe not so easy and not really needed, so I do not have a favourite here, keep it or change back.

Quote:

Originally Posted by Mentalist Traceur (Post 1239514)
While we're on the subject, the JP setting is currently not supported in the injection capable driver (I have no desire to call it bleeding edge at this point, it's ~ a year old by now). I believe the regulatory region for that driver is hardcoded.

Really? Sad.

Estel 2012-07-20 09:40

Re: [ANNOUNCE] Advanced Interface Switcher
 
Not so much, as "bleeding-edge-year-ago" drivers are open for all channels, by default :)

Mentalist Traceur 2012-07-20 13:53

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by peterleinchen (Post 1239922)
For my use case and networks, it matches easily to distinguish.
Having a dual sim adapter and switching automatically via icon/app click between networks Vodafone (shown as Vod) and o2 - de (o2 ).
But for other maybe not so easy and not really needed, so I do not have a favourite here, keep it or change back.

I didn't know you could do that on the N900 - switch between two sim cards in a dual sim card adapter easily. That's awesome. Mind pointing me to a thread/post where this is covered?

Quote:

Originally Posted by Estel (Post 1240169)
Not so much, as "bleeding-edge-year-ago" drivers are open for all channels, by default :)

Are you sure? I don't believe you can actually access channels 12 and 13 with it? (Admittedly I don't remember if I ever tried, say, using aireplay-ng those channels, or airmon-ng to sniff on those channels....)

dy1ng 2012-07-20 15:15

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
Quote:

Originally Posted by 412b (Post 1239592)
what exact build are you using?
by "can't connect" do you mean that network is visible, but connection fails? (for consistance also check, is wlancond is started)
i had that behaviour in recent builds, but in last can't reproduce, meanwhile i'll upload an update this week/begining of next week, on which i can't reproduce that behaviour.

happened again.
i tried to kill the wlancond, and start it again, but:

Attachment 27416

412b 2012-07-20 15:59

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by dy1ng (Post 1240331)
happened again.
i tried to kill the wlancond, and start it again, but:

the proper way to 'kill' wlacond is
Code:

stop wlancond
to 'start':
Code:

start wlancond
as root

please also attach output of
Code:

dmesg
and output of
Code:

lsmod

dy1ng 2012-07-20 17:50

Re: [ANNOUNCE] Advanced Interface Switcher
 
thank you, i'll try, and hope it's fix it

412b 2012-07-22 14:40

Re: [ANNOUNCE] Advanced Interface Switcher
 
uploaded build 10
main features:
- wlan start/stop speed up
- added network name to wlan
- option to show/hide network name in status menu

Estel 2012-07-22 16:06

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by Mentalist Traceur (Post 1240278)
I didn't know you could do that on the N900 - switch between two sim cards in a dual sim card adapter easily. That's awesome. Mind pointing me to a thread/post where this is covered?

+1, despite it being off-topic here, I'm also interested, fighting urge to ask about 2G/2.5G/3G/3.5G compatibility, and model name ;). Maybe it's good idea for new thread (or reviving some old one, which covered dual adapters)?

Quote:

Originally Posted by Mentalist Traceur (Post 1240278)
Are you sure? I don't believe you can actually access channels 12 and 13 with it? (Admittedly I don't remember if I ever tried, say, using aireplay-ng those channels, or airmon-ng to sniff on those channels....)

I'm pretty sure, that I've connected to channel 13 with lxp's drivers, in the past. I would re-check it now, but my N900 died again (this time, without any CNC involved, and looks like "for good" - doesn't show signs of lfie, at all, even smallest ones), so I'm ahead of backup restoration after getting home (currently, writing this in annoying Harmattan browser, begging for stylus-friendly, resistive screen on N950, instead of capacitive one).

/Estel

peterleinchen 2012-07-22 22:31

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1241245)
uploaded build 10
main features:
- wlan start/stop speed up
- added network name to wlan
- option to show/hide network name in status menu

Thanks a bunch.
Even now I would say for WLAN it makes no use ;), everybody may configure to his/her likings. :)

[offtopic]
Quote:

Originally Posted by Mentalist Traceur
I didn't know you could do that on the N900 - switch between two sim cards in a dual sim card adapter easily. That's awesome. Mind pointing me to a thread/post where this is covered?

+1, despite it being off-topic here, I'm also interested, fighting urge to ask about 2G/2.5G/3G/3.5G compatibility, and model name . Maybe it's good idea for new thread (or reviving some old one, which covered dual adapters)?
As already promised to Mentalist I will try my best to clean up my mess a bit, create understandable config files and maybe package it (at least pack it together). I will inform you two via PM when thread created.
Anybody else out there interested in Double-SIM (Dual SIM) automatic switchig, please PM me (or see here).

@Estel
what did you ask for?
My adapter model and its capabilities?
[/offtopic]

But nevertheless you gave me an idea for improvement and I'd like to ask
@412b
for a simple shell code part to easily switch between 2G/3GVDual mode? Will try to find myself, but would appreciate your help.
Thanks in advance.

Found and added. Thanks anyway.
And sorry for offtopic hijacking.

peterleinchen 2012-07-27 20:21

Re: [ANNOUNCE] Advanced Interface Switcher
 
@412b
I "borrowed" some icons (cell signal) from you.
I hope this is okay to you?
If so many thanks in advance.

And sorry for another offtopic question here, not directly related to ais, but to sharing icons from ais:


@all
I tried to package and wanted to 'share' a few icons between ais and my sim-switcher, but got errors (overwriting) during install, so I cloned them. But now I have doublettes.
Is there a way to tell deb packages to share resources?
Someone with an idea/link?

dy1ng 2012-07-27 20:24

Re: [ANNOUNCE] Advanced Interface Switcher
 
hey,
since then, i have no more problems with your app

thanks for your work ^^

412b 2012-07-27 20:32

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by peterleinchen (Post 1243910)
@412b
I "borrowed" some icons (cell signal) from you.
I hope this is okay to you?
If so many thanks in advance.

No problem, in fact those are nokia ones a bit polished.

Quote:

Originally Posted by peterleinchen (Post 1243910)
Is there a way to tell deb packages to share resources?
Someone with an idea/link?

The simpliest way is to create a standalone package with icons which other packages will depend on

sixwheeledbeast 2012-08-02 20:24

Re: [ANNOUNCE] Advanced Interface Switcher
 
Bump to other post regarding battery life with AIS

http://talk.maemo.org/showpost.php?p...5&postcount=23

Please continue further comments on this main AIS thread.

Estel 2012-08-02 20:41

Re: [ANNOUNCE] Advanced Interface Switcher
 
sixwheeledbeast, I have AIS installed and 97-88% of time in C4. It is not "direct" AIS flaw, as it seems to not affect most users. I have no idea what triggers such behavior. What do You use? Bluetooth, GSM, wifi, any combination of those?

/Estel

sixwheeledbeast 2012-08-02 21:40

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by Estel (Post 1246633)
sixwheeledbeast, I have AIS installed and 97-88% of time in C4. It is not "direct" AIS flaw, as it seems to not affect most users. I have no idea what triggers such behavior. What do You use? Bluetooth, GSM, wifi, any combination of those?

Wifi only
No SIM in device.
Installed it twice and rebooted after each, Same results.

412b 2012-08-02 22:01

Re: [ANNOUNCE] Advanced Interface Switcher
 
so I did a deep and successful research, but I need more feedback.
the scenario is as follows:
- install AIS
- turn off all signal strength getters, set one of the interfaces to show dialog on click, other one not
- reboot
- make device settle down
- powertop
- toggle interface w/o dialog on->off->on (or opposite)
- powertop
- if powertop changed, reboot
- let device settle down
- get interface dialog
- powertop
- if powertop didn't change open Settings, don't save, powertop
- open Settings, save settings powertop
On my device wakeups' arise seems to happen after getting interface dialog.
If yours powertop shows the same, get last svn revision from garage and replace files in /opt/maemo/usr/lib/hildon-desktop/advifsw, then reboot, let device calm down and repeat the powertop procedure.

peterleinchen 2012-08-02 22:10

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
--edit
You were too fast 412b. My answer relates to sixwheeledbeasts post
--edit

I am afraid I have to report similar.
Not as bad as sixwheeledbeast ones (not hitting c4 at all), but it definitely wakes up CPU (hindering to deep sleep).
But my (standard) batt still keeps me a day with middle usage.
I attach my outputs as zip.
first one is asis
second deinstalled (rebooted) aifs and apm
third only aifs
fourth only apm
fifth aifs and apm
six aifs and apm (rebooted)

@sixwheeledbeast (and Estel)
my experience with powertop output is that I do use it three times in a row and do see differences. First output is not reliable, but average of three gives a tendency.

Hopefully 412b got an idea, but even if not I am keepin this piece of wonderful soft (from devel)!

sixwheeledbeast 2012-08-02 22:24

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by peterleinchen (Post 1246674)

my experience with powertop output is that I do use it three times in a row and do see differences. First output is not reliable, but average of three gives a tendency.

I do agree sometimes you can catch the device doing something, althought the results posted where the best out of a number of tries.

Estel 2012-08-02 22:49

Re: [ANNOUNCE] Advanced Interface Switcher
 
sixwheeledbeast, as You're the one that have high possibility of being affected by bug (I'm not at all), could You do as 412b requested? I tried, but I'm not affected by increased wakeups even after the 1st part of test.

/Estel

sixwheeledbeast 2012-08-03 21:30

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1246668)
so I did a deep and successful research, but I need more feedback.

OK gonna little busy this weekend but will find time to test your suggestions and report back.

sixwheeledbeast 2012-08-04 13:27

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
So it's taken most of this morning but I have complied three powertop's per stage. See attached.

In each section I have calculated the mean amount of wake ups

If it is certain setting causing this issue I think it would be best to provide a warning within the application somewhere.
Also I think the application should come default as the least energy consuming settings.

I currently have AIS set to all settings disabled (except WLAN and GSM on startup) I am currently getting 900-1100 Total wakeup's (double pre-installation).

412b 2012-08-09 15:13

Re: [ANNOUNCE] Advanced Interface Switcher
 
Released a fresh build (13).
powertop shows me 0 or 1 for hildon-status-menu and wakeups are good.

what's new:
- enabling/disabling interface at all (needs reboot in this built, almost made it to change in runtime)
- default values for signal strength and network name set to false
- minor review

peterleinchen 2012-08-09 17:49

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
Thanks 412b,

seen it this morning and installed and at first glance it looks better. Will check it over weekend ...

Okay, did some checks and I have to say thanks again.
Attached a few powertop outputs. I still have over 1000 HW wakeups, but my percentual Cx state ratio and also average duration shows better values!
Thumbs up!


All times are GMT. The time now is 21:14.

vBulletin® Version 3.8.8