Friday, March 16, 2018

Canik TP9SF TP40SF manual

As of today, it's impossible to find the manual online for a Canik TP9SF or TP40SF.  So I decided to scan mine and make it available to everyone here.

Enjoy.

https://www.dropbox.com/s/nwjk510vn5gp8by/TP9SF.pdf?dl=0

Wednesday, January 17, 2018

OnePlus 5T - What's in the box?

dThe phone itself

One "Dash" charger and USB Type C cable

One smoke grey colored silicone rubber case

The pin used to open the SIM card drawer

Not much of a manual, just a quick-start guide

They'll try to upsell you a second Dash charger on checkout.  They got me on it, as I didn't check to see whether one was included.  It seemed like there would be a charger included, but not the Dash charger.  Wrong.  A Dash charger is included, so only buy it if you need a second quick charger.  Otherwise any USB Type C charger will work, but will charge slower.

Thursday, December 28, 2017

Intermittent Wi-Fi on Asus M50VM

Intermittent Wi-Fi on Asus M50VM

This machine has a Qualcomm Atheros AR928X which is apparently long in the support tooth.

Open a terminal and simply run:

echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9kfix.conf > /dev/null

No idea what it does, but it works.  From:

https://answers.launchpad.net/ubuntu/+question/289898

unetbootin

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

ttf-mscorefonts-installer failure to download

I have been receiving notifications about "failure to download extra data files" from update notifier. It asked me to download fonts in request from the ttf-mscorefonts-installer package. However, whenever I click on the "run this action now", a window pop up (see figure below) and it never got downloaded


wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb -P ~/Downloads

sudo apt install ~/Downloads/ttf-mscorefonts-installer_3.6_all.deb

SD card Canon exFAT format will not mount

exFAT SD Canon EOS card won't mount

sudo apt-get install exfat-fuse exfat-utils

Redshift geoclue fix

Install from the Software Manager "Redshift-gtk".  This will automatically also install "Redshift" the command line package.

then add this to stop the failures:

sudo apt-get install geoclue-2.0

OSMC and VPN on Raspberry Pi December 2016 guide

Download OSMC Installer
Install OSMC to SD card

Search for how to install Exodus
https://koditvguide.com/exodus-kodi-how-to-insall-exodus-on-kodi/

How to Install Exodus Kodi Add-on Guide
Open Kodi and navigate to SYSTEM > File Manager > Add Source > None
Type the following EXACTLY http://fusion.tvaddons.ag and select Done
Highlight the box underneath and enter a name for this media Source like “Fusion”. and then click OK
Go back to your Home Screen and then to SYSTEM > Add-Ons > Install from Zip File > “Fusion”
Select xbmc-repos > english > repository.exodus-x-x-x.zip and wait for the Add-on enabled notification
Select Get Add-Ons or Install from Repository (on Isengard or higher) > Exodus Add-on repository > Video Add-ons > Exodus > Install
Wait for Add-on enabled notification

Make sure SSH is enabled on the Pi
Find IP address of the Pi in the onboard settings

Also select the remote rc6-mce-lircd if you're using the Mediagate remote.

Under Settings/Interface select "Expert" and then set Zoom to -4 for the Panasonic TV.

Download FileZilla
Copy Zomboided zip file to /tmp on the Pi
https://trevorappleton.blogspot.com/2014/03/remotely-copy-files-to-and-from-your.html

Download PuTTY
Enter IP (10.0.0.19 or 192.168.1.74 or something like that)
login as osmc
password is osmc
sudo apt-get update
sudo apt-get install -y -qq openvpn

To add a VPN using Zomboided:
http://forum.kodi.tv/showthread.php?tid=299829
Be sure to use the automated version.  Manual caused me trouble.

Open FileZilla
Select File/Site Manager
Enter under "Host" the network address of your Pi.
Logon Type: Normal
User: osmc
Password: osmc
Accept that the host key is unsecure.
You'd have downloaded Zomboided already and it should be in your downloads folder.  Navigate there with the left pane window. Highlight and then right click "Upload" to transfer to the /tmp folder on the Pi.

