Showing posts with label HP dv9000. Show all posts
Showing posts with label HP dv9000. Show all posts

Monday, June 29, 2009

Your Problems Are Fixed in the Next Release: Mint 7

Back in January I posted about installing Ubuntu 8.10 on my dad's HP DV9000 laptop. There was also a followup to that post about DOSBOX .

At the end of the Ubuntu Install, and after using it for a few weeks, there were three issues:

  1. Wifi: it worked, but with a work-around
  2. DOSBOX was slower than DOSEMU, but DOSEMU required manual setup: Another workaround
  3. On reboot, Dad had to hit enter about 30 times to get past various hangs being caused by the oddball ACPI on the DV9000. If I understood this correctly, it only showed up as a problem when the AMD CPU's were being used in the DV9000. Those are what Dad had of course...
I had tested the first two points at length with my research into Ubuntu 9.04: I knew that once I upgraded Dad's computer that those two issues would be resolved. I do not have an HP DV9000 though, so I had no way of verifying that the third point would be taken care of as well.

If you noticed the infrequency of my recent posting (both here and at BMC), you might have guessed I had been kidnapped by space aliens, but the truth is I was just working 70-90 hour weeks getting ready and implementing a data center migration. With that in the past, it was time to rest, and then to catch back up on all the other things I had been letting fall to the side.

In the mean time, not only had Ubuntu 9.04 GA'ed, but Mint 7 after that. I took both on USB fobs to Dad's house, and test booted both. Both worked fine: no ACPI hangs at all.

I talked about it with Dad, and we decided to put in Mint 7: Same as my brothers Linux system will be getting soon.

The install was straightforward, other than the install complaining about not having a swap partition. with 4GB of RAM, I just did not want to have to add an LVM to the boot disk in order to get the 5th partition on it. Dads disk already had 4 partitions: 2 NTFS (Vista and the recover partition) and 2 Linux: '/' and '/home'.

I set '/' to format, '/windows' as ntfs, and '/home' as ext3, and both to mount at boot. Once the gparted was done, it took about 4 or 5 minutes to install Mint 7.

Once up, we updated the packages, and installed DOSEMU.

DOSEMU, as delivered, configured the 'D' drive as /home/dad already, and the vbdos programs were already installed there, so it was a simple matter to cd to D, then to the programs, and then to run his NASA stuff.

What DOSBOX takes 30 seconds to run, DOSEMU takes 3. And it is graphical data, so Dad was interested in how to print it and screen capture it so it could be emailed. It turns out that this is easy under DOSEMU as well: Just full screen by clicking the center box on the upper right hand corner, and then fn-prtscrn, and Gnome pops up the screen, all captured and ready to save. A quick trip through GIMP to crop out the tool bars and the graphical display on the DOSEMU screen is ready to email or print to be added to a report.

One interesting thing: If we full screened the DOEMU window *before* we ran the program, then it would run more slowly: Maybe 20 seconds rather than 3. Faster than DOSBOX still, but much slower than EMU was normally. Dad made the easy decision to always run the programs first, then to full-screen them.

Everything works:

Display: Mint prompted for the install of the NVidia drivers, and we told it to go do it.

The Wireless stuff just works now.

We plugged in the HP printer, and Mint saw and configured it instantly. We also tried a Lexmark multifunction (resold by Dell), but that did not. I did not expect it to, since Lexmark printers are one of the few anymore that ship without Linux capabilities from the vendor.

Sound: The Altec Lansing speaker make all the right sounds: I am not sure that Altec Lansing should be claiming these speakers as theirs, but that is another story. They sound equally tinny on Vista. I fired up Rhythmbox and we listened to some Internet Radio for a bit.

Boot Speed: Fedora 11 is making a lot of noise about their new 20 second boot speed. I tested it, and on my desktop Dell 945, it is 30 seconds: Same as Mint 7 on Dad's DV9000.

Battery: This dv9000 is only 9 months old now, but Linux reported that its battery was only able to charge up to 80% of its design capacity: Something Vista was reporting as 100%.

And so forth: What a difference 6 months makes in Linux land. Dad was thrilled with the computer, and said that, other than to play a RealArcade game called WordSlinger, he did not see ever having to go back to Vista. I tried briefly to get that going under WINE, but it was acting very weird: Another thing to research!

