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-14 18:21

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by rado3105 (Post 1088277)
python /usr/lib/hildon-desktop/advanced_interface_switcher.py 1
No module named advpowcommon.ui.Cachers
Loading...
Traceback (most recent call last):
File "/usr/lib/hildon-desktop/advanced_interface_switcher.py", line 32, in <module>
from advifswlib.core.maemo5 import *
File "/usr/lib/hildon-desktop/advifswlib/core/maemo5.py", line 17, in <module>
from advpowcommon.ui.Cachers import DITPixbufCacher
ImportError: No module named advpowcommon.ui.Cachers

It's seems to be a known bug with python packages.
Run as root
Code:

apt-get install --reinstall advanced-power-common

longuist 2011-09-26 17:19

Re: [ANNOUNCE] Advanced Interface Switcher
 
Hello. Sometimes i use my n900 as internet-tablet without internet ;) (->Mediaplayer)
So gsm & wlan & bluetooth are switched off and the crossed out symbols are constantly changing. This seems to lead to a higher system load of the hildon-status-menu (when idle right after xorg in overall CPU-Time)
Is it possible to show two separate icons instead? (i presume ist not a "feature" of AIS after all?)

412b 2011-09-26 19:04

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by longuist (Post 1096815)
Hello. Sometimes i use my n900 as internet-tablet without internet ;) (->Mediaplayer)
So gsm & wlan & bluetooth are switched off and the crossed out symbols are constantly changing. This seems to lead to a higher system load of the hildon-status-menu (when idle right after xorg in overall CPU-Time)
Is it possible to show two separate icons instead? (i presume ist not a "feature" of AIS after all?)

Hi,
unfortunatelly, there can't be 2 separate icons by hildon's design and animation shouldn't use much CPU. BTW, what's the numbers for you? (using top/htop and powertop)
Nevertheless, I can add configurable option to next AIS to show/don't show icons in statusbar, confirm if this feature is needed.

longuist 2011-09-27 00:01

Re: [ANNOUNCE] Advanced Interface Switcher
 
Thanks for your fast reply.
Values in top are very jumpy, cant say something very representative besides hildon-status-menu is about 6 entries higher when icons are blinking.
In powertop (idle/blanked screen) the activity of "hildon-status-menu" changes from 7 to 31. Dont know if this is much (playing music seems to be about 60 in total??)
I think for most people its not a very important feature, but you would make me happy if you add an option (alone for aesthetic reasons ;)

Estel 2011-09-27 12:45

Re: [ANNOUNCE] Advanced Interface Switcher
 
412b, I'm confirming, that such feature would be really appreciated - ho ever, I don't quite understand the part about "not possible to have 2 icons at the same time".

While using WLAN Selector Applet, I got separate icon without problems - *never* encountered "flashing" overlapping icons. To be honest, overlapping icons was first inconvenience I noticed, after switching to Advanced Interface Switcher.

WLAN Selector Applet is abandoned now, but Source Code is available - is there any chance, that You could check source code and determinje, how laasonen achieved it? Just keep in mind that WSA was written in Python.

hope it helps

/Estel

Ps.

If we're talking about UI tweaks - isn't it possible, to replace bluetooth pop-up menu with standard hildon one, instead of AIS "/enable/disable/discoverable:? It lacks possibility to add/edit bluetooth paired devices settings, so it's always a round-trip to menu->settings->bluetooth. I enjoy having WLAN/GSM/Bluetooth in one applet very much, but it would be great to use bluetooth button (or, like in my case, bluetooth button long-press, because short press on/off toggle is great!) as a shortcut for hildon bluetooth configuration.

412b 2011-09-27 18:59

Re: [ANNOUNCE] Advanced Interface Switcher
 
So I'll implement it in nearest release :)
For standard hildon's settings (for all interfaces, I guess) I can add a button to popup window.

Now about icons, buttons, etc: one applet can have only one icon in status bar and only one widget in status menu, so without hard-tweaking or splitting AIS into separate applets I can't get two or more icons for one applet in status bar, that's the main reason why icons are switching in status bar (to have readable indication for all interfaces).

longuist 2011-09-28 08:59

Re: [ANNOUNCE] Advanced Interface Switcher
 
Chapeau! That was fast, thank you very much!

Had some problems updating though. GSM/3G stopped working completely. Only de-install->reinstall did the trick.

Edit:
Made some tests. Blinking is away, but for what price?
Activity now is 120 (and 147 when blinking), which makes it the most demanding process right after xorg.
Seems you introduced a costly loop. Switched back to previous version. (btw: without AIS at all the activity of "hildon-status-menu" is 0 or 1, unfortunately im not that into python so i cannot help, but it may be a good idea to activate AIS only on state change or when the status menu is accessed)

Estel 2011-09-28 10:24

Re: [ANNOUNCE] Advanced Interface Switcher
 
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! :)

412b 2011-09-28 11:45

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by longuist (Post 1097916)
Chapeau! That was fast, thank you very much!

Had some problems updating though. GSM/3G stopped working completely. Only de-install->reinstall did the trick.

Edit:
Made some tests. Blinking is away, but for what price?
Activity now is 120 (and 147 when blinking), which makes it the most demanding process right after xorg.
Seems you introduced a costly loop. Switched back to previous version. (btw: without AIS at all the activity of "hildon-status-menu" is 0 or 1, unfortunately im not that into python so i cannot help, but it may be a good idea to activate AIS only on state change or when the status menu is accessed)

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?

longuist 2011-09-28 11:47

Re: [ANNOUNCE] Advanced Interface Switcher
 
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.

Can you reproduce this behaviour?


All times are GMT. The time now is 15:33.

vBulletin® Version 3.8.8