Incorrect file system time (CM7) - EVO 4G General

Has anyone noticed the time the file system provides differing from the time you see in the status bar (the real time)? My status bar and clock widget time are accurate, but if I view the details of a file I just created or modified in either ES File Explorer or Astro, the time reported is 5 hours ahead of what it really should be. It's not an app bug since both file explorers report it, but I know the system time is correct. It seems just the file system is different. This is on CM7 nightly #18 but I'm not sure if this bug is specific to the ROM.

CONGRATULATIONS!
You have found out that most of the world, including the underlying parts of the Linux kernel use Universal Coordinated Time, also known at UTC, UCT, GMT, and Greenwich Mean Time.
Why is it five hours off? Because you live on the east coast, or in the Eastern time zone of the US, where the time is "GMT -5:00".

drmacinyasha said:
CONGRATULATIONS!
You have found out that most of the world, including the underlying parts of the Linux kernel use Universal Coordinated Time, also known at UTC, UCT, GMT, and Greenwich Mean Time.
Why is it five hours off? Because you live on the east coast, or in the Eastern time zone of the US, where the time is "GMT -5:00".
Click to expand...
Click to collapse
Okay...so what? It's still wrong. If it said "17:30 GMT", that would make sense. I would read it and know it means 5:30 PM GMT, so 12:30 PM EST (my time). But instead both file explorers just report the time as simply 5:30 PM. Considering my time zone is EST, and the phone should know that, the time is incorrect. My Ubuntu box correctly shows file times according to my local time. No reason this shouldn't as well.

I think it is for the simple fact that the file functions in android (java), which every program uses, is implicitly set using UTC. So in order for the file manager to represent time adjusted for your time zone, it would have to add a few more lines of code to adjust each files time to your time zone. This just causes unnecessary overhead.
In terms of big-o notation, if you are listing a folder containing thousands of files, it is going to have to perform thousands x n just to give you the file time adjusted to your time zone. They are simply balancing performance vs. something cosmetic

Related

Summer- and Winter-Time changing ?

