Would like to invoke my App while idle.
Hey guys,
I need my application get invoked while my linux box is idle, as in invoking screen saver ?.
What is the logic to figure out the system idle. Any clue much appreciated!!!.
Thanks.
You can make use of X11's screensaver extension to get a system's idle time:
(taken from the code for sinac)
#include <X11/extensions/scrnsaver.h>
static XScreenSaverInfo* xss_info = NULL;
int
seconds_idle(Display *d)
if (! xss_info )
xss_info = XScreenSaverAllocInfo();
XScreenSaverQueryInfo(d, DefaultRootWindow(d), xss_info);
return xss_info->idle / 1000;
Of course, that only gives you the duration of the idle time. To do something after a specified timeout of x seconds, you could make use of a loop that checks the time spent idle, then sleeps for (x - seconds_idle(d)) seconds. On the next iteration of the loop, if the system has been idle long enough, whatever action you want to do can be triggered.
I don't know what you're coding this in, though.
Similar Messages
-
I like to watch tvcatchup or sky go or I player on my iPad while falling asleep, the problem is that the iPad then stays on all night. I would like to find an app that allows me to set a timer for the iPad to switch itself off automatically, like the sleeper function on a TV.
Does such an app exist? Can anyone help me? ThanksYou can try the Sleep Timer.
https://itunes.apple.com/sg/app/music-sleep-timer/id320583424?mt=8 -
I have two Itunes Accounts and I would like to merge all Apps to one Account. Is this possible ?
No. You can not.
-
I would like to know which app/software in MAC gives us the same feature that is provided by System Restore in Windows, and how does that work.
Time Machine is one such program, although it is a recursive backup program which offers limited archive capability, based on the capacity of the backup destination, and it requires you set it up before you start editing your files. Some programs are also Versions aware, which offers a kind of restore capability by file. Again needs to be setup before you start editing.
Just a for-your-info:
Mac is not an acronym, it is a nickname for Macintosh. -
My account was deleted for security issues. I made a new account, but I can't syncronise my apps with this new account. I bought a new Iphone and would like to transfer the apps ans music on this new one. Can somebody help me?
Why would you make a new account? This will likely cause many problems. Just get you old account enabled.
Apple ID: "This Apple ID has been disabled for security reasons" alert appears
Frequently Asked Questions About Apple ID
Everything you purchased with the old account will always be tied to that account. You will have to authorize the computer for that account and you will have to update the apps from that account. -
But I would like to buy an app
I would like to buy an app.Can I do that with an iTunes gift card?
Yes, if you are buying them for yourself then you can use iTunes gift cards to buy apps and other content from iTunes, ibooks from the ibookstore, and Mac apps from the Mac App store (you can't gift content to another account via gift cards)
-
I have a HP laptop and I would like to get the app Jeopardy. It seems i need an Apple device, is that true?
Apps from the iTunes store only run on iOS devices.
-
TS3297 I would like to buy an app for someone, but can not us my money in the account.
would like to buy an app for someone, but it will not let me use the money in my account just credit cards
That is correct, you can't use an account's balance to buy gifts or gift certificates, you can currently only buy them with a credit card.
-
Can this be done somehow? I would like to see an App or Apple guidance where I can identify my name or telephone number to certain phone contacts that I can choose from with my address book. As it stands now, it all or nothing. Thanks
Not sure what they offer in Canada, but I use Google Voice. It provides a phone number that will ring through to your phone (or multiple phones if you want). There is a free app you can use to place calls so they appear from your Google Voice # instead of your 'real' number.
I use the Google # for business calls/texts and only use "my" number for personal stuff. Google gives you control over things like call screening and allows you te set timers for when it is permitted to ring through to your normal number, which is great for business calls. If I'm not on call, I keep the timer set to shut it down except during business hours.
Might be worth looking into. -
I would like to gift an app and use the balance I have in my account. Is that possible?
No.
(73590) -
I need to know how to change my security questions cause I have forgotten them and would like to buy an app but cannot cause I need to answer the questions
The page that you’ve posted from has instructions for how to reset them i.e. if you have a rescue email address set up on your account then steps 1 to 5 half-way down that page should let you reset them.
If you don't have a rescue email address then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use -
I would like to delete all Apps archived in the clouds of "purchased" and not in used now and in the future. How is possible to remove definitively these Apps. Thank you
All you can do is hide them from your purchased list. You cannot permaneently delete anything from your purchased history.
Also, these are not stored in your iCloud account storage space. The purchases reside in the online store and all you see is a list of those purchases made with your account, with a cloud-link to redownload them, but you are merely re-downloading them directly from the store. -
my apple id has not use been in itune store becos i dun have international credit card or gift cards at present but i would like to enjoy free app on my ipad .. kindly advice ...
You don't need an international credit card, to be able to buy items from your country's store (you can't use another country's store) the card needs to have been issued by a bank in your country and be registered to your name and address. If you only want to be able to download free app from your country's store then there are instructions on this page for creating a new account without giving credit card details : http://support.apple.com/kb/HT2534
-
i have an iPad 2 and will be taking lots of notes which will have to be saved.. what is the best app i am use to microsoft word .. also i would like to know what app or how to get written to voice.. many thanks..
I have had a great experience with UPAD. You can take notes on PDF files as well as use your finger or a stylus to take notes on a variety of blank page backgrounds. You can then email your notes as a PDF if you want. I know there are other features, but those are the ones I typically use.
What I really like is the writing interface. You can pick line color and thickness. Whe writing area is magnified so you can write easier and the text appears normal size on the page, though I believe you can write without the magnified area to if you want to. You can easily move the writing area where you want it, and it is easy to keep uniform indentation for lists and columns.
It's easy to start using in minutes. I got my iPad last year right before a huge national conference where I wanted to take notes in a lot of educational sessions. I also did not want to lug all the handouts with me across the country. I found UPAD after some research and decided to give it a try. I downloaded all the handouts right before I left. I was able to figure out how to take notes on a PDF as well as create a new notebook for other content during the speaker introductions. And when I got home, I sent some notes to a colleague. All very easy.
I'm sure the description in the app store is much more helpful, but I wanted to share some examples. -
I would like to know if app developers have the right to sell their digital items on other platforms like Player Auction site.
Like playing "Dragonvale", they sell gems inside the game application, what if they sell gems ouside the app store, like they will sell it to a third party website or another platform like Player Auctions?
Thanks,
Mario San Pedro
[email protected]
marketing communication assistantThey won't work on the iPhone so I don't see what the point would be to do that, but you probably want to contact apple corporate and ask the question there. Or contact the developer of Dragonvale.
Maybe you are looking for
-
hi all, basically i have been asked to help rename the majority of our infrastructure to coincide with a recent business name change. We only run with 1 server unit that has a license of windows sbs 2011 standard edition installed, so that means we h
-
Urgent help in coding of creating New Business partner?
Hi Friends, I need urgent help on this.Please give me the solution. This is the coding which i written for creating new BP. FUNCTION ZCTS_NEW_CONTACT. ""Local interface: *" IMPORTING *" VALUE(BUSINESSPARTNER) LIKE BAPIBUS1006_HEAD-BPARTNER *"
-
Is there a version of Frutiger that can be used in different languages? The current version does not support the special characters used in, for instance, Polish or Romanian. Is there perhaps a place where I could find a list of the languages support
-
Installed the new 2014 CC Apps yesterday (very exciting!!) and started doing some real work in Photoshop CC 2014 today...at some point i tried to darken a white layer with "Brighten and Contrast" but saw my white layer get filled with mostly black an
-
Problem with License determination
Hi, I have just setup license determination strategy as per the config guide. But, in the cockpit -> Legal COntrol Exports -> Maintain License determination strategy, Isee only 2 tabs(small views) 1.Legal regulation and 2. License Types Where are oth