Thursday, January 1, 2009

Ubuntu 8.10, DOSBOX, and the single HP dv9000.

It would be fair to say that my dad is an intimidating person. Not because he is 6'3", an athlete, or any of those things. Because (to my way of thinking) he is brilliant. Rachel Maddow Brilliant, but without the liberal side. He is technically intimidating. He has 22 patents, and has filed for another 10. Normally I could care less about such a thing, but his are non-obvious patents, and deserve the protection of a patent and the patent system. His are the reason that there even is a patent system. He is not trying patent goofy things like mouse clicks on menu items but very technical stuff, like how much microwave energy, and what kind of antenna (size, shape, power) is required to fuse moon dust to a particular depth.

I knew growing up that I was never going to equal my dad in technical accomplishment. It was not something that made me sad or anything. I was always too much a mix of my parents (Mom being a Nurse, and very brilliant as well) to ever be one or the other. Mix the two and you get a Linux / Open Source person, more or less.

Over the holidays I was at Dad's house and I came to ask him about some programs he had written and how they were backed up. It turned out that the following was true:

  1. Dad had a series of engineering programs
  2. The programs were in VBDOS
  3. VBDOS barely worked in Windows 2000, less well in Windows XP, and not at all in Vista.
Visual Basic has left DOS way behind, but VBDOS did everything Dad needed it to do. Why waste time learning the new program, and all its goofy new things. VBDOS worked. VBDOS was a tool. A means to an end. Visual Basic 6 offers nothing that VBDOS did not, at least as far as Dads programs are concerned. Dad needs to know that then X amount of power is applied via an antenna of a particular design, how deep is the moonrock melted? Nothing in VB 6 adds to that. Taking time to learn the new programming paradigms of GUI based VB is time taken away from pursueing the knowledge.

Enter DOSBOX. http://www.dosbox.com/

With DOSBOX (and probably but not tested, DOSEMU), VBDOS lives on.

The Acer Apsire One

While at my dads house over the holidays, I asked him how the project to keep VBDOS running was going, and how he backed up his programs. The answer was that his program directory from his Windows 2000 computer was copied to a Windows XP computer, and a new Windows Vista HP laptop, and a USB fob. With XP the VBDOS programs ran but did not print. With Vista, they were just dead.

I asked for the fob. I copied them to my Acer Aspire One (because, is not the point of having the AAO that you always have it with you?). I then installed DOSBOX, and read the install info for it quickly. Mounting Dads programs in DOSBOX, they ran at once, without issue, and were printable. Editable screen shots via GIMP even.

I have never tried to convert my Dad to Linux. He has always run Windows, and while I have rebuilt his computers a few times when they were infected with things, in general it seemed wrong to try and get Dad to convert. He is much smarter than me, and an engineer par excellence. If MS Windows works for him, then there is no need to convert him.

I had watched the VBDOS stuff over the years and had wondered is MS was going to maintain their compatibility... and while I doubted it, there was no need to talk about it as long as it worked.

The HP dv9000 changed all that.

Dad bought the dv9000 with Vista Home Premium. He had no choice in that matter, or at least he thought. Vista worked for email, and Flock worked for browsing (Dad knows better than to use IE) but his VBDOS programs were busted. Dead flat broken. VBDOS had left the building. It was an Ex-programming language. 20,000 volts would would not revive it.

Dad saw the Acer running the programs. He asked if his HP dv9000 laptop could do the same. 20,000 volts: No. Linux / DOSBOX? Yes.

The DV9000 was new: less than 3 months old. It had a AMD Turion 2.1 Ghz dual core 64 bit processor, and an Atheros 5007 chipset for wireless. The latter bit was the same as the Acer Aspire One. I said it probably would work and was put to the test two days later when I came back over to install it.

dv9000

The HP dv9000 has a 1440x1024 screen, a ton of USB slots, an NVIDIA graphics card, and other fun things. I looked it over and decided to try Ubuntu 8.10 as my first pass. All Dad needed was DOSBOX, but I wanted it all to work. I was going to set it up as dual boot Ubuntu 8.10 / Vista, but I wanted Ubuntu to be all Dad ever needed. Mint 6 was also an option, but I was worried that it might barf on the recent hardware. In my recent experience, Ubuntu had done better than Mint on new hardware.