Download the Zomboided Repository for Kodi
Navigate in Windows (That's what I used for this tutorial) to your Raspberry Pi's IP Address.
Copy the freshly downloaded Zomboided Repository ZIP file to the Raspberry Pi's Downloads folder.
On the Raspberry Pi, go to System, then Settings, then Add-Ons.
Choose Install from ZIP and navigate to the Downloads folder (Home/Downloads)
Once installed, go to the Install from Repository option in Add-Ons.
Under Zomboided Repository, then Services, choose VPN
Manager and Install
Go back to the main Kodi screen and go to Programs.
Choose VPN Manager and then Add-on Settings.
Select Wizard. Choose your VPN Service and then input your Username and Password.
Choose your Encryption Level, then the Profile or VPN you wish to use and you are done!

Open the Zomboided addon
Under the VPN Configuration tab fill out the username and password.
Under the VPN Connections tab manually select "First VPN connection"
It should ask you which server you want to select.

No thumbnails in Thunar (XFCE) when on remote files viewed with Samba?

No thumbnails in Thunar (XFCE) when on remote files viewed with Samba?

Edit:Preferences:Show thumbnails:Always

Low disk space on Boot partition

Low disk space on /boot is caused by old Linux kernels hogging space.

In Mint,

Open Update Manager
View/Linux Kernels
Acknowledge warning
Remove unused/old kernels one at a time


On Ubuntu,

sudo apt-get purge $( dpkg --list | grep -P -o "linux-image-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") )

HP printers and Debian or Ubuntu or Linux Mint

sudo apt-get install hplip hplip-gui

edimax ew-7811utc ubuntu

sudo apt-get update

sudo apt-get install linux-headers-generic build-essential git

git clone https://github.com/gnab/rtl8812au.git

cd ~/rtl8812au

make

sudo make install

sudo modprobe 8812au

If you insisted upon downloading Dropbox for Debian from their website, which was a very bad idea in the first place...

Install from the Dropbox website, then:

dropbox stop && dbus-launch dropbox start

on Lubuntu go to

Start/Preferences/Default applications for LXSession

In the Autostart section, Manual autostarted applications, copy/paste:

dbus-launch dropbox start -i

then hit "+ Add"

and reboot

The following doesn't work in Xubuntu! Damned if I know why.  Maybe this command runs before dropbox starts in the first place, who knows?

on Xubuntu go to
Start/Session and Startup/Add
name and description your choice
dropbox stop && dbus-launch dropbox start

So now I tried to gedit the rc.local file to autorun on startup:
sudo apt-get install gedit
sudo gedit /etc/init.d/rc.local
add this line right above "exit 0" very near the bottom
sleep 30; dropbox stop && dbus-launch dropbox start
save
reboot

And now this didn't work either. Running out of patience.

Ok, trying this:

Open terminal.
dropbox stop
sudo gedit /usr/bin/dropbox
Create a new line after "import os" and add the following:
os.environ['DBUS_SESSION_BUS_ADDRESS'] = ""
Save and restart

Success lives here!

Dell 1501 WiFi

Dell 1501

WiFi is Broadcom BCM4311 rev 01

sudo apt-get update

sudo apt-get install firmware-b43-installer

ensure wifi light is on, if not use function/f2 to turn it on

Linux tips and tricks

Over the years, I've accumulated quite a few notes on tips and tricks to improve my user experience on Linux.  They're all for the Debian/Ubuntu/Mint based distributions.  I'm not going to spend a lot of time trying to figure out what I meant, nor edit them for clarity, mostly because I don't even remember the train of thought and experience which led me down most of these paths.

Nevertheless, some of this info might be useful to someone at some point.  If even one person finds assistance here, my mission will be complete.

Good luck!

Dropbox on Debian and therefore Ubuntu based distros

Below are my notes which fixed the continual headache which is Dropbox on Debian/Ubuntu based Linux distros.  I've just dragged and dropped with no editing for clarity.  Hopefully this might be useful to someone.

