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)

auouymous 2010-10-03 12:20

[Announce] advanced-systemui (ASUI)
 
I needed a quick way to start and stop services and script icons lacked feedback, so I began work on an app that would launch fast and manage groups of services. Then I began adding features from the systemui menu, advanced-backlight and advanced-power, but made them easier to access without a stylus and consume less memory (2.8 vs 10-15 megs).

What it does and how to use it

Install program or download source code

Screenshots

Planned fixes and features

Many features and bug fixes were added to the test builds but never released to the repository. Run the following command as root to upgrade ASUI 0.6.0 to latest test build.
Code:

asui uu ; asui dit ; asui dis ; asui da ; asui dc

# reboot after running command

Fixes in the test build:
  • fix: ASUI wouldn't open if a menu was open, it nows closes the menu and opens (fixes many issues)
  • fix: charge animation no longer appears in widget editor
  • fix: battery applet now opens ASUI on release instead of press to avoid focus problems
  • fix: immediately commit most asui_state changes, doesn't fix issue with /apps/asui_state DBUS folder being deleted
  • fix: audio lock button is no longer clickable when no profiles are present
  • fix: don't set a devlock timeout for audio lock if device doesn't use one
  • fix: swiping ASUI to unmap would sometimes not unmap and also not snap the window back to fullscreen
  • fix: additional check to make sure ASUI window completely slides back onto screen
  • fix: increased drag deviation from 20 to 50 pixels (prevent some taps from being seen as swipes)
  • fix: horizontal and vertical swipes to blank and lock&blank devlock screen were triggering even when swipe didn't originate from the button bar
  • fix: keep popup clock from opening when alarm activates
  • fix: use correct alarmd ack value
  • fix: respond to acting_dead_open and acting_dead_close
  • fix: return minimal UI state when acting dead state is requested
  • fix: alarms that go off in the charging runlevel will now cause the device to boot and sound the alarm instead of silently dismissing them
  • fix: refactored focus grab/ungrab code
  • fix: retry window_grab() twice with 250ms delay between each attempt
  • fix: display notification when ASUI can't grab focus
New features in the test build:
  • added 8 command buttons
  • added 5 half widgets that hold buttons (2 buttons each)
  • visual swiping circles turn green when swipe is long enough
  • swiping down from devlock brightness control will now lower brightness
  • drain rate in the bottom 40% of battery graph, each graph line represents 10.0%/hr
  • added klogd and sysklogd to asui-settings service manager
  • booting screen
  • unused widgets and buttons can be hidden in the editor
  • the red devlock brightness control now changes between green, yellow and red
  • changed devlock timeout from 1000 to 1440 (minutes) when audio lock active
  • added message to not trust wifi fix in asui-settings
  • 'asui restart_mce' command

inoshishi 2010-10-05 09:48

Re: [Announce] advanced-systemui
 
Great work. It looks really useful.

I haven't tried it yet, but does it allow to sort processes by memory usage ?

auouymous 2010-10-05 10:10

Re: [Announce] advanced-systemui
 
Yes, processes are sorted by memory usage but running processes are sorted above all others.

tso 2010-10-06 03:27

Re: [Announce] advanced-systemui
 
This gets a thanks simply for keeping maemo4 alive :D

Almost makes me start looking into python to do a alternative file manager (the currently available ones both have flaws imo).

Tried to install, seems libxpm4 is missing...

auouymous 2010-10-06 04:54

Re: [Announce] advanced-systemui
 
apt-get install libxpm4

Run that as root and then try installing it. I'll have to figure out why the dependancy isn't working. This was my first debian package. :)

tso 2010-10-06 06:28

Re: [Announce] advanced-systemui
 
tried, didnt work. apparently the package is not to be found.

apt-cache search libxpm gives libimlib2 as a response.

auouymous 2010-10-06 09:51

Re: [Announce] advanced-systemui
 
Something is wrong with the diablo maemo repository, its free directory is sitting inside sdk. The chinook maemo repository has libxpm4 and works but I copied the file to my repo so it will install without any additional changes.

SilverHound 2010-10-06 17:04

Re: [Announce] advanced-systemui
 
Installed using Application Manager ("Click here to install"). Install went fine and program works well. Thank you for your good work.

However, 1) my version (5Oct2010) does not have on-screen or zoom button rotation control. 2) Could you furnish a user guide? I don't know how to get to the process list view. I don't know what the on-screen buttons across the top do.

auouymous 2010-10-06 19:16

Re: [Announce] advanced-systemui
 
Quote:

1) my version (5Oct2010) does not have on-screen or zoom button rotation control.
Rotation support requires the community SSU, I added an install link on the download page.

Quote:

