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)

iscio 2011-06-24 07:22

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
this is italian file, I translated all files but I did'n change the first part

412b 2011-06-24 09:11

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by iscio (Post 1037900)
this is italian file, I translated all files but I did'n change the first part

Nice :) You can also fill in the author and country, if you like.
There are some non-critical small mistypes, but I'll fix them :)

iscio 2011-06-24 11:50

Re: [ANNOUNCE] Advanced Interface Switcher
 
put my nick "ISCIO" in the author and ITALY like country...thanks

zerocool2k 2011-06-26 04:06

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by zerocool2k (Post 1037596)
Can you make it so that if we turn on Wifi, the wireless networks will be automatically brought up (like the old Wifi switcher)? That is very convenient.

Did you miss my request? :) Just want to know if it's doable.

412b 2011-06-26 07:32

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by zerocool2k (Post 1039189)
Did you miss my request? :) Just want to know if it's doable.

Take a look at the first post.

iscio 2011-06-29 20:14

Re: [ANNOUNCE] Advanced Interface Switcher
 
any news about italian translation? I have a question, if I want to use alarmed to activate wifi what is the command that I have to use? thanks

412b 2011-06-29 20:22

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by iscio (Post 1041694)
any news about italian translation?

It's in extras-devel
Quote:

Originally Posted by iscio (Post 1041694)
I have a question, if I want to use alarmed to activate wifi what is the command that I have to use? thanks

on:
Code:

sudo advifsw_wlan_on.sh
off:
Code:

sudo advifsw_wlan_off.sh

iscio 2011-06-29 20:25

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by 412b (Post 1041704)
It's in extras-devel

I did'nt find it...I have 0.3.8-3, is there a new one?

thank you very much for the codes...thanks

only one question, are they working only with AIS or also without it?

412b 2011-06-29 20:33

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by iscio (Post 1041710)
I did'nt find it...I have 0.3.8-3, is there a new one?

It's in a separate package called "Advanced Interface Switcher Locale Italian", I'm not the fan of including internationalization in apps.

Quote:

Originally Posted by iscio (Post 1041710)
thank you very much for the codes...thanks

only one question, are they working only with AIS or also without it?

Scripts are part of the AIS, so as long as you have it installed you can run those scripts from XTerm etc.

iscio 2011-07-01 06:31

Re: [ANNOUNCE] Advanced Interface Switcher
 
1 Attachment(s)
could you upload this italian file? I did some changes after my tests.
thanks

iscio 2011-07-04 06:31

Re: [ANNOUNCE] Advanced Interface Switcher
 
I see the new release, thank you very much...could you update my new italian translation? and the new string
"show connection dialog" could be "mostra finestra connessioni"

iscio 2011-07-05 07:27

Re: [ANNOUNCE] Advanced Interface Switcher
 
what is the difference in the last release 0.3.9-2?

412b 2011-07-07 06:42

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by iscio (Post 1044915)
what is the difference in the last release 0.3.9-2?

Some minor cleanups, nothing significant.

iscio 2011-07-07 08:55

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by iscio (Post 1044239)
I see the new release, thank you very much...could you update my new italian translation? and the new string
"show connection dialog" could be "mostra finestra connessioni"

any news? thank you

zerocool2k 2011-07-07 20:57

Re: [ANNOUNCE] Advanced Interface Switcher
 
What's the mechanism for the auto connection popup? Is there any daemon running required? since I'm having problem with that one after applying the script here: http://talk.maemo.org/showthread.php?t=73315&page=89

bobbydoedoe 2011-07-21 18:43

Re: [ANNOUNCE] Advanced Interface Switcher
 
hi, after doing apt-get update, i ran apt-get to dl the app, but i got the following, and the installation errors out:


