How to: fix your MacBook screen

Had a bit of a panic this morning when I let my MacBook go to sleep, and upon re-awaking the screen’s backlight would not come on. The screen itself was working, as I could see a small portion of the desktop in the middle where the Apple logo is, but the rest was un-viewable.

It’s working now, but not after trying almost every trick in the book. I’ve listed all of the methods here, mostly for my own reference in case it happens again but also for anyone having a similar problem.

Diagnostics

First of all, make sure that the rest of the computer is working. If you have an external display handy, plug that in and use Fn+F7 to activate it (you may not need to hold down the Fn key depending on your Mac’s settings). If you can see your desktop on the external display then the problem is with the display – if not, you computer may have deeper problems. If you have VNC set up, you could try this too.

1. Set your brightness

Sometimes it’s the basic things – your brightness might be set to minimum. Use Fn+F2 to turn up the brightness (you may not need to hold down the Fn key depending on your Mac’s settings).

2. Zap your PRAM

One trick to deal with minor hardware problems is to reset your PRAM and NVRAM. To do this, power down your Mac, then, turn it on and hold down Command+Option+P+R at the same time, until your Mac makes the ‘ding’ noise again. Command is the Apple key, Option may be labelled as ‘alt’ on your computer.

3. Reset your Energy Saver settings

You may need to use an external monitor or VNC for this. While you Mac is booted, open System Preferences and choose Energy Saver. Under ‘Put the displays to sleep’, set the timer to 1 minute, and then wait 1 minute for your machine to go to sleep. Wake it up, and hopefully your screen will spring back to life.

4. Take out the battery

If your Mac is a portable, turn the computer off, unplug the AC power cord, and take the battery out. Next, hold down the power button for 5 seconds, and the re-insert the battery. Then boot up again. In my case, this is what worked.

How to migrate a Parallels virtual machine to VirtualBox

A screenshot of the web site for VirtualBox

Despite Parallels and VirtualBox both being programs which run virtual machines on Mac OS X, they both use different file formats for storing the virtual machines on disk. Though I believe Parallels will open a VirtualBox disk, VirtualBox cannot automatically import Parallels disks. But it’s not impossible…

If the guest operating system, i.e. the system that is running inside Parallels, is Windows 2000/XP/Vista, then it is possible to use a free tool from VMWare to do the conversion. Here’s a step-by-step:

1. Back up your virtual machine

Seriously. We’ll need to modify it a bit before it’s converted, so you’ll want a backup copy just in case things go wrong, or if you may use Parallels again in future.

2. Uninstall Parallels Tools

This is the modifying bit. Load your Windows virtual machine in Parallels, and uninstall Parallels Tools (the helper program that adds drivers and clipboard sharing, and other stuff). This is important as otherwise your virtual machine won’t boot in VirtualBox – and I know this from experience. You also can’t uninstall Parallels Tools unless you are running Parallels at the time.

3. Close all programs

Close as many running programs in your virtual machine as possible. We’re about to take a snapshot image of it while it is running, so any unsaved data may be lost when you boot the image in VirtualBox. That includes programs with icons in your notification area, such as virus scanners, instant messaging programs etc.

4. Install VMWare Converter

Once Parallels Tools has been uninstalled (you may need to reboot the virtual machine for this), we can begin the conversion process using a tool ironically made by VMWare. Go to the download page for the VMWare Converter in whatever web browser you use in your virtual machine (it’s a Windows program) Download it, and then install it.

Run the Converter tool, and click ‘Convert Machine’ – this should pop up a wizard which walks you through the process of setting up a new virtual machine image. You want to tell it to use a ‘Physical Computer’, and then on the next screen choose ‘This Local Machine’. Select the hard disk of the virtual machine and leave ‘Ignore page file and hibernation file’ ticked as this will just bloat the new virtual disk with unnecessary rubbish.

For the type of virtual machine, select ‘Other virtual machine’, and on the next screen, give it a name (e.g. ‘Windows Vista’). Next, you will also need to save it somewhere, and this should not be the existing hard disk of the virtual machine. You can either use your Mac’s main hard disk, mapped to drive ‘Z:’ under Parallels, a network drive or an external drive if you have it forwarded through to the virtual machine. You should be able to use the top option for the type (i.e. ‘Workstation 6.x’) but if it doesn’t work try another option. Keep ‘Allow disk to expand’ checked on the next screen. Click through until you’re ready to complete, and start the conversion.

