Re: [dwm] [OT] frequency scaling and power consumption

2009-05-09 Thread Preben Randhol
On Sat, 9 May 2009 13:56:09 +0800
bill lam cbill@gmail.com wrote:

 Thanks all for confirmation.  Since I only have a desktop, no
 notebook/netbook ;-( it is somehow difficult to verify the
 improvement.  I now lock the cpu frequency to 1.1GHZ (half of the
 original 2.1G).

Why on earth do you want to do this to a desktop computer? It will have
next to no effect on your power consumption. I mean you whole system
will draw the main part of the power. Anyway, put the power saving so
that the CPU scales with load. This makes more sense. And turn down
the brightness on your monitor, that saves power too.

HTH  

-- 
Preben Randhol
http://wee-free-lore.blogspot.com/



Re: [dwm] [OT] frequency scaling and power consumption

2009-05-09 Thread Matthias-Christian Ott
On Sat, May 09, 2009 at 01:56:09PM +0800, bill lam wrote:
  Personally I have noticed that locking my laptops scaling CPU to the
  lowest frequency does give quite a noticeable improvement to the battery
  life, around an extra hour on top of the usual 4~ hours and reduces the
  temperature enough to make the fan shut off . Just enabling on-demand
  scaling didn't help much as it would scale up to full frequency far to
  often. Even with the CPU locked in lo frequency mode it almost never lags.
  
  
 
 Thanks all for confirmation.  Since I only have a desktop, no
 notebook/netbook ;-( it is somehow difficult to verify the
 improvement.  I now lock the cpu frequency to 1.1GHZ (half of the
 original 2.1G).
 
 Less heat means less power consumption, I guess someone suggested,
 (I'm not sure that's why I asked for advise), that it takes more time
 to complete the job at lower frequency so that actual power
 consumption will in some case increase.

It's more efficient to run at full speed and then let the CPU halt (you
have to have a tickless system though) [1-4]. Decreasing power consumption
of sychronous processors is a really hard problem [5-7]. But anyhow I'm not
a physicist or electrical engineer.
 
Regards,
Matthias-Christian

[1] http://www.codon.org.uk/~mjg59/power/good_practices.html
[2] https://www.redhat.com/docs/wp/performancetuning/Power_Management_Guide.pdf
[3] http://www.ncsu.edu/wcae/ISCA2007/p52-suarez.pdf
[4] http://lists.us.dell.com/pipermail/linux-poweredge/2007-December/033900.html
[5] http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=3276p=6
[6] http://patmos2001.eivd.ch/program/Repro%5CArt_10_1.pdf
[7] http://async.org.uk/ukasyncforum14/forum14-papers/forum14-moore.pdf
[8] http://www.fulcrummicro.com/press_archives/edn_03-0501.pdf



Re: [dwm] [OT] frequency scaling and power consumption

2009-05-09 Thread Matthias-Christian Ott
On Sat, May 09, 2009 at 12:29:50AM -0500, Kurt H Maier wrote:
 From a physics standpoint if you're generating less heat you're
 consuming less power.

That's true, but I don't believe that the reduction of power consumption is
proportional to the performance losings, so the performance per watt ratio
could be worse.

Regards,
Matthias-Christian 



Re: [dwm] [OT] frequency scaling and power consumption

2009-05-09 Thread hiro
On Sat, May 9, 2009 at 7:29 AM, Kurt H Maier karmaf...@gmail.com wrote:
 From a physics standpoint if you're generating less heat you're
 consuming less power.

 # Kurt H Maier



And you generate less heat when you allow the cpu to take advantage of
it's high frequencies at high loads, because you can put it back into
a lower power state early.

It didn't use to be this way though with older cpus, so you should
definitely subscribe to the powertop mailinglist if that is of real
concern to you.



[dwm] [OT] Reputable online computer shops in Germany?

2009-05-09 Thread Adam
Hello, I am considering getting an eee pc or something similar, and am
trying to compare prices. I currently live in germany but the only
store i have bought from here before is bora computer which is ok,
but I am looking for a few more data points. I am wondering if there
are some good online shops dwm users in germany can recommend.  For
laptops and also general things (ram, drives, etc) would be
helpful...maybe comparable to newegg.com in the u.s. if you are
familiar. Amazon.de seems more expensive that the .com version for
some reason. One I found is notebook.de --- are they ok? Any
recommendations?

thanks for the help,
-adam.



Re: [dwm] Stats script

2009-05-09 Thread stanio
* Jake Todd jaketodd...@gmail.com [2009-05-03 05:31]:
 What are you guys using?

I use 

in .Xsession

while  true ; do
xsetroot -name `${HOME}/.status`;
sleep 4;
done 

and here is .status

cat .status  |~
#!/bin/sh
sswriter \
-w 10 \
-f /home/stanio/.current_song /home/stanio/.recent_events \
-a 20 25 \
-t THRM \
-D eth0 eth2 \
-d %Y-%m-%d %a %H:%M'%S \
-s PCM Master Mic \
%[ | %f0%] %[ | %f1%] |%(B* WARNING * BATTERY *%)%(b%v1%V1 %v2%V2| %d| 
%m %sMB| %n%(w %q%%%) %i:%o kB| %C0MHz %p0%%| %b0%%| %t0°C%)