Hallo!
I wonder if the WM5 changes the time automatically in the Summer and Winter time for Europe countries.. As you know in April and October the time changes ( +1 or -1 ) , this happens automatically in Windows XP , is there such a function for the Wizard ? If yes, is there anywhere in WM5 as a settings for that ?
It should set it automatically, but it failed to do so this year (1st time since I've got my device). There isn't a place where you can set it, but I bet it is at the Regional Setting (hidden), where the unit will change according to your region.
I know (presume) that it will change the time because when I looked into the notification queue, there is a windows time mangement thing that runs on the exact time and date, for the summer time changing. So, I'm pretty sure that it will change the time, but not sure why it doesn't the last time.
Get yourself a software to check the Notification Queue, look for schedule items that starts at a specific time, and see if it is there.
Time zones & summer time changeover info (i.e. when the changes happen) are stored in the registry, IIRC.
Thank you - both - fp your answers.
What led me to ask this question is : after installing a program called WorldMate, I noticed that the time between my location and other countries are wrong, probably 2 hours different instead of 1 hour, because in summer my country has +2 than GMT time, and only +1 more than the GMT time... But I noticed that WorldMate showed me that my country is only +1 instead of +2 in summer, and the program is based on the device system... I changed the time and added +2 manually in WorlMate, and this corrected the issue.

[new release] RunEveryday - Updated to v1.1

The missing Task Scheduler known from Windows XP!
RunEveryday 1.1 is done! It has:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
no more need to use another program to setup the parameters etc. etc, just startup the app without any parameters, and you will be presented with a config dialog. in addition, you should remove any old entries within the notification database before using this new one (they are incompatible).
Everything should wotk MUCH better with this one. but still a few known issues:
1) When changing the system date, and you skip over a day, RunEveryday will get out of sync and stops working propperly. Work around: Start RunEveryday, and without changing anything, press the "Apply" button. this will correct all time/date stamps in the notification database.
2) For now, there can't be any spaces within the filename. Spaces within the directory name are oke though. THis is because I needed to seperate the Full path file name with any command line options, otherwise CreateProcess wouldn't work propperly. (Will be fixed in next version)
3) Keyboard doesn't popup when trying to enter text in the Command line. Workaround: select other program which has keyboard support first, then open RunEveryday, so you can openup the SIP yourself. This will be fixed in next version.
Compatibility: WM2003, WM5, WM6, QVGA, VGA and Square (240x240). in Other words: all recent devices
That's it! if there's any additional problems, I'd like to hear about them.
////////////////////////////////////////////////////////////////
// Text Below is outdated
Older version 1.0 usage:
A command driven app that will maintain itself within the notification database which will execute its params as a program.
for example, run:
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
this will basically execute \Windows\prog.exe anyparams
but it will register to start the same app with same params again in 24 hours, when it runs next time, it will delete the entry, and schedule again in another 24 hours, and so forth.
With an application like TaskMan you can easily see the notification entry this prog makes, and change it's time-schedule. (in other words, manage this app)
Also, creating a new entry with TaskMan, is really simple, make a CNT_TIME event, point it to RunEveryday.exe, and the application to run as it's params, and it's all set!
// Text Above is outdated
////////////////////////////////////////////////////////////////
My personal usage:
I have a task running every day at 23:00 -> turn radio off (with Vijay's app)
and a task in the morning 09:30 -> turn radio back on
But ofcorse you can use it for many other things! be creative!
Update to v1.1: Some people reported that they couldn't run the app because of some missing libraries. This probabbly goes for most of you WM2003 users: You need a static linked version, which I now have included below. Also, if you happen to get a message like "Cannot find ‘RunEveryday’ (or one of its components)", please try using the static linked version.
nnnnnnnniiiiiiiiiccccccccceeeee.. very niiiicccceee. Nicest thing that happened after the sad sad removal of ROMs... I'm soooo *touched..
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Thanks ;-)
And ohw, I meant TaskMgr, found here:
http://forum.xda-developers.com/showthread.php?t=280104
Edit: Works really great with mortscript's. Lots of possibilities.
hanmin said:
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Click to expand...
Click to collapse
I was actualy thinking about that, but that's making things more complicated. Right now, it's fairly simple. no config dialogs requiered etc etc, as you can have multiple apps at different times, which you might want to run at different days of the week, config wise it gets more complicated, much more coding. Maybe later, if I really need it, I'll make something like it, otherwise, this will have to do (sorry). I'm simply sharing some code that I wrote since I needed it myself ;-)
Edit: oke oke, maybe I'll make a "RunEveryWorkDay" variant (still no config required) Not much code writing, will post it here later on, as soon as I have some time on my hands to make a few adjustments.
Okey, I had a little time (kind of quick, haha)
Rather then having a different EXE handling workday events, I made on which is more dynamic.
Example 1, Run only on work days (monday through friday)
\Program Files\RunEveryday.exe OXXXXXO \Windows\prog.exe anyparams
So the string "OXXXXXO \Windows\prog.exe anyparams" becomes the complete param for RunEveryday.exe
As you can see, the first block of the params has become the days for which you want it to be active, X's x's 1's are for active, O's o's 0's for days to be disabled. Days are represented in following order: Sun, Mon, Tue, Wen, Thu, Fri, Sat.
You can still simply omit those days, and it'll work as previously (ALL days):
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
Everything is still untested (in this latest release) so it might not work propperly. So if you encounter a problem -> tell me and I'll fix it.
I'm working on a much improved version. It will have:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
Expect it to be released in the next couple of days (will post it here)
Nice app. Im going to give it a try now
Is Taskman the only app that can set the time?? Can Memmaid be used?
Everyone who has downloaded and tried the initial release, please download the new one, as it contains critical bug fixes.
freeyayo50 said:
Is Taskman the only app that can set the time?? Can Memmaid be used?
Click to expand...
Click to collapse
See the first message in this thread, any other programs like Taskman or memmaid are no longer needed, RunEveryday is now a self-contained program with it's own user interface.
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
nigelw said:
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
Click to expand...
Click to collapse
here:
http://www.vijay555.com/?Releases:VJVolubilis
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
nigelw said:
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
Click to expand...
Click to collapse
To get it to work, be sure to enable "Force Wakeup". The radio won't go off unless you enable this option. In addition, Vijay has a spelling error on his website, he listed the option "radioff", but in fact it should be radiooff (double 'o' in the middle) otherwise his app doesn't recognize the command.
Optionally, you can enable "Suspend when woken up", this will put the device back to sleep when command has been executed, and works nicely with Vijay's app, your device will only be active for a few seconds. I didn't document this feature: but when you have this option enabled, and the command is still executing after 30 seconds, RunEveryday times out, and will put the device to sleep (but lets the command active in background).
Hmmm, just realized what you really posted, if a loose lnk file doesn't work either, it probably is (indeed) VJ's file that doesn't work. maybe you can ask him if he can add support for your device.................................
Thanks for the prompt response.... but I've just worked out what the problem is!
I followed the screenshot on page 1 using /radioon when it should be -radioon
My .lnk files now seem to work, so I will make the changes on your app and see if it works.
I'd like to start doing my own development, I'm particularly interested in retrieving information from the radio like Operator, signal strength, serving cell etc.
Anyone any comments on usability / stability / issues ?
I would really like some feedback ;-)
I've only been using it a couple of days, but it hasn't given me any problems. The only issue I have is one that you are already aware of, and that's support of text input, or maybe copy/paste?
Hope that helps, and thanks again.
Okey, great. In the near future I'll update it to be more complient with windows-ways-of-working. (keyboard, normal dialog, copy/pasting etc), but as it's all working without problems, it's not very high priority. However, if there's any indication of some bugs somewhere, i would get right on it, cause I really do want it to be reliable.
Hi, have you managed to make any improvements to the software? My install has gone wrong, I launch RunEveryDay but the 2 tasks I had configured no longer list in the dropdown (these were to turn the phone/radio off at midnight and back on at 9am).
I did change the timezone recently when I went on a business trip, so maybe that caused the problem when I returned?

