Showing posts with label USB. Show all posts
Showing posts with label USB. Show all posts

Saturday, December 13, 2008

How to Make USB Christmas Lights

Day 39


I spent all day pulling the decorations out of the basement and making the house look festive. We had no ornament casualties this year, but we did have two sets of lights that were only half working.

A few hours after I threw them out, I got an idea. I dug a set out of the trash and plugged it in. After spotting a section that was still working, I unplugged and cut the section off the rest of the string. My goal - to make Christmas lights for my Eee PC.

Step 1 - Cut the lights
The lights actually had three wires. one was connected to each bulb on the string, and I needed one of the others to complete the circuit. The third must have been a ground or something, so I simply removed it. I spliced both ends of the wires and twisted the two on one end together so all I would need to do is connect a power source to the other end.

Step 2 - Test the circuit
I had 8 lights in my string. I know that a USB port only sends out 5 volts of power, so before trying it on my laptop, I pressed the two wires against the terminals on a 9 volt battery. They lit up, but it was quite dim, so I knew I needed to shorten my string if it were to light up on the Eee. I cut it in half.

Step 3 - Connecting the USB.
I dug up a USB cord for an old printer that is no longer functioning and cut it about 8 inches from the connector. There were fours wires inside - red, black, green, blue. The green and blue are for data transfer, so they were useless. I stripped the red and black and connected them to the ends of my lights. Just to be safe, I wound some electrical tape around all the exposed wires before connecting them to the Eee.

They aren't the brightest, but I now have some yule-tide bling for my laptop. I was thinking about picking up a toggle switch so I could turn them on and off, but I'd love it even more if I could find the console command to stop power to the USB port. I Googled it, but didn't have much luck. Either way, USB lights are a quick and easy project for nerds caught up in the holiday spirit.

Saturday, November 29, 2008

EeeUbuntu Frustrations

Day 25 and 26


Things have not gone well so far with my transition away from Xandros. 

It seemed simple enough. Download the .iso and then use Unetbootin to load it onto a flash drive. I first tried this from the Eee - after all, it only seemed appropriate to have the Eee do all the work. I followed the directions to run Unetbootin, but nothing happened. More tinkering, but still no luck. I decided to give in and create the bootable usb from my wife's HP pavilion laptop. 
 
I re-downloaded everything I needed and successfully loaded it onto my Kingston DataTraveler 8gb flash drive. I even rebooted it on the HP and it booted the live version of EeeUbuntu. I was ready to install it on the Eee. 

First, I had to figure out how to boot to a USB. The boot order didn't say anything specifically about a USB, only a generic "removable device." I went to the Eee forums for an answer and learned that there should be a USB boot option during the grub splash screen. Since I didn't see this, it caused all kinds of headaches for me. About two hours' worth, to be exact. In the end, I think I got the USB boot option by powering up the Eee and then holding down both the esc button and the power button, but I did so much random button pressing during start up that I'm not sure what really did the trick. 

So I now had my USB good to go, and the Eee was ready to boot to it. Only one problem - it didn't detect the USB. Apparently the Asus Eee doesn't like Kingston brand usb drives. I went back to the HP and started the process over again with a new flash drive. 

The only other flash drive I had handy was my 2gb watch drive I got for Christmas last year from thinkgeek. I use it constantly for transferring files to and from work. I cleared all other files off of it and reformatted it for good measure, and then loaded EeeUbuntu onto it. After it finished I returned to the Eee and booted it up. 

Running EeeUbuntu from my wrist watch

Ureeka! the USB watch was detected and I was allowed to boot to it. With little success. The grub bootloader started but stopped at what looked like some sort of command line. Posts lamenting about similar errors on Eeeuser resulted in no easy fix. By now it was 4am, so I decided to call it a night. 

This is the mess I left on the kitchen table after I gave up for the night. The next morning I awoke to find my wife setting the table for breakfast around the laptops. 

This morning I decided to give it another go. I had read that Unetbootin isn't completely reliable and can sometimes load files incorrectly onto the USB. I reformatted my watch and tried again. This time it loaded quickly and booted no problem! I was ready to install. 

EeeUbuntu booted nicely on the Eee, and I quickly went through the 6 installation steps. I didn't change any of the settings and just let it go with a default install. It took about 25 minutes for it to finish installation. When it prompted me, I removed the flash drive and rebooted. 

I saw the grub bootloader but then got this message:

Error 21: Selected disk does not exist. 

That's bad. I shut it down, plugged the USB back in, and then restarted and booted to it. It worked perfect. Conclusion - I had accidentally erased Xandros from the internal SD memory, but then installed EeeUbuntu to the flash drive instead of in Xandros' place. Oops. I know some people do just that intentionally by using the removable SD care slot, but a fricken' watch plugged into the side of the lapotp is just a bit more cumbersome. 

To make matters worse, I was generally unimpressed with EeeUbuntu's user interface. It's based on the netbook remix, so it reminded me more of Xandros in easy mode than what I had been using in advanced mode. 

By now, I was feeling a bit desperate. I had a laptop that was essentially useless and I wanted it back up and running as soon as possible. Since I didn't like EeeUbuntu, I figured I'd look into EeeXubuntu. It was similar in layout to Xandros. I found a torrent of the iso and the process began all over again. 

Xubuntu installed nicely, and in the right place on the internal memory. I was pumped. Until I noticed that the wireless wasn't working, and I kept getting repeated warning errors about the battery being dead (I was plugged into the wall, so this didn't make much sense). More dead ends. 

So I give up. During the past two days I kept comparing everything to the Xandros advanced desktop I had running. It made me realize how much I liked it. I plan to pull out the restore DVD and see if I can get it to boot from a usb. 

Lesson learned - If it ain't broke, don't fix it. 

Wednesday, November 19, 2008

USB & BIOS - Part I

Day 16

I'm being optimistic with the title of this post - I'm making the assumption that there will be a Part II post where all the problems listed below will be rectified. Maybe I'm setting myself up. Only tomorrow will tell.

My brother gave me Ubuntu loaded onto an 8GB flash drive for my birthday, and today I decided to see how it would perform on my laptop. I know it wouldn't be ideal since there is an Eee-specific Ubuntu, but it would at least give me a chance to go through the process of booting from a USB.

I knew I would have to change the boot order, so first step was to change some settings in the BIOS. One little problem though - the BIOS splash screen had long since disappeared during start up. After a few helpful suggestions from the folks at EeeUser, I figured out that quick boot was enabled. To fix this, all I needed to do was frantically press F2 immediately after powering on the Eee. From there I disabled the quick boot and then went to change the boot order.

I did not see an option for booting to a USB, per se. The closest option referred to it simply as an "external device." Strangely enough, it was already listed at the top of the boot sequence. Anticipating a quick solution to the task and an easy blog entry, I plugged in my flash drive, saved changes and restarted the laptop. It booted normally into Xandros. Crap.

Here's where it gets tricky. I noticed that upon loading KDE, the USB icon in the menu was curiously absent. Even though the flash drive was present, the Eee was not detecting it. I unplugged it, and then put it back in - this time it detected the USB drive no problem. I tried shutting down and restarting several more times, all with the same outcome.

For some reason the Eee is not detecting a flash drive that is loaded prior to powering on. This is a definite problem for anyone looking to boot to a USB, although I know it is possible based on countless wikis and forum conversations. My project for tomorrow is first figure out why my Eee is not playing nice with BIOS and USB devices. Stupid acronyms.