As a side note, installing Dropbox from the official software manager in Ubuntu and Mint seems to have finally been ironed out.  DO NOT INSTALL DROPBOX BY DOWNLOADING IT DIRECTLY FROM DROPBOX.COM!!  This advice holds true at the end of 2017, which is absolutely shameful by this point.  Hopefully they fix it in the future.  Rant over.  Enjoy!

A permanent fix:

Open terminal.

dropbox stop
sudo gedit /usr/bin/dropbox

Create a new line after "import os" and add the following:

os.environ['DBUS_SESSION_BUS_ADDRESS'] = ""

Save and restart


The following is a temporary fix which won't recur if rebooted.

If the icon is missing from the lower right hand corner, open up a terminal and type "dropbox stop && dbus-launch dropbox start"

Also, from:  https://www.dropboxforum.com/hc/en-us/community/posts/204928873-Dropbox-tray-icon-not-responding-now-totally-gone-in-Linux-Mint-17-3-Cinnamon-64-bit

1. System settings >> General

2. Uncheck "Enable support for indicators"

2.a If you are uncomfortable performing the following steps just restart your system now and continue with step 7. Otherwise continue with step 3.

3. Press [ALT]+[F2] to open the command window

4. Run "cinnamon --replace" to restart cinnamon

It might be necessary to also kill Dropbox and start it again. In this case continue below:

5. Press [CTRL] +[T] to open a bash terminal

6. Run the following command to kill all Dropbox processes:

kill $(ps aux | grep '[d]ropbox' | awk '{print $2}')

7. Start Dropbox as usual. The tray icon should behave correctly now.

Don't install Dropbox from their website.  Use the package in the Software Manager.  (At least it is now under Mint 18.)

And don't even try to move the default folder to a different hard drive.  You will fail because the drives don't auto-mount on reboot, and you will just get completely pissed off at the ridiculousness of the whole goddamned thing.

After Windows 10 Fall Creators Update have to enter PIN twice, or scan fingerprint sensor twice to access Windows

From search window, type "netplwiz" and then run command.

Uncheck the box "Users must enter a name and password to use this computer."

Hit Apply, then OK.

Restart.

After rebooting, return to "netplwiz" and re-check the same box.

Hit Apply, then OK.

Restart.

Worked for me on my Lenovo T470s.

Thursday, September 13, 2012

Vita-Mix 5000 variable speed fix/repair

I'm writing this blog entry because Vita-Mix is now officially on my shit list.  The story will follow below, but the bottom line is that I want You The Owner to be able to fix your property yourself, and not have to pay Vita-Mix outrageous amounts of money to do a simple job like changing out a simple electrical component that really anyone could do.  Bear in mind that what I show below voids the warranty.  If you decide to open up your machine, it's your decision and your warranty.  But I know this fix works for the indicated problem, and if you have this particular problem it will be worth it to you just for the feeling of empowerment it will give you to fix your own machine.  The offending unit:



My wife bought this particular Vita-Mix 5000 at the Iowa State Fair about 10 years ago.  She loves the thing, and it served us well until recently when the motor began running very erratically on the variable speed setting.

More disclosure:  Fed Up Airline Pilot I may be, but my college degree is as a Laser Technician, and along with optics classes came a huge amount of electro-mechanical classes.  In fact, just a couple of extra classes and I could have earned the Electronics Technician degree.  The point is that I'm over-qualified to fix a blender, but it's really not rocket science, and I believe that anyone can do the same thing with proper guidance.  You can do it!  http://www.youtube.com/watch?v=VZ2HcRl4wSk

Tool list, all available at Radio Shack:

A medium Phillips screwdriver (the star one not the flat one)
A very small flat head screwdriver (the flat one not the star one)
A 13mm deep-well socket with associated ratchet wrench
Soldering iron and solder
Heat-shrink tubing

That's it, can you stand it!?

Parts list:

