Posts tagged macbook

Installing Linux on a Macbook

posted on 2015-01-23 13:00:33

During booting your (U)EFI capable USB stick, press ALT. That way you can boot your stick.

A simple CD however will work directly. Do as you like, this took me literally years to find out.

macbook fan control

posted on 2014-11-12 01:43:17

After a while I noticed that the fans kept pretty quiet on my macbook, which seemed rather odd considering the temperature on its underside.

After some googling it seemed that this is a bug, due to nobody ever having cared enough to release proper drivers.

Thanks to the wonderful conveniences of life on github there was help to be found:


sudo aptitude install g++ make lm-sensors

git clone
cd Fan-Control-Daemon
sudo make
sudo make install
sudo make test

After this, the program is installed halfways. To have it properly set up so it starts during boot process, have a look at the readme where it is very well explained for your distro of choice.

To see what is currently up, try: (Ctrl-C to escape)

watch -n.2 sensors

Which will give you your current temps and fan speed:

Adapter: ISA adapter
Core 0:       +55.4 C  (high = +105.0 C, crit = +105.0 C)
Core 1:       +54.0 C  (high = +105.0 C, crit = +105.0 C)

Adapter: PCI adapter
temp1:        +60.0 C  (high = +100. C, crit = +95.0 C)

Adapter: ISA adapter
Exhaust  :   4164 RPM  (min = 2000 RPM, max = 6200 RPM)
TB0T:         +35.5 C
TB1T:         +35.5 C
TB2T:         +33.2 C
TB3T:         +35.8 C
TC0D:         +59.2 C
TC0P:         +53.0 C
TN0D:         +59.2 C
TN0P:         +53.8 C
TTF0:         +65.0 C
Th0H:         +57.8 C
Th1H:         +50.5 C
ThFH:         +50.8 C
Ts0P:         +32.8 C
Ts0S:         +41.5 C

To change the settings, have a look at /etc/mbpfan.conf, here is my current one:

min_fan_speed = 3000    # default is 2000
max_fan_speed = 6200    # default is 6200
low_temp = 50           # try ranges 55-63, default is 63
high_temp = 55          # try ranges 58-66, default is 66
max_temp = 65           # do not set it > 90, default is 86
polling_interval = 7    # default is 7

Maybe the fan speeds are a little too high still, but lets see how battery life changes. Temperature is down by 15 degrees Celsius, which I consider an improvement.

Mac's hidden Fn keys

posted on 2014-11-11 09:14:20

Since the mac keyboards tend to be fancy, there are some keys missing. Or not?

Delete      Fn + Backspace
Insert      Fn + Enter
Page Up     Fn + Uparrow
Page Down   Fn + Downarrow
Home        Fn + Leftarrow
End         Fn + Rightarrow

Apple Fn Keys Switching

posted on 2014-11-10 23:23:25

Usually the F1 to F12 keys are reachable on a mac only via the Fn modifier key. Instead of these the brightness control keys and the like are preferred by default.

Of course I want alt+f4 (where alt is already on left cmd, of course) to work without Fn...

sudo vim /etc/modprobe.d/hid_apple.conf:

options hid_apple fnmode=2

After saving, type this into your shell:

sudo update-initramfs -u

Reboot and revel in awe. :)

Enable wireless module in debian on a Aluminium Macbook (non-pro)

posted on 2014-11-04 21:14:18

Hardware being used:

[sjas@mb ~]$ lspci -nn -d 14e4:
03:00.0 Network controller [0280]: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01)
[sjas@mb ~]$

After some googling i found out which drivers work for this version of the Hardware (mind the brackets stuff and the revision!), and all to do was:

  sudo apt-cache search b43
  sudo apt-get update
  lspci -nn -d 14e4:
  sudo apt-get install firmware-b43-installer
  sudo reboot

MacBook synaptics touchpad linux settings

posted on 2014-11-04 08:21:03

To get some proper settings for your macbook's trackpad after having installed a proper OS on it, try the following synaptics settings.


# all set to '0' previously
# tapping, two fingers = mouse2, three = mouse3 ... 
synclient TapButton1=1
synclient TapButton2=3
synclient TapButton3=2
# ... and palm detection...
synclient PalmDetect=1
# ... and horizontal scrolling
synclient HorizTwoFingerScroll=1

# '30' prior, less touch sensitivity
synclient FingerHigh=50
# '1.75' prior, faster
synclient MaxSpeed=2.25
# '235' prior`, faster
synclient VertScrollDelta=110

To make this work, place this into a script and make sure it will be ran during your login process. (.bashrc, .profile, whatever.) The other option is to put the settings directly into your synaptic config file.

My file in my system is located here:

[sjas@nb ~]$ find /usr/share/X11 -iname '*synaptic*'

And the changes are put in there, accordingly like the other options, i.e.

    Option "TapButton1" "1"
    Option "TapButton2" "3"
    Option "TapButton3" "2"

All this in the config section that actually references your Trackpad.