5. Go and grab a cup of coffee

Or go out shopping. Or read a few chapters of War and Peace. Either way, the machine will take a significant amount of time to convert – mine took around 45 minutes and was only around 15 GB. Bigger disks may well take longer. It helps if you don’t have lots of other programs running on your Mac at the same time as then more of your CPU juice can be used for the conversion.

6. Shut down the machine in Parallels

Now that you’ve exported the machine, shut down Windows and close Parallels. This is mostly so that you can stay within the terms of the license agreement for Windows which won’t allow multiple instances.

7. Import the disk into VirtualBox

Open VirtualBox, choose ‘File’ and then ‘Virtual Disk Manager’. Add the disk file that you created, and click OK. Then click ‘New’ to create a new virtual machine, and select the correct operating system from the list. Try to ensure that you give the virtual machine the same settings (such as RAM size) as you did in Parallels. When asked for a hard disk, click the ‘Existing’ button and choose the disk file that you created from the list. Then click Finish.

8. Boot up in VirtualBox

Hopefully all will have gone to plan, and you will be able to boot into Windows as before. All of your files and programs should be there waiting for you.

If, however, you encounter a blue screen mentioning ‘prlfs.sys’ like I did, boot the machine but press F8 during the boot to enter Safe Mode with Command Prompt. Type in cd c:\windows\system32\drivers and then rename prlfs.sys prlfs.sys.old and then reboot – that should get you up and running.

For the inquisitive, prlfs.sys is part of Parallels Tools and this should have been removed as part of step 2, however muggins here forgot to this when he tried it himself and therefore encountered this error.

9. Install VirtualBox Guest Additions

Guest Additions are to VirtualBox what Parallels Tools are to Parallels – in other words, they make Windows sit better in the virtual machine and improve integration with the host operating system. On the main VirtualBox menu, select Devices and then ‘Install Guest Additions’ and follow the on-screen instructions. Though this is optional, it will improve the experience of using Windows in VirtualBox.

Hopefully now you’ll be up and running in VirtualBox. Feel free to post comments below and I’ll try to do what I can to answer them but I’m not the world’s greatest expert in this. I also don’t know how to do this in other versions of Windows or other operating systems.

More on the upgrade

As promised, here is more about the upgrade I did to my parents’ computer last weekend.

The computer will be 4 years old in October and I wanted to sort out its current shortcomings while also making it capable of running for at least another 2-3 years. The agreed budget was £100, about 6 times less than the original cost of the computer.

In the end, we went for the following internal components:

  • 2 GB of Corsair Value Select PC3200 RAM
  • 256MB XFX nVidia GeForce 6200A AGP 4x/8x graphics card
  • A no-brand USB and FireWire PCI card

The memory was the most important part of the upgrade. Originally, the machine only had 512 MB of RAM, and as such was struggling. As a matter of principle I only buy Corsair or Crucial RAM as I know it’s good quality, and on this instance I went for Corsair as it was slightly cheaper and could be shipped as part of the same order from Scan. It was still the most costly aspect of the upgrade at £39.32 (ex VAT), taking the majority of the £100 budget.

Next was the graphics card. Right now the machine has onboard VIA graphics, which can do some basic 3D but not much more (it will just about handle the original World of Warcraft with all of the effects turned off, but it’s not pretty), and it leeches system RAM rather than having its own. Furthermore, the manufacturer has not produced any new drivers for Windows Vista. So, as part of my plan to keep the machine running for a few years, allowing for a potential Vista upgrade is important. I doubt nVidia are due to disappear any time soon, so hopefully this new card will be a safe bet. It also adds DVI and S-Video output, allowing connection to a TV or a more modern TFT screen.

Finally, I added a USB and FireWire PCI card. The machine had 2 USB ports at the front and 2 at the back, but both of those at the back were full and my parents were already having to use a hub. The machine is due to be moved to a room where there is no wired socket for Ethernet, so we’ve opted to go for a USB wireless dongle (the Netgear WG111 previously mentioned), so that would be another USB port used up. As an extra PCI card was only around £5, it made sense to add 4 more ports. It also adds 2 FireWire 400 (IEEE 1394a) ports, which the computer previously lacked; whether my parents will ever use them is perhaps questionable but at least they are there, and it may add resale value to the machine.

