Fishpool

To content | To menu | To search

Tag - Linux

Entries feed - Comments feed

Wednesday 18 July 2007

Acer TravelMate 6292 and Fedora 7 Linux

As I mentioned in my previous note, my previous laptop destroyed its fan last week. Since it had started to show its age in other respects as well and was deemed not worth repairing, I got a new one yesterday -- an Acer TravelMate 6292. This is a Core 2 Duo / Santa Rosa chipset based model, with some pretty cutting-edge technology inside. I'll write down the details later when typing is easier, but for anyone who might be considering one to use with Linux: yes, it does work, quite well in fact, but a bit of tweaking is required due to its very new components.

Update: it's been 17 months since I wrote this post, and it keeps being one of the more popular things in this blog. Time to add some up-to-date detail.

  • Fedora 7 LiveCD didn't like to boot, possibly due to a missing driver (it didn't like my previous laptop's external Firewire CD drive either). It might be possible to work around by changing BIOS settings, but I borrowed a USB CD drive instead. Update: this hasn't been a problem since F8.

  • Otherwise, the LiveCD install experience (including resizing and moving the Windows partition out of the way) was a very smooth one. I hadn't done this before, and was positively surprised. I'm certain Microsoft hasn't made their install this smooth, and I doubt Apple has, either. Much recommended, if you're even a little bit curious.

  • Network-based update post-install no problem using a wired network. All in all, the install took about 1 hour to move Windows partition, 20 minutes to install Fedora, and 30 minutes for it to load updates afterwards (this was surprisingly slow for some reason).

  • Wireless (Intel Wireless 4965 A/G/N adapter) driver (iwlwifi) was preinstalled, but the required firmware wasn't (the package only included firmware for the previous model, 3945). No problem, just install iwlwifi-4965-ucode from ATrpms. Update: Intel has an official wireless site for the firmware.

  • Things which worked without any effort at all: battery monitoring, CPU frequency control, temperature monitoring, wired Ethernet, Bluetooth, docking station, and many other things I take for granted. In fact, the machine was entirely functional save for the missing wireless adapter microcode straight off the LiveCD, and all that I did for it was to improve performance past the "functional" stage.

  • Display was a bit fuzzy, and 3D acceleration didn't work. This was because the preinstalled Xorg Intel driver v 2.0 includes only basic support for GMA X3100. Both problems disappear by installing a new kernel (for updated 3D/DRI driver) and Xorg 1.3.0/Intel 2.1.0 (for 2D etc), ie by running this command: Update: Display has worked perfectly since F8 and the Intel driver keeps improving in capabilities and performance
  • Both suspend-to-ram (S3) and hibernate-to-disk work fine, once the usb drivers are forced out of the kernel prior to suspend. Create /etc/pm/config.d/unload_modules with one line:

    SUSPEND_MODULES="ehci_hcd ohci_hcd uhci_hcd"
    
  • Update: The Crystal Eye webcam (USB ID 064e:a101) works using the linux-uvc driver, which needs to be installed from source (download, extract, make, make install) is included in the kernel since F9. Make sure you configure each application to use V4L2 instead of the old V4L API. For example with Ekiga, choose V4L2 instead of V4L in the configuration druid or in the Video Devices Preferences. Same goes for anything based on GStreamer.
  • Something still to do about audio, apparently common to many Santa Rosa laptops and the ALSA Intel HD Audio driver, at least ones which use a Realtek codec. Notes from Ubuntu might guide you along - me, I'll try again after my vacations. Perhaps someone else will bother to fix this one. :) Update: Sound playback as well as recording work - though the recording quality isn't quite what I would expect from a "noise cancelling" three-mic setup the hardware has. I never tested it under Windows, though, so I can't say how close this is to intended quality.

  • Haven't tried to use the fingerprint reader (USB ID 147e:2016) yet, the biometrics libraries required look a bit overwhelming to install. Update: this is still not out-of-the-box functional, but the ever-industrious Bastien Nocera has recently packaged libfprint and fprintd for inclusion in Fedora 11. I've tested those packages, and they support the hardware - not quite ready for end-users, though.