According to things I found on the Internet, the dv9000 used to have, in older configurations, Broadcom wireless cards. HP has recently embraced Linux though, and it appears that part of that is using Linux friendly gear like Atheros. Or maybe it just worked out that way. Maybe Atheros was just the less expensive card at the time this dv9000 was built. Worked for me either way. Broadcom cards can be made to work under Linux, but Atheros had open sourced their HAL, and I like to support companies that support Linux / Open Source.

The good and the bad of the hardware support of Ubunti 8.10 for the HP dv9000 ultimately came down to the 802.11 card. Once installed, Ubuntu was not happy with the Atheros card. When I used the hardware managers and *disabled* Atheros support, all was well. I had to do the exact same thing on the Acer Aspire One.

I ran the Ubunut upgrades. The Atheros support crapped out. Same as the Acer Aspire One. It appears to me that it all worked out this way:

  1. Linux reverse engineered the HAL for Atheros cards, and they worked.
  2. Atheros released the specs for the HAL and the firmware of their cards.
  3. The MADWIFI project released a bad series of drivers for Atheros cards... based on the newly Opened drivers and HAL. Go figure.
It may be more complicated that that. That is just what it looked like out in end-user land. It matters not for this project: I have documented getting the Atheros cards going via NDIS in one post and via the new native drivers in another post.

Installing Ubuntu 8.10 was not hard, although it was confusing a bit at times. The dv9000 had two partitions as it arrived from HP: SDA1 was Vista, and SDA2 was the recovery partition. 52 GB and 10 GB used in total and respectively. 160 Gb hard drive. Plenty of room.

I had Ubuntu shrink SDA1 from about 148 GB down to 72 GB. With 52 GB in use, that left 20 GB for growth. I left SDA2 alone: 12 GB with 10 Gb in use. Here we hit an oddity of the installer. It looked stuck. Like nothing was happening during the resize. I popped open a terminal, and started 'top', and could see 'ntfsresize' was hopping all over the place. It was clearly doing things, and was not stuck. The on screen graphic progress bar just had no insight into what it was doing.

I inserted a new SDA2 and SDA3: SDA2 was '/' and was 10 GB. SDA3 was '/home' and was about 62 GB. SDA 2 of old became SDA4 of new, but was not re-sized or moved. SDA4 (The Vista recovery partition) lives at the end of the disk.

GRUB thought the SDA1 and SDA4 were both Vista partitions, so as a post-install step I went into /boot/grub/menu.1st and made SDA1 Vista and SDA4 Vista Recovery. Just labels, but important. I booted both to be sure that they still worked.

I booted Ubuntu and applied all the service, and installed a few more programs like Avahi, Macutils, HFS support, Sensors/hddtemp, and set up monitors in the Gnome taskbar for system speed and temp. I like to watch that kind of thing, and I was very interested in having it on this computer so I could watch it while the VBDOS programs were running.

This was the first computer I have ever set up without a swap partition. Another reason for having all the system status stuff enabled on the task bar was to watch memory usage. With 3GB of RAM, and the primary mission being to run 16 bit VBDOS programs, I did not think that it would ever have memory issues. It was just a theory though, and I wanted to be able to watch it. So far, so good.

DOSBOX

Once everything was up and running and all the service has been installed I installed DOSBOX using Synaptic. Nothing major or weird there. Then I copied Dad's programs into his home directory from the USB fob. They were put into a new subdirectory called 'vbdosprograms'. Next I started DOSBOX (from "Applications / Games"), and mounted the programs to the 'C' drive:

mount c ~/vbdosprograms
c:

'alt-enter' toggles DOSBOX to full screen and when running like that it looks just like a DOS computer of old.

The rest, as they say, is history. It all worked, and better than than it ever had under XP. Screen caps with Fn-PrtScrn worked like a champ. GIMP could edit those to whatever was required. They could be saved in whichever directory made sense from that point on.

From a technical point of view, this capability exceeds anything Dad has ever had before. He can now run on the latest, fastest hardware, and has far more control over the results. He now also has Linux support. It is not that I did not support him on MS Windows. It is just that for me MS Windows is just another computer platform and I often have to sit a mess with it to figure out why it is broken, whereas Linux is something I know fairly well.