These 3 items, plus the Netgear dongle, packing and VAT, came to £100.19, so only a bit over budget 🙂 . The difference is very noticeable – startup times are improved and general performance is much better. The machine is now almost ready for Windows Vista – the only device lacking a Vista-compatible driver is the internal modem, which isn’t in use anyway and could be removed if necessary (it’s made by SmartLink who sold their assets to Connexant in 2006, and then disappeared off the face of the earth. Their latest drivers don’t even work correctly with Windows XP SP2).

Stop… upgrade time!

My parents’ computer is in need of a mid-life upgrade. It was bought in October 2004 and, at the time, gave acceptable performance. But now it’s flagging a bit, in comparison to the latest and greatest. To save you reading the old entry, here’s the specs:

  • AMD Athlon XP 3000+
  • 512 MB RAM
  • 80 GB HD
  • DVD rewriter
  • 64MB onboard graphics
  • Plus all of the usual stuff

Three-and-a-half years on, and it looks like the main weak points are the memory and graphics. The processor is reasonably good, and I’m not inclined to replace it as the prospect quite frankly scares me, and they still have ample space on the hard drive.

512 MB RAM is low by today’s standards, and so I’m proposing an upgrade to 2 GB – the maximum the machine will hold. Upgrading the RAM on Hari’s machine, which is of a similar specification and age, made a big difference and so this would be my first choice.

The graphics are the other aspect I want to upgrade. Right now it’s a VIA onboard job, which as well as being underpowered also lacks Windows Vista drivers, so if my parents do ever upgrade (unlikely, but I wouldn’t rule it out) they would potentially run into problems. The machine does have an unused AGP port, and so a cheap graphics card would be an instant upgrade. It would also return those 64 MB of RAM that it used to the computer, although 64 MB is a drop in the ocean when you have 2 GB.

We still have Hari’s old graphics card lying around (in a static-proof sleeve), which is based on the nVidia GeForce 5200 FX chipset. This was okay for normal use on her computer but seriously impacted her WoW gaming. Now, my parents are hardly likely to be fragging noobs or levelling shadow priests any time soon, but a better card can be bought for very little money. In fact, £25 would buy you something based around the full nVidia GeForce 6200 chipset (as opposed to the budget FX range). So it’s a question of saving £25 and recycling the old card, or getting something better for a little more money.

The computer also needs equipping for Wifi, probably by virtue of a USB dongle, but at less than £10 a piece that’s not a major issue. The total budget for all of this is £100, with the RAM costing about £50 (looking at Crucial and Corsair prices). There’s ample room for a reasonable graphics card, but I’m wondering whether to bother or not.

What do you think?

Missing .vxd files

I mentioned back in June that Hari and I inherited a spare computer, which until now has been sat in our house serving no purpose. However, I now have a reason to use it – I joined a new guild in World of Warcraft and need to run Ventrilo 2.1 to be able to take part in raids, and I can’t for the life of me get it to work properly on my Mac using Crossover.

I mentioned that the computer lacked a network card so I bought one today, and fitted it. Alas this machine is not running a nice operating system like Windows 2000 or XP, but Windows 98SE which doesn’t ship with the relevant drivers. Worse, as this machine had never been used on a network before, it was missing all of the Windows network components. Worse still, I didn’t have the Windows 98 CD, and even worse than that, the relevant files were not saved somewhere on the hard disk. Big problem.

Of course I was busy installing the network card drivers by this point and so upon rebooting I received a series of errors to do with missing .vxd files, namely vnetsup.vxd, vredir.vxd and dfs.vxd, the latter of which gives me a mental image of a double discount sofa sales. Anyway, I found a forum post on some site which I can’t seem to find again which pointed to these technical support files, namely ‘Directory Services client for Windows 95/98’ which includes these files and will happily install them for you. You can then get rid of the program through Add/Remove Programs and it’ll be nice and leave the .vxd files there for you.

Alas, these were only some of the missing files needed for networking, so while they did remove the horrible errors I was getting they didn’t actually get me on the network, so I’ve had to resort to downloading some files from a shady torrent site in the hope that I can get things going.