Sswriter is pretty powerful c program posted perhaps  more than year
ago on the wmii mailing list, as I was still half wmii user. I use a
patched 0.3.1 version. 

sample output of ./.status is:
 song | event |81on 80off| 2009-05-09 Sat 11:44'18| 278 0MB| eth0 0.0:0.0 kB| 
798MHz 46%| 100%| 53°C

which translates to

 song|event|volume of headphones and 
micropone|date|memory+swap|link|cpu|battery|temp

For those interested:

http://www.mail-archive.com/w...@suckless.org/msg01935.html

I noticed I very rarely look at most of the stuff in this status bar thoug,
so I am thinking of 2 staged status query -- e.g. date/time and temp in the
dwm status bar; The rest can be queried 'on demand' in the console.

-- 
 cheers
 stanio_



Re: [dwm] Stats script

2009-05-09 Thread Martin Oppegaard
On Sat, May 09, 2009 at 11:49:53AM +0200, sta...@cs.tu-berlin.de wrote:
 I noticed I very rarely look at most of the stuff in this status bar thou=
 g,
 so I am thinking of 2 staged status query -- e.g. date/time and temp in t=
 he
 dwm status bar; The rest can be queried 'on demand' in the console.

Indeed.  It's mostly just fun to create, but is never usable.  Now I've only
got the clock.

 
 --=20
  cheers
  stanio_
 



Re: [dwm] Stats script

2009-05-09 Thread Kurt H Maier
On Sat, May 09, 2009 at 11:49:53AM +0200, sta...@cs.tu-berlin.de wrote:
 I noticed I very rarely look at most of the stuff in this status bar thoug,
 so I am thinking of 2 staged status query -- e.g. date/time and temp in the
 dwm status bar; The rest can be queried 'on demand' in the console.

I keep clock and battery in the status bar, and other info is in other
short scripts bound to Super-I, Super-P, Super-O, etc. The loop in
xinitrc ensures it will automatically revert to the clock within sixty
seconds.

# Kurt H Maier



Re: [dwm] Stats script

2009-05-09 Thread Jeremy Jay
I have mine just clock and date, but it'll show other stats when they
are interesting ie high cpu usage, discharging/low battery, low/off wifi, etc

Jeremy

On Sat 09 May 2009 - 10:47AM, Kurt H Maier wrote:
 On Sat, May 09, 2009 at 11:49:53AM +0200, sta...@cs.tu-berlin.de wrote:
  I noticed I very rarely look at most of the stuff in this status bar thoug,
  so I am thinking of 2 staged status query -- e.g. date/time and temp in the
  dwm status bar; The rest can be queried 'on demand' in the console.
 
 I keep clock and battery in the status bar, and other info is in other
 short scripts bound to Super-I, Super-P, Super-O, etc. The loop in
 xinitrc ensures it will automatically revert to the clock within sixty
 seconds.
 
 # Kurt H Maier
 



Re: [dwm] HELP! I don't understand config.h or how dwm works!

2009-05-09 Thread Nico Golde
Hi,
* Matthias-Christian Ott o...@mirix.org [2009-05-08 21:43]:
 On Fri, May 08, 2009 at 03:14:39PM -0400, Benjamin Conner wrote:
[...] 
  how to setup DWM.  I want some autostart programs, some keyboard shortcuts,
  and some basic stuff so I can use it. (and once I can use it, to use it well
  :P)  Can anyone give me some basic help to using DWM?  I found some stuff
  but nothing helps for me.  I can post my config.h too.  I will attach it to
  the message.  Debian Sid. DWM 5.5.  Thanks.  I really appreaciate if anyone
  can help.
 
 Learn C. Use man.

