![]() |
Re: N900 clock replacement [continued]
I`m stress testing (as before) "edition" with seconds and with script wrapper. It`s not the newest version (from tommorow) but one build older.
I don`t know how and I can`t reproduce it but I have managed to run two instances of clock at the same time. Take a look: http://img708.imageshack.us/img708/2...2020112591.png I touched the clock icon from main menu (applications view, not desktop) and somehow, instead of taking me directly to the already opened clock in the background, second instance appeared. |
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
No, both of them were launched from menu, by touching its icon.
Somehow at the second time system was not aware, that clock is already running and started second one. |
Re: N900 clock replacement [continued]
Quote:
The code link is available at the first page, so you can be your own judge about it. |
Re: N900 clock replacement [continued]
Hi ade,
I think I found the reason why the application crashes. For me, this only happens when the applications starts by the clockicon, or the statusmenu clock button. But not when starting the app from the commandline. So, what makes the difference? Applications started from the app-icon are started by a dbus-call. And according to this (Maemo: Hildonizing application UI) Quote:
for the dbus top_application call. Here is a nice example. (Qt application for Maemo with DBus support) |
Re: N900 clock replacement [continued]
Quote:
We should definitely look further into this and hope we are on the right track. Thanks for your research. Edit: This also confirms it: Just after start: Code:
user 4256 4255 0 00:33 ? 00:00:00 /bin/sh /usr/bin/worldclockCode:
user 4259 1 3 00:33 ? 00:00:05 /usr/bin/worldclock.exe |
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
Another (minor) problem with trash text in banner - polish characters are displayed wrongly:
http://img10.imageshack.us/img10/929...2020122062.jpg There should be "ł". |
Re: N900 clock replacement [continued]
Hi, I added code for prevent system killing clock-application. I think this also prevents multiple instances running (if not started from terminal).
https://gitorious.org/~aaporantalain...45253f7bfc66b6 I also made commented block how to achieve: User has clock already running and clicks clock in the panel -> pop-up existing clock. Code is not in use, because I have done it only for clutter, and didn't know how to do it with QT. https://gitorious.org/~aaporantalain...b44db844975b87 (If QT's MainWindow is same than Window, it will be straightforward). I'm just testing packaging with extras-devel (extras-devel doesn't relate CSSU any how). |
Re: N900 clock replacement [continued]
[EDIT]
Worldclock is not anymore on extras-devel [/EDIT] Worldclock is now in extras-devel (under user/system), installing it will remove clock-ui (and removing clock-ui will remove mp-fremantle-pr). install Code:
apt-get install worldclockCode:
apt-get install clock-ui- If you have clock already running and click clock on the Application menu, it will show existing clock. But if you have clock running and click clock on top-panel, it doesn't show clock (not start another either). -- Packaging files are committed: https://gitorious.org/~aaporantalain...4c0f2436368e31 There are missing 'clean', because I do not know proper way to do that with qmake. And now I see mistake: service file is two times with identical content. File with shorter name is installed to the correct place and name is changed to the longer version. |
Re: N900 clock replacement [continued]
Nice, will it work if I have CSSU-T installed?
|
Re: N900 clock replacement [continued]
Quote:
Seems to me that clock-ui is not critical part of the system, so messing with it will not cause harm (just reinstall it). But I haven't yet tested booting without /usr/bin/worldclock file. |
Re: N900 clock replacement [continued]
And why you put that in extras-devel? Yesterday we agreed in IRC that as soon as it is packaged it will be put in CSSU repo. And you were told to not put it in extras-devel because it will bring problems with integration into CSSU. What is the big idea?
|
Re: N900 clock replacement [continued]
finally we had a version standard, without the seconds in one position and not in the other..finally centered...and now this extra-devel release, with the potential of not having to come to this thread every date due to the multiple updates...and everything is messed up again..what a step back..disapointed..really hope its a step back to soon have two steps in font...
|
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
I think it would be best if the replacement clock would stay here just a little longer to still fix a few bugs.
Then I hope the code can go to the CSSU git in the desired way, where guys like Freemangordon can "clean up the mess" as he said it :D @AapoRantalainen Your packaging effort will be of good use then. So what I still hope to do: - fix snooze/inactive one time alert. - I have to read the info from Nicolai and AapoRantalainen about how to address the prevention of killing the clock (and act on it if needed) Looking at the discussion on IRC yesterday I could be we have to keep the background for CSSU acceptance. But I will leave that part wisely to them if possible :) @artpra I fixed your banner translation issue in the latest download. Something else I noticed while having my N900 in Polish settings: the days for repeating alarms where separated by two comma's (every day ended with a comma in advance). Is that correct, is it my phone, or should it be changed? |
Re: N900 clock replacement [continued]
Quote:
Quote:
/Estel |
Re: N900 clock replacement [continued]
Can someone explain, what is the exact issue with seconds
and/or landscape mode. Nicolai |
Re: N900 clock replacement [continued]
@nicolai
worldclock replacement got some issue, that dates from times when CepiPerez wrote it originally - when using background image (i.e, only in landscape, as portrait doesn't have background image yet), every change (minute, hour, or second changing) cause ineffective - CPU intensive - "redraw", or how it's properly called. So, when having worldclock opened, every minute CPU is waked up to 10% usage, for a while, and there is ~0.5 second delay, before new minute is displayed in worldclock. Of course, same apply to situation, where both minute and hour change. Now, it may sound like "not big deal" when we talk about it once per minute (yet, it's still an issue, that isn't present in stock wordlclock). Ho ever, if we enable nice little feature of showing seconds with worldclock opened, such "redraw" happen every second, keeping CPU on (unacceptable) 10% usage. 100% working - yet not ideal - workaround for it, is to disable background image - without it, the "redraw" doesn't happen, and CPU overhead isn't present. Of course, "proper" fix would require to eliminate this "redraw" problem for worldclock with background. Yet, as it's just purely visual, feature-less thing (background image), I'm sure it can be just deleted, unless someone will introduce proper fix. I'm sure ade will be able to explain it using more proper "coder" language, yet i hope it's understandable enough now. /Estel |
Re: N900 clock replacement [continued]
Quote:
- Some people want seconds in the clock, some don't - Drawing seconds in landscape takes about 10% cpu when there is a background image - There is no background image in potrait mode |
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
How often this is called?
mainwindow.cpp:108 Code:
void MainWindow::paintEvent(QPaintEvent*)How it is defined that there aren't background image in portrait mode? (I qmaemo5rotator.cpp, but doesn't understand) |
Re: N900 clock replacement [continued]
Hi ade,
remove the paintEvent method all together and put this in your mainwindow constructor: Code:
this->setAutoFillBackground(true); |
Re: N900 clock replacement [continued]
Quote:
Why do you make it look so easy :) |
Re: N900 clock replacement [continued]
@nicolai...finally..someone who cares for the final thing in an coherent user point of view..someone who cares to embrace problems and is a geniouis solving them..thank you very much nicolai..dont konw if your solution works but iam finally seing this going the right way...wish other developpers were so comitted open minded and eficient as you.
|
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
Quote:
Also confirming, that banner is now corrected. |
Re: N900 clock replacement [continued]
Quote:
|
Re: N900 clock replacement [continued]
This absolutely needs polishing! :D (pun intended)
|
Re: N900 clock replacement [continued]
Raising existing clock when clicked on top-panel, or in application-menu. Works.
function: https://gitorious.org/~aaporantalain...ain.cpp#line13 activated: https://gitorious.org/~aaporantalain...ain.cpp#line57 |
Re: N900 clock replacement [continued]
Great to have some help from Nicolai and AapoRantalainen now.
We go back to one version: background in landscape, seconds added in clock, and non repeating alarm inactivated (after alarm execution). Changes/fixes: ade 1. Made the generated alarm cookies in line with the stock clock. One change that may be noticable in certain situations: Before, the "snooze" and "stop" button texts where put literally in the alarm queue, using the current language. If the device language was changed, the texts on the buttons would remain the same. Now the button texts are translated as the alarms goes off, like the stock clock. [ developers: FYI, attr_data.sval must have the value "osso-clock" in the queue, else the translations will not work ] 2. Replaced double commas in polish by a single one. 3. Landscape background in combination with seconds in clock (thanks to Nicolai for the code) The CPU usage drop now allows for this. AapoRantalainen 1. Raising existing clock when clicked on top-panel, or in application-menu 2. added code for prevent system killing clock-application (thanks to Nicolai for the info) Because we don't need the shellscript anymore, please remove /usr/bin/worldclock.exe by hand if you have installed the replacement clock before. Still leaves the issue open from the snooze as (mentioned on the first page). Could not fix that right now. I will look at that further tomorrow, as I also will update git then. Installation instructions as always on the first page. |
Re: N900 clock replacement [continued]
Thanks ade.
I've tried to test everything that I could, and I haven't found any bugs - only one minor cosmetic glitch: http://lorienart.pl/cover/clock.png It isn't supposed to look this way with default Maemo theme, yep? Of course, it's really *minor* thing. IMO, it's ready for CSSU-T. /Estel |
Re: N900 clock replacement [continued]
Quote:
Still have to fix the snooze issue and if do not get bug report for a while, towards quality control :) Edit: If it is the icons your are referring to: replacement clock uses: /opt/usr/share/icons/hicolor/164x164/hildon stock clock uses: /opt/usr/share/icons/<theme>/164x164/hildon/ If I judge it on the fly.... |
Re: N900 clock replacement [continued]
Wrong placement of the icons - Their should overlap with background positions, so background thing create "glow" effect. See comparison:
Original worldclock: http://lorienart.pl/cover/clock2.png Worldclock replacement: http://lorienart.pl/cover/clock.png Seriously, it's very minor, cosmetic glitch, so I *almost* feel ashamed reporting it :p /Estel // Edit If it's going to end in CSSU, for sake of completion, maybe worldclock should come with replacement background image for default theme, where background position would be adjusted? Of course, if adjusting position of icons themselves in program-side is too hopeless/hard work. All after all, ade, You may feel that Your work (with important help from Nicolai and Aapo) is almost complete, if people report such things ;) |
Re: N900 clock replacement [continued]
Now I get it :D
If it not too much work I can see if I can adjust it. Can you attach that wallpaper? I am afraid I do not have that (anymore). |
Re: N900 clock replacement [continued]
|
Re: N900 clock replacement [continued]
Estel,
The icons should now be at the exact same location as the original clock. I did not have the icons, but my own icons do center over the blue objects in the background. Edit: also removed the brackets around GMT under the worldclock button. Don't know why they have been there. |
Re: N900 clock replacement [continued]
I have been following this thread from last week or so. Brilliant work by all involved in it. Stock clock interface is replaced
|
Re: N900 clock replacement [continued]
now you ve cracked it..everithing looks propper and the rotation is superfast..well done..tks
|
| All times are GMT. The time now is 21:27. |
vBulletin® Version 3.8.8