Monday 18 June 2007

Update on Fedora 7

A few weeks ago I mentioned having upgraded to Fedora 7, and linked to a couple of bugs that were bothering me. No longer; as far as I can tell, my laptop is now stabler than it has ever been, plus way more functional. It's like I got a new computer all together ;) In particular, the crash when enabling an external screen was just fixed yesterday by Keith Packard. Thanks, Keith!

Tuesday 12 June 2007

Font rendering Mac OS X vs Windows vs Linux

A topic which I've run tests with before (long time before), apparently has come back with Apple's Safari for Windows release. Jeff Atwood finds Mac OS X fonts wonky - well, they're certainly soft. Apple has never been too keen on strong hinting, perhaps because it messes inter-glyph metrics in favor of contrast. Windows is wonky in its own way - ClearType has good contrast, but letter spacing is sometimes a bit annoying.

Just for kicks, here's what Fedora 7 with FreeType autohinting and subpixel rendering (equivalent of ClearType) looks like. This is just one of the modes, but the one I personally prefer:


Comparing at 200% rendering to Jeff's examples; Safari/Windows, IE7/Windows, and Firefox/Fedora

I guess it's up to everyone's preferences, but I think Fedora wins this one. Spacing isn't perfect here either (in particular "b est" looks a bit ugly), but overall, contrast is excellent and paragraph spacing is very close to what it would be without hinting.

Wednesday 23 May 2007

Fedora 7 nice step forward again

I installed Fedora 7 Test on my home PC a couple of weeks ago, and encouraged by its smoothness, and wanting a clean upgrade to OpenOffice.org 2.2 and Gnome 2.18, rolled it on my laptop, too. Pretty nice! Apart from those upgrades, I got:

These might seem like minor items, but all of them improve daily usability, and I much more prefer regular small improvements to huge changes, anyway. OpenOffice.org 2.2 actually is a relatively major upgrade, with support for dual screen mode in Impress (finally), and improvements in the already-good PDF export functionality.

