Re: Running a program when computer enters/exits idle state

2010-06-03 Thread Klistvud
Dne, 04. 06. 2010 00:07:27 je Carl Johnson napisal(a): I just thought of another way to improve the ondemand driver slightly. There is a file called up_threshold in the /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ directory. This file defaults to 80 meaning that the cpu use was 80% over the

Re: Running a program when computer enters/exits idle state

2010-06-03 Thread Carl Johnson
Klistvud writes: > Dne, 02. 06. 2010 18:56:48 je Carl Johnson napisal(a): > >> used. You also might want to look at the 'conservative' governor. It >> will decrease speed slower, but it also increases speed slower. > > I tried it out and on my system it actually performs even worse than > the

Re: Running a program when computer enters/exits idle state [UPDATE]

2010-06-03 Thread Klistvud
To whom it may concern Running a task when the computer is idle and stopping the task when it's not idle what I've considered so far and either doesn't work or is too much hassle: *finger* - only yields tty usage (useless for tracking X usage) *w* - ditto *xscreensaver* w/ *xscreensaver-com

Re: Running a program when computer enters/exits idle state

2010-06-03 Thread Klistvud
Dne, 03. 06. 2010 08:52:43 je Andrei Popescu napisal(a): According to the description 'sentinella' seems to be exactly what you need. It just showed up in unstable though and is a KDE program... Well, I was looking for something DE-agnostic, preferably a command-line tool, but thanx for the

Re: Running a program when computer enters/exits idle state

2010-06-03 Thread Klistvud
Dne, 03. 06. 2010 03:33:38 je David Purton napisal(a): I don't know if I have done it in the most efficient way, but you're welcome to hack the code to do what you want - it is not complex code. Hey, thanx, David. Although I'm in no way capable of hacking the code -- or even understanding i

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Andrei Popescu
On Mi, 02 iun 10, 11:42:54, Klistvud wrote: > Howdie, fellow Debianites! > > I've bee all over uncle G to crack this one, but to no avail. In > short: how would you go about launching a program when the computer > is idle, and launching another program when the computer stops being > idle? Specifi

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Andrei Popescu
On Jo, 03 iun 10, 11:33:38, David Purton wrote: > > I wanted to do this too, but wanted to dim my screen on idle, and have > it come back on input under X11. I don't run gnome or kde, so didn't > want to use one of their power managers for this. I couldn't find > anything, so I wrote my own. Unde

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread David Purton
On Wed, Jun 02, 2010 at 11:42:54AM +0200, Klistvud wrote: > Howdie, fellow Debianites! > > I've bee all over uncle G to crack this one, but to no avail. In short: > how would you go about launching a program when the computer is idle, > and launching another program when the computer stops bein

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Klistvud
Dne, 03. 06. 2010 00:13:06 je Carl Johnson napisal(a): My old Athlon 64 was similar to that, so I had a script setup to quickly switch to high speed, and a timout option. I would use that at times when I wanted to run several small programs so they would avoid the delay, but then if I forgot it

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Carl Johnson
Klistvud writes: > Dne, 02. 06. 2010 18:33:21 je Carl Johnson napisal(a): >> >> I suspect any manual selection you figure out will be slower than >> that. On my Athlon II computer the default latency is 8 (80msec) >> which is faster than I really need, so I actually slow it down a >> little

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Klistvud
Dne, 02. 06. 2010 18:56:48 je Carl Johnson napisal(a): used. You also might want to look at the 'conservative' governor. It will decrease speed slower, but it also increases speed slower. I tried it out and on my system it actually performs even worse than the ondemand governor: the CPU vi

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Klistvud
Dne, 02. 06. 2010 18:33:21 je Carl Johnson napisal(a): Do you know what your actual latency is? When you have the ondemand governor selected, you can check by 'cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate' to get the latency in microseconds. You can write to that any value b

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Carl Johnson
I forgot to mention in my previous response that the kernel documentation has some information about the frequency governors. The 'linux-doc-*' debian packages have the kernel documentation, and the directory 'Documentation/cpu-freq/' contains the information that I used. You also might want to l

Re: Running a program when computer enters/exits idle state

2010-06-02 Thread Carl Johnson
Klistvud writes: > Howdie, fellow Debianites! > > I've bee all over uncle G to crack this one, but to no avail. In short: > how would you go about launching a program when the computer is idle, > and launching another program when the computer stops being idle? > Specifically, I'd like my c