The award for the most useless comment in this thread goes 
to... you ;)

Cheers
Nico
-- 
Nico Golde - http://www.ngolde.de - n...@jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.


pgpGiMNxCt17Q.pgp
Description: PGP signature


Re: [dwm] Stats script

2009-05-09 Thread miles
`uptime` is the best combination of usefulness and simplicity in my  
opinion.  Then again I only use dwm on the desktop and things such as  
wireless signal and battery life done apply to me.


miles



Re: [dwm] Stats script

2009-05-09 Thread stanio
* Kurt H Maier karmaf...@gmail.com [2009-05-09 17:47]:
 On Sat, May 09, 2009 at 11:49:53AM +0200, sta...@cs.tu-berlin.de wrote:
  I noticed I very rarely look at most of the stuff in this status bar thoug,
  so I am thinking of 2 staged status query -- e.g. date/time and temp in the
  dwm status bar; The rest can be queried 'on demand' in the console.
 
 I keep clock and battery in the status bar, and other info is in other
 short scripts bound to Super-I, Super-P, Super-O, etc. The loop in
 xinitrc ensures it will automatically revert to the clock within sixty
 seconds.

Great idea. I think I'll go for that.

-- 
 cheers
 stanio_



Re: [dwm] HELP! I don't understand config.h or how dwm works!

2009-05-09 Thread Kurt H Maier
On Sat, May 9, 2009 at 11:24 AM, Nico Golde n...@ngolde.de wrote:
 Hi,
 * Matthias-Christian Ott o...@mirix.org [2009-05-08 21:43]:
 Learn C. Use man.

 The award for the most useless comment in this thread goes
 to... you ;)

He's going to need to do exactly that if he's going to get anywhere
with dwm.  Nothing useless about that advice.

# Kurt H Maier



Re: [dwm] [OT] Reputable online computer shops in Germany?

2009-05-09 Thread stanio
Hello, 

* Adam adam.listm...@gmail.com [2009-05-09 11:50]:
 Hello, I am considering getting an eee pc or something similar, and am
 trying to compare prices.

I am considering buying a netbook in the very near future, too. You might
share your criteria and the results of your comparison -- I at least would
be interested in that. 

My requirements are pretty simple in my opinion, but I get the impression
they seem not to be very common ... Instead current offers are bloated with
stuff I am only using once per year or not at all.

- silent (very silent pls) 
- light (up to 1.2kg)
- above 3(.5) hours of battery life (text input)  
- usable keyboard (best seen so far is the one of HP mini, fell in love
  with it, actually; but lenovo's one is not that bad, too)
- 8.9 inch display or bigger
- as small dimensions as possible   
- more than 8 GB internal drive (I think 16 to 32 GB would be perfect.
  unlike most of them having 100GB+ ...) 

The problem with deciding whether some requirement is satisfied is not that
simple: e.g.  reviews on battery life are based on Win XP or SomeLinux+KDE
or whatever, and if they say 2.5 hours how much does it mean for me with
debian+dwm or without X at all?

If someone has experience with these things, pls share.

 I currently live in germany but the only
 store i have bought from here before is bora computer which is ok,
 but I am looking for a few more data points. I am wondering if there
 are some good online shops dwm users in germany can recommend.  For
 laptops and also general things (ram, drives, etc) would be
 helpful...maybe comparable to newegg.com in the u.s. if you are
 familiar. Amazon.de seems more expensive that the .com version for
 some reason. One I found is notebook.de --- are they ok? Any
 recommendations?

I cannot recommend anything, but for more data points you can just type in
any search engine 'preisvergleich eee pc' or 'preisvergleich netbook' or
'preisvergleich computer zubehoer' and examine the top 10-15 search results
for what online shops they offer.

In the past, I used to visit http://www.notebooksbilliger.de/ because I
liked their advanced search and comparison, but now they don't offer
(anymore?) the currently for me most interesting netbooks.

Hope this helps. 

-- 
 cheers
 stanio_



Re: [dwm] HELP! I don't understand config.h or how dwm works!

2009-05-09 Thread Leandro Chescotta
i dont think so, i never reaad the man page and i dont know to program in C
a lot, so i think the only thing he needs are time to spare trying and
examples to try and figure it out how to do the things he want


On Sat, May 9, 2009 at 1:53 PM, Kurt H Maier karmaf...@gmail.com wrote:

 On Sat, May 9, 2009 at 11:24 AM, Nico Golde n...@ngolde.de wrote:
  Hi,
  * Matthias-Christian Ott o...@mirix.org [2009-05-08 21:43]:
  Learn C. Use man.
 
  The award for the most useless comment in this thread goes
  to... you ;)

 He's going to need to do exactly that if he's going to get anywhere
 with dwm.  Nothing useless about that advice.

 # Kurt H Maier




