Matthew Garrett: Worrying realisations
The entire lifecycle of Ultrix from first to last release was on the order of 12 years.I first ran Linux in 1995.
The entire lifecycle of Ultrix from first to last release was on the order of 12 years.
Travel plans:
In response to this:
ICH8 docs, section 5.13.5.1:
Aigars:lshal grep quirk should tell you (if you have hal). You're
looking for something like power_management.quirk.s3_bios =
true (and s3_mode).
Kernel 2.6.26 added a lot of quirk handling into the drivers, meaning an end
to user-space hacks. pm-suspend, from the pm-utils package,
assumes that all of these quirks have been resolved, but it seems that the
S3 ones for my hardware have not. This means broken suspend/resume
out-of-the-box. This is fixed in a version of pm-utils to be released in a
week or thereabouts, after the freeze begins.
The X40 at one point seemed to be the Debian hacker's laptop of choice. I
bought mine after glowing recommendations from Steve McIntyre, Stephen Gran,
Mark Hymers, Amaya Rodrigo, Daniel Stone, Matthew Garrett, Rob McQueen and
several others. It's one of the best pieces of hardware I've ever had the
pleasure of using, and I'm concerned that we might even be going backwards in
terms of supporting this device from release-to-release.
If you do have such a device, can you please try the following:
On my test setup, disabling the blinking cursor in Gnome saves me 2 Watts.
Based on feedback from my last couple of posts, I've written a guide to some good power management practices. It's aimed at people implementing desktop environments and power management interfaces for the most part, rather than end users or driver developers. Any suggestions for additions or corrections happily received.
Sebastian K gler dissects my dissection, except in fact he appears to be responding to a pile of stuff I didn't write.
I saw a posting about PowerDevil, the new KDE power management interface. It's somewhat disheartening - for the most part, it falls into the same traditional errors made in power management (ie, letting you change cpufreq settings, using "presentation" as a power management setting rather than getting applications to actually do the right thing). But my point isn't to bitch about PowerDevil. My concern is more about why we're still failing to get the message across about certain power management myths. Implementing power management incorrectly leads to wasted power, dead polar bears and wet carpets. It's important that we get this right.
![]() | ![]() |
| Christoph Hellwig | Nuclear Man from Superman IV |
My current desktop PC has an RS790-based Radeon on-board graphics controller. It also has a Radeon X1900 plugged in. Playing with my Watts Up, I found that the system was (at idle!) drawing around 35W more power with the X1900 than with the on-board graphics.MOVE_REG @ 0xBC09 src: ID[0x0000+B39E].[31:0] -> 0xFF7FFF7F dst: REG[0xFE16].[31:0] <- 0xFF7FFF7F, showing that the value in question was being read out of a table in the video BIOS (ID[0x0000+B39E] indicating the base of the ROM plus 0xB39E). Looking further back showed that WS[0x40] contained a number that was used as an index into the table. Grepping the header files gave 0x40 as ATOM_WS_QUOTIENT, containing the quotient of a division operation immediately beforehand. Working back from there showed that the value was derived from a formula involving the divider frequencies of the memory PLL and the source PLL. Reimplementing that was trivial, and now I could program the same register values. Hurrah!
So, the yum package manager (and, I assume, RPM underlying that) has a
fairly neat (to my naive eyes, anyway) implementation of multiarch support
-- on an amd64 system you can install i386 packages, and they go into a
separate lib tree, and there's no conflicts or unhappiness. It even
installs both the i386 and x86_64 versions of libraries automatically when
you ask for them, which is a nice touch.
However, the dependency resolver doesn't quite seem to have gotten the
hang of some of the corner cases. For instance, if you want to install a
noarch package that depends on an architecture-specific package,
but for some reason only the i386 version is available (say, your local
package repo hasn't quite built the x86_64 version yet) then yum will
happily install the i386 version and say "OK, dependency resolved". Nice
try, but no cigar. What makes it a bit more irritating is that once you
work this out and the x86_64 package is available, you need to remove the
i386 version of the package by hand in order for it to pick up the x86_64
package and install it. Just asking yum "hey, can you install this package"
results in "nope, it's already installed, go away".
I swear I'm going out in a minute, but:From isolation / Deliver me o Xbox - / Through the ethernet Copyright (c) Microsoft Corporation. All Rights Reserved. Device is Xbox Compatible. Copyright (c) Microsoft Corporation. All Rights Reserved.. This confused me for a while until I plugged it into an Xbox 360 and discovered that despite it being plugged into the ethernet port, I could control the wifi options including network selection and encryption method. Does anyone have the faintest idea how this is implemented? A tcpdump of the Xbox booting reveals some ICMP6 packets, a bunch of DHCP and some uPNP service discovery. uPNP seems like a plausible option, but I've got no idea how to probe a device for uPNP services using Linux. Has anyone played with reverse engineering this stuff? Googling didn't seem to show anything up.
One often requested feature for suspend support on Linux is hybrid suspend, or "suspend to both". This is where the system suspends to disk, but then puts the machine in S3 rather than powering down. If the user resumes without power having been removed they get the benefit of the fast S3 resume. If not, the system resumes from disk and no data is lost.
I played with an Eee for a bit last time I was in Boston, culminating in a patch to make the eeepc-laptop driver use standard interfaces rather than just having random files in /sys that people need to write custom scripts to use. The world became a better place.
As a brief introduction to this - I first read through the Android code when interviewing with Google for an opening with the Android kernel team. I didn't get the job, and while I don't think anything that follows here is as a result of residual bitterness you might want to take some of it with a pinch of salt.android_early_suspend_t early_suspend; android_early_suspend_t slightly_earlier_suspend;to deal with the fact that the MSM framebuffer driver depends on the MDDI driver having brought the link bank up and so needs its suspend method called before the MDDI driver but its resume method to be called after, and the only way to handle that is to register two methods - the "slightly earlier" one which has a suspend method but no resume, and the "early" one which has a resume method but no suspend one.
Sound Juicer "Old Man Take A Look At My Life" 2.25.1 has been
released. Tarballs are
available on
burtonini.com, or from
the GNOME
FTP servers. Everyone's favourite Frockney did a huge amount of work on
this, and I'm still talking to him after he admitted that the master plan is
to replace Sound Juicer with Rhythmbox in Fedora!
Next.