X300 power consumption - take 2

Posted by George Wright Tue, 30 Dec 2008 03:16:00 GMT

Trying out Debian Lenny and its power management seemed to help; I can now get the machine down below 8W, and when using it on half brightness with the wireless card turned on, it sits at around 9W. This isn’t too bad anymore. It’s certainly a lot better than Ubuntu’s 12W in approximately the same circumstances - a saving of 25%!

I’ve now compiled a custom 2.6.28 kernel on Lenny and tried out the ASPM PCI-Express power management code that’s marked as experimental. dmesg reports the following on bootup:

[ 0.172338] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

After commenting out that bit of code in the kernel just to see what would happen, I then echoed “powersave” to /sys/module/pcie_aspm/parameters/policy, with no noticeable decrease in power usage.

The brightness issue is now sorted. After installing guidance power manager in KDE3 on Lenny things just worked. Sort of. The brightness levels reported by guidance are slightly wrong and the range is wrong. I suspect this is because previous thinkpads have had 7 brightness levels and this one has 15.

The touchpad issue, I’ve concluded, is a limitation of the hardware rather than the software, which is unfortunate. It seems that Lenovo changed the touchpad brand from Synaptics to ALPS with recent models. Unfortunately, ALPS touchpads are nowhere near as good as Synaptics ones, and so I’m stuck with a touchpad that’s a bit of a pain to use. Basically, if you press a button on one mouse, X receives a button press event. However, if you then keep it held down and move the other mouse, the mouse automatically generates a button release event before sending the new motion events. Thank you ALPS.

The fan is now being controlled in userspace using tpfand. I have built debian packages of version 0.94 (from the Ubuntu sources) and I will upload them at some point, along with the fan profile I’m using.

One last thing - the SSD in this machine is blisteringly fast. hdparm brings up around 90MB/s and Lenny cold-boots in about 20 seconds to the kdm login screen.

Posted in  | 10 comments

ThinkPad X300 and Linux - first impressions and power consumption issues

Posted by George Wright Mon, 29 Dec 2008 01:12:00 GMT

Today I got down and installed Ubuntu 8.10 on this new X300, and things went rather smoothly. I chose to use the ext3 filesystem on the flash disk, and not to create a swap partition (and opted to buy 4GB RAM for it).

In terms of things that work, the list is rather good. The wireless worked out of the box, sleep works, sound works, both batteries are detected, the graphics card works (with 3D acceleration) and general ACPI stuff works.

However, I have noticed a few problems.

First off (and this is really frustrating) - you can’t use the touchpad with the buttons from the TrackPoint (and vice versa). This means you can’t middle-click and drag using the touchpad. It’s frustrating because on my T43p you can, and I got into the habit of doing this because I find the buttons above are more conveniently located than the buttons beneath.

Secondly, it seems that display brightness adjustment sort of works, but keeps tripping over itself. For example, right now my screen is on 75% brightness but I can’t adjust it up or down because the hotkey daemon in KDE 3 thinks it’s on 0% (I’m assuming it’s getting this from ACPI).

Finally (for now) - power consumption seems to be rather high. When I’ve got the display on 0% and the CPU forcibly in powersave and enabled all the powersaving features suggested by powertop, ACPI still reports a power draw of ~12W. In comparison, my X40 drew 6-7W. Whilst I should have tested this before erasing Windows, a quick google search suggests that I should be seeing something more along the lines of 7-8W power draw.

I have also noticed that the fan is pretty much always in the high mode, even when idling, indicating that perhaps the CPU thermal management isn’t working properly. I understand the Intel L7100 is a “special” low-voltage processor that only the X300 uses, so perhaps Lenovo have done some crazy software ACPI hacks to thermally manage these special processors?

This is really bugging me because in Windows on a full charge I was estimated 8h remaining, whereas in Linux I’m being estimated ~4-5 hours.

Posted in  | 19 comments

New laptop

Posted by George Wright Sun, 28 Dec 2008 01:51:00 GMT

