12 July 2020

Removing phantom tuner in MythTV

I had a tuner that did not appear on the tuner screen in setup, but would always throw an error about the default channel for it not being available when saving and exiting.

In order to resolve this, I followed the suggestion here: http://lists.mythtv.org/pipermail/mythtv-users/2010-March/284826.html

  1. manually login to the database
    1. mysql --user mythtv --password mythconverg
  2. find the phantom cards id
    1. select * from capturecard ; 
  3. delete it from the 'capturecard' table
    1. delete from capturecard where cardid = ;

02 July 2020

Refurbished Fossil Sport Review

As my Pebble Steel was beginning to annoy me with its inaccurate battery life and bad mms support, I recently purchased a refurbished Fossil Sport 43mm for $50 plus tax to replace it.

Hardware

The included magnetic charger makes it easy to ensure proper alignment for charging. However, the puck itself is very light and prone to being pulled off the table by the weight of the cord. It would have been nice for it to have some sort of non-slip rubber bottom.

The silicone strap is extremely soft and very comfortable. There are 10 different holes for size adjustment and 2 loops to hold down the extra strap. On the downside, it is quite small. My wrists are not very big, and yet I have to use the 4th to last hole.

The watch case is the crown jewel. It is well constructed. The two tone design makes it look smaller than it actually is. The buttons have a satisfying feel to them. The rotating crown has a smooth rotation with no click.

The GPS works well and is pretty accurate on a Google Fit workout.

There is no speaker for interacting with the Google Assistant or taking calls on.

Initial Experience

The first two days the battery life was awful as it was seemingly constantly downloading updates (and of course I was messing with it more trying out different watch faces). The updates would pause when the battery dropped below 30%, so the watch was on the charger ... a lot.

Watchfaces

I am disappointed by the seemingly lack of watchfaces on the Play Store. For any kind of variety, I had to install Facer. Facer has lots of options, but none of them were exactly what I wanted. Luckily, I was able to use their editor to create my own. However, Facer does have seemingly daily notification spam.

Software

The watch does seem to lag when interacting with apps specifically. Interacting with notifications is generally good, but does occasionally lag. This would probably be fixed by moving to 1GB of RAM in the Gen 5.

Battery Life

I charge my watch while in the shower every morning and typically have 30-50% left when I take it off overnight. It will then lose another 7 or so percent overnight. The settings that I use are: always-on time, tilt to wake, tap to wake, background heart rate, "ok google" detection off, and Wi-Fi off.

26 June 2020

Adventures in a Graphics Card Upgrade

Decision Time

As my HIS IceQ Radeon HD 7850 2GB was getting on in age, I decided it was time for an upgrade. I was trying to stay around the 130W TDP of the current card so that my folding did not increase my electric bill. The main options that I was considering was:
  1. Used GTX 1060 ~$135-150
  2. GTX 1650 ~$159
  3. GTX 1650 Super ~$200
  4. GTX 1660 ~$215
  5. GTX 1660 Super ~$230
  6. RTX 2060 KO ~$300
  7. Used RX 470 4GB (avoid mining only) ~$75
  8. Used RX 480 4GB ~$90
  9. RX 570 4GB ~$120
  10. RX 580 ~$155
  11. RX 5500 XT 4GB ~$159.99
My first elimination was anything over $200 as that was just too expensive to pair with my old Core2 Quad Q6600. I then eliminated the RX 570 and GTX 1060 as it was just overpriced compared to the RX 480 and RX 5500 XT. The RX 580 and GTX 1650 were also overpriced compared to RX 5500 XT. This narrowed my choices to:
  1. Used RX 470
  2. Used RX 480 4GB
  3. RX 5500 XT

The Purchase

I then scoured ebay for the used graphics cards. I placed the following price guidelines (including shipping) RX 470 for $70, RX 480 4GB for $80, RX 480 8GB for $90. It seemed that the 8GB models were pulling a large premium and the 470 and 480 4GB models seemed to be about the same price. I also wanted a backplate on the GPU to try to avoid GPU sag.

I was able to score a MSI RX 480 Gaming X 4GB model for ~$81 with shipping. When it arrived, it was in great physical shape and looked clean. I gave it a blast of compressed air to ensure maximum airflow. I installed the GPU after having to remove a fan mount in my old Antec 900 to increase the room for it. It then booted up without any issue. When I went to run benchmarks is when the bad news came. Under any kind of load the GPU spiked to 90C under 100% fan.

The Fix

To try to resolve this I tried:
  1. Reducing the Core Voltage
  2. Checking for a firmware upgrade
  3. Tightening the 4 screws that maintained mounting pressure between the cooler on the card a quarter turn (be careful as over tightening can damage the chip)
However, none of those helped. It was finally time to try the last thing that I could think of, replacing the thermal paste. Here are the steps that I followed:

  1. Removed the back plate taking care to keep track of which screws came out of where
  2. Removed the two screws on the pcie bracket
  3. Removed the 4 spring loaded screws that maintain the mounting pressure
  4. Unplug one 4 pin connector between the PCB and cooler which allowed me to open it up like a book
  5. This gave me a good look at the largely dried and cracking gray thermal paste
  6. Carefully cleaned this off the GPU and the heatsink
  7. Applied some Silicone thermal paste that I had leftover from my Q6600 build
  8. Reattached the 4 pin connector
  9. Put the 4 spring loaded screws back in, in a X pattern slowly tightening each one to maintain even pressure
  10. Screwed the 2 screws on the pcie bracket back in
  11. Screwed the back plate back on
Then the for the test. I reinstalled the graphic card and booted up the system. Thankfully, the card now worked like new!

Undervolting

The card's defaults are 1303MHz at 1150mV. I turned this down to 1250MHz at 1065mV using MSI Afterburner. This cost me about 4% theoretical performance for a savings of ~15% power (because Voltage is squared), which put the max GPU core/memory power usage at about 105W. This should keep me in the ~130W total board power range that I was looking for. The card is now doing about 65C with 40% fan.

I am still verifying the stability in folding, but at 1060mV it was just barely coming across an occasional error. I am hoping that bumping to 1065mV will eliminate those errors.

Update 2020-07-01: The additional 5mV have resolved the occasional error. I have seen some work units spike to 110W and hit 67C with 50% fan.

Update 2020-07-12: I still saw an infrequent error. I pushed to 1070mV in state 7 and 1055mV in state 6.

Update 2020-09-11:
Here are the default clock speeds and voltages:
1303MHz @ 1150mV
1235MHz @ 1143mV
1191MHz @ 1087mV
1145MHz @ 1037mV
1077MHz @ 973mV
910MHz @ 850mV

Default Memory: 1750MHz @ 975mV

Here is what my final stable underclock is:
1250MHz @ 1077mV
1235MHz @ 1075mV
1191MHz @ 1075mV
1145MHz @ 1037mV
1077MHz @ 973mV
910MHz @ 850mV

Memory Clocks/Voltages unchanged

GPU power usage (not total board power) drops from ~120Watts to ~100Watts
 
Update 2023-05-23:
I repasted using Arctic MX-4 thermal paste and saw a  temperature reduction. I also found this post and used it as a base for a new underclock: https://forums.tomshardware.com/threads/frequency-and-fps-drop-stuttering-on-rx-480.3624457/

1191MHz @ 990mV
1145MHz @ 980mV
1077MHz @ 975mV
910MHz @ 850mV
 
I have it capping out at 1191MHz to keep it nice and quiet at under 55C at 30% fan speed under load.



17 May 2020

Installing Ubiquiti Unifi Security Gateway

I just received my new Ubiquiti Unifi Security Gateway and here are the steps that I used to go about installing it.

Update the USG

  1. Downloaded the latest firmware onto my laptop https://www.ui.com/download/unifi-switching-routing/usg
  2. Plugged the USG into power and waited for it to finish booting
  3. Performed a Factory Reset to ensure no hiccups
  4. Attached a Laptop to LAN1 (also disabled laptop wifi)
  5. Copied firmware over to USG (if on windows you can use WinSCP)
    • scp UGW3.v4.4.50.5272448.tar ubnt@192.168.1.1:UGW3.v4.4.50.5272448.tar
    • password: ubnt
  6. SSH into the USG and run the update
    • ssh ubnt@192.168.1.1
    • password: ubnt
    • sudo syswrapper.sh upgrade UGW3.v4.4.50.5272448.tar
    • The system will the print some output and then reboot

Configure the USG

Warning 1: Despite the USG having 2 LAN ports, 1 is disabled out of the box, so you will not be able to have both a laptop and a Unifi controller plugged in at the same time without a switch or hub.

Warning 2: It seems that any change no matter how small seems to trigger a USG reboot. So you will want to have it completely configured before inserting it into your network.

Configuring Dynamic DNS for no-ip.com

  1. Settings Gear on bottom left navigation bar -> Services -> Dynamic DNS
  2. Click: CREATE NEW DYNAMIC DNS
    • Internet: WAN
    • Service: noip
    • Hostname:
    • Username:
    • Password:
    • Server: dynupdate.no-ip.com
  3. Got these settings from: https://www.noip.com/support/knowledgebase/how-to-setup-ddns-ubiquiti-edge-router/

Configuring Networks

You can change various settings for the LAN and WAN under Settings Gear -> Network

