1. You may have noticed things look a little different around here - we've switched to a new platform (XenForo) and have some new forum styles and features. This how-to guide will help you find your way around. If you find anything that looks strange, post it in this thread.

Linux on the Apple MacBook Pro 5,5 (Summer 2009)

Discussion in 'Linux Compatibility and Software' started by ALLurGroceries, Sep 16, 2009.

Thread Status:
Not open for further replies.
  1. prol91

    prol91 Notebook Consultant

    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    30
    How many watts does you MBP use according to powertop? what scripts and conf u got?
     
  2. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    My reading is all over the place -- I attached a screenshot. Plugged in to mains power, My Kill-A-Watt (meter) says 43-44W.

    I've been using an external mouse, the keyboard backlight is on and I have my brightness up. Bluetooth is off and I'm on Wi-Fi. My battery is on 90% and says 3:45 left (in gnome-power-manager).

    Please see the recommended packages section for the software I'm using.
     

    Attached Files:

  3. prol91

    prol91 Notebook Consultant

    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    30
  4. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    Yeah it's not using that much power that'd be insane. As I said I can stretch it to 4+ hrs if I want to, but usually I'm not on conservative mode.

    When my battery isn't charging my Kill-A-Watt says more like 15-20W. And that's with accessories plugged in like USB hard drives, keyboard and mouse.
     
  5. Lyanowu

    Lyanowu Notebook Consultant

    Messages:
    295
    Likes Received:
    0
    Trophy Points:
    30
    I were thinking about is it possible to use bootcamp to install Linux?
     
  6. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    I don't know about installing using bootcamp first-hand, but there is a guide here. I used rEFIt during the installation process, but I'm using bootcamp now instead of rEFIt to start my machine.

    Edit: Update for new version of pommed which makes the mactel-patched gnome-power-manager obsolete. I've left the removal instructions in case anyone was using the old method.

    Edit 2: Update for NVIDIA 190.40. I got build errors the first time, ran it again and it worked. Not sure why. **

    Edit 3: Update for the LCD brightness section, I had to add nvidia_bl to /etc/modules on my system for it to work after a reboot.

    Edit 4: Update for 2.6.31.5 and NVIDIA 190.42 **(fails for the same reason as .40, must modprobe -r nvidia first).
     
  7. hcmeh

    hcmeh Newbie

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Just wanted to thank you for your guide. I've used debian for 10 years and have been looking for some good news about it on the new 13 inch mbps. Tonite I read through your guide and then I ordered me a macbook pro :).

    I'll be sure to keep an eye on this thread!
     
  8. dirtyjayx

    dirtyjayx Newbie

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Hey mate great guide but i get this error when i try to upgrade to sid:

    Code:
    Calculating upgrade... Failed
    The following packages have unmet dependencies.
      gnome-screensaver: Depends: libgnomekbd2 but it is not going to be installed
                         Depends: libgnomekbdui2 but it is not going to be installed
                         Recommends: rss-glx but it is not going to be installed
                         Recommends: libpam-gnome-keyring but it is not going to be installed
      gnome-settings-daemon: Breaks: gnome-screensaver (< 2.28.0) but 2.22.2-2 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    Any ideas?
     
  9. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    There are unmet dependencies. Try waiting a day or two. You could also try uninstalling the gnome virtual package and then upgrading.
     
  10. dirtyjayx

    dirtyjayx Newbie

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Maybe that's because i used a standard iso and not the netinst, i ll give that a shot
     
  11. graycolor

    graycolor Notebook Evangelist

    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    Does the notebook get hot? Or is it just warm?
     
  12. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    Most of the time it runs cool. It will get warm after extended periods, but you can control the fan manually if it gets too hot.

    Edit: Moved what I posted here into the howto. See the Fan control section.

    Also moved the backlight pommed.conf tweak to the howto.

    Updated the howto for 2.6.32-rc6. Also uploaded a new config for 2.6.31.5.

    Edit 2: How to stop the terribly annoying volume adjustment sound... This will be in the next revision of the guide. Edit /etc/pommed.conf
    Code:
    # Audio support
    audio {
    	# Use amixer or alsamixer/alsamixergui to determine the sound card
    	# and the mixer elements to use here.
    
    	# sound card to use
    	card = "default"
    	# initial volume [80] (0 - 100%, -1 to disable)
    	init = -1
    	# step value (1 - 50%)
    	step = 10
    	# beep on volume change[B]
    	beep = no[/B]
    
     
    Last edited by a moderator: Feb 2, 2015
  13. hcmeh

    hcmeh Newbie

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    I've completed the installation now, and have a few comments and questions.

    First -- everything works! I had some trouble upgrading to sid, just like others in the thread. On my second attempt I didn't install anything from tasksel when I ran the installation. Instead, I ran tasksel and installed desktop, laptop etc *after* the upgrade to sid. This made the installation process much shorter, and I also didn't encounter any problems with the gnome installation.

    I've got a wierd problem though. The wl module won't work if the ssb module is loaded into the kernel. But for some reason I can't seem to blacklist it! I add it to the blacklist, but still it gets loaded. I have to modprobe -r both ssb and wl, and then modprobe wl again, for wireless to work. Any help with this would be greatly appreciated!

    I also have a question about grub. Do I dare do the grub-legacy-update, or should I keep the grub chainloading? All the configuration dialogs nag about mbr, and I'm afraid I'll wipe something out that should remain intact. I'm very far from being tech savvy, so I can't say I really understand how mbr works on the mbp in relation to mac os x. Advice much appreciated!

    Anyway -- I'm sure I'll have other questions eventually :). Thanks a lot for a great guide!

    /hcm
     
  14. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    I'm running grub-efi-amd64 with rEFIt now. Works great! :)

    For ssb loading, make sure there is a 'blacklist ssb' line in your /etc/modprobe.d/blacklist.conf and then run update-initramfs -ut. If that doesn't work let me know :)

    I also installed just the base system from the netinst, I should probably mention this in the guide since there is heavy development going on and the gnome dependencies tend to be broken more than not.

    Thanks for the comments!
     
  15. Cerin

    Cerin Newbie

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    The sound setup seemd to go well, until the also force-reload, which shows a host of errors:

    $ sudo alsa force-reload
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/chris/.gvfs
    Output information may be incomplete.
    Terminating processes: 2095lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/chris/.gvfs
    Output information may be incomplete.
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/chris/.gvfs
    Output information may be incomplete.
    .
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/chris/.gvfs
    Output information may be incomplete.
    Unloading ALSA sound driver modules: snd-hda-codec-cirrus snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-codec-cirrus snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc).
    Loading ALSA sound driver modules: snd-hda-codec-cirrus snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq snd-timer snd-seq-device snd-page-allocFATAL: Error inserting snd_hda_intel (/lib/modules/2.6.31-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    WARNING: Error inserting snd_timer (/lib/modules/2.6.31-14-generic/kernel/sound/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    FATAL: Error inserting snd_seq (/lib/modules/2.6.31-14-generic/kernel/sound/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    FATAL: Error inserting snd_seq_device (/lib/modules/2.6.31-14-generic/kernel/sound/acore/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    (failed).
     
  16. Cerin

    Cerin Newbie

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    Is there anything additional that needs to be done with the wireless to "activate" it? Your setup instructions seemed to have ran flawlessly for me, and the "Hardware Drivers" shows that the "Broadcom STA wireless driver" is installed and active, but network manager doesn't seem to show any wireless interface.
     
  17. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    You've got to be using pulseaudio, on Ubuntu? Stop it and then try again.

    Code:
    sudo /etc/init.d/pulseaudio stop
    or

    Code:
    sudo killall pulseaudio
    I can't help you with a wireless problem without more info. Make sure the ssb and b43 modules aren't in your lsmod for starters.
     
  18. Cerin

    Cerin Newbie

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    @ALLurGroceries

    Thanks! I think that did it. I'm confused why no one bothered to include that important detail in the howto. I also took the initiative to disable the pulseaudio service, and enable the alsa service.

    Now if only I could figure out my wireless...
     
  19. ALLurGroceries

    ALLurGroceries   Super Moderator

    Messages:
    6,814
    Likes Received:
    373
    Trophy Points:
    251
    I wrote the howto for debian so thats why that detail for ubuntu isnt in the guide. On my next revision I will add it. ;)

    For the wireless post the output of sudo lsmod, there may be conflicting modules.
     
  20. Cerin

    Cerin Newbie

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    The original guide I read had me disable the bcm kernel module, and enable the b43 and ssd modules, which supposedly replace it. I fixed my wireless problem by not doing that, since b43 and ssd aren't entirely perfect.
     
Thread Status:
Not open for further replies.

Share This Page