So over the last few days the fan on my T43p has been playing up, and as I’ve had it for about 3.5 years now, I decided it’s probably time to get a new one.

After a quick trip down Tottenham Court Road today, I managed to find a reseller selling the Lenovo ThinkPad X300 which I’ve been pining for ever since its release, and after some bartering managed to get hold of one along with an additional 3-cell battery to replace the CD/DVD drive with.

First impressions of the machine are really positive. The machine weighs less than my X40 did and the screen is much nicer. It’s nowhere near as good as the FlexView UXGA screen on my T43p, but I can’t get everything! Black colours aren’t great and the viewing angle vertically isn’t that good, but for a portable laptop it does the job just fine.

The keyboard is really nice - it gives a decent amount of tactile feedback (it’s better than the one on my T43p I think), and the addition of a touchpad is really helpful (I’ve always preferred them). I especially like that the keyboard is now a full sized one instead of the annoying almost-full size on the earlier X series machines.

In terms of speed, it seems to be pretty zippy. The 64GB SSD is nice and quiet and the performance seems reasonable.

Regarding the build quality - this is the first ThinkPad I’ve owned which was designed by Lenovo instead of IBM. As such, I’m new to such “features” as having a Windows key, an RF switch etc. The case, though, is rock solid and looks incredibly sleek whilst retaining the classic ThinkPad look (which I love). I’m not convinced I like the addition of the LEDs around/under/beside the buttons above the function keys, but I can probably live with that.

I don’t think I’m going to see much of a performance hit going from the 2GHz P-M to this new 1.2GHz C2D, especially given that my usage pattern doesn’t tend to involve single threads munching the CPU for a long time. We’ll see how it fares in due course.

All in all, a very happy bunny and I’d like to say this is the best ThinkPad I’ve owned yet, but it’s probably too early to say.

Next up - Ubuntu installation. Vista angers me.

Posted in  | 3 comments

Twitter!

Posted by George Wright Tue, 11 Nov 2008 16:48:00 GMT

I have now joined Twitter! Final year’s going to be a laugh…

Follow me!

Posted in ,  | 1 comment

Terrifying beauty...

Posted by George Wright Fri, 19 Sep 2008 00:33:00 GMT

Now my college can wake up to this in the morning:


Dhoom Clock

Posted in ,  | 3 comments

Unacceptable behaviour

Posted by George Wright Mon, 21 Jul 2008 21:38:00 GMT

I’m not usually one for jumping on flamewar bandwagons, but after seeing this, I felt I had to say something.

After having skim read the comments (there are a lot and most of them repeat each other), I did notice one disturbing thing; the people backing up the original post tend to be male, and the people objecting to the image are female. Or at least, that’s what I can muster from the usernames.

This is a horrendous rift in the community. There’s a big debate taking place on the original post’s comments section which basically involves two disjoint arguments, but I think that the majority of them are missing the point entirely.

Most of the supporters are simply pointing out that it’s legally fine, whereas the opposers are pointing out that morally it’s unacceptable. In the end, neither of these matter because whether you feel it’s acceptable or legal or not, this is pushing women away from the open source community and the comments in the post reflect this. If you don’t believe me, ask a few women how they feel about the post and I’m sure you’ll find the majority will find it offensive.

I’m not going to get involved with giving my opinion on the picture or the surrounding text as, quite frankly, the opinion isn’t what matters. How we perceive it is irrelevant; how the rest of the world perceives it is what really matters, and being a public blog that represents the community, this matters to us as a whole.

Posted in  | 148 comments

ThinkPad X40 SSD conversion and battery woes

Posted by George Wright Wed, 16 Jul 2008 23:03:00 GMT

My CF card and CF-IDE converter board arrived in the post and so today I started trying to get Linux installed on it.

At first I thought I’d try installing from a USB CD drive, but this was a horrendous mess and ended up wasting a good 8 hours of my life. In the end, I dumped the CF in a USB reader and debootstrapped hardy on, then booted it and installed kubuntu-desktop.