advanced-interface-switcher
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
18 not fully installed or removed.
Need to get 46.3kB of archives.
After this operation, 459kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free advanced-interface-switcher 0.3.9-3 [46.3kB]
Fetched 46.3kB in 0s (51.2kB/s)
(Reading database ... 21332 files and directories currently installed.)
Unpacking advanced-interface-switcher (from .../advanced-interface-switcher_0.3.9-3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/advanced-interface-switcher_0.3.9-3_all.deb (--unpack):
unable to stat `./usr/share/icons/hicolor/18x18/hildon/ifsw_statusarea_bluetooth_online.png' (which I was about to install): Stale NFS file handle
rm: cannot remove '/usr/lib/hildon-desktop/advifswlib': No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/advanced-interface-switcher_0.3.9-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


any ideas on how to fix it? thanks in advance

sethkha 2011-07-21 18:56

Re: [ANNOUNCE] Advanced Interface Switcher
 
HI 412b

What do you think about swapping short and long press in the status menu. So the short action (toggle) is as fast as possible. Accessing the switcher menu wont take much more time till you are finished.

peterleinchen 2011-07-22 07:56

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by bobbydoedoe (Post 1055642)
18 not fully installed or removed.

unable to stat `./usr/share/icons/hicolor/18x18/hildon/ifsw_statusarea_bluetooth_online.png' (which I was about to install): Stale NFS file handle
rm: cannot remove '/usr/lib/hildon-desktop/advifswlib': No such file or directory

try
apt-get install -f
to solve your broken installations/dependencies
maybe you need also to do
apt-get remove advanded-interface-switcher
apt-get install advanded-interface-switcher or apt-get install -f advanded-interface-switcher


Quote:

Originally Posted by sethkha
What do you think about swapping short and long press in the status menu.

This is already implemented. Go to settings for the specific connection, tick off "dialog on click". Now the switch is done at once and the dialog opens on long-press (need to 'slide' down, unix-style).

bobbydoedoe 2011-07-22 08:17

Re: [ANNOUNCE] Advanced Interface Switcher
 
thanks peter, but i believe the error stems from
Stale NFS file handle
as when im installing the brightness applet, it throws out the above msg, and i lost all my status icons except the time, reception bar and the instant messaging green dot. arrgghh

peterleinchen 2011-07-23 16:51

Re: [ANNOUNCE] Advanced Interface Switcher
 
So it is likely Your file system got corrupted somehow.
stale NFS file handle is an error normally belonging to server/client NFS. Normally a umount/mount (or restart of client) is sufficient. But here we have local file system.
I also had this error sometime and as I could not umount /home, I tried with backupmenu (making it worse). But then reflashed.
Later I found, that power kernel seems to have such functionality to fsck a device (/dev/mmcblk02) at startup. Look for '/usr/share/kernel-power-settings/boot' file (or maybe directly in '/etc/default/kernel-boot'. But no warranty, as I have no experience with that param.
And You may open another thread, as this is not AIS related.

petur 2011-08-08 09:13

Re: [ANNOUNCE] Advanced Interface Switcher
 
A recent upgrade to 0.3.9-5 now causes the connection dialog to pop up 3 times when enabling WiFi - previous version worked correctly.

412b 2011-08-08 09:22

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by petur (Post 1065920)
A recent upgrade to 0.3.9-5 now causes the connection dialog to pop up 3 times when enabling WiFi - previous version worked correctly.

What other packages do you have installed (CSSU? kernel-power?)?

petur 2011-08-08 12:39

Re: [ANNOUNCE] Advanced Interface Switcher
 
yes, both CSSU and kernel-power

412b 2011-08-08 18:22

Re: [ANNOUNCE] Advanced Interface Switcher
 
can't reproduce described behaviour. what other packages related to WLAN do you have installed (e.g. Bleeding Edge drivers and patched icd?)?

petur 2011-08-08 18:49

Re: [ANNOUNCE] Advanced Interface Switcher
 
Interesting... I rebooted my n900 and now everything works as expected.

Sorry for sounding the false alarm.

rado3105 2011-09-13 17:34

Re: [ANNOUNCE] Advanced Interface Switcher
 
I installed it and after restart it doesnt shows in status bar. Also I tryed to run it from terminal: advanced-interface-switcher but it shows: bin sh: advanced-interface-switcher: not found. But it is installed. I have installed ssu and power kernel.

412b 2011-09-14 06:57

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by rado3105 (Post 1087642)
I installed it and after restart it doesnt shows in status bar. Also I tryed to run it from terminal: advanced-interface-switcher but it shows: bin sh: advanced-interface-switcher: not found. But it is installed. I have installed ssu and power kernel.

Quote:

Originally Posted by 412b (Post 1028284)
Please post the output of running
Code:

python /usr/lib/hildon-desktop/advanced_interface_switcher.py 1
in XTerm

...........

rado3105 2011-09-14 12:38

Re: [ANNOUNCE] Advanced Interface Switcher
 
home/user # python /usr/lib/hildon-desktop/advanced_interface_switcher.py 1
process 11727: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 11727: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
Aborted

412b 2011-09-14 12:53

Re: [ANNOUNCE] Advanced Interface Switcher
 
Quote:

Originally Posted by rado3105 (Post 1088144)
home/user # python /usr/lib/hildon-desktop/advanced_interface_switcher.py 1
process 11727: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 11727: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
Aborted

As user, not as root.

rado3105 2011-09-14 16:15

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

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

vBulletin® Version 3.8.8