-- 

-
http://aleyscha.spaces.live.com/

El lugar mas peligroso de todos es el cielo... En el, cada pensamiento se
hace realidad... sea bueno o malo... creas tu paraiso o tu infierno


Re: [dwm] [OT] Reputable online computer shops in Germany?

2009-05-09 Thread Preben Randhol
On Sat, 9 May 2009 19:30:12 +0200
sta...@cs.tu-berlin.de wrote:

 My requirements are pretty simple in my opinion, but I get the
 impression they seem not to be very common ... Instead current offers
 are bloated with stuff I am only using once per year or not at all.

I have an Asus Eee 1000H and my wife has an Eee 901. Both running Linux
(XP ditched)
 
 - silent (very silent pls) 

901 is silent (well there is a fan you can slightly hear if the machine
get really hot). I'm allergic to computer noise, but I don't find the
fan noise from the 1000H problematic. If you are pushing the
computer for a long time so it really gets hot, you can hear the fan
well.

 - light (up to 1.2kg)

1000H is 250 g more, but that should not be a problem. 901 feels almost
too light :-)

 - above 3(.5) hours of battery life (text input)  

I have now 6 hours battery life with the 1000H running dwm on Ubuntu
9.04. My wife has about 5.5-6h running xfce4 Xubuntu 9.04, but this PC
is not power optimized like my 1000H though.
 
 - usable keyboard (best seen so far is the one of HP mini, fell in

The keyboard of 1000H is very good. The 901's is small and needs getting
used to. My fingers are too big for it I think. Try the keyboards in a
shop!

 - 8.9 inch display or bigger

8.9 - 901
10 -1000H

 - as small dimensions as possible   

The 1000H is slightly bigger, but still very small.

 - more than 8 GB internal drive (I think 16 to 32 GB would be perfect.
   unlike most of them having 100GB+ ...) 

640kb should be enough for everyone? Well it depends on your needs. For
me I wanted more space so I can install all the software I want and
need. On my wifes Eee I have had to remove things in order to stay
within the 4Gb (of the primary SSD) secondary is 12Gb.

I don't find the SSD to be practically any faster. In fact I find the
901 to be more sluggish than the 1000H, but it could be due to the CPU
also. You need to change the scheduler at least to get the 901 more
responsive. At the moment there is no loss going for a HDD IMHO.

For me I would choose the 1000H over the 901 for usability. The 901 is
great too, my wife has written two papers on it without a problem, but
for me the keyboard is a bit troublesome.

What I can say is that dwm is a perfect match for the Eee family!

HTH

Preben


-- 
Preben Randhol
http://wee-free-lore.blogspot.com/



Re: [dwm] HELP! I don't understand config.h or how dwm works!

2009-05-09 Thread Benjamin Conner
I agree with Leandro.  I mean, it seems like it's pretty simple, at least
what I want to do.  Anyway, thanks for the help.

On Sat, May 9, 2009 at 1:36 PM, Leandro Chescotta 
leandro.chesco...@gmail.com wrote:

 i dont think so, i never reaad the man page and i dont know to program in C
 a lot, so i think the only thing he needs are time to spare trying and
 examples to try and figure it out how to do the things he want



 On Sat, May 9, 2009 at 1:53 PM, Kurt H Maier karmaf...@gmail.com wrote:

 On Sat, May 9, 2009 at 11:24 AM, Nico Golde n...@ngolde.de wrote:
  Hi,
  * Matthias-Christian Ott o...@mirix.org [2009-05-08 21:43]:
  Learn C. Use man.
 
  The award for the most useless comment in this thread goes
  to... you ;)

 He's going to need to do exactly that if he's going to get anywhere
 with dwm.  Nothing useless about that advice.

 # Kurt H Maier




 --

 -
 http://aleyscha.spaces.live.com/

 El lugar mas peligroso de todos es el cielo... En el, cada pensamiento se
 hace realidad... sea bueno o malo... creas tu paraiso o tu infierno




-- 
Tommy
A-TEC Computers
www.a-tecpc.net