2) Could you furnish a user guide? I don't know how to get to the process list view. I don't know what the on-screen buttons across the top do.
The about page describes all the features and how to use them.

auouymous 2010-10-06 19:29

Re: [Announce] advanced-systemui
 
Quote:

1) my version (5Oct2010) does not have on-screen or zoom button rotation control.
The application detects rotation support and should only display the three rotation icons when present. I didn't uninstall the community SSU to make sure they didn't appear. Were those three icons visible without the community SSU installed?

fpp 2010-10-06 21:04

Re: [Announce] advanced-systemui
 
Hey, new shiny stuff for my ole N810 ! Thanks much !

BTW, shouldn't your nickname be "auouλwous" ? :-)

auouymous 2010-10-06 21:53

Re: [Announce] advanced-systemui
 
I doubt forums would accept λ in usernames. :)

linuxeventually 2010-10-07 03:46

Re: [Announce] advanced-systemui
 
The brightness and volume sliders need some work, not the right sensitivity.

But the full-screen clock and other functionality seems to work :D

Great, thank you!

SilverHound 2010-10-07 04:22

Re: [Announce] advanced-systemui
 
I already had the community SSU installed. No icons appeared.

Sorry, I missed the "about page" info on the process viewer.

auouymous 2010-10-07 04:42

Re: [Announce] advanced-systemui
 
Quote:

The brightness and volume sliders need some work, not the right sensitivity.
@linuxeventually - I'm not sure what you mean by that.

Quote:

I already had the community SSU installed. No icons appeared.
@SilverHound - Do the rotation buttons appear in the advanced-brightness app?

SilverHound 2010-10-07 18:36

Re: [Announce] advanced-systemui
 
No rotation buttons. Not sure what app is advanced-brightness.

Process list view works great.

auouymous 2010-10-07 21:47

Re: [Announce] advanced-systemui
 
advanced-brightness should be available in the extra repository and adds a statusbar app to control brightness, volume and rotation.

auouymous 2010-10-08 09:33

Re: [Announce] advanced-systemui
 
Version 0.2.0 is up and the app now runs as a service accessed from the power button, which also hides it. The escape button will cause the service to restart and is needed because it currently has a small memory leak when rotating the screen.

Other changes include battery charging status, rotation with the volume buttons works in dialogs (clock, process viewer, ...) without closing them and the lock(long press) and lock&blank(short press) buttons have been merged into one button. The new lock button will always just lock without blanking or dimming when connected to the charger.

tso 2010-10-08 11:15

Re: [Announce] advanced-systemui
 
installed it, and now i get neither it or the default menu when pressing the power button...

auouymous 2010-10-08 11:49

Re: [Announce] advanced-systemui
 
Quote:

installed it, and now i get neither it or the default menu when pressing the power button...
Does (ps|grep advanced-systemui) show it running as root?

@tso and SilverHound

Can you both download and run http://qzx.com/asui/_download/advanced-systemui-test (as root) and tell me what the output says?

@tso - press the power button when you run it

tso 2010-10-08 13:57

Re: [Announce] advanced-systemui
 
Code:

xrr: supported (90 148 1.2)
dbus: listening...
dbus: received message type = signal
        sender = org.freedesktop.DBus
        serial = 0x2
        destination = :1.154
        path = /org/freedesktop/DBus
        interface = org.freedesktop.DBus
        member = NameAcquired
        wants reply? = no
        reply serial = 0x0
        signature = s

and nothing happens wheen i press the power button

auouymous 2010-10-08 21:19

Re: [Announce] advanced-systemui
 
What does (dbus-monitor --system) show when run as root and the power button is pressed?

fpp 2010-10-08 21:37

Re: [Announce] advanced-systemui
 
Works fine here ! Really slick !

tso 2010-10-09 06:57

Re: [Announce] advanced-systemui
 
Code:

signal sender=:1.2 -> dest=(null destination) path=/org/freedesktop/Hal/devices/computer_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
  string "ButtonPressed"
  string "power"

btw, will this program allow for a long press of the power button to shut down or reboot the device? and what about navigating the ui without having the touch screen functioning? Happens to me at times right now, and without the option of using the dpad i have to remove the battery to force the issue.

auouymous 2010-10-09 11:34

Re: [Announce] advanced-systemui
 
Download that test file and try running it again, your power button uses a different signal. n800?

Quote:

btw, will this program allow for a long press of the power button to shut down or reboot the device?
It doesn't touch the long press, so you can still shutdown with that. Short press just toggles the adv-sys window state.

Quote:

what about navigating the ui without having the touch screen functioning? Happens to me at times right now, and without the option of using the dpad i have to remove the battery to force the issue.
Force what issue? Navigating UI with dpad is now on the todo list. Does the n800 have a hardware menu button? If so, what does the console show when you press it while adv-sys is visible?

