Re: [Lazarus] Test This Please
On 11/06/2015 09:55 AM, Anthony Walter wrote: > To Debian based Lazarus users, if you have the inclination can you test > this out, or provide some feedback: > 40 minutes in, works great and looks pretty, needs the utilities thing fixed. If you're looking for suggestions? Scrubbing with arrow keys would be nice, fast scrubbing with shift or control. Just for the fun of it, it would be interesting to be able to click on a processor color(s) and isolate those graphs. > http://www.getlazarus.org/apps/cpugraph/ > > Here is a video of the program if you want a better idea of what it does > before you try it: > > http://cache.getlazarus.org/video/cpugraph-scrub.mp4 > > * Note to testers * > > I've written code to enabled system wide hotkey detection which may not > work in environments toolkits where Gtk doesn't own the root window. > > If Super + U (super is the Windows key) doesn't toggle the graphing > window visibility, please let me know what "echo $XDG_CURRENT_DESKTOP" > returns in a terminal. > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Good feedback. Regarding arrows keys, the window is actually a popup and as such I'm not sure it can receive input focus. I'll investigate. The cpu graph isolation suggestion is a really good idea. Thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
El 06/11/15 a les 09:55, Anthony Walter ha escrit: To Debian based Lazarus users, if you have the inclination can you test this out, or provide some feedback: On kde (kubuntu 15.10) with compositing disabled the window never disappears (when I click on the checkbox it just stays there without the graph moving) and it has black corners, as well a a black background in the slider. Everything is fine with compositing enabled, but I usually leave it disabled. The hotkey works, $XDG_CURRENT_DESKTOP is KDE. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On 11/06/2015 11:22 AM, Luca Olivetti wrote: > El 06/11/15 a les 09:55, Anthony Walter ha escrit: >> To Debian based Lazarus users, if you have the inclination can you test >> this out, or provide some feedback: > > On kde (kubuntu 15.10) with compositing disabled the window never > disappears (when I click on the checkbox it just stays there without the > graph moving) and it has black corners, as well a a black background in > the slider. This could very well be the exact same problem I had with my program and 15.10. GTK is broken in some manner, using the libqt4pas5 (and compiling for qt with the dev library) fixed it. My problem was also the black corners and black back/fore ground. > Everything is fine with compositing enabled, but I usually leave it > disabled. > The hotkey works, $XDG_CURRENT_DESKTOP is KDE. > > > Bye -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Anthony Testing on Kubuntu 64 15.04, I can't find it on the KDE menu, but running from the command line works. The utility looks good and is responsive, but I'm not getting a tray icon. Also there is a GTK warning message when it starts. Some suggestions: * I instinctively tried the right mouse button for a pop-up menu to look for a configure or exit command. It might be useful to have one? * An option to make it sit behind active windows would be useful. Kind regards, Paul Michell On 06/11/15 08:55, Anthony Walter wrote: To Debian based Lazarus users, if you have the inclination can you test this out, or provide some feedback: http://www.getlazarus.org/apps/cpugraph/ Here is a video of the program if you want a better idea of what it does before you try it: http://cache.getlazarus.org/video/cpugraph-scrub.mp4 * Note to testers * I've written code to enabled system wide hotkey detection which may not work in environments toolkits where Gtk doesn't own the root window. If Super + U (super is the Windows key) doesn't toggle the graphing window visibility, please let me know what "echo $XDG_CURRENT_DESKTOP" returns in a terminal. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On Fri, 6 Nov 2015, Anthony Walter wrote: To Debian based Lazarus users, if you have the inclination can you test this out, or provide some feedback: http://www.getlazarus.org/apps/cpugraph/ Here is a video of the program if you want a better idea of what it does before you try it: http://cache.getlazarus.org/video/cpugraph-scrub.mp4 * Note to testers * I've written code to enabled system wide hotkey detection which may not work in environments toolkits where Gtk doesn't own the root window. I use KDE. If Super + U (super is the Windows key) doesn't toggle the graphing window visibility, please let me know what "echo $XDG_CURRENT_DESKTOP" returns in a terminal. It doesn't toggle, and the value of XDG_CURRENT_DESKTOP is KDE. Please enable sizing/moving (or at least moving) and hiding of the window; it is the first thing I tried to do but it doesn't work. I also suggest adding a legend to the slider at the bottom. I had no idea what it was supposed to do. And lastly, consider adding a context menu on the window, where I can choose 'Quit' or so. It took me some time to realize I had to do this through the toolbar. The toolbar menu has 'Show the CPU usage graph'. At first sight it didn't do anything, so I thought it would open/close the window. It does not. Only later I realized it stops the animated graph. Other than that, nifty tool. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On Fri, 6 Nov 2015, Paul Michell wrote: Anthony Testing on Kubuntu 64 15.04, I can't find it on the KDE menu, but running from the command line works. The utility looks good and is responsive, but I'm not getting a tray icon. Also there is a GTK warning message when it starts. Some suggestions: * I instinctively tried the right mouse button for a pop-up menu to look for a configure or exit command. It might be useful to have one? * An option to make it sit behind active windows would be useful. +1 Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Luca, thanks for that very observational point. I actually do a basic check for a compositing window manage which will result in the problem you described. There is a command line switch to force it off in the program. cpugraph -flat Unfortunately I didn't tie it to the opacity/visibility, which I will do in the next revision. The short of it is setting opacity with compositing off does not hide the window while setting visible to false does. I'll fix it by making the "-flat" switch assume the compositor is off. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Test This Please
To Debian based Lazarus users, if you have the inclination can you test this out, or provide some feedback: http://www.getlazarus.org/apps/cpugraph/ Here is a video of the program if you want a better idea of what it does before you try it: http://cache.getlazarus.org/video/cpugraph-scrub.mp4 * Note to testers * I've written code to enabled system wide hotkey detection which may not work in environments toolkits where Gtk doesn't own the root window. If Super + U (super is the Windows key) doesn't toggle the graphing window visibility, please let me know what "echo $XDG_CURRENT_DESKTOP" returns in a terminal. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Paul, there is a misspelling in my makedeb program that results in Utilities not appearing in dash/spotlight searches. I'll fix it in the next revision (soon). Regarding clicking on the window, most of the window is transparent to mouse events, save for the slider. I'll look into putting a context menu in that area. By the way, there should be a tray icon with an Exit option. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Thanks for the feedback Michael. The problem is the compositing opacity setting. I'll do a new build right now to fix this issue. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On 11/06/2015 11:15 AM, Anthony Walter wrote: > Good feedback. Regarding arrows keys, the window is actually a popup and > as such I'm not sure it can receive input focus. I'll investigate. The > cpu graph isolation suggestion is a really good idea. > > Thanks. My pleasure, thank you for the work. If capturing keystrokes is problematic then maybe slo/quick buttons on both sides... > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On 06/11/15 10:40, Anthony Walter wrote: By the way, there should be a tray icon with an Exit option. I don't get a tray icon at all. Is that because I've started it from the command line? (Please excuse the quality of the screen-shot, I had to squish it pretty hard to get under the 100K bounce limit!) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Is there a way to I compile it for windows? I want it too! ;) Regards, Ara -- http://www.fastmail.com - Same, same, but different... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Okay I put up new debs (cpugraph_1.0.1-1) which if you get and run will just overwrite the previous version, assuming the program isn't running. * Fixed the proper spelling Utility category to the desktop file. * Removed some known compositors (Mutter, KWin) * Without the compositing the window should just appear/disappear and not fadein/fadeout * This should fix issues where the graph won't hide * The -flat switch now disables all opacity, window transparencies, and rounded corners. In retrospect I'll add both the -compositing and -flat flags so the user can set those values to override what I am guessing their window manager is configured to support. Regarding resizing and moving the window, those are on the TODO list along with toggling the graphing of individual CPU cores. I'll probably make a "mini" mode where the window is much smaller and unobtrusive with the ability to drag it around. The same toggle keys would apply to show and hide the mini window. My original need for the app was to track CPU usage while video encoding with differing configurations. I didn't intend to keep the graph open all the time. I jsut wanted a way to quickly peek at the history. I figured a hotkey was quick enough. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Am Friday 06 November 2015 09:55:06 schrieb Anthony Walter: > To Debian based Lazarus users, if you have the inclination can you test > this out, or provide some feedback: works fine on opensuse 13.2 with KDE3 (yes 3) Tray icon works too for your deb tool you can take some inspiration form here: http://prof7bit.github.io/LazPackager/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On Fri, 6 Nov 2015, Anthony Walter wrote: Okay I put up new debs (cpugraph_1.0.1-1) which if you get and run will just overwrite the previous version, assuming the program isn't running. Nice job. I tested the new version on another machine (also KDE), there the shortcut does work. I do suggest switching window type, because right-click now shows context from the application below the graph window. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Paul, a little later I'll do a rebuild with my alternate tray icon code and we'll see if that fix the issue. There should definitively be a tray icon, otherwise you need to use "kill " from the terminal to ask it to close gracefully, and "kill -KILL " to force anything to close ungracefully. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Michael, I am going to release my makedeb application and then come back to fixing/modifying this app. I'll work on z-order per your suggestion, but also add the ability to move/resize the default position. I also plan to add a options screen where you can redefine the colors, the animation interval (10, 5, 2 times a second), as well as the option to smooth out data point (drawing curves between nodes rather than lines). I also will add the ability to turn off/on compositing and flat from the options screen. With regards to moving/sizing, i think I will change the layout based on they way it's resized. The way I imagin it iff you make the window thin and tall it will stack each cpu graph its own rows. If you resize wide and not very high, then cpu graphs will be displayed in consecutive columns. And if size it big it will look as it is now. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On 11/06/2015 12:11 PM, Anthony Walter wrote: Okay I put up new debs (cpugraph_1.0.1-1) which if you get and run will just overwrite the previous version, assuming the program isn't running. * Fixed the proper spelling Utility category to the desktop file. * Removed some known compositors (Mutter, KWin) * Without the compositing the window should just appear/disappear and not fadein/fadeout * This should fix issues where the graph won't hide * The -flat switch now disables all opacity, window transparencies, and rounded corners. In retrospect I'll add both the -compositing and -flat flags so the user can set those values to override what I am guessing their window manager is configured to support. AFAIR, there's IsCompositingEnabled (or similar name) in gtk2 and qt interface sources (both can recognize compositing wm), so you can check if compositing wm is running or not, and then you don't need such switches. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Paul, I think that's an issue with the Lazarus Gtk2 TTrayIcon component just not showing up on Kde, and nothing to do with being launched from the command line. A few weeks ago I added support to the component for Unity app indicators and it was reported to have fixed the issue, but I removed it after some concerns others had mentioned. Mark, graphing isn't super cheap on the CPU. It's updating every 100ms. If you keep it closed other than when you want to check and it uses will use < %1. I compared my app when visible to the gnome-system-monitor (which takes up a lot of the CPU even when not visible) and mine uses less. So I guess if you want a graphic representation of CPU usage the best I can say is cpugraph uses less resources than gnome-system-monitor, and almost no resources when hidden. Also, there are 32 and 64 bit versions: http://cache.getlazarus.org/debs/cpugraph_1.0.1-1-i386.deb http://cache.getlazarus.org/debs/cpugraph_1.0.1-1-amd64.deb -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
On 06/11/15 11:11, Anthony Walter wrote: Okay I put up new debs (cpugraph_1.0.1-1) which if you get and run will just overwrite the previous version, assuming the program isn't running. The menu is now fixed and I can run from there, but still no tray icon, so no way to close it? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test This Please
Thanks mentioning LazPackager. I think I now have have a better way to find dependencies. Are -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus