Sabado, Agosto 19, 2017

Solving Bluetooth Device Problem on Ubuntu 17.04

I have an Asus SonicMaster laptop that runs the new Ubuntu 17.04 Zesty Zapus and everything is running great except that bluetooth. I want to enjoy wireless music you know. The bluetooth icon shows in the panel bar but does nothing.

Running "lshw" on the terminal got me started. I looked up the lines and found an unclaimed hardware device which is my bluetooth RALINK RT3290. Started searching from the forums and one pointed to install rtbth-dkms driver from launchpad.

So i obeyed and added blaze repo (https://launchpad.net/~blaze/+archive/ubuntu/rtbth-dkms)


//this two lines will add the blaze rtbth-dkms repository 
//on the system and update it along the way
sudo add-apt-repository ppa:blaze/rtbth-dkms
sudo apt-get update


Next step is to install it:


//install bluetooth driver
sudo apt-get install rtbth-dkms


Next step is to reboot your laptop and start the bluetooth once you got in. The instructions are listed here.

# Init
sudo modprobe rtbth
sudo rfkill unblock bluetooth
hcitool dev # check

# Switch off
sudo rfkill block bluetooth

# Switch on
sudo rfkill unblock bluetooth

# Shutdown
sudo pkill -2 rtbt
sudo rmmod rtbth


Once done your bluetooth device will be recognized and claimed by the driver.
Then I paired up my little bluetooth speaker and happily enjoying wireless music! Thanks to blaze for the bluetooth repo.








Biyernes, Agosto 18, 2017

Motherboard Repair - Acer Borg Iibtdl-borg 13057-1m W/ Intel(R) Celeron(R) CPU 1007U




So my aunt got this little ACER Mini-ITX pc that was not booting up. I looked at the capacitors and found some bulging 16V 220f electrolytic and I imidiately thought this will be an easy fix since all I have to do is replace those and it will be back to business. I had experience with this before with my AMD K6-2 mobo back in the day.

10 days later and I'm still stuck at figuring out what the heck is going on. Since I already replaced the suspected bad capacitors it still refuses to boot.

To the oven it is! I baked that sucker on a regular kitchen oven at 180 *C for 10 minutes. Cooled it down and hooked the ATX power plug and the powcer button connector. IT BOOTED UP!! So much for the excitement though because after shutting it down to insert the HDD and memory it was back to being dead.



Oven equals heat so I thought it boots when something is hot. My wife's trusty hair dryer came into play. Heated up the board entirely and when it was hot to the touch i plugged the mini board back with the ATX and power button connectors. You're right it came to life. Those beeps where beeps of joy. I diagnosed the problem and the next thing to do is to isolate the search for the failing component.

This time I wasn't sure yet what component needs to be hot so i took my soldering iron waited it to heat up just around 100 *C and started heating up the solid capacitors near the CPU by briefly touching it with the soldering tip. Those solid caps looks perfect from the outside and I don't have the proper equipment to test it inline the board.

Every time i heated a capacitor I then push the switch. Bingo! I found waldo. A solid, good looking filter capacitor was the criminal. You wouldn't even think it was bad. Next time i'm investing on proper tools but for now i got to use unorthodox methods for this job.



I had a 6.3v 1000uf low esr cap that i salvaged from a dead video card lying around so a quick work with the soldering iron is all needed. I decided that i'll skip removing the bad capacitor and instead rig the replacement cap with a wire that will run to the side because i'm afraid i'll damage those little components near the CPU. Ugly but works.



Huwebes, Hunyo 29, 2017

Variation Issue - WooCommerce Update 3.1.0

After the new 3.1.0 update, my custom variation stopped working due to a code update that checks my custom value against the pre-defined attribute values. With a little searching through the code using the error message it produced, i found that they have added the checking in "class-wc-form-handler.php" at around line 828.

 // Allow if valid or show error.
if ( $valid_value === $value ) {
    $variations[ $taxonomy ] = $value;
// If valid values are empty, this is an 'any' variation so get all possible values.
} elseif ( '' === $valid_value && in_array( $value, $attribute->get_slugs() ) ) {
    $variations[ $taxonomy ] = $value;
} else {
        throw new Exception( sprintf( __( 'Invalid value posted for %s', 'woocommerce' ), wc_attribute_label( $attribute['name'] ) ) );
}

I commented that section and added "$variations[ $taxonomy ] = $value;" before that code block and my site is back to normal.