Force MacBook to sleep when lid closed and external monitor connected

To force a MacBook to sleep when closing its lid and while an external monitor is connected:

Manually disconnect the Magsafe or power cable, then close the lid. Wait for the computer to go to sleep and then reconnect the powercable.





Make a bootable pendrive macOS installer

Follow this instructions to put a bootable macOS installer on a memory stick:

1. Download the full size macOS installer


Download macOS from a Mac that is using macOS Sierra 10.12.5 or later, or El Capitan 10.11.6

Get rid of hot pink pixels on a Canon camera sensor

Sometimes image sensors on digital cameras develop stuck or dead pixels. Sometimes showing as a bright pink pixel on the jpg image. Canon cameras and probably other brands too have a function to self repair.


  1. Put a fully charged battery in the camera.
  2. From the Menu (Under Advanced Functions) initiate a "Manual Sensor Cleaning".
  3. Wait for about half a minute, then turn off the camera.


This worked on my Canon 50D

Put shared hard drive to idle on OpenWrt

 There are two applications to put a hard drive to idle in Openwrt:

  1. HDD Idle (hd-idle): This option did not work for me.
  2. HD Parm (hdparm): This option worked perfectly, here is the command to use:

hdparm -S 24 /dev/sdb1

The previous command stops the disk from spinning after 2 minutes.