The installation is still going, but I did have a chance to run a quick hdparm -Tt on the disk; seems it’s doing a fairly consistent 25MB/s which is excellent given the old disk only did 18MB/s or so. hdparm also tells me that the disk is in UDMA-2 mode which is not too shoddy.

In other news, I’ve noticed that the batteries on my X40 are clapped out after nearly 3 years of abuse. The main 8-cell I have is down from 61Wh to 35Wh, and my extended battery which clips on the bottom is down from 27Wh to 12Wh. I can handle paying £30 to get a new 6-cell, as that’ll give a good 8 hours or so of life, but extended life batteries for the X40 are very seldom seen on eBay and the ones which do end up on there go for silly prices.

Does anyone have any experience replacing the cells in a ThinkPad battery manually? I just ripped my extended battery apart (luckily I had the correct triangular screwdriver bit…) and the four cells inside there are shaped in exactly the same way as in the normal 4-cell battery, which leads me to believe they share identical cells. My theory is that I can buy a normal 4-cell on eBay then rip the cells out of it then put them in the extended life battery. The only problem I can see at the moment is that ACPI reports design capacity and last known capacity, and I don’t know how to flush these values for recalibration. I’m assuming the charging circuit should be clever enough to work it out for itself?

I’d appreciate any comments or suggestions.

Posted in  | 13 comments

FreeNX package

Posted by George Wright Sat, 12 Jul 2008 17:44:00 GMT

In the absence of any sort of reasonably up to date packages for FreeNX, I decided to compile my own and tarball it up on my server.

This is a build of the NoMachine NX 3.2.0 open source components done on Ubuntu Hardy (32-bit) and the scripts from FreeNX are included, so it's an unlimited user server. As it was built on Hardy, only distributions using glibc 2.4 or later are supported, but I've successfully run it on a 64-bit Gutsy installation.

Installation is simple; just untar the package to /usr/NX and then make sure that the command:

$ LD_LIBRARY_PATH=/usr/NX/lib:$LD_LIBRARY_PATH /usr/NX/bin/nxagent

doesn't fail (install any required dependencies if it complains of missing shared libraries), then run:

# /usr/NX/bin/nxsetup --install --setup-nomachine-key

After that has run successfully, you should just be able to log into the server using an NX client (my QtNX in Hardy seems to work fine).

Later I'll upload a build of FreeNX with NX 3.2.0 for older machines (will compile it on Debian Etch).

Update: a build for older glibc versions (tested on Debian Etch) is now available.

Posted in  | 7 comments

Akademy 2008

Posted by George Wright Thu, 10 Jul 2008 13:51:00 GMT

I’ve finally got round to booking my trip to Belgium this year to attend Akademy. I did seriously consider not going, but I’ve been all the other four so I figured it would be a tragedy not to go this year (and abuse sebas, obviously). I’ll only really be there for the main conference, so I’m leaving the UK on the 1835 Eurostar out of St Pancras, and returning on the 1759 Eurostar out of Bruxelles Midi.

Unfortunately I missed the deadline for hostel booking and so I’m having to shell out bags of money to stay in a hotel, so I’ll be in the NH Mechelen with the likes of Antonio Larossa and Pino Toscano.

Do let me know if you’re going to be on the same Eurostar or in the same hotel!

Posted in  | 1 comment

LinuxWorld Conference & Expo 2008

Posted by George Wright Thu, 10 Jul 2008 09:50:00 GMT

Looks like there might actually be one this year. I’ve now applied for KDE to have a booth, so is anyone up for joining me on the booth this year?

It’ll be the usual story.. sit on the booth for two days getting bored, laughing^Wsmiling at the neighbouring GNOMEs and demonstrating how unbelievably awesome our desktop environment is. Obviously in between lots of lunch breaks.

Maybe we should do what we did a couple of years ago and apply for a combined Freedesktop.org booth with the GNOME people to increase our booth area?

Posted in  | 6 comments

Older posts: 1 2 3 ... 20