Using a MacBook with the lid closed

Here’s a solution for forcing your MacBook to stay awake even with the lid closed.

Why would anyone want to do this? Well you might want to use your MacBook as a server in a headless configuration.

Apple has a support article about this, but it didn’t work well for me and I found this to be a more reliable solution.

Download the Insomnia kernel extension, extract it from the ZIP archive and copy it to your system extensions folder:

/bin/cp -a Insomnia_r6.kext /System/Library/Extensions
/usr/sbin/chown -R root:wheel /System/Library/Extensions/Insomnia_r6.kext
/sbin/kextload /System/Library/Extensions/Insomnia_r6.kext

You will only need to use the commands above the first time you use this module. After that it will load automatically on startup.

To disable MacBook sleeping: /usr/sbin/sysctl -w kern.lidsleep=1

To re-enable MacBook sleeping: /usr/sbin/sysctl -w kern.lidsleep=0

To check status: /usr/sbin/sysctl kern.lidsleep

Return value:

0 = Insomnia is not active (i.e. MacBook will sleep when the lid is closed)

1 = Insomnia is active (i.e. MacBook will not sleep when the lid is closed)

-1 = Insomnia kernel module is not loaded

Google Notifier for Mac

Having discovered the Google Notifier for Mac application which checks Gmail email and calendar events without having to open a browser, I wanted to change the default polling interval. This isn’t something that can be changed through a settings menu, so if you want to do the same here’s how:

  • Click on the Google Notifier icon in the menu bar
  • Press & hold the Option (alt) + Command (cmd) keys, then click on Preferences
  • A pop-up Defaults Editor box will appear
  • In the Key field type in AutocheckInterval
  • In the Value field enter the desired check interval (in minutes)
  • Close the Defaults Editor box

Alternatively add or edit the AutocheckInterval string in ~/Library/Preferences/ using Property List Editor.

Quit all Google Notifiers and restart for the new settings to take effect.

Samba copy fails after upgrade to Mac OS X 10.6.3

Ever since upgrading to Mac OS X 10.6.3 I had been unable to copy files from my MacBook to a Linux Samba share, which had previously worked flawlessly. The file copy would fail and Finder displayed the error message: “The operation can’t be completed because you don’t have permission to access some of the items” or “The Finder can’t complete the operation because some data in xxx can’t be read or written. (Error code -36)”.ErrorI found several articles suggesting solutions, the only one that eventually worked for me was to add the line “unix extensions = no” to the [global] settings of the smb.conf file on the Linux server. After a restart of the SMB processes file copying is working again.

Thanks for all the time I wasted on resolving this one Apple!

Technika Smartbox 8320HD software builds

Software Update

Here’s a list of the software updates for the Technika Smartbox 8320HD and the bugs addressed in each build.

v4.7.47-10 (04/05/2010)

Launch build. IP Vision claim this was “an incorrect software version” installed due to “an error in the manufacturing process” – yeah, right!

v4.7.48-08 (07/06/2010)

  • the issue of loss of audio while playing back recorded HD programmes or timeshifted HD programmes will be resolved
  • when the SmartBox is in lower-power standby, the internal fan will be stopped

v4.7.48-09 (08/06/2010)

  • an issue with the remote control sensitivity (auto repeat too quick)

v4.7.48-11 (10/06/2010)

  • OK key show INFO bar rather than toggle pause/play

v4.7.48-16 (21/06/2010)

  • Pause key allows video to be paused (timeshift and video player)
  • PiP key shows last viewed channel and allows switching back to it
  • Improvements to recordings management and playback when handling multiple recordings
  • New “recordings todo” list to list upcoming scheduled recordings and series linking

    Technika Smartbox 8320HD

    Here’s the low down on the new Technika Smartbox 8320HD sold exclusively by Tesco.

    The box is made by IP Vision (UK), the company behind the Fetch TV service brand. The hardware technology inside the box is based on the Netbox N8000 series of digital set top boxes from Netgem.

    Below are some problems I have encountered to date and recommended solutions:

    How do I use the Smartbox 8320HD with a Logitech Harmony universal remote control?

    • In the Logitech Harmony Remote Software choose Cable/Satellite Box > Digital Set Top Box > Manufacturer: Netgem > Model: N-7680

    Problems with the remote control skipping two lines at a time when you use the navigation buttons?

    • If you have a Harmony remote, go into the Logitech Harmony Remote Software and select the Netgem device, then ‘Troubleshoot’ > ‘Netgem responds to some commands either too many times or only occasionally’ > ‘0’

    The message “This programme requires HDCP, but your HDTV doesn’t seem to support it” appears on the TV screen when attempting to view HD channels:

    • Power off the Smartbox and all devices connected to it, including the TV and any intermediate A/V equipment connected via HDMI. Power them all back on again after a couple of minutes.

    Smartbox goes into standby mode every night, even when ‘Screensaver timeout’, ‘Auto standby delay’ and ‘Energy savings delay’ are all set to ‘disabled’ in the display preferences:

    • Response from FetchTV support 17/06/2010 – “Unfortunately it is not possible to stop the box from going into stand-by mode whilst it is not in use.”

    Will I be keeping my Smartbox? Well surprisingly yes I think I will. Despite the bugs and multiple software updates, this box has the potential to be rather great. The integration of iPlayer and SkyPlayer is slick and for the money and features there is nothing to compare with it.


    • The problem with the remote control has been addressed in the v4.7.48-09 software.
    • Tesco have withdrawn the 8320HD from sale