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] Telescope: Graphical task switcher with thumbnails (https://talk.maemo.org/showthread.php?t=58691)

Kroll 2011-04-29 07:05

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

So it would be interesing how it will behave if you will open several windows of same application (XTerminal for example).
nothing enormous.

maacruz 2011-05-29 23:00

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 994996)
Thanks, maacruz! That was serious indeed.

Sorry that it has took a week to fix this. Solution was simple, but i'm really busy at this time ☹

Telescope 2.0~rc12
  • Fixed bug from previous maacruz' post
  • Now Telescope package has the icon!! Icons is © Kroll

I've just submitted rc12 to autobuilder, so it will take a bit of time to reach the repository

Still not fixed.
Today I managed to fill again my filesystem and the problem was repeated.
If ~/.osso/menus/applications.menu has size 0 telescope crashes leading to a reboot loop.

Mitrandir 2011-05-30 19:28

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Damn, i didn't think that it can be of zero size...

Will fix that

Mitrandir 2011-06-27 18:17

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by auouymous (Post 997044)
Is Telescope not releasing the X resources related to window thumbnails?

Sorry for late answer. I just tested this carefully and i can't reproduce that :( Either that was somehow fixed (and i forgot about that fix :)) or this happens only with particular apps (i have tested with default diablo apps).
I have measured X memory usage by this command:
Code:

while true; do cat /proc/<Xomap-PID>/status; sleep 1; done
This shows me VmSize, VmRSS and VmData and they always returns to original values after closing apps.

Quote:

Originally Posted by maacruz
If ~/.osso/menus/applications.menu has size 0 telescope crashes leading to a reboot loop.

Fixed that too. I'm now starting commiting new release, it will be available soon.

Do you guys have any other bugreports for telescope?
Sorry for extremely low activity during that year... :(
But after that time i want to promote Telescope 2.0 into Extras and i want to fix what is still broken.

maacruz 2011-06-27 19:35

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1040181)
Sorry for late answer. I just tested this carefully and i can't reproduce that :( Either that was somehow fixed (and i forgot about that fix :)) or this happens only with particular apps (i have tested with default diablo apps).
I have measured X memory usage by this command:
Code:

while true; do cat /proc/<Xomap-PID>/status; sleep 1; done
This shows me VmSize, VmRSS and VmData and they always returns to original values after closing apps.

Unfortunately auouymous is away for about 6 months, so he won't be able to give any answer till then.
Just in case, I may try to monitor X for a while using the same method.
Quote:

Originally Posted by Mitrandir (Post 1040181)
Fixed that too. I'm now starting commiting new release, it will be available soon.

Nice :)
Quote:

Originally Posted by Mitrandir (Post 1040181)
Do you guys have any other bugreports for telescope?

Not a telescope bug, properly speaking, but a X compositing bug.
The camera application has trouble showing the camera image. See this post for more details: http://talk.maemo.org/showpost.php?p...&postcount=424
As yet another dirty workaround, is it possible that telescope could send some event to this window with the same effect than the empty notification?

Mitrandir 2011-06-28 06:36

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by maacruz (Post 1040226)
Just in case, I may try to monitor X for a while using the same method.

Thanks, that would be great!

Quote:

Originally Posted by maacruz (Post 1040226)
As yet another dirty workaround, is it possible that telescope could send some event to this window with the same effect than the empty notification?

