General :: How To Get System Idle Time
Apr 5, 2010I want to get the system idle time till a mouse move or a key press. How is it possible to get it from a char terminal running through ssh/telnet as well as a from an X-terminal session?
I want to get the system idle time till a mouse move or a key press. How is it possible to get it from a char terminal running through ssh/telnet as well as a from an X-terminal session?
How to make the system boot faster by removing the idle time between 5s to 10s? bootchart attached. It is Ubuntu10.04LTS by the way. One more hint, the screen black out for ~4s after "Begin: Running /scripts/init-bottom... Done." I don't know what is going on during that 4s, but my best guess is there is a way we can get rid of it.
Bootchart can be found here:
My hard drive all of a sudden starts to read and write all on its own for around 15 seconds at a time while at idle or while I am just browsing the net. At first I thought it was from cron running but I have that disabled.
View 3 Replies View Relatedwhile doing FTP through command prompt, connections times out after some time remaining idle, but doing ftp through browser, connection doesn't time out after some time remaining idle... why is it so?
View 2 Replies View RelatedWhen I run top d 0.5 on my machine and I press 1 to enable the SMP View, I notice that all of the CPUs keep toggling between 100%idle and 0% idle.
The odd part is that when a CPU goes to 0.0% idle, I would expect to see one or more of the other columns peek, but they are not.
What is causing this?
Code:
Registered: Sep 2010
Location: Pune
Distribution: Fedora and redhat
Posts: 2
Rep: Reputation: 0
how can i change sleep idle time in fedora
After some idle time Slackware hangs up/freezes. When, for an example, i turn on music i can hear it on idle time but after some time music still plays but i'm losing picture (monitor detects no signal), num lock is locked, led on keyboard are turned on but won't turn off while pressing num lock. I've switched off power saving options in Slackware and on bios setup.
My spec is:
X4 620 (without overclocking)
AMD 760G (Radeon HD 3000)
Catalyst 11.5 for Radeon graphic.
BTW - computer works fine with Windows. Also, with Slackware i can work for an hours, many hours and everything is fine but as soon as i leave it for some amount of time = it hangs/freezes. There is something wrong with hibernation. Not always computern is turned off correctly. TV is switched off, slackware logged off but i hear drives working and cooler fans. It should be switched off completly.
how to remove the login prompt during the idle time. or just prolong it for about hours and hours so that this prompt wont appear each time i'm away. i still monitor the computer just 4 meters away and i have to get up becasue of this prompt.
View 2 Replies View RelatedI can use the gconf-editor to disable the screen-saver lock and set it to activate when its idle. But no matter what I change /apps/gnome-screensaver/idle_delay to, the ScreenSaver UI is never updated and stays at the default 5 minutes. There seems to be no link between the slider bar in the ScreenSaver Preferences and the value that lies at /apps/gnome-screensaver/idle_delay...
The reason why I'm doing it through gconf-editor is so a start-up script I have created can use gconftool-2 to alter settings for certain users on login.
Is this broken in Ubunto 10.04 or am I looking in the wrong place.
Anyone have an alternative to gconf-editor for changing the idle dim time? I have a Vaio, which hasn't exactly been compatible with ubuntu but I've been making it work.What I'm looking for is an alternative, like the the one I'm using to control the back light (nvclock).
View 2 Replies View RelatedI'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.
View 3 Replies View Relatedget the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct
View 3 Replies View RelatedI am running 10.04 (i686) inside kvm-qemu client. The host is a headless 10.04 (x64).The issue is that the screensaver does not activate after a certain period of idle time (1 min). I can successfully activate the screensaver by running gnome-screensaver-command -a. It appears, then, that idle time is not being registered correctly. There are some very sporadic logs in daemon.log:
Code:
./daemon.log.1:Dec 1 11:01:24 myserver gnome-session[2166]: WARNING: GSIdleMonitor: IDLETIME counter not found
./daemon.log.1:Dec 2 12:35:53 myserver gnome-session[19953]: WARNING: GSIdleMonitor:
[code]....
I had noticed that my workstation (running debian testing) is having a constant load of about 0.9 (+/-0.1), even while the system is completly idle.The system starts with a normal load and then goes up to about 0.9 within a few minutes and then will stay there forever (well it can get higher, but never lower). This is the load graph after the system runs some time: URL....
I have tried everything I know to find the cultprint but there is no cpu usage and no io usage. I even have disabled the desktop and still have this problem.Also I have tried booting an older Kernel (4.1 and 3.16) with no difference in the load.Here is some information about my system:
Code: Select allĀ» uname -a
Linux localhorst 4.2.0-1-amd64 #1 SMP Debian 4.2.3-2 (2015-10-14) x86_64 GNU/Linux.
Torrents client kills my Internet connectivity so bad I can't even use a web-browser whilst it's on -- pages take like five minutes to load -- I often forget to turn on my torrent client. Which led me to wonder if there's a way I can launch a script on system idle?
View 1 Replies View RelatedI was messing around with Compiz today and it got me to wondering if I can create a custom command when my system goes to idle, instead of launching the screen saver. I want to start the Compiz Rain effect on system idle. is this possible?
View 2 Replies View RelatedI'm trying to write a script to run motion when the computer is idle but for some reason the script I found online doesn't work. I tried to write a simple command to put some echo in a file when the screen server starts and stops but this doesn't work also. this is the script I'm using -
Code:
#!/usr/bin/perl
#open (IN, "$cmd |");
my $cmd = "dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='SessionIdleChanged'"";
[code]....
GNU/linux kernel 2.6, Slackware 12.0
Every now and then, say with a period of one hour, the system begins accessing the hdd and doesn't stop accessing for at least 5 minutes. What can be the reason? Can it have something to do with the swap partition?
i used to download files using transmission bit torrent client. I download the torrent and once the download starts i will leave the system and check only after 4 or 5 hours later.But when i check the system again, the network connections were automatically disconnected.The download is getting stopped naturally. why my wired network connection is getting disconnected automatically if the system is idle?(ubuntu 10.10)
View 1 Replies View RelatedWhen I have the power option for "Dim Display When Idle" checked, how can I change the amount of time before Ubuntu thinks I'm idle? I'm not talking about the screensaver, I'm talking about the option in the Power Management app.
View 3 Replies View RelatedI keep noticing disk activity every roughly 1 to 3 seconds even though there is "nothing" going on. Of course, I run a number of "system" and "user" application packages - Apache2, MySQL, Browsers (Opera, IceWeasel), an SMB client and server, OpenOffice 3.0RC8 being the most prominent ones. I wonder what might be the cause for this constant disk activity which happens even when none of the applications do any noticeable work at all. Is there a way to determine the process that does those disk read/writes?
View 6 Replies View RelatedI'm writing a post-install script to run on the computers I'm working with. Most of it is written, but I'm a noob when it comes down to it. I'd like to know how to disable the system from showing the lockscreen after being idle. Could someone show me how to do this from the command-line? Ubuntu 10.10 Maverick Meerkat
View 3 Replies View RelatedMy Gnome screensaver doesn't work, although it once did.
I have searched for a solution to this problem but no luck. I am running FC 11 and out-of-the-box gnome. At first the screensaver worked normally, shutting off the screen after 5 mins. Now it does not do so. I found the following command line suggestion in the forums, and it looks like it may point to a problem -- the screensaver is inactive, but how to make it active? I may be misunderstanding the term inactive, of course. Logically, the screensaver would have to be inactive if I am typing a command.
In any case, the query command shows:
Just in case the screensaver really was not running, I tried this command (which I found in another post):
But the query returns the same thing as before.
The only thing I can think of that might be an issue is that using the "appearances" background facility I added a couple dozen pictures that I thought I might use as screen background. Not long after that I discovered that my screen did not go black after 5 mins as expected. Not sure this correlation has any causal meaning, however. I then tried various things, finally returning to the plain (blue) default. That seemed to fix it for a short while, then after a couple of days, the bad or non-behavior returned -- the screensaver does not work.
(update -- I removed all the extra background pics and it makes no difference.)
My system runs all the time, but I don't want the screen to be on all the time.
When I use the `date' command on RHEL5, I can get the time shown in 24 hr format. I wonder if the time can be shown in 12 hr format. But I don't want to use the `date +FORMAT' to do that, neither `alias date='date +FORMAT''. I just want a simple `date' to show time in 12hr format.Is there any configuration file about the 12/24 hr format? Is the format related to the value of the environment variable 'TIMEFORMAT'? I can't find its default value by 'set | grep -i timeformat'.How can I know what the current format is? I mean, when I use `date', I can get "Sun Sep 19 13:22:50 CST 2010", which seems like 24hr format; but when I use `hwclock', I can get "Sun 19 Sep 2010 01:23:05 PM CST -0.174299 seconds", which seems like 12hr format.
View 2 Replies View RelatedWhen booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.
View 7 Replies View RelatedJust making one last tweak with my fresh install of F12KDE. I need to . How do I do this
View 2 Replies View RelatedI am running my Ubuntu 32 bit server on top of Windows 7 64 bit with VirualBox. It's a 2 core Atom. It's been working good for about half a year. But the last about 6 weeks the system time only in Ubuntu is going slow. About -8 per 24 hours! I can only guess because I have more things running in my Windows 7 and Ubuntu.
I can set it right by coping the hareware time to system time with this command:
Code:
hwclock --hctosys
I want to run a crontab to have that command run every minute. But it don't seem to run.
[Code]...
I have a desktop PC with Fedora, Ubuntu and Windows installed and grub used for multibooting. But time in Fedora is always 5 hours behind. If I change the time in Fedora, then Windows and Ubuntu will be 5 hours ahead of the current time. I don't understand how to fix it.
View 2 Replies View RelatedI have a machine that experienced some troubles with some of the real time stuff that I'm running. One lead that I have is that NTP daemon may have moved the time, causing false timeouts.
How do I find out if NTP daemon did indeed move time at all? Any logs? I do see NTP daemon restart in /var/log/messages, but I don't know if time adjustment should be there as well. to clarify: I need to understand it from the logs, after the event. May be 2 days after the time was adjusted. Running commands to see the current status doesn't help.
I need to change my hardware time and date as my hardware time don't right but I don't have network. I need the the commands and the steps.
View 5 Replies View Related