tso 2010-10-09 12:11

Re: [Announce] advanced-systemui
 
force the issue as in making it shut down by removing the battery.

And so far i have yet to get adv-sys to show up since the 0.2.0 release. Still, tested the long press just now and i see that i need to hold it down longer then i initially thought required.

auouymous 2010-10-09 20:43

Re: [Announce] advanced-systemui
 
Quote:

tested the long press just now and i see that i need to hold it down longer then i initially thought required.
I only listen for the signal sent when short pressing the power button and there is nothing I'm doing that could possibly change the behavior of the long press.

1) Did you re-download the advanced-systemui-test binary and run it? It uses the signal you gave me and should work. The terminal will show "listening for both power buttons signals" if you have the latest test binary.

2) What line is displayed in the terminal when you press the hardware menu button?

tso 2010-10-09 20:58

Re: [Announce] advanced-systemui
 
1) well i'll be, advsys showed.

2) while running advanced-systemui-test? advanced-systemui: key pressed (menu)

auouymous 2010-10-09 22:50

Re: [Announce] advanced-systemui
 
advanced-systemui (0.2.1)
  • fonts are now rendered at correct size instead of size-1
  • battery charging signals now refresh immediately
  • advanced-systemui process is highlighted green in process viewer
  • enlarged the memory/cpu section in the battery widget
  • fixed memory leak when rotating screen
  • power button now works on the n800

tso 2010-10-09 23:32

Re: [Announce] advanced-systemui
 
confirmed, power button works fine.

but i notice that the lock only dims the screen, any key or screen press is still passed on to and may result in unintended consequences.

gambol 2010-10-09 23:48

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by tso (Post 837409)
confirmed, power button works fine.

but i notice that the lock only dims the screen, any key or screen press is still passed on to and may result in unintended consequences.

I saw the same until I rebooted.

auouymous 2010-10-09 23:51

Re: [Announce] advanced-systemui
 
Quote:

but i notice that the lock only dims the screen, any key or screen press is still passed on to and may result in unintended consequences.
1) hardware lock or the software lock button in adv-sys?

2) if software lock, is the charger attached? Does it change if you attach or remove charger?

3) if software lock and not on charger, are you using a short or long press? Does short and long presses produce different results?

tso 2010-10-10 00:36

Re: [Announce] advanced-systemui
 
Gambol was right about the reboot.

Still, it may be a bit toeasy to unlock on the n800 as its just a press of the power button. Systemui used a combo of power and center dpad.

auouymous 2010-10-10 00:45

Re: [Announce] advanced-systemui
 
But pressing power button to unlock is a feature!! Serious! :)

I'll add a setting to use current method or require power button + unlock button to unlock when the config dialog is added.

tso 2010-10-10 08:42

Re: [Announce] advanced-systemui
 
hehe, the multi-button combo helps avoid accidental unlocks when the device is in a pocket or similar.

btw i see that the backlight controller jumps between levels of 20, much like the default backlight applet. Is there a plan to make it more like the advanced backlight applet, and allow any selection between 1 and 127? And perhaps include some - and + buttons at the ends of the sliders?

auouymous 2010-10-10 09:56

Re: [Announce] advanced-systemui
 
There is no way the n810 power button could accidently be pressed, is the n800's button different?

And yes, more backlight levels are on the todo list.

tso 2010-10-10 10:39

Re: [Announce] advanced-systemui
 
On the N800 the power button sits right next to the zoom and full-screen buttons. It is recessed into the frame, but still quite possible to hit.

tso 2010-10-10 18:15

Re: [Announce] advanced-systemui
 
is there a reason why i see the message "touch screen and keys active" each time the turns on after idling?

iirc, that message used to only show when i actually unlocked the n800.

elliott 2010-10-10 20:36

Re: [Announce] advanced-systemui
 
Quote:

Originally Posted by tso (Post 837837)
is there a reason why i see the message "touch screen and keys active" each time the turns on after idling?

iirc, that message used to only show when i actually unlocked the n800.

I get that too on my N810, didn't happen before.

auouymous 2010-10-10 21:38

Re: [Announce] advanced-systemui
 
The active and lock notifications are only sent when MCE sends the tklock_mode_ind signal and that only happens on my n810 when the hardware lock button is pressed. The lock signal is also sent by MCE when you long press the on-screen lock button. It isn't however sent when the power button unlocks the screen but I'm working on manually displaying the unlock notification.

This mimics the behavior of systemui on my tablet and I will need more detailed information from both of you if it is doing something different.


All times are GMT. The time now is 02:25.

vBulletin® Version 3.8.8