This blog covers .csv, .htaccess, .pfx, .vmx, /etc/crypttab, /etc/network/interfaces, /etc/sudoers, /proc, 10.04, 14.04, 16.04, AS, ASA, ControlPanel, DS1054Z, GPT, HWR, Hyper-V, IPSEC, KVM, LSI, LVM, LXC, MBR, MTU, MegaCli, PHP, PKI, PS1, R, RAID, S.M.A.R.T., SNMP, SSD, SSL, TLS, TRIM, VEEAM, VMware, VServer, VirtualBox, Virtuozzo, XenServer, acpi, adaptec, algorithm, ansible, apache, apache2.4, apachebench, apple, applet, arcconf, arch, architecture, areca, arping, asa, asdm, autoconf, awk, backup, bandit, bar, bash, benchmarking, binding, bitrate, blackarmor, blockdev, blowfish, bochs, bond, bonding, booknotes, bootable, bsd, btrfs, buffer, c-states, cache, caching, ccl, centos, certificate, certtool, cgdisk, cheatsheet, chrome, chroot, cisco, clamav, cli, clp, clush, cluster, cmd, coleslaw, colorscheme, common lisp, configuration management, console, container, containers, controller, cron, cryptsetup, csync2, cu, cups, cygwin, d-states, database, date, db2, dcfldd, dcim, dd, debian, debug, debugger, debugging, decimal, desktop, df, dhclient, dhcp, diff, dig, display manager, dm-crypt, dmesg, dmidecode, dns, docker, dos, drivers, dtrace, dtrace4linux, du, dynamictracing, e2fsck, eBPF, ebook, efi, egrep, emacs, encoding, env, error, ess, esx, esxcli, esxi, ethtool, evil, expect, exportfs, factory reset, factory_reset, factoryreset, fail2ban, fakeroot, fbsd, fdisk, fedora, file, files, filesystem, find, fio, firewall, firmware, fish, flashrom, forensics, free, freebsd, freedos, fritzbox, fsck, fstrim, ftp, ftps, g-states, gentoo, ghostscript, git, git-filter-branch, gitbucket, github, gitolite, global, gnutls, gradle, grep, grml, grub, grub2, guacamole, hardware, haskell, hdd, hdparm, hellowor, hex, hexdump, history, howto, htop, htpasswd, http, httpd, https, i3, icmp, ifenslave, iftop, iis, imagemagick, imap, imaps, init, innoDB, innodb, inodes, intel, ioncube, ios, iostat, ip, iperf, iphone, ipmi, ipmitool, iproute2, ipsec, iptables, ipv6, irc, irssi, iw, iwconfig, iwlist, iwlwifi, jailbreak, jails, java, javascript, javaws, js, juniper, junit, kali, kde, kemp, kernel, keyremap, kill, kpartx, krypton, lacp, lamp, languages, ldap, ldapsearch, less, leviathan, liero, lightning, links, linux, linuxin3months, lisp, list, livedisk, lmctfy, loadbalancing, locale, log, logrotate, looback, loopback, losetup, lsblk, lsi, lsof, lsusb, lsyncd, luks, lvextend, lvm, lvm2, lvreduce, lxc, lxde, macbook, macro, magento, mailclient, mailing, mailq, make-jpkg, manpages, markdown, mbr, mdadm, megacli, micro sd, microsoft, minicom, mkfs, mktemp, mod_pagespeed, mod_proxy, modbus, modprobe, mount, mouse, movement, mpstat, multitasking, myISAM, mysql, mysql 5.7, mysql workbench, mysqlcheck, mysqldump, nagios, nas, nat, nc, netfilter, networking, nfs, nginx, nmap, nocaps, nodejs, numberingsystem, numbers, od, onyx, opcode-cache, openVZ, openlierox, openssl, openvpn, openvswitch, openwrt, oracle linux, org-mode, os, oscilloscope, overview, parallel, parameter expansion, parted, partitioning, passwd, patch, pct, pdf, performance, pfsense, php, php7, phpmyadmin, pi, pidgin, pidstat, pins, pkill, plasma, plesk, plugin, posix, postfix, postfixadmin, postgres, postgresql, poudriere, powershell, preview, profiling, prompt, proxmox, ps, puppet, pv, pveam, pvecm, pvesm, pvresize, python, python3, qemu, qemu-img, qm, qmrestore, quicklisp, quickshare, r, racktables, raid, raspberry pi, raspberrypi, raspbian, rbpi, rdp, redhat, redirect, registry, requirements, resize2fs, rewrite, rewrites, rhel, rigol, roccat, routing, rs0485, rs232, rsync, s-states, s_client, samba, sar, sata, sbcl, scite, scp, screen, scripting, seafile, seagate, security, sed, serial, serial port, setup, sftp, sg300, shell, shopware, shortcuts, showmount, signals, slattach, slip, slow-query-log, smbclient, snmpget, snmpwalk, software RAID, software raid, softwareraid, sophos, spacemacs, spam, specification, speedport, spi, sqlite, squid, ssd, ssh, ssh-add, sshd, ssl, stats, storage, strace, stronswan, su, submodules, subzone, sudo, sudoers, sup, swaks, swap, switch, switching, synaptics, synergy, sysfs, systemd, systemtap, tar, tcpdump, tcsh, tee, telnet, terminal, terminator, testdisk, testing, throughput, tmux, todo, tomcat, top, tput, trafficshaping, ttl, tuning, tunnel, tunneling, typo3, uboot, ubuntu, ubuntu 16.04, ubuntu16.04, udev, uefi, ulimit, uname, unetbootin, unit testing, upstart, uptime, usb, usbstick, utf8, utm, utm 220, ux305, vcs, vgchange, vim, vimdiff, virtualbox, virtualization, visual studio code, vlan, vmstat, vmware, vnc, vncviewer, voltage, vpn, vsphere, vzdump, w, w701, wakeonlan, wargames, web, webdav, weechat, wget, whois, wicd, wifi, windowmanager, windows, wine, wireshark, wpa, wpa_passphrase, wpa_supplicant, x11vnc, x2x, xfce, xfreerdp, xmodem, xterm, xxd, yum, zones, zsh

Unless otherwise credited all material Creative Commons License by sjas