Ideally I would have liked to have been able to wipe the hard drive and stick Linux on this machine, but unfortunately its primary role as a Ventrilo machine means that it’s Windows or nuthin.

What would you do with a spare computer?

With a bit of luck, Hari and I will be picking up the keys for our new place today – we’re well into packing stuff although there’s still lots to do. One of Hari’s current housemates is donating his old computer, which he no longer needs and doesn’t want to sell, mainly because it’s rather old and wouldn’t sell for much and hasn’t got a monitor or keyboard (and isn’t able to take it for recycling). So we’re taking it.

Except I don’t actually know what to do with it.

The computer has an 800Mhz processor, 30 GB hard drive and 32 MB graphics. It’s recent enough to have 2 USB ports and an internal modem, but not recent enough to have a network socket. It also comes with not one, not two, but three optical drives – a CDROM drive, a CD-RW drive and a DVDROM drive. I have no idea what operating system it has but I’d imagine it’ll be Windows 98.

The lack of a network socket means its usefulness is somewhat limited, but adding one isn’t going to be difficult. Even then, I’m unsure what it can be used for. Its hard drive is a bit too small for a network server, and to make it into a router would require adding 2 network cards and a Wifi card if we wanted that as well. Furthermore, if it was a router it would probably have to go in the living room and I’d prefer not to have a big beige box there if possible – I’d rather have my Mac Mini, given the choice, or preferably a dedicated router which we’ll probably need to buy. A dedicated router would also use up less electricity, seeing as it’ll be on 24/7 essentially.

I can get an old CRT monitor for it and I’m sure I can pick up a cheap keyboard from somewhere so it won’t cost much to make it into a decent computer system, but I can’t imagine there’d be much demand for a computer of that vintage if I were to sell it. Hari and I between us already have 3 computers – my MacBook and Mac Mini, and her XCcube – so we don’t need another system really. So what would you lot do?

Here’s what you could have bought…

Apple has updated the MacBook range again, this being the third revision since they were launched last year. Mine is a first revision, and while there’s nothing wrong with it, had I waited 9 months I could have got (for the same price that I paid):

  • A 2 GHz Intel Core 2 Duo processor, instead of a 1.83GHz Intel Core Duo processor
  • 80 GB hard drive, instead of 60 GB
  • 802.11n Wi-fi, instead of 802.11g (108 Mbps instead of 54 Mbps)
  • Faster writing of CD-RW discs (16x instead of 10x)

But never mind. It’s had 9 months of very heavy use and yet doesn’t seem to be suffering – the battery is still at well over 90% of its original capacity and everyone else seems to work fine. I guess I’m just envious.

Create a Safely Remove Hardware shortcut

A screenshot of a Safely Remove Hardware shortcut on Windows desktop.

Here’s a tip I gleamed from today’s Windows Secrets newsletter. You may well be familiar with the ‘Safely Remove Hardware’ icon which appears in your notification area (or ‘system tray’ if you must) when you plug in a removable hard drive or camera (or whatever). You may also notice that the icon sometimes isn’t there – and this is a problem which my parents’ computer randomly suffers from – which means it’s difficult to safely disconnect removable devices. The answer: a desktop shortcut.

Right-click on the desktop, select ‘New’ and then ‘Shortcut’. For the item location, copy and paste the following:

RunDll32.exe shell32.dll,Control_RunDLL HotPlug.dll

Then click ‘Next’. Call the shortcut ‘Safely Remove Hardware’, and you should be done. If you want to make it look snazzier, right-click the icon, choose ‘Properties’ and then the ‘Shortcut’ tab, click on ‘Change Icon’ and in the ‘Look for icons’ box type:

%windir%\system32\HotPlug.dll

The first icon in this file matches the ‘Safely Remove Hardware’ icon so you’ll be able to recognise it more easily.

Now, if the normal notification icon doesn’t appear, all you need do is double-click your new desktop icon to safely remove any disks before unplugging them.

Update (November 2023): This was written back in April 2007, but it still seems to work in Windows 10.

Hari’s new graphics card