Only two bugs that annoy me (and I'm easily annoyed), both new, but then again, many others went away:

Absolutely no problems doing a yum upgrade, but I had two things going for me, so y'all take your own chances: I've done this many times before, and I've used LVM-managed volumes for a long time. If you haven't, or don't, upgrade using Anaconda or risk not being able to boot afterwards.

Thursday 18 January 2007

First thoughts regarding the MySQL Falcon storage engine

One of my DBA colleagues mentioned that MySQL has released the first alpha version of the Falcon storage engine, which is advertised to most efficiently utilise modern hardware to provide a high-performance scalable replacement for InnoDB, which MySQL naturally tries to reduce dependency of. 

Unfortunately, just based on reading the Falcon documentation, I must draw the conclusion that without extensive further development, it won't be usable for very large installations such as the ones we run for Habbo for a number of reasons. I'm usually much more positive about MySQL, it after all being technology that has enabled Habbo to grow more than 100% every year I've been working on it, but this is a disappointment.

It supports just one tablespace per database, and each tablespace stores all data in a single file. While the concurrency problems of single-file access can be eliminated with careful application of modern kernel, filesystem and disk subsystem technology, single file databases still suffer from major administration issues.

Since a database can't be extended by additional tablespaces and data migrated by the storage engine, you'd better trust your capacity to indefinitely increase available storage space under one filesystem or downtime can't ever become a problem for you. Don't even think about deploying Falcon without a high-end NAS device that supports many times your current storage requirements, reliable logical volume management and an extendable file system. A database is also limited by the filesystem's maximum file size, so make sure that won't be a problem either. I wouldn't recommend ext3 for Falcon.

You'll also need to make backups either via SQL dumping the entire database (not really feasible for daily routine) or by backing up a single file, so either your filesystem, LVM system or storage device must support snapshot backups. Scalability may still become an issue, so be sure that the approach you choose doesn't degrade performance as file size grows.

Just one thread writing to disk may at first blush sound like excellent performance maximisation technique, but it forces you to make a choice between reliability (since it applied to log writes too, transactions are committed to disk in a serialized fashion - no concurrency) and scalability ("commits" to ram cache and background disk flushes certainly will perform well and scale nicely, but what if there's a power failure?). And this is not even the road to highest possible performance - the highest-end disk subsystems will become CPU limited if only one thread will be able to send I/O requests.

With one table space comes one cache/buffer pair, so developers are either forced to split their data model to multiple logical databases or suffer under one unpartitionable system where one bad table scan by one part of the application wipes the buffers from underneath the entire application. A truly modern storage system permits the DBA to assign certain tables or indices to their own caches and buffer spaces and retain a single logical model for software developers. MySQL has never had this ability, and apparently Falcon won't bring it, either.

A more traditional DBA might also cringe at the statement "it is impossible to predict or calculate the disk storage space required for a specific dataset." Many, many complaints could be made about the alpha-release's other restrictions, but I'll give MySQL the chance to keep their promise to address them in forthcoming versions.

I don't really understand which of its features qualify it as technology that utilises modern computers to the best possible effect. Perhaps they're referring to it automatically compressing data on disk? Sure, that may be useful, but it may just as well become a bottleneck when single-row updates require entire pages to be recompressed. Just that feature alone doesn't impress me. It's not more easily administrated, nor does it (on paper at least) address this kind of performance issues. At best, it's an upgrade to MyISAM, but shouldn't be mistaken for a solution to high-performance transactional database requirements.

More on it once I've had a chance to do some practical experimentation (might be a while).

Update: It seems Peter Zaitzev has benchmarked Falcon against MySQL's other storage engines, verifying my suspicion that it doesn't scale properly. Do note that neither MyISAM nor InnoDB show ideal scaling performance either.

Wednesday 30 August 2006

Fedora and Nortel VPN?

I'm trying to make a Nortel VPN and my FC5 laptop talk to each other. NetworkManager + vpnc doesn't seem to have much luck -- I just get a cryptic error message. Novell has another implementation called turnpike which according to their docs might work, but I can't get it to build on Fedora. Nortel's own client, such as it is, doesn't look like it'll ever work - not that I really want to touch a closed-source IPsec implemention anyway. Anyone have better luck?

These notes might be the key to making it work, but it doesn't seem like it's been integrated...

Saturday 12 August 2006

More about the 770

I've been playing with the Nokia 770 more the past few days, and figuring out how to make it more useful. Still haven't figured out a usable calendar application for it - not that GPE Calendar and Maemo Dates aren't good as such, but without a sync application, they're not usable for me. Otherwise, it's proving pretty good - I've managed to mostly tame the handwriting recogniser, too.

Continue reading...

Monday 5 September 2005

Linux suspend vs ipw2200

Just a small note for posterity: if you're having trouble with suspend to ram or hibernate (I'm using swsusp2 and used to get lockups during the suspend or resume cycle), and your machine has an ipw2200 wireless adapter, make sure your hardware radio kill switch is not on when you suspend.

Continue reading...

Wednesday 17 August 2005

Dualhead on Xorg and Acer TravelMate 380

I wrote earlier about my experiences installing Linux on an Acer 382TMi laptop, and how I could not acceptably drive both the laptop's internal display and an external screen simultaneously. Thanks to the kind assistance of Alan Hourihane, I have a partial solution now. Read on.

Continue reading...

Monday 2 May 2005

Linux on Acer TravelMate 380

Switched to a new laptop as well, an Acer TravelMate 382 TMi. This is a radical shift from my previous one, being optimized for size in most respects. Only 1.6 kg, with an advertised battery life of 4.5 hours, I will hopefully like carrying this around much more than the Evo. Anyway - read on for notes on its Linux compatibility.

Continue reading...

- page 2 of 4 -