Inserting into the Network

Plug your modem into WAN1 and your switch into LAN1 and enjoy!

Results

This allowed me to repurpose the ASUS router as a WiFi bridge to replace the Linksys E2000 which upgraded me from N300 to AC1300, which gave me a real world doubling of speed ~5MB/s to ~10MB/s.

22 October 2019

WiFi Upgrade

As I was having trouble getting wireless signal from the family room in my home to the bedroom at the far end, I figured it was time for an upgrade. My existing wireless router was a refurbished Asus RT-AC66R that I purchased in 2013.

I had been researching different mesh systems like Netgear Orbi, Eero, Google, Asus AX6100, and the upcoming Asus AX6600. However, I noticed that 2 wall jacks that I thought were phone jacks were in fact ethernet jacks! One is in the kitchen and the other in the master bedroom. I tracked the lines down and found that they terminated in a wiring box in our basement. This changed my approach from thinking that I would need to use wireless mesh and could instead use hard lines. I also planned on adding 2 jacks to the tv cabinet in the family room for the tv and playstation.

Because I would want to mount an access point in the kitchen and bedroom, I would need something relatively inconspicuous. This led me to the easily mountable Ubiquiti Unifi series of access points. After doing extensive online research, I decided to go with Unifi.

Here are a list of parts that I needed:

PriceQuantityPartLink/Location
156.992Unifi nanoHD Access PointsMicrocenter
79.991UPS with 5 battery backup outletsBest Buy
26.991TRENDnet 8 port patch panelAmazon
14.991LAN tester for RJ45Microcenter
12.9915 pack of 5 foot ethernet cablesAmazon
7.991Right Angle ethernet cableAmazon
6.991100 mount points for zip tiesAmazon
4.461Wall plate with angled keystoneAmazon
2.992Cat6 keystonesMicrocenter
2.991Keystone surface mountMicrocenter
2.99110 pack of Blank KeystonesMicrocenter
FreeEthernet cableDonated by my brother
480.34    Total before tax

My brother, brother-in-law, and I installed 2 cables up into my family room where there was an already existing hole running along the existing cable lines. However, it turned out that despite being a cat 5e jack in the kitchen only 2 of the 8 wires were actually connected. I just had to install the other 6 wires. The bedroom jack was wired correctly, but I swapped out the faceplate for one with angled connectors since it was behind our bed. This would reduce the chance of the ethernet cables getting pinched and ruined. All the cables were then connected to the patch panel in the basement.

I then installed the kitchen wireless access point and configure it with the installed Unifi Controller on my server (see: installing-unifi-controller-on-ubuntu). I then went about switching all my devices to the new wireless network name. Afterwards, I was then able to move the Asus router downstairs and turn of the wireless. It will still handle the routing for now.

The wireless performance of the one Unifi nanoHD was so great that I decided to return the second. This lowered the total cost of the project so far to 323.35. The improvement of the wireless was likely 2 fold: 1. an improved wireless signal and 2. a more central location.

The 2.4GHz performance is still so-so, but that is more due to the amount of interference from the more than 20 networks in range.

Future improvements I am considering are:
  • network rack and shelf to place all the equipment on instead of the simple shelf that I am using
  • PoE network switch
  • Unifi Security Gateway (router)


25 September 2019

Google Cloud Print on Ubuntu 16.04

As I wanted to be able to easily print from my phone and chromebook, Google Cloud Print was the solution.

Here are the simple steps that I used:

  1. sudo apt install google-cloud-print-connector
  2. gcp-cups-connector-util init
    • It will require you to enter a code at https://www.google.com/device to create the OAuth credentials
    • save the created config file somewhere safe
  3. gcp-cups-connector -config-filename gcp-cups-connector.config.json


Don't forget to install Cloud Print by Google LLC on your smart phone!

23 September 2019

Installing Unifi Controller on Ubuntu 16.04

Here are the steps that I had to do to get Ubiquiti Unifi Controller software installed on Ubuntu 16.04


  1. Add the gpg key:
    • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
  2. Add the repo:
    • echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
  3. Update Sources:
    • sudo apt update
  4. Install the software:
    • sudo apt install unifi
Unfortunately, this resulted in JAVA_HOME not found errors in /usr/lib/unifi/logs/server.log. This is because the unifi software requires Java, but it couldn't find it. I tried to point to the Java 9 path, but that just resulted in errors like: /usr/lib/unifi/data/keystore (Permission denied). Apparently, the software only works with Java 8. To resolve this issue, I installed Java 8 and restared unifi with the following commands:
  • sudo apt-get install openjdk-8-jre
  • sudo service unifi restart
Then head over to https://localhost:8443 to complete the setup