Hari’s new graphics card has arrived, and so I fitted it earlier today. We went with an Inno3D card based around an nVidia GeForce 7600 GS chipset, since it seemed to represent the best value for money for our budget and was compatible with Hari’s computer – it doesn’t have PCI Express so we needed an AGP card.

As performance goes, the card is an immense improvement. Using World of Warcraft as a benchmark, before, she was getting an average of between 10 and 12 frames per second with all the settings turned down for maximum performance (but low detail). With the new card, she gets a constant 50fps, with many of the enhancements enabled, such as texture detail, terrain distance and spell effects. It looks fantastic, and is very smooth.

This now means that Hari finally has the gaming performance that she’s been wanting for so long, and ends an upgrade process that has seen a new external hard drive, new memory and now a new graphics card. All in all, we’ve spent £220 on new hardware, but seeing as it’ll add value to the computer, and make it less obsolete in future, it should be worth it.

Or, at least, it ends for now. She now wants a new power supply so that her graphics card can run at maximum performance. I think we can pass on that.

Actually, I didn’t realise that the card needs to have a direct connection to the power supply as well as being connected to the motherboard through the AGP socket. I’ll get it sorted soon.

Graphics card recommendations

It now looks like Hari needs a new graphics card. The extra memory arrived yesterday, as expected, and has made something of a difference to the computer. Switching between World of Warcraft and any other program is instantaneous, whereas it used to take several seconds and result in considerable hard disk noise (presumably Windows swapping data between physical and virtual memory). Plus, aspects of Warcraft, such as navigating around cities and instances is noticeably smoother. But there’s no real improvement to the number of frames per second it can manage during general play. Which was one of the main aims of the upgrade – the other being preparation for the eventual installation of Windows Vista.

Having looked at the recommended requirements of World of Warcraft, it looks like it’s Hari’s graphics card which is to blame. She has a card based around the nVidia GeForce 5200 FX chipset, with 128 MB of graphic memory. It’s not a bad card, but it’s likely to be missing some of the advanced features which more modern cards have, which in turn puts more pressure on the CPU and slows the whole computer down.

Overall, her computer spec is as follows:

  • 2.80 GHz Pentium 4 processor
  • 80 GB hard drive, with an additional 80 GB external hard disk
  • 2 GB of Corsair memory
  • 128 MB nVidia GeForce FX 5200 graphics card
  • Windows XP Home Edition SP2

(plus all of the usual gubbins like a DVD rewriter and Ethernet)

The processor should be fine – World of Warcraft only requires a good 800MHz processor and recommends 1.5 GHz. Furthermore, CPU usage is relatively good – we ran Task Manager last night while she was playing and it rarely went over 80%, averaging about 50% – if it was close to 100% a lot then I’d be more worried. We can’t fit any more RAM as 2 GB is the maximum it can take, but judging by our experiences with the new RAM so far adding even more wouldn’t have made much difference. The internal hard disk should also be fine as it has plenty of free space (though it may need defragmenting, I can’t see it making a huge difference).

Software-wise I have done almost all I can. Though Hari is not a computing student, she is very computer literate and knows the risks of viruses and spyware and so she has AVG and Windows Defender running (as well as Spybot and Ad-Aware). There’s very few background applications running, and even if they were, they’d be using RAM and CPU which we know aren’t issues.

Which leads me to the conclusion that the graphics card is the weakest link. I’ve upgraded it to the latest Forceware drivers, but I honestly don’t think it has made a difference to performance. If we’re going to get decent Warcraft performance, it will probably need to be replaced.

Whatever the replacement is, the main limitations will be that it has to be AGP – the motherboard does not support PCI Express – and that it only takes up one slot as the computer has a small form factor case. Though there is space for a card which takes up the equivalent of two slots, it would render the only PCI slot useless – admittedly it is empty now but it could be used for something in the future.

You may wonder why we’re spending all this money on an old machine – after all, we could probably get a new one for the money spent so far (about £150). But there’s not much fundamentally wrong with the core components, and a few upgrades should make it very powerful. I also doubt that the money would get a computer designed for the uses it would get, i.e. gaming.

It’s unlikely that we will buying a new graphics card just yet – it’s likely to be later in the yeah when Hari has some more money. But I’d like to know if you all think I’m right with diagnosing the problem, and if you have any recommendations for good graphics cards, preferably ones under £75.