Search Results: "mak"

10 December 2006

John Goerzen: Renovation: Week 24

Wow! What a week. (Click here for all of this week's photos) On Sunday afternoon, we walked into the house and saw this:



Yes, over the weekend, the cabinet makers had installed the cabinets earlier than expected! I never expected that I would get excited about kitchen cabinets, but I sure was. They look great.

My grandma's china cabinet is back up in the dining room. They've removed the tile from the dining room, exposing the wood floor underneath. The floor restoration people have spent some time doing some patching already.

Doors and doorjams are starting to go in. Trim is arriving. And the wood in the wall alongside one of the staircases has been seamlessly extended.

It's exciting. (photos here)

And check this out:



That hunk of ice is the exhaust from our furnace. No joke! The furnace is so efficient that, when its running, it's a moist and slightly warm breeze blowing out of that exhaust pipe. In winter, it condenses and drips down below, forming an ice hunk.

9 December 2006

Adrian von Bidder: Samsung?

Daniel Burrows writes about Samsung embedding DRM in (some of?) its DVD drives. While I must say that I'm not surprised (not because it's Samsung, but because I expect DRM to be embedded deep in hardware more and more to counter software-based attacks won't work anymore), it will now make me feel bad about buying a Q40, which I'm thinking about doing: it's a really slick sub-note, only a bit more than 1kg (with the small battery) and running up to ca. 5 or 6 hours with the (included at no extra charge) high power battery (as per specs). Good display, too, from what I could see at the shop, and it has an Intel graphics chip. Memory stick/MMD/SD card reader included as well, so I'd have something to look forward to when kernel 2.6.48 or so comes out and these readers will finally work. And, opposed to what IBM/Lenovo produce, they actually have some competent designers^W^W^W^W^W^WI actually like how it looks. DRM: I think this battle will have to be fought in politics. Battling the vendors is fine, but will be endless, the real goal should be to anchor a broad right to tinker in the bill of rights which also extends to non-commercially used information. (Adding the “non-commercial” bit in here because authors do have the right to be reimbursed when somebody earns money with their creation.) What I do in private with the DVD I legally bought, or with the satellite signal that is sent to my home for free (and I can't even opt out) is non commercial use. Update: The problem is that Daniel is a doofus. (in his own words.) So Samsung's reputation is safe for now. But I have to agree with him, still: it is a realistic expectation in these days that the hardware supports DRM in some way.

Daniel Burrows: DRM: "If there is hope, it lies in the proles^H^H^H^H^Hpols"?

In response to my recent mistaken post about Samsung and DRM, Adrian von Bidder wrote that

I think this battle will have to be fought in politics7. Battling the vendors is fine, but will be endless, the real goal should be to anchor a broad [4]right to tinker in the bill of rights which also extends to non-commercially used information.


On one level, this is probably true. But this amounts to the government passing laws that increase the liberty of its citizens and decrease its own control over them, while at the same time exposing the corporate interests that sponsor the government to increased competition. Governments almost never do this, for obvious reasons -- probably the only example in recent American history that I can think of is the Civil Rights Act of 1964, over forty years old now, which addressed inequalities that the average person could understand easily and was preceded by significant popular unrest (much more than a few guys dressing up like hazardous-waste-disposal crews and walking around outside computer conferences).

In fact, the most likely outcome of the government getting involved in the DRM situation, in my opinion, is a bill making DRM mandatory for all hardware devices and requiring software (or at least software that can run on mass-market computers) to go through a process of certification that attests that it respects DRM. This will be the final nail in the coffin for the free software movement, and I don't think we want to hasten its arrival.

I think the best we can hope for in this context is the prayer from "Fiddler on the Roof":


Lord, bless and keep the Congress

... far away from us!

Daniel Burrows: Hardware manufacturers to avoid: Samsung

[UPDATE 2: the problem is of the form "Daniel is an idiot". See this post for details. DRM is still evil, though.]

I recently assembled a little Mini-ITX system, mainly for use as a file server/desktop replacement/music server. However, it has a DVD drive, and it has a hardware MPEG2 decoder. So today, feeling a bit lazy, I decided to try displaying a DVD on the box instead of using the DVD player. This is when I discovered that my computer's new DVD drive is defective.

hdc: command error: status=0x51 DriveReady SeekComplete Error
hdc: command error: error=0x54 AbortedCommand LastFailedSense=0x0
5
ide: failed opcode was: unknown
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Read of scrambled sector without authentication -- (asc=0x6f, asc
q=0x03)
The failed "Read 10" packet command was:
"28 00 00 00 01 c0 00 00 02 00 00 00 00 00 00 00 "


Yes, you read that right.

So, I won't be buying any more Samsung hardware until they figure out that I am their customer, not the MPAA. I realize this is an utterly futile gesture, that Samsung won't even notice my lack of custom, that this will make not even a dent on the juggernaut of DRMed/TPMed/locked-down hardware/software systems that are coming in the future, and that the end result is that I quit using computers entirely and go raise chickens...but you know, right now I think I'm mad enough not to care.

PS: Even worse: based on some discussions I found online, I ran a quick check of the CD reading speed -- and it appears that the drive now refuses to read CDs any faster than 2-3X! This is absolutely the last dollar that Samsung is getting from me, and if the store's return policy allows it, this sucker is getting RMAed tomorrow.

[UPDATE: the store I bought the drive from in October has a 30-day return policy, so I'm stuck with the one I've got. Probably I won't bother with getting DVD functionality on my next optical drive, it's not worth the obnoxiousness.]

Russell Coker: Debian SE Linux policy bug

checkmodule -m -o local.mod local.te
semodule_package -o local.pp -m local.mod
semodule -u local.pp


Save the following policy as local.te and then run the above commands to make semodule work correctly and to also allow restorecon to access the console on boot.

module local 1.0;

require
class chr_file read write ;
class fd use;
type restorecon_t;
type tmpfs_t;
type initrc_t;
type semanage_t;
role system_r;
;

allow restorecon_t tmpfs_t:chr_file read write ;
allow semanage_t initrc_t:fd use;

8 December 2006

Jeff Bailey

I can't really guess at how many social networking sites I've signed up to over the years. I was thinking about this a bit as I noticed some more LinkedIn mail. It's a site that seemed interesting, until I realised that I don't need to pay another company for the privilege of asking friends to introduce me to their friends. But I was thinking through the bits of electronic interaction that I have, and thinking back to my days at Hollinger where we actively spent time thinking about what content we could provide that would keep the user moving from one of our sites to another of our sites, always looking at our ads.

With this lens on, I was thinking about where I would take Google next if I were in a similar position there. I think that Google's future probably relies primarily on their crappiest product: Orkut. What places like MySpace do well is provide what I think of as the old CompuServe experience. You go, and in one spot you have different forums, chat, and downloads.

But what if Google were to make Orkut not suck? They've already started integrating Talk into it (although it still doesn't work with Apps for Your Domain), and I can only imagine that we'll soon see your account only a short while from where your Orkut page shows your public blog entries, as well as allows you to post to your own blog, or a community one. The relationships there are rich enough with Friends Groups and a gradient of friendship that the community FOAF bits could be represented easily. Picassa and their page builder things would allow people to setup myspace-like places for themselves without ever leaving the familiar framework of Orkut. Business could use all of these tools for internal corporate things, marking certain items as publish while the integrated checkout functionality let them to business quickly and efficiently.

But what other interactions then? Could we book a doctor's appointment by looking at their Calendar through their corporate page? Easily book venues for the band with the same? Use the presence notification in Talk figure out if there's someone I can deal with right now to finalise the plans for the upcoming gig?

And the cool part is that from what Google's done so far, they'll cheerfully let you integrate your own product into theirs through some sort of open standard.

Steve McIntyre: Is there nothing they won't stoop to?

In the UK, the Gowers review of Intellectual Property (sigh at the usual conflation) was released this week. Amongst a whole slew of other recommendations, he stated quite clearly that the term of current music copyright protection in the UK was already long enough, and extending it was not in the public interest: "Recommendation 3: The European Commission should retain the length of protection on sound recordings and performers' rights at 50 years." "Recommendation 4: Policy makers should adopt the principle that the term and scope of protection for IP rights should not be altered retrospectively." The review was published shortly after a slew of propaganda from various bodies in the UK representing the music industry, all essentially claiming "the sky is falling". Yesterday, there was even a full-page advertisement in the Financial Times signed by several thousand UK recording artists calling for "fair play for musicians". However, as Lessig points out, there's a small problem with that ad: at least some of the so-called signatories are dead, and have been for some time. I suppose by now we should be used to the fact that the large media corporations are corrupt and self-serving - that's hardly news any more. But this really takes the biscuit...

Biella Coleman: Small Claims Court and the Insurance-Industrial Complex

I prefer the study of the law over being personally embroiled with the law in the real world, but if indeed Blue Cross Blue Shield does not pony up the money to cover my recent mole surgeries, I think I am going to take them to small claims court, which I know nothing of, except that it is a cheap way to try to get something done when you are getting screwed by a large faceless organization or some facefull twit. So the basic story is that since I had a lapse in my insurance (thanks to good Old Rutgers University!!), when I decided that I should buy my own just in case, I fell into a “pre-existing” clause, which means basically the insurance company can make your life a living bureaucratic hell because they have to review and approve every single procedure or doctor visit for over a year. Super. So of course when I got my mole diagnosis (dysplastic) and then the surgeries (the total cost being almost 3500) they went for review, but of course Blue Cross is taking their sweet time… The derm office has called for me to get involved so I spent the morning talking to a Ms. Flood from Blue Cross/Blue Shield and she explained to me that all the documentation from the doctor’s office was only received November 1st and then they will take 60-90 days to review the case before making the decision. Now, the insurance coordinator at the dermatology office told me that Blue Cross told her that Blue Cross can take up to FIVE years (not months, Years) to make a decision which seems, well just like they type of thing they would do, but somewhat illegal, maybe, no???!!! Anyway, my plan is to wait those 90 days and then if they deny my coverage or keep flip flopping around saying they need more info, I think I am going to proceed to the small claims court option. Honestly I don’t know if this is a realistic option (though I hope my lawyer friends write back soon) and it is a pain in the neck but I refuse refuse refuse to let this go…. because well, my mole condition was not pre-existing! Sure I had them, but they were happy healthy moles… And I even had seen another dermatologist with my Blue Cross Blue Shield insurance about 6 months earlier and all was good!! Yes I am upset :-( Anyone else ever fought the insurance industrial complex along these lines? Or have used small claims courts? This makes me want to stay in Canada… forever.. but actually I am due back in NYC by August for a permanent job but more on that later.

Sam Hocevar: Oh, the nullity

Erich Schubert writes:
[A rather erroneous rebuttal of Anderson s new tool]
Please. If you are going to use maths to refute a paper, at least read the paper, not the BBC news article. In fact, dividing by zero can be useful in calculus. What the guy did is design a consistent system (I trust him at least on this) that resembles the IEEE floating point algebra, except that in his system = while NaN NaN. Such a distinction makes it possible to write and solve equations where may be involved. Of course the final result may yield but the important part is that it is consistent, proven, and remains valid whatever the input values. What should be really questioned is:

Evan Prodromou: 17 Frimaire CCXV

One problem with keeping your journal in the French Revolutionary Calendar is that you have to keep looking up what the date is. It is nice to know that there are functions for converting Julian dates to French Revolutionary dates in PHP. Also a nice link on that page to the strange and mellow http://bottoms-dream.de/ , which isn't anywhere near as pornographic as it sounds. tags:

Blinky Redux I had Blinky Hockey again tonight -- the first time in a month that I've gone. (Blinky is the pickup hockey team my friends Meg and Patti started. It's for people who don't play hockey so good but want to learn. Like me.) Last time we had it, I flew out to California at 6AM the next day for 2 weeks, so I missed two practices in between. And then last time I had everyone over for Thanksgiving dinner, and I fell asleep putting the baby down. Doh. So it was good to go out this time around. I've been going to our local hockey rink, Ar na Mont-Royal, for free skating from 4-5PM a couple of times per week since we got home, and I think I'm getting a little steadier on the ice. I still haven't got the whole stop-on-a-dime thing or skate-forwards-backwards-forwards thing, but I'm able to get around without going face down. Which is good. Tonight we did some more sophisticated drills and had a good scrimmage at the end of practice. I didn't score but I had an awesome shot. It would have been cool if it were a score. Anyways, I think I'm going to have to keep practicing on my own. Going to the Ar na is great, but maybe I should fill our parking lot out back with water, like this R ves de Glace site suggests. That'd be cool. tags:

Calendar wishlist So, I'm always trying to learn to use my calendar application, whatever's easiest and most available. I have a Treo 650 and Evolution, and they work OK, but they don't work great. I have a lot of things that I wish calendar programs had.
  • Project management integration. This is probably the biggest one for me. I can't believe that we have two different kinds of programs for planning the exact same information: what you're going to do with your time. On top of that it's remarkable that so few of project planner programs talk to calendars (or vice versa).
  • Hierarchical TODO lists. I'd like to break up tasks into sub-tasks that depend on each other.
  • Effort estimates. I'd like to be able to make notes about how long I think a task is going to take, and when I'll get it done.
  • Repeating TODOs. Probably the most egregiously un-ergonomic thing about modern calendaring programs. Almost everything I have to do in my life I have to do on a repeating schedule. I have to take out the recycling once a week before Wednesday morning. I have to pay rent before the 1st. I understand it's a tricky problem, but that doesn't mean I don't want a program to do it.
  • Open invitations. I'd like to be able to send open event invitations to mailing lists and have people RSVP automatically (if they want). All the systems I've used require that I know the email address of each invitee ahead of time. And they rarely work across calendaring systems.
  • Skipped TODOs. Sometimes I give myself a task todo and I just don't get around to doing it. I'd like to be able to mark a task as not done, but no longer important. I don't want to forget it forever, just remember that it never got done.
  • Logging. It'd be nice if there were more and nicer interfaces to say what I did with my day after it's done. When did I finish that module? When was the last time Niko came over for dinner? It would be nice if my calendar helped me remember the past as well as plan the future.
  • Sharing by default. I want to set up calendar sharing once, have my local and remote calendar synched transparently, and never worry about it again. CalDAV seems neat, but I have got no idea how to get it working.
  • More shared calendars. I like using shared calendars; I wish more organizations published them. I'd like it if Bell Canada published a calendar that told me when to pay my phone bill, and I'd like it if MSLUG published a calendar of their meetings. I'd like it if I could mark my phone bill as paid, and RSVP for an MSLUG meeting, through my calendar interface.
  • ACLs. Different people need to see different parts of my calendar. It'd be nice to have finer-grained control than "public" and "private".
tags:

Simon Richter: Dear lazyweb,

I'm in the process of making myself feel at home on a machine with a high-resolution display. Now I'm looking for a good, readable font (20 pixels or more) that has decent Japanese glyphs. At present I'm thinking of making a FontSet from the three different "fixed" fonts, but it appears the xterm in Debian does not support FontSets at all.

Benjamin Mako Hill: Over The Counter, Behind Bars

I went to buy some pseudoephedrine yesterday because we ran out at home. A sign on the shelf prompted me to ask for it at the pharmacy. They would only sell it to me in small blister-packs and in order to buy any, they wanted to transcribe all of the information on my driver's license. A little bit of research reveals that this is roughly connected to the national Combat Methamphetamine Epidemic Act of 2005, signed into law earlier this year as part of the PATRIOT act extension. Apparently, pseudoephedrine is used to created (illegal) methamphetamine and meth chemists qualify as terrorists under PATRIOT. States, however, have gone even further. Oregon has gone so far as to make pseudoephedrine a Schedule III controlled substance that requires a prescription. Many other states, like Massachusetts have made pseudoephedrine a over-the-counter drug that's kept, well, on the other side of the counter. It was, I think, the first I ever had to buy an over-the-counter drug over a counter. Usually, I just pick it off the shelf myself. I find that fact slightly humorous. But it hardly seems worth collecting and recording a pile of personal information on every person who wants to buy a weeks worth of cold medicine -- particularly when the largest producers of U.S. meth remain outside of the country.

Erich Schubert: British now divide by zero?

British now divide by zero. Either this "Dr James Anderson, from the University of Reading's computer science department" is a crappy computer scientist (not to speak of his mathematical skills), or this is a case of really bad journalism. Apart from having some facts wrong (infinity and -infinity aren't numbers, they're symbols outside of the numbers), he basically defines "0/0 = Nullity". Well, some of us might prefer the name "NaN" for this. "Not a Number". In floating point calculations, 0/0 may (if you've disabled exceptions) return NaN. So it is nothing new. And it's not particularly useful either, because all it solves is not having to raise an exception, but being able to continue your calculations (which will continue to return NaN) and handle the error at the end. With modern languages designed around exception handling, this of course is rarely ever used anymore. Some simple calculations you might find convincing: 2 * Nullity = 2 * (0/0) = (2*0)/0 = 0/0 = Nullity Nullity + 1 = (0/0) + (1/1) = (0*1 + 1*0)/(0*1) = 0/0 = Nullity Nullity / Nullity = (0/0) / (0/0) = (0/0) * (0/0) = (0*0)/(0*0) = (0/0) = Nullity So if you ever have Nullity anywhere in your equation the whole equation equals nullity. There is no way to remove Nullity from your results, since even Nullity/Nullity is Nullity. So you could just call it "I divided by zero, so the result is invalid". Thats probably not as pretty as "Nullity", but as useful. Some simple calculation, why you must not be allowed to divide by zero (independently from any nullity or whatever):
1*0 = 0 = 2*0     (This equation is right, isn't it?)
1 = 2             (I divided by 0 on both sides, removing the *0 factor)
This works for any number, not only for 1 or 2. So: if you divide by zero, all your numbers are equal (if you keep standard calculus rules such as associativity, distributivity etc. used in above equations). If that is okay for you, then you can divide by zero. I do prefer having 1 life to 0 life. And if 1 = 1000000, can you give me $1000000, I'll give you $1 back tomorrow... But: Maybe it's just a bad piece of journalism. He's a computer science guy. Maybe he knows about NaN. Maybe he's just trying to teach kids to use NaN when calculating, instead of teaching them to never divide by zero. There might be didactic benefits from this approach. The 1200 year old problem (Pythagoras, cited in the article lived 2500 years ago, I have no idea how they made up this number) IS easy to solve, if the result is called "invalid" instead of just having no valid result... That won't make your airplane land better, if it notices it's current height is Nullity... and what if his heart pacemaker obtains a result of "nullity", what is it supposed to do (as opposed to noticing it miscalculated?) [Update: he has published papers on this, too. Unbelievable... So above theory that it maybe is good for educational purposes is incorrect. Anyway, journalists shouldn't have reported on this without talking to some serious mathematicians...] [Update: Zoy, thats why I wrote "if you keep standard calculus rules such as associativity, distributivity, etc. - and I find these exceptionally useful. The last example is not using his rules, but standard math, but treats zero like all other numbers, to show that a canonical extension will just not give useful results. My whole point is NOT that you can't define 0/0=Nullity, but that it's not compatible with the standard calculus we're used to and relying on.]

David Moreno Garza: More wins in Latin America

I have to congratulate my Venezuelan buddies for making a nice and democratic reelection for President Hugo Ch vez, last Sunday. Venezuela confirms again that is a grown, mature and social-oriented country.


Fight continues. And after Ecuador elections, a couple of weekends ago, more and more social democracy has been made in Latin America, after the win by the leftist Rafael Correa.


Another strap. We cannot forget neither the Nicaraguan elections in early November where sandinist Daniel Ortega won.


Daniel, the menace. So sad that Mexico is involved in fraud and without the hope that at least the previous friend countries have.


No wall will defeat hunger.

7 December 2006

Russell Coker: some advice for job seekers

A member of the free software community recently sent me their CV and asked for assistance in getting a job. Some of my suggestions are globally applicable so I'm blogging them.

Firstly I recommend that a job seeker doesn't publish their CV on the net in an obvious place. Often you want to give different versions to different people, and you don't necessarily want everyone to know about the work you do. I can't imagine any situation in which a potential employer might view a CV on the net if it's available but not ask for one if it isn't there. If you are intensively looking for work (IE you are currently between jobs) then I recommend having a copy of your CV in a hidden URL on your site. This means that if you happen to meet a potential employer you can give them a URL so that they can get your CV quickly, but the general public can't view it. A final problem with publishing your CV is that it may cause disputes with former colleagues (EG if you describe yourself as the most skilled programmer in the team then a former colleague who believes themself to be more skillful might disagree).

Next don't put your picture on your CV. In some jurisdictions it's apparently illegal for a hiring officer to consider your appearance. If there are many CVs put forward for the position then it may be easier to just discard yours because of this. There is absolutely no benefit to having the picture, unless of course you are applying for a job as an actor. Incidentally I've considered applying for work as an movie extra. The amount of effort involved is often minimal (EG pretend to drink beer in the back of a bar scene) and the pay is reasonable. It seems like a good thing to do when between computer contracts.

I write my CV in HTML and refuse to convert it. If a recruiting agent can't manage to use IE to print my CV then they are not competent enough to represent me. If a hiring manager can't manage to view my CV with IE then I don't want to report to them. However I recommend against using HTML features that make a document act in any way unlike a word-processor file. There should be no frames or CSS files so there is only one file to email, and the text should be all on one page so the PGDN and PGUP keys can scroll through all the content. Tables, bold, and italic are good, fonts are a minor risk. Colors are bad.

Recruiting agents will often demand that your CV be targeted for the position that you are applying for. I often had complaints such as "I see only sys-admin skills not programming". To solve this I wrote my CV in M4 and used a Makefile to generate multiple versions at the same time. If a recruiter wants a version of my CV emphasising C programming and using Linux then I've already got one ready!

These are just a few thoughts on the topic based on a CV that I just saw. I may write more articles about getting jobs in the computer industry if there is interest.

John Goerzen: Saving Power with CPU Frequency Scaling

Yesterday I wrote about the climate crisis. Today, let's start doing something about it.

Electricity, especially in the United States and China, turns out to be a pretty dirty energy source. Most of our electricity is generated using coal, which despite promises of "clean coal" to come, burns dirty. Not only does it contribute to global warming, but it also has been shown to have an adverse impact on health.

So let's start simple: reduce the amount of electricity our computers consume. Even for an individual person, this can add up to quite a bit of energy (and money) savings in a year. When you think about multiplying this over companies, server rooms, etc., it adds up fast. This works on desktops, servers, laptops, whatever.

The easiest way to save power is with CPU frequency scaling. This is a technology that lets you adjust how fast a running CPU runs, while it's running. When CPUs run at slower speeds, they consume less power. Most CPUs are set to their maximum speed all the time, even when the system isn't using them. Linux has support for keeping the CPU at maximum speed unless it is idle. By turning on this feature, we can save power at virtually no cost to performance. The Linux feature to handle CPU frequency scaling is called cpufreq.

Set up modules

Let's start by checking to see whether cpufreq support is already enabled in your kernel. These commands will need to be run as root.

# cd /sys/devices/system/cpu/cpu0
# ls -l


If you see an entry called cpufreq, you are good and can skip to the governor selection below.

If not, you'll need to load cpufreq support into your kernel. Let's get a list of available drivers:

# ls /lib/modules/ uname -r /kernel/arch/*/kernel/cpu/cpufreq

Now it's guess time. It doesn't really hurt if you guess wrong; you'll just get a harmless error message. One hint, though: try acpi-cpufreq last; it's the option of last resort.

On my system, I see:

acpi-cpufreq.ko     longrun.ko      powernow-k8.ko         speedstep-smi.ko
cpufreq-nforce2.ko  p4-clockmod.ko  speedstep-centrino.ko
gx-suspmod.ko       powernow-k6.ko  speedstep-ich.ko
longhaul.ko         powernow-k7.ko  speedstep-lib.ko


For each guess, you'll run modprobe with the driver name. I have an Athlon64, which is a K8 machine, so I run:

#modprobe powernow-k8

Note that you leave off the ".ko" bit. If you don't get any error message, it worked.

Once you find a working module, edit /etc/modules and add the module name there (again without the ".ko") so it will be loaded for you on boot.

Governor Selection

Next, we need to load the driver that tells the kernel what governor to use. The governor is the thing that monitors the system and adjusts the speed accordingly.

I'm going to suggest the ondemand governor. This governor keeps the system's speed at maximum unless it is pretty sure that the system is idle. So this will be the one that will let you save power with the least performance impact.

Let's load the module now:

# modprobe cpufreq_ondemand

You should also edit /etc/modules and add a line that says simply cpufreq_ondemand to the end of the file so that the ondemand governor loads at next boot.

Turning It On

Now, back under /sys/devices/system/cpu/cpu0, you should see a cpufreq directory. cd into it.

To turn on the ondemand governor, run this:

# echo echo ondemand > scaling_governor

That's it, your governor is enabled. You can see what it's doing like this:

# cat cpuinfo_min_freq
800000
# cat cpuinfo_max_freq
2200000
# cat cpuinfo_cur_freq
800000


That shows that my CPU can go as low as 800MHz, as high as 2.2GHz, and that at the present moment, it's running at 800MHz presently.

Now, check your scaling governor settings:

# cat scaling_min_freq
800000
# cat scaling_max_freq
800000


This is showing that the system is constraining the governor to only ever operate on an 800MHz to 800MHz range. That's not what I want; I want it to scale over the entire range of the CPU. Since my cpuinfo_max_freq was 2200000, I want to write that out to scaling_max_freq as well:

echo 2200000 > scaling_max_freq

Making This The Default

The last step is to make this happen on each boot. Open up your /etc/sysfs.conf file. If you don't have one, you will want to run a command such as apt-get install sysfsutils (or the appropriate one for your distribution).

Add a line like this:

devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2200000


Remember to replace the 2200000 with your own cpu_max_freq value.

IMPORTANT NOTE: If you have a dual-core CPU, or more than one CPU, you'll need to add a line for each CPU. For instance:

devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2200000


You can see what all CPU devices you have with ls /sys/devices/system/cpu.

Now, save this file, and you'll have CPU frequency scaling saving you money, and helping the environment, every time you boot. And with the ondemand governor, chances are you'll never notice any performance loss.

This article showed you how to save power using CPU frequency scaling on Linux. I have no idea if it's possible to do the same on Windows, Mac, or the various BSDs, but it would be great if someone would leave comments with links to resources for doing that if so.

Updated: added scaling_max_freq info

Lucas Nussbaum: Resurrecting Debian package a day , part two.

After this blog entry, I thought for a while, and decided to take over Debian package a day. I’m well aware that it needs a lot of time, so I’ll try to make this a collaborative work: The publishing rate should depend on the number of ready-to-go entries in the queue. Starting with publishing twice a week should be okay. I have already started to set up a wordpress blog (using drafts to prepare entries + mails to coordinate should be enough for now ; we can always switch to something more complex later). TODO List :
  1. Get control over the debaday.debian.net domain. I couldn’t do it directly since DAMs seem to want to wait until Christmas to deliver my Debian account, so buxy did it for me. Should resolve soon.
  2. Get added to Planet Debian and Planet Ubuntu. If the posting rate stays low, it shouldn’t be a problem, and we can always change this later.
  3. Write the initial pages explaining how to contribute, etc.
  4. Get the first entry online.
  5. Recruit editors to share the load.
  6. Wait for you to submit entries :-)
Update (08/12/06) : Debian Package of the Day won’t be added on Planet Debian: a recent discussion concluded that non-personal blogs should not be on Planet Debian. So you have to subscribe directly to its feed (if you read Planet Ubuntu, you probably don’t need to, since it was added there).

Benjamin Mako Hill: Upcoming Travel

I'm going to be in Seattle between December 16-19 and 26-31 and in Tokyo between December 19-26. I know it's around the holidays but if there are folks in either place that want to meet up for a keysigning or a caffeinated/alcoholic beverage, or even have me give a quick talk at a LUG or something, it might be a lot of fun. Please don't hesitate to get in contact.

Benjamin Mako Hill: Dev House Boston

I am excited to see that a number of local hackers have organized the first Dev House Boston for this coming Saturday. There are many projects I'm interested in but I might try to take the opportunity to work on my iRony Rockbox Installer because it's likely that there will be many people there with different types of iPods. If you're going, I look forward to seeing you there, although I might not show up until a little later in the afternoon.

John Goerzen: The Climate Crisis

Wow.

We just watched An Inconvenient Truth. Not much in there was new to me, but to see it all presented at once is amazing.

There are vast undisputed scientific facts out there -- for instance, that CO2 content in the atmosphere is higher than it's been ever -- and we can go back 650,000 years. The linkage between that and temperatures is inescapable.

Gore makes a good point: shouldn't we be worried about more than terrorism?

Does the thought of parts of Manhattan, San Francisco, and large parts of Florida going underwater suggest a problem exists?

This really is critical and urgent.

We've already been thinking about it lately as we renovate our house. We're paying a little more now for things like airtight insulation, low-energy lighting, efficient heating. Not only will it save us money in the long run, it will help improve our lives and Jacob's life down the road.

The movie's website is over at climatecrisis.net.

Next.

Previous.