[REQ] Wind Forecast & windfinder (Animated!)

Hi there, today lokking for good wind in my area to kitesurf, i've noticed that there aren't specific applications for PPC to retrieve infos from internet.
Would be "nice" if an app can collect the images into the links posted later... (if possible, also local time & day), and then have an animation (as the site already do) of the preset day.
with opera i need ~3 minutes to get the informations, and cannot see it offline (except, i think, if i save it at every exit from opera).
Now the links... notice that every frame has a different numberpage into the link, and also the png image has the same number:
This is the actual situation (akt)
http://www.windfinder.com/forecasts/superforecast_italy_campania_akt.htm
imagename: superforecast_italy_campania01.png
after an hour
http://www.windfinder.com/forecasts/superforecast_italy_campania02.htm
imagename: superforecast_italy_campania02.png
Two hours
http://www.windfinder.com/forecasts/superforecast_italy_campania03.htm
imagename: superforecast_italy_campania03.png
...until campania30.htm or more.
Will be nice an app who automatically download only all the images, and collect them by temporal order..
Naturally the concept is ok also for other countries..
Heyy, I am also a kiteboarder (still learning, only started last year) and would love to see something like this!
Same here this would be great i would love to have this software
uhm ok, i've noticed that the numbers into the links doesn't change every hour, but there is a sort of script who call, time based, the links numbered (i.e. now starts from campania13.htm )
BUT (ehhe) "we" can use this script to our advantage...
Look here
http://www.windfinder.com/forecasts/superforecast_italy_campania_animation.htm
Just download in sequence all the images, and put it into a "calendar" starting with the same date & hour of the download (or manually sync the first frame with the calendar )
Ps: the "calendar" is the timeline of the pseudo-app
I think it's not too difficult... BTW, this is mine (and other's) request
No way to have a similar app?