Go to www.alliedelec.com and order part number 70153162.  It's about $8 plus shipping.
http://www.alliedelec.com/search/productdetail.aspx?SKU=70153162

Just in case the link breaks, what you're looking for is a potentiometer, linear 0-5K Ohm, 312 degree rotation, with .25" diameter input shaft.  The stock Vita-Mix part is only .75 Watt, but this sucker's rated for 2 Watts.  "More power!" - Tim the Tool Man Taylor

For full disclosure, this is just one part out of a thousand different components which will do the same job, but it's the one I chose and it works just dandy.  Don't mess with success!

Troubleshooting the problem:  Our Vita-Mix 5000 was acting like the variable resistor (potentiometer) was only making intermittent contact with the speed control board.  The motor ran fine on the "High" RPM High/Variable switch setting, but randomly turned on and off when in variable speed mode and the knob was turned.  After the fact and with the benefit of 20/20 hindsight, I can now say with certainty that the following was indeed the fix for this particular problem.  The faulty part that this whole posting is about (the potentiometer) is shown below:




To test my diagnosis, I began disassembling.

Here's your starting point:



First, I loosened the power cable restraining screws in order to expose the motor fan shroud screws:



Next, remove the four (4) screws which hold down the top half of the motor fan shroud and remove the top half of the fan shroud, noting for later that there's a little notch at the top to help alignment during reassembly:



Then remove the bottom half of the fan shroud assembly.  It should come right off.  Again, note the notch on the top for easier reassembly later:



Next, remove the four screws at the four corners in the picture below:



Just to be sure, these are the screws you're removing - I show them below in the "loosened" position:


Remove the screws, and you're ready to separate the two halves of the base:


Separate the two halves of the base.  It may be sticky, but just apply gentle pressure around the edges until it comes apart.  Note also the little rubber vibration dampener.  These are shown separate in the next picture.  During reassembly it's important to get them back on the edges.


Rubber vibration dampeners:


This is the part we're looking for - the potentiometer!  Unfortunately, I decided to do this blog posting only after I'd already de-soldered and removed the leads.  Note that initially this part had three legs, but the one on the right has been cut off by Vita-Mix before assembly - the third leg is not needed for this machine:


Before unbolting the potentiometer from the housing, unplug the leads (wires with little connectors on them) from the circuit board.  The two closest connectors in the picture below are the ones you're looking for:


Next, using your small flat head screwdriver, loosen the small screw holding on the knob:


