Posts Tagged ‘linux 3.10’

Mac Book Pro 6,2 fans setup on Linux 3.10 and Debian Unstable

julio 28, 2013

Once again trying to setup my system so that I can use Linux 3.10 without too much hassle. Now it’s the turn for the fans. Since I used Linux 3.10 I noticed the fans were more noisy than before.

So in order to add fan setup first you need to install macfanctld from mactel-support ppa. I used the raring version.

So I’ve added the:


file so that their contents are:

 deb raring main

. This way I can install macfanctld with:

 apt-get update
 apt-get install macfanctld

and as I don’t want to get more problems when apt-get dist-upgrading I just disable the new repo by commenting the line.

Now I noticed that the fan setup was still noisy. Finally I found at Ubuntu Linux en un macbook pro a working setup that was not so noisy.

Basically what you have to do is edit:


and make sure that you replace these lines:

temp_avg_floor: 55 #45
temp_avg_ceiling: 65 #55

temp_TC0P_floor: 55 #50
temp_TC0P_ceiling: 65 #58

temp_TG0P_floor: 55 #50
temp_TG0P_ceiling: 65 #58

Once you have edited you only have to restart macfanctl daemon just like:

service macfanctld restart

and the noise gets down (if your laptop is cold enough of course).

Anuncio publicitario

Keyboard backlight brightness on Mac Book Pro 6,2 – Linux 3.10

julio 28, 2013

In the past I didn’t manage to make Keyboard backlight to work. It wasn’t turned on at all. When I updated to two or three months ago Debian Unstable the Keyboard backlight began to work at 100%. It was annoying but I didn’t want to waste my time in that.

Now I have invested some time on controlling that brightness. The article is mainly based on Ubuntu explanation on how to use Keyboard backlight without using pommed. Their zenity based script that let you choose the prefered brightness didn’t convince me.

So based on former screen brightness control script here there is a new one.

Its filename is:


and its content is:


# Adapted from
# Script for changing backlight brightness in /sys/class/backlight/acpi_video0/brightness
# can take values 0-15, in real (my notebook) works only values 2-15

#IMPORTANT: you must have writing rights to /sys/.../brightness (I must solute it with visudo or something like that...)
#IMPORTANT: for proper work after reboot must exist directory .bright in your home directory and file last_bright in .bright directory 

#reads content of brightness and save it into variable


while getopts "pmlhc" optname
  case "$optname" in
    #Add more brightness
    #protect mechanism (BRIGHT must be lower or equal to 15)
     if (($BRIGHT>255))
    #decrease brightness
    #protect mechanism (BRIGHT must be bigger or equal to 2)
     if (($BRIGHT<0))
      then         BRIGHT=$((0))
      fi         ;; 
     "l")     echo "Loading last value of brightness."     #Load last value, saved in file last_bright     
     BRIGHT=$(cat ${LAST_BRIGHT_FILE})     
     echo "Last value of brightness was: $BRIGHT"     ;;    
     "h")      echo "Help: "      
               echo "-p    Increase brightness"      
               echo "-m    Decrease brightness"      
               echo "-l    Load last brightness value"      
               echo "-c N Set to custom value"      
               echo "-h    This help"      
               echo "Programmed by: ElectricZero"      
               echo "Improved by: adrian15"      
               exit 0;      ;;     
       "c")      BRIGHT=$2      
         if (($BRIGHT>255))

     if (($BRIGHT<0))      
     fi      ;;     
     "?")      echo "Unknown argument, try bright -h for help"      
               exit 1;      ;;     
     *)     # Should not occur     
      echo "Unknown error while processing options"     
      exit 2;     ;;   
      echo "Brightness set on $BRIGHT" 
     #Save variable BRIGHT into file brightness 
     #Save variable BRIGHT into file last_bright
    if [ ! -d ${BRIGHT_CONF_DIR} ] ; then mkdir ${BRIGHT_CONF_DIR} ; fi

as you might see there are some changes. Now I don’t mind having a 0 value because I actually want the keyboard not to bright at all. That’s different from an screen when you don’t want to miss it as a turned off one or non working one.

I have modified the script as always so that with only 15 types I can go from turned off to turned on at maximum brightness.

Then we need sudo so that we can run it as normal user.

So we edit sudo with the command:

sudoedit /etc/sudoers

so that we add:

normaluser ALL= NOPASSWD:/usr/local/bin/custom-keyboardlight-macbookpro

to it.

Now in my case as I use KDE I needed to setup its shortcuts to use it.

  • Preferences
  • Shortcuts and gestures
  • Custom Shortcuts



  • Right click and select New group which we will name: Keyboard brightness

Now we are going to setup the Increase Keyboard brightness shortcut.

  • Right click on Keyboard brightness
  • New
  • Global shortcut
  • Order / Url

so that we inform:

  • Name of the shorcut: Increase Keyboard brightness
  • Launcher tab: Short cut. I click on None and then I type «Increase keyboard brightness» button.
  • Action tab. Order / Url: sudo /usr/local/bin/custom-keyboardlight-macbookpro -p

Now we are going to setup the Decrease Keyboard brightness shortcut.

  • Right click on Keyboard brightness
  • New
  • Global shortcut
  • Order / Url

so that we inform:

  • Name of the shorcut: Decrease Keyboard brightness
  • Launcher tab: Short cut. I click on None and then I type «Decrease keyboard brightness» button.
  • Action tab. Order / Url: sudo /usr/local/bin/custom-keyboardlight-macbookpro -m


Now we just nee to make sure they are activated so that both of these shortcuts have ticks on them.


And that’s it you can control Keyboard brightness from your keyboard.

I think that I might even run: /usr/local/bin/custom-keyboardlight-macbookpro -p at kde start so that old keyboard value persists. Why? Because the default value is the backlight being on 100% while I prefer it to be turned off.

BCM5974 trackpad with Linux Kernel 3.10

julio 27, 2013

As you might know I was using a patched Linux Kernel 3.2 so that my integrated Intel card was used as default. So, here’s the strange thing, although I’m not setting up BCM5974 through xorg.conf (because there’s no xorg.conf file) it seems that booting into the system by Linux Kernel 3.2 or Linux Kernel 3.10 has different behaviour.

When using Linux Kernel 3.10 if I want to right-click I need to tap with two fingers but these two fingers need to be very close one from another. The same thing happens when you want to paste some text, that is middle click. You need to tap with three fingers and these three fingers need to be very close.

Broadcom BCM43224 in Linux Kernel 3.10

julio 27, 2013

When updating to latest Debian Unstable I had the possibility of using Linux Kernel 3.10. However wifi was not working because of Debian wl driver (broadcom-sta) being based on official Broadcom driver.

The old way of using it that I described when I used Linux Kernel 3.2 was no longer working because source code had not been adapted to newest Linux Kernel versions.


I had already described this same problem when I tried to use Linux Kernel 3.8.

I was checking arch forum about this issue and they pointed me to Ubuntu where it seems the bcmwl package is the equivalent one for the Debian’s broadcom-sta* ones.

So I went to Ubuntu package bcmwl page and I downloaded most recent package which was the raring one : bcmwl-kernel-source in amd64 (Release) .

Once I had downloaded the package I just had to install it as another package.  That builds the newest wl code for all the kernels. I suppose I will need to remove broadcom-sta package so that if I dist-upgrade I don’t get any problem.

dpkg -i bcmwl-kernel-source_6.30.223.30+bdcom-0ubuntu3_amd64.deb


Linux Kernel 3.10 and Wifi. That’s great! Let’s hope that in the future Debian includes open source driver so that we can use it without no restriction.  For the record I submitted a bug about this broadcom open source driver.