maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   [Announce] advanced-systemui (ASUI) (https://talk.maemo.org/showthread.php?t=63292)

Kroll 2011-02-17 16:15

Re: [Announce] advanced-systemui
 
Hey auouymous!
As you know (or not) I had a problem with my battery (very short battery life) and I posted a few messages in Diablo-turbo topic about that because I thought some of Diablo-turbo packages provoke so powerful battery leaking.
But finally!
If you visit the link you will see that advanced-systemui leaking the battery. And folks from n8xx.com who tried this application got the same problem.

P.S. End why don't you make asui use theme? for example scroll bars for brightness and volume, buttons...

auouymous 2011-02-17 23:36

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by Kroll (Post 949015)
If you visit the link you will see that advanced-systemui leaking the battery. And folks from n8xx.com who tried this application got the same problem.

I don't notice any abnormal battery drain on mine but I will run a series of tests to see if ASUI does use more battery than systemui.

Quote:

Originally Posted by Kroll (Post 949015)
P.S. End why don't you make asui use theme? for example scroll bars for brightness and volume, buttons...

Use the system theme? ASUI doesn't use GTK, everything you see is drawn with raw xlib. I do plan to add CSS-like support so you can customize the colors and maybe line thickness and style. This would allow someone to write theme files that are similar to the available maemo themese but users would need to manually install them and match up to the theme they use.

auouymous 2011-02-18 06:20

Re: [Announce] advanced-systemui
 
New test binaries up for ASUI (asui dt) and asui-settings (asui ds).
  • fix: connecting the charger no longer unlocks the screen if lock&blank was used to lock it
  • fix: dimmed message will no longer appear while on charger and display stays lit setting is enabled
  • idle and active times are no longer queried on each BME signal
  • red brightness icon above the secure keypad that toggles low/medium/high brightness
  • fix: ASUI properly re-initializes brightness when changed in asui-settings
  • asui-settings now supports all settings
  • memory button can be long pressed to toggle between memory and swap
  • memory is now displayed in four different formats (swap also used these formats)

The GTK settings app is fully functional and the new memory/swap formats can be found in the battery settings.

Memory now has a +/- next to it:
Free (green plus): white/black 31-100%, yellow 11-30%, red 0-10%
Used (red minus): white/black 0-69%, yellow 70-89%, red 90-100%

I don't use swap but tested it by injecting dummy values so let me know if it doesn't work with real values. The button won't have a long press marker if you don't have swap enabled.

Kroll 2011-02-18 08:05

Re: [Announce] advanced-systemui
 
Quote:

ASUI doesn't use GTK
Got it, thanks.

maacruz 2011-02-18 12:10

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by auouymous (Post 949298)
I don't notice any abnormal battery drain on mine but I will run a series of tests to see if ASUI does use more battery than systemui.

Does ASUI have any poll or non blocking event loop that could be the cause?

auouymous 2011-02-18 13:26

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by maacruz (Post 949679)
Does ASUI have any poll or non blocking event loop that could be the cause?

One thread blocks on select() and the other on dbus_connection_read_write_dispatch(). When ASUI is unmapped or the display is off the select has an infinite timeout and will only wake on events from X, dsme socket or the dbus thread message pipe.

I just finished playing the same song with mplayer for two hours straight, first hour with ASUI and second hour with systemUI, and a charge in between. The battery drained exactly 5.9% per hour with the screen off. ASUI doesn't seem to have any impact on battery life for me. Not sure of any other way to test this, none of ASUI's settings should change anything.

@ maacruz, do you know what non-zero values in /sys/devices/platform/dsp/state represent? When mplayer is active state=3 but the cpu clock is at 400 on the SSU kernel without op_dsp support.

Kroll 2011-02-18 14:27

Re: [Announce] advanced-systemui
 
auouymous
Maybe it depends of some packages I have already installed? Some people confirmed this issue and after they deleted ASUI problem has gone. Some people report that they didn't noticed a lot of battery draining.

tso 2011-02-18 16:24

Re: [Announce] advanced-systemui
 
Some kind of interaction between ASUI and diablo-turbo?

maacruz 2011-02-18 16:59

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by auouymous (Post 949721)
@ maacruz, do you know what non-zero values in /sys/devices/platform/dsp/state represent? When mplayer is active state=3 but the cpu clock is at 400 on the SSU kernel without op_dsp support.

You are right, when using mplayer state=3, and I can change op_active and op_dsp.
After having a look at the kernel driver, it seems that the dsp has static and dynamic tasks, pcm being static. So, with mplayer the dsp is also active, but the frequencies are not locked.
So there is actually no way to know if the op state is locked, but I can add a vfs entry for that (op_locked).

mcow 2011-02-18 18:17

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by auouymous (Post 944449)
> When I make a connection to OpenSSH, it goes from a blank display
> to "2 clients" If I open a second terminal window to it, it increments
> from 2 to 4.
> Why does each external connection count for 2 rather than 1?

Establishing an ssh connection to your n8x0 and then greping for "sshd" should give you something like this: [...]
The first line is the OpenSSH server, the second line is a client and multiple connections to your n8x0 will result in multiple client processes. Is your server creating multiple processes per client?

OK, I got a chance to check this. There are two client processes listed:
Code:

/home/user # ~ $ ps -A | grep ssh
  982 root      3448 SW  /usr/sbin/sshd
 8525 root      6056 SW  sshd: user [priv]
 8527 user      6056 SW  sshd: user@pts/0
 8547 user      3948 RW  grep ssh



All times are GMT. The time now is 20:19.

vBulletin® Version 3.8.8