Technology, drones and life in Australia, Denmark and Germany
Author: Michael Visser
I'm a WordPress Plugin developer, UAV & Raspberry Pi enthusiast and general tinkerer. This visser.io domain serves as my development playground for non-WordPress Plugin projects.
Here’s how to turn off the Google PageSpeed module within Apache and PHP’s OPCache functionality that is enabled by default within Bitnami instances on Google Cloud Platform.
Establish a terminal session to your Google Cloud Platform instance with your preferred terminal client (e.g. Putty).
Open up /opt/bitnami/apache2/conf/httpd.conf with your preferred file editor and find the following lines:Include conf/pagespeed_libraries.conf
Include conf/pagespeed.conf
Comment them out to match the following lines:
# Include conf/pagespeed.conf
# Include conf/pagespeed_libraries.conf
Save changes and return to terminal prompt.
Open up /opt/bitnami/php/etc/php.ini with your preferred file editor and find the following line:opcache.enable=1
Comment it out and disable opcache.enable by matching the following lines:
# opcache.enable=1
opcache.enable=0
Save changes and return to terminal prompt.
Restart the Apache service with the following command:
sudo /opt/bitnami/ctlscript.sh restart apache
Here’s how to un-brick the Xiaomi Mi Router 3C if it gets stuck in a System Error state (steady orange LED showing on the front of the unit) and upload a fresh firmware to bring it back to life.
Switch to the ROM section.
Scroll down to the R3C ROM listing.
Note: For my sanity I will refer to the red LED as orange) as it’s clearly not red.
Visit the MiWiFi website and download the latest firmware (website is in Chinese, I recommend using Google Translate to navigate this website)
Switch to the ROM section
Download the Stable ROM for R3C (latest release at time of writing is 2.12.15)
Connect an ethernet cable to the WAN Port ethernet connector (that’s the blue port closest to the power supply connector).
Connect the other end of the ethernet cable to your computer/laptop (if your laptop does not have a ethernet port use a USB to Ethernet adapter)
Find a paper clip and when ready pull the power cable on the Xiaomi Mi Router then press down firmly on the Reset button and re-connect the power supply
Continue to hold down the Reset button for up to 10 seconds or until the front LED colour changes from steady orange (System Error) to flashing orange (Safe Mode)
If the LED colour fails to change to flashing orange after some time rinse and repeat by pulling the power cable and re-connecting until the unit enters Safe Mode
Here’s where things get interesting… if an IP address is automatically assigned to your device you can skip to step 6 (thanks DD).
If an IP address has not been automatically assigned to your device then jump back to the first step and move the ethernet cable from the WAN Port to LAN Port 1 (shown as a single dot, beside the other LAN Port with two dots) on the Xiaomi Mi Router 3C.
You will need to manually assign a IP address on your computer as the DHCP server on the router is not enabled in Safe Mode, set the following network options for your ethernet connection:
IP address: 192.168.31.5
Subnet mask: 255.255.255.0
Default gateway: 192.168.31.1
Preferred DNS server: 192.168.31.1
Open up your preferred browser and enter http://192.168.31.1 into the address bar
Upload the firmware file you downloaded earlier and wait a few minutes
If the front LED does not change to blue within 5 minutes pull the power cable and put it back in and wait another few minutes for the router to boot up
Check for nearby WiFi SSID’s, the Xiaomi Router should be available to connect and configure
Undo your ethernet connection changes and configure your Xiaomi Router
Out of the box the Xiaomi Mi Gateway does not allow other network-based devices to integrate with it, with a little bit of effort though you can enable LAN support for integration with Domoticz or other smart home platforms.
Here’s how to connect the Xiaomi Mi Gateway to Domoticz:
Supply power to the Xiaomi Mi Gateway (you do not need to hard reset this device to enable LAN support)
By default new Bitnami instances show a corner banner on all pages. To remove this connect to your Google Cloud Compute Engine instance via SSH and enter the following commands:
Setting the Home address on Mazda’s Connect Navigation App is done during the first-time setup of the navigation App, set it and forget, but it’s not obvious how to change the Home address at a later time.
Here’s how to update the Home address on the MZD Connect Navigation App:
Start your Mazda car and wait for the Mazda Connect platform to load
Open the Navigation App
Select Favourites from the Navigation menu
Highlight the Home menu option
Press and hold down the Commander button down for up to 5 seconds *
Select Edit to update the Home address
Set your City/Suburb, followed by Street and Number
Save your changes
That’s it! 🙂
* The Commander button is shown as the main dial in the lead image above this Post that you use to interact with the Connect platform whilst driving.
Here’s how to re-map the default Calculator keyboard “shortcut key” to instead send the Play/Pause media command under Windows 10; alot more useful!
This guide is aimed at the Amazonbasics Wired Keyboard but applies to any keyboard making use of the standard Windows media/shortcut key codes. A requirement is that you are using a supported media player including iTunes, Spotify, Windows Media Player or VLC.
I brought my XPS 15 9550’s hard disk back from the brink today. I hope this will help other affected XPS 15 9550 users or just Windows users in general.
The XPS 15 9550 was powered down as usual and on reboot would go directly from the Dell POST logo to the Dell diagnostic software (Enhanced Pre-Boot System Assessment). That’s not a good sign.
After running through common diagnostic steps with Dell Support a new hard drive was ordered and installation scheduled for the following day (unit was covered under a Next Business Day support contract). As Dell Support put it the hard disk was dead without any chance of recovery… or was there? 😉
Here’s how to recover your Windows instance in the case where the hard disk hardware is still being detected and simply has no UEFI boot entries:
Open BIOS Setup by powering up the XPS 15 and tapping F12
Open the Settings > General > Boot Sequence screen
Ensure that UEFI is selected under Boot List Option
Click Add Boot Option
Provide a Boot Order Name (it can be anything, I used Bootx64)
Select the available File System List
Set the File Name to: \EFI\Boot\bootx64.efi or click the ‘…’ button and expand the EFI > Boot directory and select bootx64.efi before pressing OK
Click OK to create the new EFI boot entry
Select the new EFI boot entry
Click Apply
Click Exit
Fingers crossed! That’s it, I hope you’re back up and running again. 🙂
From the opening My Devices screen click the top right “+” (plus) symbol
Select “Add device” from the dropdown menu
Pull the exposed plastic tab from the Xiaomi Plant Flower Care device to turn it on, if you have previously done this open the cover and unset/re-set the battery
When the “Flower care” device appears select it
Wait while the Bluetooth connection is established and the latest device firmware is installed
From the initial Devices tab select the Flower Care device
That’s it! You’re good to go!
Screenshots
Install the Mi Home App via the Play Store or App Store
From the Dashboard screen of the Mi Home App click the “+” (plus) symbol in the top-right corner to add a new device.
Pull the plastic tab on the Xiaomi Plant Health Care device and hit Scan.
If the Mi Home App does not automatically detect the Xiaomi Mi Plant Health Care device, search for it manually.
You can now monitor your plant using the Mi Home App! 🙂
Update (11/01/2019): I purchased a Razer Core X eGPU + GeForce GTX 970, with the eGPU connected fan noise is no longer an issue as all GPU processes are done over Thunderbolt 3.
I’ve had my XPS 15 9550 almost 18 months now, here’s my replacement history so far… all covered under Dell’s Premium Support NBD contract:
5 motherboards
1 battery
2 CPU fan
2 graphics card fan
1 heatsink
1 keyboard
I can put at least 3 of the above motherboard replacements down to me telling them “the CPU fan is too loud” which was blamed by Dell Support and on-site technicians on issues with the motherboard and promptly replaced.
The fix for the loud CPU fan – especially when a Thunderbolt device is connected – is to turn on passive cooling within Power Options and using Intel XTU undervolt the CPU 0.100 V dramatically lowering the thermal profile of the XPS 15 9550 followed by setting Dell Command Power Manager to Quiet.
Showing the thermal profile of the Dell XPS 15 9550 24 hours after applying the Core Voltage Offset change and enabling Passive system cooling.
Today I have a silent machine with no noticeable effect on daily usage or CS:GO gaming performance, that’s with 2 Dell U2414H monitors occupying the HDMI and Thunderbolt connectors. I have multiple Chrome tabs open (10+), Slack and other typical CPU hogs running without the CPU fan attempting to rise off the desk.
Here’s how to fix the loud CPU fan on the Dell XPS 15 9550:
Part 1: Turn on passive CPU cooling
Right click the battery icon in the start taskbar
Select Power Options
Click Change plan settings beside the Balanced power plan
Click Change advanced power settings
Expand the Processor power management list
Expand the System cooling policy list
Set the On battery and Plugged in options to Passive
Click OK to save changes
Click Save Changes on the Edit Plan Settings window to save changes
Part 2: Undervolt the CPU 0.100V
Dropping the Core Voltage Offset -0.100 V significantly lowers the thermal profile of the Dell XPS 15 9550.
By default Mazda Connect’s Watchdog service restarts the CMU on any error, to the general public this is a god send as the Watchdog resolves common issues by rebooting the system (e.g. Navi going silent, any screen lock-ups, etc.) but for developers this can have the unintended action of locking us out of SSH access from a simple mistyped character.
Here’s how to turn the Mazda Connect Watchdog service off, keep in mind this command only persists until the Mazda Connect system is rebooted (e.g. after turning the engine off for a short period of time).
echo 1 > /sys/class/gpio/Watchdog\ Disable/value
You can check if the Watchdog service is now inactive by running:
cat /sys/class/gpio/Watchdog\ Disable/value
There are ample instructions online for how to set up the above command to persist even after rebooting but I won’t provide this here.