CPU maxing @ full speed, 100% load after 24-48 hrs? FIX FOUND!

First off, I cannot take credit for finding this, I was referred to a bug report thread on the Google Android site by XDA user aweaver33, who I thank VERY much for pointing me on the right direction.
So, several of us have had this issue with various custom kernels, where after typically 24-48 hours, the phone would slow to a crawl. If you were to open an app like System Panel, you would see that the CPU load was pegged at 95%+, and speed would be maxed out. You would also see that the process using all the CPU is Android System.
The problem has to do with the file "time_in_state", which literally keeps track of how much time the CPU spends at any given speed in MHz. There is a limit to the size this file is supposed to reach, 256 bytes. Once it exceeds this size, the next time Android tries to access it, it flips out and gets stuck trying, and pegs the CPU. A lot of devs and users blamed SetCPU, and it is true that SetCPU does have an EFFECT on this issue, it does NOT cause it, and indeed the issue can occur whether SetCPU is installed or not.
The issue is brought on by custom kernels that add additional frequency steps for the CPU to choose from, which causes that log file to grow. Which is why older or stock kernels will not cause this. Some ROMS incorporate a workaround so you may not have this issue.
Anyways, the issue is explained better in the link aweaver33 gave me. I will link to the original thread I posted with the conversation we had and the link he gave. I can confirm that, using the info he gave me, the issue has been fixed. I am currently just over 120 hours of uptime with no problems.
Here is the link: http://forum.xda-developers.com/showthread.php?t=1082363&highlight=stock+kernel+gpu+
EDIT: attached the script files for those who want them. You can drop one or the other (NOT BOTH) in /etc/init.d if your rom has this folder already (creating the folder and adding it won't work), or you can download Autostart (root) from the market for free, and drop the file in /data/opt (create the opt folder). This difference between the two is one runs only once at boot, the other runs every five minutes. If you use SetCPU, you need the one that runs every five mins, as every time you open SetCPU it resets permissions on the time_in_state file.
flashable zip? not everyone is comfortable with code and scripts
If I knew how, I would. I wasn't even comfortable with it. But I was so tired of the locking up, I was willing to try anything (after a Nandroid of course). I'm not sure you *could* do this in a flashable zip. I can post the script I'm using. It only runs once after reboot, unlike aweaver's, which runs every five mins (good if you're using SetCPU, as opening SetCPU resets the permissions of the time in state file).
This script should work if dropped into /etc/init.d. *If* your ROM has that folder by default. Mine does not, so I had to download a free app from the market called Autostart which is free and very small. For that app you create a folder in /data/ and drop the script in there.
Sorry guys but I'm no dev so this is the best I can do, maybe someone else can make it flashable?
would it also be fixed by simply deleteing the log file as well rather than setting it to unreadable
It can't be deleted. System instantly replaces it.
bast525 said:
It can't be deleted. System instantly replaces it.
Click to expand...
Click to collapse
:/ i suppose when it is replaced it would be with a fresh one deleting would fix it for 24-48 hours till it got filled again humm i wonder if a script could be auto executed every 12 hours to delete it rather than just make it unreadable.
Do you know if it is a problem in gingerbread as well?
mirrin said:
:/ i suppose when it is replaced it would be with a fresh one deleting would fix it for 24-48 hours till it got filled again humm i wonder if a script could be auto executed every 12 hours to delete it rather than just make it unreadable.
Click to expand...
Click to collapse
I don't think you can delete it. I can't figure out how to.
mirrin said:
Do you know if it is a problem in gingerbread as well?
Click to expand...
Click to collapse
Issue 9733 is still listed as New, so either Google hasn't fixed it in Gingerbread or they just don't bother statusing their bug reports.
Why do you feel the need to delete it? If you are trying to delete it, you are likely using Root Explorer. Why not just use that to change the permissions of the file? Tap and hold, select permissions, and unchecked all permissions except for the top left one. This will stop the bug, but the permissions will be reset after a reboot, or after opening SetCPU.
I imagine that deleting the file might actually cause FC's or may cause the same bug but I dunno since it wont delete.
dyetheskin said:
flashable zip? not everyone is comfortable with code and scripts
Click to expand...
Click to collapse
I've never created a flashable zip before, but I'd be willing to look into it if the demand is really there. The problem I see is that I'd have to make certain assumptions about how everybody's ROMs are configured. It looks like the most portable approach would be to append a line to the end of /bootcomplete.inc.rc. Do people really find it easier to boot into recovery and flash a zip than to add one line to a file themselves? Personally, I'm always hesitant to flash a zip other than a full ROM because I'd be uncertain how it interacts with other changes I've made to my system.
Inc is
not bad
But. 48hours?
Sent overrow from my Optimized Inc using XDA App

NST Screen Saver Frequency Setting?

I've successfully rooter my Nook Simple Touch and explored all of its files and databases that I can find. But I cannot locate the setting to change that will update the frequency at which the screen saver changes images.
My goal is to have a folder of image files that change every 30 seconds or so. Unfortunately, the stock screen saver's change timer is much longer than that.
As a workaround, I set the screen saver activation time to 500 hours and installed Perfect Viewer to run its slideshow function, but this is less than ideal. I'd rather just do it the right way.
Does anyone know where this setting is located?
Thanks!
Reaperducer said:
I've successfully rooter my Nook Simple Touch and explored all of its files and databases that I can find. But I cannot locate the setting to change that will update the frequency at which the screen saver changes images.
My goal is to have a folder of image files that change every 30 seconds or so. Unfortunately, the stock screen saver's change timer is much longer than that.
As a workaround, I set the screen saver activation time to 500 hours and installed Perfect Viewer to run its slideshow function, but this is less than ideal. I'd rather just do it the right way.
Does anyone know where this setting is located?
Thanks!
Click to expand...
Click to collapse
That would seem to be a poor decision as far as battery life is concerned. Are you sure you really want to do that?
nmyshkin said:
That would seem to be a poor decision as far as battery life is concerned. Are you sure you really want to do that?
Click to expand...
Click to collapse
Battery life is not a concern in my application.
Reaperducer said:
Battery life is not a concern in my application.
Click to expand...
Click to collapse
OK, so I have to admit I didn't even know this happened. It's been a long time since I used a folder of images for a screensaver. What I seem to recall from that time was the images changing each time the NST went to sleep, but not during sleep.
Let me take a look. I guess one possible approach would be to consult a logcat after an image change and see if there are clues there.
I've come up empty on a search through the various B&N app databases and settings files.
Just to see this actually happen, I changed my screensaver from a static book cover image to one of the packages of images I installed years back. That was nearly 24 hours ago and there is still no change, which is what my memory told me to expect. So without an automatic change, there is nothing to look at in the logcat.
Are you sure your images actually change by themselves during the standby/sleep process? I know they change when you wake up the device and then let it fall asleep again.
You've already tried the slideshow idea or I would suggest that, but did you know there is a built-in slideshow (probably associated with the demo mode)? I don't know what the parameters of that are or whether you could replace the images with your own without breaking it.
Maybe a better question to help me understand what you'd like to do is: will the NST be used for something other than the slideshow display (either running in the background or running on demand when the device is awakened)? If all you want is the slideshow then any number of apps (like the PerfectViewer you mention) would work. Maybe something simple if you just need the slideshow. But if you really are using the device for other things and just want the sleep screen to change periodically, that's either got to be supported in the settings in an accessible way (which I'm doubtful about) or it has to be a custom alteration of the OS.

Categories

Resources