Remove the knob (this is the new Honeywell component already installed; as I said earlier I decided to do this blog post only after the fact, just imagine it's black instead of silver, ok?):


Using your 13mm deep-well socket, remove the nut holding in the potentiometer:



Now back inside the housing.  This is the new component, already installed.  This is where the soldering comes into play.  Using your soldering iron, remove the two leads from the old potentiometer.  Cut three pieces of heat-shrink tubing to length and slip the pieces over the wires before re-soldering the leads to the new component.  !!!VERY IMPORTANT!!!  Use the same left two terminals on the potentiometer as were used on the old part (the left two as you look down on the potentiometer) and leave the third (right) leg unused.  Use a match or cigarette lighter to shrink the tubing onto the leads, using a shorter piece to protect the third unused leg:


Note how beefy and strong this Honeywell sweetheart is, compared to the weak sauce plastic original POS!  Rated for 25,000 cycles, baby!

Simply reverse these steps to reassemble the unit.  Only one "gotcha!" left to cover yet.

After reassembling the base, now we need to make sure the dial indicator knob is properly aligned with the appropriate speed setting.  To do this simply twist the potentiometer input shaft as far counter-clockwise as it will go (until it stops).  This will be the "1" speed position.  Then without bumping or turning the input shaft, slide the indicator knob onto the shaft and align the white hash mark with the "1" position.  Tighten the screw down and you're all set!

Now why after this is all said and done would I take the time to pass along all this valuable information to you, my internet friends?  Well here's how my interaction with Vita-Mix went down...

After troubleshooting, I looked online for the Vita-Mix parts and service center.  I saw that they charge $150 to fix pretty much any problem per event.  Since the machine we own is 10 years old, it was not worth it to me to spend $150 on a repair - that's almost halfway to a new machine!

After disassembly and removal of the old potentiometer, I contacted Vita-Mix via email (their preferred method of contact) requesting a price quote on a new potentiometer, making sure to include all pertinent information such as serial number and even the part number printed on the side of the potentiometer.  I received no reply for several days.  I then called them up on their -800 number to order a new potentiometer.  I was given a price quote of $147!  My jaw dropped and I managed to recover my wits about me enough to ask "For crying out loud, why?!  $147 for a simple potentiometer?  Are you nuts?!"  The gal on the other end of the line was nice enough to admit to me that the reason it's so expensive is to discourage folks from trying a DIY fix, and to encourage you to send it in to the repair center for $150.  Bullshit, I say!  Almost two weeks later, I received a reply email from their customer service department telling me I needed to call the -800 number.  They couldn't possibly send in written form their insane price gouging, and they're right about that...  I would have posted it here!

So, as revenge for their price gouging, I did several hours' worth of work here in order to provide you my internet brothers and sisters good information so that you can make an informed spending decision.  Send your Vita-Mix in to be repaired for $150, or do it yourself for about $10.

Saturday, February 27, 2010

Asus M50VM Laptop and Linux Screen Brighness

If your screen is too dark when using a Ubuntu Linux distribution on your Asus M50VM series laptop, your light sensor is to blame. Try this:

Open a terminal via >Applications>Accessories>Terminal

Once in the terminal, type (or just copy the next line):

sudo gedit /sys/devices/platform/asus_laptop/ls_switch

It will ask for your root password. Enter it.

Within the gedit window that pops up, change the "1" to a "0"

Save.

Reboot the computer if the screen doesn't go full bright immediately.

This disables the light sensor, re-enabling your screen brightness control.

This technique may work with other versions of Linux, but I don't have the patience to figure out all the different root command equivalents of "sudo" for all the different distros.

Good luck!

Wednesday, December 2, 2009

Legal Vs. Safe: Part 1 - Rest!

What actually happens on a 9 hour - FAA legal minimum non-reduced rest overnight?

The first (reality-ignoring) problem with scheduling a 9:00 overnight is that it is assumed that the flight will be on time, because scheduled reduced rest is not allowed according to our contract. This is obviously not realistic, as it is certainly anticipated by the company that the flight crews will probably be on reduced rest on a significant percentage of the overnights. Reduced rest will only add fuel to the following fires, and is in my opinion a ridiculous concept. Say this out loud, and listen to yourself: "Oh, one night without adequate sleep is OK. It is completely safe. The FAA says so, therefore it must be true!"

How much trouble would we, the pilots, be in if we were to be honest with the passengers during our "Welcome Aboard" announcements? "Hello, this is Captain Bob. Well, I'm a bit bushed this morning, and so is the rest of my crew. You see, we didn't pull into the gate last night until 8 hours and 15 minutes before our report time this morning. It will be OK in the end, though, because we are being compensated with additional rest tonight after our full day of flying today. So, the bottom line is, we're tired but we're legal. The FAA says so, so don't worry about it! We hope you enjoy your flight today." We'd all be fired, right? Just for telling the truth.

I already know the company response to the above premise: "You, the pilot, are responsible to call in fatigued if you feel you are unfit to perform your duties."

Bravo, well played! *golf clap* Very nice. Very legal. This statement removes all culpability from the company and puts it smack dab on the pilots. We, the pilots, are now responsible to make a legal decision to fix (or, on the contrary, cause a separate really extremely large problem in the form of a cancellation because of) a problem created by the company through unrealistic scheduling practices.

As I kind of like to poke at sensitive areas, I'll explain this situation from a pilot's perspective. The pilot thinks: "Yes, after a bit over 5 hours of sleep I am kind of tired. Am I too tired to fly? Maybe not. I'll get a large coffee and see how I feel then. If I call in fatigued I'll strand this airplane, my passengers, and my crew here in Seattle, and I will cause untold hardship, misery, and financial loss to all involved. I will be branded as a "troublemaker" by the company and I will probably see retribution. Oh, hell. I guess I'll just fly the damn trip."

This rationalization is what happens most of the time. The flight leaves on time, passengers arrive at their destinations on time, and everyone is happy but the tired crew.

An important item to note is that we are only given 15 minutes between block in and the beginning of legal rest. This is wholly unrealistic and is obviously a complete fantasy. On a perfect day it takes 15 minutes to simply de-plane the aircraft. Wheelchairs, meet-and-assist pax, maintenence items, and other issues come up. We need the definition of the beginning of legal rest to accurately reflect what we know to be reality - the honest truth - in the real world. Rest should begin as soon as we, the crewmembers, enter the hotel room. The reason I use "enter the room" is that I have had too many instances when the room key doesn't work, the room isn't cleaned and ready for me, or there is someone else in my assigned room. It takes time to fix these problems, and I am obviously not resting during this time.

On the other end of the legal rest window, the report time is the end of legal rest! It also happens to be the exact same time that we are required to be at the airplane to perform our preflight duties. What was the FAA smoking when they approved that interpretation of the end of legal rest?! I have many words for the stupidity of this, but it hardly needs saying that we are not resting in the following situations: *deep breath* While getting dressed and packing to leave for the airport, waiting for the van to leave for the airport, riding the van to the airport, going through security at the airport, and walking to the airplane at the airport.

In my example, legal rest begins at 10:29 PM. We are not even to the hotel van waiting area until 10:36 PM. We aren't in our rooms until 10:53 PM. We may be crewmembers, but we are certainly not robots. Even with my definite effort to quickly get ready for bed, I didn't turn the lights off until 11:24 PM. It takes me a while to fall asleep after turning the lights out, and that is reflected in the chart. Again, we are not robots with on/off switches! The FAA and airline management both need to start recognizing this!

Another completely ignored aspect of the biology of humanity is involved in this schedule. Circadian rhythms. Most humans need to be on a regular schedule to obtain adequate rest. The company has proven time and time again that their definition of "Safe" is "FAA Legal". This is patently false, and we all need to quit pretending that we believe otherwise. Scheduling a redeye followed by a sit followed by another leg back to base is complete lunacy, and was in my opinion, a very large factor in one of my company's "pilot error" incidents of last year. If safety is truly the #1 goal of our company, then there should be company policies stating recognition of, and procedures implemented which include a basic understanding of the physical needs of human employees. Embrace the uncomfortable, inconvenient, and expensive fact - legal is not the same thing as safe. Management should be required to repeat this obvious truth as their mantra, as we are required to state out loud during our gate briefings - the common sense logic - that we will not take off with a horn blaring at us. (That's a whole separate idiotic issue...)

The basis of our training as pilots is that whatever is more restrictive, FAA regulations or company policy, will be the determining factor. I propose that the more restrictive interpretation of rest would be based on the recommended 8 hours of actual sleep, with realistic rest regulations built on real-world airline crewmember experience. Therefore, rest should begin 30 minutes after you enter your room, and end 30 minutes before scheduled van time to the airport. If you want to make it easier to track and enforce, just average it out to rest beginning at 1 hour after block in, and ending 1 hour prior to report time. Make it 10 hours, minimum. There should also be no such thing as "reduced rest", because that equals "reduced safety".

*Cue the company screaming* Sorry, folks. That's what it would take to ensure an 8 hour sleep window.

In summary, airlines will always schedule pilots and flight attendants right up to the limits of legality. Therefore, it is the responsibility of the FAA to set those limits to reflect a realistic, safe rest window for all air crew members. The FAA is currently considering re-writing rest regulations in response to the Colgan crash.

Passengers should send letters to the FAA if they are concerned about what I have said in this posting, and want a truly rested pilot at the controls when they are in the back of the plane.