Ok i will try to create some workaround for that.
But i have no idea how to figure out if given window uses camera. It is easy to detect `camera' application window or event videocall window. But i hope these two are only apps which use camera on N8x0 :)
And thank you for your nice solution with command line for empty notification!

Mitrandir 2011-06-28 20:05

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Telescope 2.0~rc14
* Fixed bug: telescope may crash while installing/uninstalling software

auouymous 2011-07-05 07:21

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1040181)
Sorry for late answer. I just tested this carefully and i can't reproduce that :( Either that was somehow fixed (and i forgot about that fix :)) or this happens only with particular apps

Looks like it might have been fixed in rc14.

Mitrandir 2011-07-05 08:04

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by auouymous (Post 1044910)
Looks like it might have been fixed in rc14.

Great, thanks

mcow 2011-07-31 01:30

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
I had to re-install Canola today. I uninstalled it, and then installed and ran canola-cleanup. Some of the diagnostic messages displayed when canola-cleanup ran mentioned Telescope, but I didn't pay much attention. Then I re-installed Canola and got all the settings back to where I want them.

But then I discovered that Telescope was uninstalled in the process. Any idea why this happened? Reinstalling it was fine, and my previous settings were maintained, so it's not a big deal, just confusing.

Mitrandir 2011-07-31 06:03

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
mcow
This may be possible if canola-cleanup removed some package telescope depends on. I'm not familiar with canola, so i have no idea whan canola-cleanup removes :)

Addison 2011-08-03 08:48

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Hiya Mitrandir!

Did you ever decide to use this feature?
http://talk.maemo.org/showpost.php?p...&postcount=231

If there are only two apps running, just switching the screen seems like the right way to do this.

Peace. :)

Mitrandir 2011-08-03 08:53

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Hi, Addison!

From the one side, this is of course the optimal behavior then only two windows are open. But from the other side, this can break the logic and "Home→Tap" pattern. I think we could have this as optional feature that can be enabled in config file.

auouymous 2011-08-10 23:16

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by auouymous (Post 1044910)
Looks like it might have been fixed in rc14.

Nope, I just restarted Telescope and X dropped from 23meg to 10meg.

Mitrandir 2011-08-11 03:55

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
auouymous, could you provide me with concrete step list that reproduces a problem? Because i have been trying to reproduce this in different ways but without success. In my case i had always saw X memory usage dropped just after closing application to the value that was before its start +/- 100kb.

auouymous 2011-08-11 05:01

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1067651)
auouymous, could you provide me with concrete step list that reproduces a problem? Because i have been trying to reproduce this in different ways but without success. In my case i had always saw X memory usage dropped just after closing application to the value that was before its start +/- 100kb.

When I first posted this problem I was able to reproduce it by opening and closing apps while switching to Telescope in between. I haven't been able to reproduce it since rc14 because it now takes much longer to leak memory. I can keep WifiInfo, Tear, Maemopad+ and PDF reader all running simultaneously for several days now before I have to restart Telescope. With rc12 I had to restart Telescope every day.

Write down the size of X and check it again after several days of use (without a reboot of course), if it has increased, try restarting Telescope and see if it decreases.

Mitrandir 2011-08-11 05:53

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Okay, I must carefully check again if all X resources are freed accurately... :(

auouymous 2011-09-27 22:56

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Any chance Telescope could mark iconized windows on the thumbnails? My new titlebar hack allows windows to be iconized but Telescope doesn't update them while in this state so an indicator of some kind would be nice to know the thumbnail isn't current and also to show what windows won't appear when swiping horizontally on titlebar. While I testing I also noticed that other themes (non-Diablo5) have minimize buttons so this might benefit them as well.

Mitrandir 2011-09-28 03:27

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
This is possible of course. Telescope is not able to track window's content while it is iconified, but I can add markin its thumbnail with something. But you will nedd to choose icon that will have clear meaning for all users, not only users of Diablo5 or your hacked titlebar.

auouymous 2011-09-28 04:06

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1097739)
This is possible of course. Telescope is not able to track window's content while it is iconified, but I can add markin its thumbnail with something. But you will nedd to choose icon that will have clear meaning for all users, not only users of Diablo5 or your hacked titlebar.

@ Kroll, please make an icon. :D

The window is sort of sleeping so maybe a sleeping emoticon:
http://images.google.com/search?q=sl...urce=univ&sa=X

Or maybe display a checkered pattern over the thumbnail to give it a grayed out appearance but not so much that you can't recognize the contents. This wouldn't require any icons that could be confused for something else, like thinking the minimized mplayer process was sleeping and not draining the cpu.

Mitrandir 2011-09-28 04:28

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Sleeping icon is already used in Hildon to show suspended apps. But suspended apps significaly differ from iconified — they actually terminated by Hildon (but Hildon remembers that they was stopped automatically and restarts them when you are switching to suspended app).
So, suspended apps that decorated by Hildon with “Zz” icon are really not draining cpu (because they simply doesn't running). But that's not true for iconified apps. And I think using same metaphor can couse misleading

And I'm not sure checkered pattern will look nice...

Sorry for criticism :)

auouymous 2011-09-28 05:06

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1097759)
And I'm not sure checkered pattern will look nice...

A pixel size checkered pattern, not a checker board pattern. :)

b___b___b___
__w___w___w_
b___b___b___
__w___w___w_

One set (black and white), three transparent, or something like that. The alternating black and white should make it visible on solid black or white windows. Or maybe dark gray and bright gray instead of black and white.

You could also hang a little tab off the bottom corner that says "minimized". This combined with the grayed out thumbnail would let them know that the window was minimized(the obvious text) and not refreshing(the grayed out thumbnail).

Mitrandir 2011-09-28 05:26

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
That's makes sense. Such pattern will make “dimming” effect. And it is easy to implement.

Kroll 2011-09-30 00:30

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

@ Kroll, please make an icon.
I can make the icon. Just tell me what icon do you want to see.

eldiablo 2011-10-12 21:29

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
I use rc14 and I love it. Only real (minor) bug is that sometimes when using the keyboard in MicroB I begin to enter a website address that it remembers and tries to complete, then the keyboard layout shows the desktop. So if i put in a site that starts with www.go and it suggests google the keys are gone and I have to guess where they are. Still fantastic though.

Mitrandir 2011-10-13 04:37

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Ouch. Havn't seen that before. Does this happen every time you type addredd in microb?

tso 2011-10-13 04:48

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
not sure if it is related to telescope, as could have sworn i have seen it before i first installed it. Basically it looks as if
the OSK goes transparent.

AapoRantalainen 2012-06-06 15:17

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
I made test to compile Telescope (svn-185) for Maemo5, as I'm planning to use Fremantle without GLES.

It needed two compile fixes (newer compiler?) and one runtime. Then it almost works.

Works:
*show all running applications (there are no concept of minimized)
*clicking will activate selected
*clicking empty area will dismiss it
*closing applications with their close-button.


What is not working:
*Telescope has titlebar and close button (close button will crash telescope)
*If there are two xterm running, closing another will close (or crash) them both.

I compiled it with -DMAEMO4, and these are only modifications so far:

Code:

--- XTools.h    (revision 185)
+++ XTools.h    (working copy)
@@ -96,7 +96,7 @@
            Picture *picture
        );
 
-        static Atom XTools::windowType(Window window);
+        static Atom windowType(Window window);
 };
 
 #endif

(stricter rules for namespaces)

Code:

--- Mapping.cpp (revision 185)
+++ Mapping.cpp (working copy)
@@ -81,6 +81,8 @@
 //    printf("action:\t%s\n", action);
 //    printf("\n");
 
+    KeySym keySym = XStringToKeysym(keysym);
+    KeyCode keyCode = XKeysymToKeycode(dpy, keySym);
 
    Mapping *result = 0;
 
@@ -95,8 +97,6 @@
        goto finish;
    }
 
-    KeySym keySym = XStringToKeysym(keysym);
-    KeyCode keyCode = XKeysymToKeycode(dpy, keySym);
 
    if (keyCode == 0)
    {

(keySym and keyCode must be defined before 'goto')



And for running (seg faults without)
Code:

--- XTools.cpp  (revision 185)
+++ XTools.cpp  (working copy)
@@ -343,7 +343,7 @@
    if (status != Success)
        return false;
 
-    bool minimized = *property == IconicState;
+    bool minimized = false;
 
    XFree(property);

---
Running: start with
Code:

/usr/bin/telescope
Invoke with
Code:

dbus-send --type=method_call --dest=org.telescope /Telescope org.telescope.Telescope.Show string:""

Mitrandir 2012-06-06 17:27

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Wow! Cool that you found Telescope useful for your task.
Just curious — what is the reason for using Fremantle without GLES? Other device, not N900?


Quote:

Originally Posted by AapoRantalainen
*Telescope has titlebar and close button (close button will crash telescope)

If I recall correctly, Telescope tries to hide window decorations for its window using this code:
Code:

    // TeleWindow.cpp:89
    Atom windowType = XTools::_NET_WM_WINDOW_TYPE_SPLASH;
    XChangeProperty(_dpy, _win, XTools::_NET_WM_WINDOW_TYPE,
        XA_ATOM, 32, PropModeReplace,
        (const unsigned char*)&windowType, 1);

May be for your window manager this does not work. If so, you will have to find which property will hide titlebar. You can try to figure this out using, for example, `xprop` command on some non-decorated window.

Quote:

Originally Posted by AapoRantalainen
*If there are two xterm running, closing another will close (or crash) them both.

Hmm... I have no idea. You can try to test this on some other multi-window apps. Is this only for xterm or for all multi-window apps too?


It would be great if when you will send me a patch with your changes when it will be ready! But if it's not hard to you, please decorate your platform-specific changes with some define to keep code portable.
I'm really happy to see that Telescope is still useful for anybody :)

AapoRantalainen 2012-06-06 18:49

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1218517)
Just curious — what is the reason for using Fremantle without GLES? Other device, not N900?

Every closed source bits prevents Fremantle to compiled for another target and recompiled with better optimizations. One very nice target for Fremantle would be (of course) Nokia N8x0.

This thread is about GLES-less hildon-desktop: http://talk.maemo.org/showthread.php?p=1187842

Quote:

Originally Posted by Mitrandir (Post 1218517)
If I recall correctly, Telescope tries to hide window decorations for its window using this code:
// TeleWindow.cpp:89
[/code]

It could be this:
Code:

Atom newstate;
 newstate = XInternAtom(_dpy, "_NET_WM_STATE_FULLSCREEN", True);
 XChangeProperty(_dpy, _win,
              XInternAtom(_dpy, "_NET_WM_STATE", True),
              XA_ATOM, 32, PropModeReplace,
              (const unsigned char *) &newstate, 1);

But I haven't yet disabled hildon-desktop -task-switcher and that will cover fullscreen applications.


Quote:

Originally Posted by Mitrandir (Post 1218517)
Is this only for xterm or for all multi-window apps too?

Also browser gives this. Output is
Code:

X Error! [3, 3, 0]
X Error! [144, 145, 28]
X Error! [144, 145, 8]
X Error! [3, 20, 0]
X Error! [8, 145, 4]

And without catching errors:
Code:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x3400017
  Serial number of failed request:  799
  Current serial number in output stream:  800


Quote:

Originally Posted by Mitrandir (Post 1218517)
It would be great if when you will send me a patch with your changes when it will be ready! But if it's not hard to you, please decorate your platform-specific changes with some define to keep code portable.

I'm not yet sure how to use this with other components of hildon-desktop. I think these compile errors can be fixed for Diablo too.

Mitrandir 2012-06-06 19:58

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Please try to see the code that Telescope uses for closing windows. May be you will notice something wrong there.

It would be interesting to check if XTerm and browser windows are actually closed normally by telescope, or telescope makes them to crash :) I think telescope might be sending incorrect or messages to closed windows and this might cause segfault or X errors in XTerm process

Actually, I havn't tested Telescope anywhere except N8x0. But some guys were successfully used it in mobile Ubuntu with LXDE as well.

If I recall correctly, X errors while closing windows were "normal", I mean they appeared on N8x0 too, but without any side effects.

Of cource, places where you have fixed syntax due to newer version of GCC need not to be decorated with defines.

auouymous 2012-06-06 20:02

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by AapoRantalainen (Post 1218444)
What is not working:
*Telescope has titlebar and close button (close button will crash telescope)

The Fremantle window manager might not support _NET_WM_WINDOW_TYPE_SPLASH and therefore doesn't remove decorations. Try setting the _MOTIF_WM_HINTS property to disable decorations, if Telescope doesn't already set it. See line 485 at https://garage.maemo.org/plugins/scm...ui&view=markup for code to do it.

Mitrandir 2012-06-06 20:05

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Hey, auouymous, good to see you here again :) Thanks for hint.

lma 2012-06-07 00:29

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by Mitrandir (Post 1218565)
It would be interesting to check if XTerm and browser windows are actually closed normally by telescope, or telescope makes them to crash :) I think telescope might be sending incorrect or messages to closed windows and this might cause segfault or X errors in XTerm process

No segfaults at least, or my /media/mmc1/core-dumps would be a lot fuller than it is.

Mitrandir 2012-06-07 03:18

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
:)
On Diablo there is no segfaults, of course. But may be on Fremantle, with its different window manager?

riv64 2012-07-04 22:24

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Is there any way to run telescope on debian/ubuntu on pc?

Onyros 2012-07-05 04:21

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Quote:

Originally Posted by riv64 (Post 1232058)
Is there any way to run telescope on debian/ubuntu on pc?

I "third" this request (I have made it looooooong before myself). If it runs on Ubuntu, it'll probably also run on Arch.

I'd love to have this on my laptop, it's blazing fast.

Mitrandir 2012-07-05 06:27

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Hi,

Telescope surely can work on desktop, but it requires some slight midifications to work well with modern desktop window managers.

I just spent 10 minutes to build Telescope on my Ubuntu 12.04 and I got it work. But only with invoking from command line because binding to F5 key doens't work.

So, I need some time to fix key binding, to teach Telescope to use gnome’s background and may be to do some other fixes.

Currently I’m very busy but if you will ping me a bit later I will try to fix it and to build deb-package for ubuntu (and some installation script for Arch :) )

Onyros 2012-07-06 04:20

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Eager, eager, eager to try it out :D

I use DWM as my window manager, so all this talk about "modern desktop window managers" is crazy to me :P

Invoking from command line also sounds perfect to me, really.

BTW, I just got my Raspberry Pi - everything configured, working brilliantly, including XBMC & 1080p video - so this is something I'd love to try there, as well - also with DWM. So, it's a promise that there'll be pics & probably a video of Telescope working on a RasPi. Great advertising :D

Oh, and I just ressurrected my N800... as a remote controller for XBMC, through the web interface (for now). It's a great combination!

Mitrandir 2012-07-06 04:37

Re: [Announce] Telescope: Graphical task switcher with thumbnails
 
Okay :) Anyway, Telescope needs some slight refactoring in some Maemo-specific places.

And I'm not sure that Launcher will work fine on non-maemo. Do you need it? I can simply disable it if it’s not needed.


All times are GMT. The time now is 13:34.

vBulletin® Version 3.8.8