Sharedwww / macbook / ubuntu_forum_post.htmlOpen in CoCalc
Author: William A. Stein
This is G o o g l e's cache of http://www.ubuntuforums.org/showthread.php?t=198453 as retrieved on Jul 18, 2006 23:45:46 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:lUdjdy21IRAJ:www.ubuntuforums.org/showthread.php%3Ft%3D198453+ubuntuforums+macbook+198453&hl=en&gl=us&ct=clnk&cd=1&client=opera


Google is neither affiliated with the authors of this page nor responsible for its content.
These search terms have been highlighted: ubuntuforums macbook 
These terms only appear in links pointing to this page: 198453

Ubuntu on MacBook Pro - Ubuntu Forums

Go Back   Ubuntu Forums > Dapper Drake 6.06 Release > General Support > Macintosh/Apple/PPC/Intel Users

Macintosh/Apple/PPC/Intel Users The place to discuss your Ubuntu Macintosh/Apple/PPC/Intel questions (including the Ibook, PowerBook, MacBook and MacBook Pro).

 
 
Thread Tools
 
Old 4 Weeks Ago
phico phico is offline
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 32
Default Ubuntu on MacBook Pro

MacBook Pro Linux
Here is some installation notes .. rather a compilation of what I found on the internet
+ configuration of french / belgian-fr keyboard
+ a nice desktop theme

Thanks to rapido, gendo and JDR for their feedback and
to Nicolas Boichat for his keyboard backlight driver

For more information :

http://www.mactel-linux.org/wiki/Main_Page
http://modular.math.washington.edu/macbook/
http://modular.math.washington.edu/macbook/triboot/
http://bin-false.org/?p=17
http://desrt.mcmaster.ca/macbook.xhtml
http://wiki.onmac.net/index.php/Trip...t_via_BootCamp
http://www.ethicalhack.org/howto/triple_boot_howto.html
http://wiki.cchtml.com/index.php/Ubu...allation_Guide
http://wiki.cchtml.com/index.php/Xgl-Compiz-Dapper

MacOsX Installation
  1. Install MacOsX pro with a minimum of features. It may be useful for firmware update or hardware check ..
  2. Boot on MacOsX CD holding �c� key
  3. Follow installation instruction.

BootMenu installation

1.Boot on MacOsX
2.Install bootcamp
3.Install rEFIt (http://refit.sf.net)
  • unzip
  • copy to root directory
  • run sh enable-always script

Partionning

In a MacosX terminal, partition the disc :
Code:
sudo diskutil resizeVolume disk0s2 7G Linux "Linux" XXG
where XX is the remaining size of your disk

That sets 7G for MacOsX and the rest for Linux

Install Linux Ubuntu
  • Boot on Ubuntu drapper live cd
  • Click install on disk in Ubuntu
  • Choose a manual partition : (2Gb of swap and the rest for filesystem)
    do not erase efi 200M partition
  • define mount :
    • do not mount /mount/EFI (select white item in list)
    • /dev/sda3 => swap
    • /dev/sda4 => /
  • Grub installation fails at the end, just ignore it.
  • Open a terminal : Terminal 1 (the following comes from http://bin-false.org/?p=17 )
    Quote:
    sudo su
    mkdir /mnt/ubuntu
    mount /dev/sda4 /mnt/ubuntu/
    mount -t proc none /mnt/ubuntu/proc
    mount -o bind /dev /mnt/ubuntu/dev
    chroot /mnt/ubuntu /bin/bash
    apt-get install lilo lilo-doc linux-686-smp linux-restricted-modules-2.6.15-23-686 linux-kernel-headers
  • create /etc/lilo.conf
    Add this content:

    Code:
    boot=/dev/sda4 default=Linux map=/boot/map delay=20 image=/vmlinuz initrd=/initrd.img root=/dev/sda4 label=Linux read-only
  • Open a second terminal : Terminal 2
    Code:
    sudo parted print set(4) boot on quit
  • Go back to Terminal 1
    Quote:
    lilo -b /dev/sda
    exit
    umount /mnt/ubuntu/proc
    umount /mnt/ubuntu/dev
    umount /mnt/ubuntu
  • Reboot
  • Go in the rEFIt partition editor and synchronize MBR
  • Choose linux in rEFIt menu

Ubuntu configuration

Video

Configure Xorg.conf
Copy xorg.conf from http://modular.math.washington.edu/macbook/xorg.conf
to /etc/X11 directory

Modify all occurences of 1440x900 to 1680x1050 in xorg.conf if you have a MacBook pro 17�

Install ATI drivers :
The following was suggested by Gendo and comes from :
http://wiki.cchtml.com/index.php/Ubu...allation_Guide
disable fglrx module : sudo vi /etc/default/linux-restricted-modules-common
Quote:
DISABLED_MODULES="fglrx"
download drivers from ATI web site and follow this install :
Code:
wget http://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.26.18-x86.run sudo apt-get update sudo apt-get install module-assistant build-essential sudo apt-get install fakeroot dh-make debconf libstdc++5 gcc-3.3-base chmod +x ati-driver-installer-8.26.18-x86.run ./ati-driver-installer-8.26.18-x86.run --buildpkg Ubuntu/dapper sudo dpkg -i xorg-driver-fglrx_8.26.18-1_i386.deb sudo dpkg -i fglrx-kernel-source_8.26.18-1_i386.deb sudo dpkg -i fglrx-control_8.26.18-1_i386.deb sudo rm /usr/src/fglrx-kernel*.deb sudo module-assistant prepare,update sudo module-assistant build,install fglrx sudo depmod -a sudo aticonfig --initial sudo aticonfig --overlay-type=Xv
reboot and check with :
Code:
fglrxinfo
you should have :
Code:
display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: ATI Mobility Radeon X1600 Generic OpenGL version string: 2.0.5879 (8.26.18)


XGL/compiz installation

If you want to go further and install compiz and XGL
go to that other link :
http://wiki.cchtml.com/index.php/Xgl-Compiz-Dapper
(thanks to Gendo for that suggestion)

After XGL compiz installation :

- add the startcompiz script to the session start program (System>Preferences>Sessions | Startup Programs)

- install gset-compiz and discover what are the features and key shortcuts ...
Quote:
sudo apt-get install gset-compiz
gset-compiz

DVI Output

- Install ATI drivers as above
- Install fglrx package with synaptic
- run ATI config (either from ATI menu or sudo aticonfig)
- configure a clone or large desktop
for example :
Quote:
sudo aticonfig -f --initial=dual-head --screen-layout=right
- restart X (ctrl-alt-backspace)


Audio

Install latest Ubuntu kernel 2.6.15-25
relaunch lilo and reboot
Code:
sudo lilo -b /dev/sda
You should hear Ubuntu login sound
(It seems to work only on MBP17" not on MBP15"...
for MBP15" follow the trick given by Gendo here :
http://www.ubuntuforums.org/showpost...5&postcount=39 )

I still have two issues however :
- when headset is plugged in jack, I can hear the sound in both headset AND speakers ?!
- neither headset microphone nor internal microphone are working

Wireless
(the following comes from http://bin-false.org/?p=17 )
  • modprobe new_wlan_scan_sta
  • Run synaptic
  • search for network manager
  • install network manager daemon and network manager gnome
It works out of the box on my MacBook with my hotspot. Some people seems to have problems with some wifi routers however.

Screen brightness
(the following comes from http://modular.math.washington.edu/macbook/)
To control backlight with key pressed, you can use a program
developed by alexinfurs available here :
http://ubuntuforums.org/showthread.php?t=215801

Keyboard Backlight

Nicolas Boichat found how to control keyboard backlight.
Download code from :
http://www.boichat.ch/nicolas/macbook-tools/
Build it.
sudo ./applesmc 255
to turn light on
sudo ./applesmc 0
to turn light off

works on MBP 17


Keyboard

Method 1 : using Xmodmap:
With this method you need to start xmodmap script when the session start
but it is easier to modify special keys.

copy the xmodmap to a custom one :
Quote:
sudo cp /usr/share/xmodmap/xmodmap.be /usr/share/xmodmap/xmodmap.mbp.be
edit that file and change special keys definition
Especially to have an "AltGr" key and a "Delete" key ..
I redefined many other keys to have a full feature keyboard.

You can change it yourself :
- to find a keycode : launch xev and hit the key
- to get the command keyword : look at this website : http://wiki.linuxquestions.org/wiki/List_of_keysyms
(After a keycode, you can put 4 keyword : "normal key keyword" "shift key keyword" "altgr key keyword" "shift algr key keyword"
for example : a A � @)

Then start xmodmap by :
Code:
xmodmap /usr/share/xmodmap/xmodmap.mbp.be

Put it somewhere so that it is loaded automatically

Here is my french - belgian/fr xmodmap file :

Code:
clear Mod1 clear Mod2 ! keycode 8 = keycode 9 = Escape keycode 10 = ampersand 1 bar brokenbar keycode 11 = eacute 2 twosuperior onehalf keycode 12 = quotedbl 3 threesuperior threequarters keycode 13 = apostrophe 4 braceleft onequarter keycode 14 = parenleft 5 braceleft keycode 15 = section 6 asciicircum keycode 16 = egrave 7 keycode 17 = exclam 8 keycode 18 = ccedilla 9 braceleft keycode 19 = agrave 0 braceright keycode 20 = parenright degree braceright keycode 21 = minus underscore keycode 22 = BackSpace Delete Delete keycode 23 = Tab keycode 24 = a keycode 25 = z keycode 26 = e E EuroSign keycode 27 = r R registered keycode 28 = t keycode 29 = y keycode 30 = u keycode 31 = i keycode 32 = o O at keycode 33 = p keycode 34 = dead_circumflex dead_diaeresis bracketleft keycode 35 = dollar asterisk bracketright EuroSign keycode 36 = Return keycode 37 = Control_L keycode 38 = q keycode 39 = s keycode 40 = d keycode 41 = f keycode 42 = g keycode 43 = h keycode 44 = j keycode 45 = k keycode 46 = l keycode 47 = m keycode 48 = ugrave percent dead_acute keycode 49 = less greater backslash !twosuperior threesuperior keycode 50 = Shift_L keycode 51 = backslash sterling dead_grave mu keycode 52 = w keycode 53 = x keycode 54 = c C copyright keycode 55 = v keycode 56 = b keycode 57 = n N asciitilde keycode 58 = comma question dead_cedilla keycode 59 = semicolon period keycode 60 = colon slash Multi_key keycode 61 = equal plus plusminus keycode 62 = Shift_R keycode 63 = KP_Multiply keycode 64 = Alt_L keycode 65 = space keycode 66 = Caps_Lock keycode 67 = F1 F11 keycode 68 = F2 F12 keycode 69 = F3 F13 keycode 70 = F4 F14 keycode 71 = F5 F15 keycode 72 = F6 F16 keycode 73 = F7 F17 keycode 74 = F8 F18 keycode 75 = F9 F19 keycode 76 = F10 F20 keycode 77 = Num_Lock keycode 78 = Scroll_Lock keycode 79 = KP_7 keycode 80 = KP_8 keycode 81 = KP_9 keycode 82 = KP_Subtract keycode 83 = KP_4 keycode 84 = KP_5 keycode 85 = KP_6 keycode 86 = KP_Add keycode 87 = KP_1 keycode 88 = KP_2 keycode 89 = KP_3 keycode 90 = KP_0 keycode 91 = KP_Decimal keycode 92 = 0x1007ff00 keycode 93 = keycode 94 = at numbersign ! less greater backslash keycode 95 = F11 keycode 96 = F12 keycode 97 = Home keycode 98 = Up Up Prior keycode 99 = Prior keycode 100 = Left Left Home keycode 101 = Begin keycode 102 = Right Right End keycode 103 = End keycode 104 = Down Down Next keycode 105 = Next keycode 106 = Insert keycode 107 = Delete keycode 108 = Delete keycode 109 = Control_R keycode 110 = Pause keycode 111 = Print keycode 112 = KP_Divide keycode 113 = Mode_switch keycode 114 = Break keycode 115 = Mode_switch keycode 116 = Mode_switch keycode 117 = Multi_key add Mod1 = Alt_L add Mod2 = Mode_switch


Method 2 : changing symbol map:


This is for International keyboard (french - belgian/fr ) but
you could adapt it easily to your keyboard

Define your keyboard in xorg.conf
and configure right apple key to alt-gr

Code:
Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbLayout" "be" Option "XkbModel" "pc104" Option "XkbOptions" "lv3:rwin_switch" EndSection

I had to reconfigure some keys that were not properly defined even with macintosh layout (@#,<>..).

I also made some custom changes to access development keys easily :
  • Alt-Gr < gives {
  • Shift AltGr > gives }
  • AltGr ( gives [
  • Shift AltGr ) gives ]
  • mu key gives \

Here is the hacked part of my /etc/X11/xkb/symbols/be :
Code:
partial default alphanumeric_keys xkb_symbols "basic" { include "latin" name[Group1]="Belgium"; key <AE01> { [ ampersand, 1, bar, exclamdown ] }; key <AE02> { [ eacute, 2, at, oneeighth ] }; key <AE03> { [ quotedbl, 3, numbersign, sterling ] }; key <AE04> { [apostrophe, 4, onequarter, onehalf ] }; key <AE05> { [ parenleft, 5, bracketleft, threeeighths ] }; key <AE06> { [ section, 6, asciicircum, fiveeighths ] }; key <AE07> { [ egrave, 7, braceleft, seveneighths ] }; key <AE08> { [ exclam, 8, bracketleft, trademark ] }; key <AE09> { [ ccedilla, 9, braceleft, plusminus ] }; key <AE10> { [ agrave, 0, braceright, degree ] }; key <AE11> { [parenright, degree, bracketright, questiondown ] }; key <AE12> { [ minus, underscore, dead_cedilla, dead_ogonek ] }; key <AD01> { [ a, A, at, Greek_OMEGA ] }; key <AD02> { [ z, Z, lstroke, Lstroke ] }; key <AD03> { [ e, E, EuroSign, cent ] }; key <AD11> { [dead_circumflex, dead_diaeresis, bracketleft, dead_abovering ] }; key <AD12> { [ dollar, asterisk, EuroSign, dead_macron ] }; key <AC01> { [ q, Q, ae, AE ] }; key <AC10> { [ m, M, dead_acute, dead_doubleacute ] }; key <AC11> { [ ugrave, percent, dead_acute, dead_caron ] }; key <LSGT> { [ at, numbersign, twosuperior, threesuperior ] }; key <BKSL> { [ backslash, sterling, dead_grave, dead_breve ] }; key <AB01> { [ w, W, guillemotleft, less ] }; key <AB07> { [ comma, question, dead_cedilla, masculine ] }; key <AB08> { [ semicolon, period, horizconnector, multiply ] }; key <AB09> { [ colon, slash, periodcentered, division ] }; key <AB10> { [ equal, plus, dead_tilde, dead_abovedot] }; key <TLDE> { [ less, greater, braceleft, braceright ] };

Configure special keys

Todo : fn keys are not catchable event ...
  • Install keylaunch with synaptic and put in in xinitrc script
  • go to your home directory and create a file .keylaunchrc
  • add this to the file :

Code:
key=.*.F2:backlight +10 key=.*.F1:backlight -10

Atlernatively, for backlight control, you can use a programm
developped by alexinfurs availabel here :
http://ubuntuforums.org/showthread.php?t=215801

Bluetooth

I was able to send/receive files via bluetooth with a SE P910 phone.

Install bluetooth packages : gnome or kde depending of what you like
(gnome-bluetooth, kdebluetooth, bluesutil..) they are both working.
Also obex libraries (qobex, libopenobex)

For gnome users :
Launch System>Preference>Bluetooth manager
Meneu Device>Scan ... you should see your phone

On the phone search devices, you should see you computer

Launch Applicarions>Accessoires>Bluetooth File Sharing

Phone to computer :
Send a file from the phone to the computer. A confirmation popup
is launched and the file is in your home directory !

Computer to phone:
Right click a file, send to, select your device.. that works

Touchpad

I could configure touchpad right click with mouseemu but after each right click it freezes ..
If anybody find out how to get it working please give us feedback.

Install mouseemu (with synaptic or apt-get --install mouseemu)
Edit config file:
Quote:
sudo vi /etc/default/mouseemu

Add that content :

Quote:
MID_CLICK="-middle 56 272" # Alt + mouse click = middle click
RIGHT_CLICK="-right 464 272" # Fn + mouse click = right click
SCROLL="-scroll 87" # F11 + mouse movement
TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress

Restart mouseemu :

Quote:
sudo /etc/init.d/mouseemu restart

Requested by JDR. Any idea ?

External Mouse

A little bit out of scope but I manage to get my Logitech MX510
side button working with this in the xorg.conf :
Code:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "false" Option "Buttons" "5" Option "ZAxisMapping" "4 5" Option "ButtonMapping" "1 2 3 6 7" Option "Resolution" "800" EndSection
(source http://www.ubuntuforums.org/showthread.php?t=150116 )\



WebCam

I did not succeed yet .. any idea ? Is it a Isight ?

Acces MacOsX partition

You can still acess (in read only mode) your MacOsX partition as this :

Quote:
sudo mkdir /mnt/mac
mount -t hfsplus /dev/sda2 /mnt/mac
cd /mnt/mac

Desktop
Finally .. find a suitable desktop for such a great OS on a great Machine !

I built mine on the theme : " Tux the pingouin crunched the apple "

It is based on HumanBlue, HumanAzul, Tux-Mania GDM and a Tux screenshot comming from
http://www.gnome-look.org

To get rid of brown background while starting, change background color in /etc/gdm.conf
( BackgroundColor=#5B5B5B instead of BackgroundColor=#2b0600 )

(See pictures in attachments)
Attached Images
File Type: jpg TuxApplePhoto.jpg (501.7 KB, 155 views)
File Type: png TuxAppleScreenShot.png (195.7 KB, 112 views)

Last edited by phico : 3 Hours Ago at 04:42 PM.
 
Old 4 Weeks Ago
Wanderer2005 Wanderer2005 is offline
First Cup of Ubuntu
 
Join Date: Jun 2006
Bean Count Hidden
Default Re: Ubuntu on MacBook Pro

Great post! Just what I needed before buying my Mac!
 
Old 4 Weeks Ago
rapido rapido is offline
First Cup of Ubuntu
 
Join Date: Jun 2006
Bean Count Hidden
Default Re: Ubuntu on MacBook Pro

Thanks for the great thread. Audio was a big hangup for me. After updating to 2.6.15-25, I get sound out of the headphone jack only. But no audio out of the internal speaker(s).

Any ideas?
 
Old 4 Weeks Ago
rapido rapido is offline
First Cup of Ubuntu
 
Join Date: Jun 2006
Bean Count Hidden
Default Re: Ubuntu on MacBook Pro

Could you grep through any sound/alsa settings in /etc/modutils and /etc/modprobe.d to see if there are any snd-hda-intel specific settings?

If you find anything, please copy the contents of the config file into this thread.

It is quite possible that my sound issue is an alsa configuration problem.
 
Old 4 Weeks Ago
phico phico is offline
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 32
Default Re: Ubuntu on MacBook Pro

Quote:
Originally Posted by rapido
Thanks for the great thread. Audio was a big hangup for me. After updating to 2.6.15-25, I get sound out of the headphone jack only. But no audio out of the internal speaker(s).
Any ideas?

I had audio in the jack only before upgrading to 2.6.15-25. Just to be sure, did
launch lilo again after upgrading ? Check with uname -a

Quote:
Originally Posted by rapido
Could you grep through any sound/alsa settings in /etc/modutils and /etc/modprobe.d to see if there are any snd-hda-intel specific settings?

If you find anything, please copy the contents of the config file into this thread.

It is quite possible that my sound issue is an alsa configuration problem.

Here is the result of requested grep :

Code:
[email protected]:/etc/modprobe.d$ grep -i intel /etc/modutils/* [email protected]:/etc/modprobe.d$ grep -i intel /etc/modprobe.d/alsa-base /etc/modprobe.d/alsa-base:options snd-intel8x0m index=-2

Last edited by phico : 4 Weeks Ago at 02:15 PM.
 
Old 4 Weeks Ago
rapido rapido is offline
First Cup of Ubuntu
 
Join Date: Jun 2006
Bean Count Hidden
Default Re: Ubuntu on MacBook Pro

Here is the reqested uname -a:
Linux fudge 2.6.15-25-686 #1 SMP PREEMPT Wed Jun 14 11:34:19 UTC 2006 i686 GNU/Linux

Is this the same kernel you are using?
 
Old 4 Weeks Ago
phico phico is offline
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 32
Default Re: Ubuntu on MacBook Pro

Quote:
Originally Posted by rapido
Here is the reqested uname -a:
Linux fudge 2.6.15-25-686 #1 SMP PREEMPT Wed Jun 14 11:34:19 UTC 2006 i686 GNU/Linux

Is this the same kernel you are using?

Yes I have the same kernel and the card chipset is a SigmaTel STAC9221 A1

I noticed that I still have two problems however :
- when headset is plugged in jack, I get sound both on speaker and headset
- headset microphone neither integrated microphone do not work
 
Old 3 Weeks Ago
Nelson-Ray Nelson-Ray is offline
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 3
Default Re: Ubuntu on MacBook Pro

I am thinking about ordering a MacBook...I am curious if you have to use the Dapper x86 install cd or the ppc version? The MacBook has that intel duo core chip and Im guessing x86 but not sure?
 
Old 3 Weeks Ago
phico phico is offline
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 32
Default Re: Ubuntu on MacBook Pro

Quote:
Originally Posted by Nelson-Ray
I am thinking about ordering a MacBook...I am curious if you have to use the Dapper x86 install cd or the ppc version? The MacBook has that intel duo core chip and Im guessing x86 but not sure?

Yes you should use x86 CD. MacBook are intel based.
 
Old 3 Weeks Ago
Gendo Gendo is offline
First Cup of Ubuntu
 
Join Date: Jun 2006
Bean Count Hidden
Default Re: Ubuntu on MacBook Pro

I was wondering if anyone resolved rapido's issue. I am having the same issue with my mbp, and I am running the kernel phico mentions, and I have even tried the latest alsa drivers which should be patched to fix this, but I can still not get the speakers to output any audio. I am wondering if anyone who has this working is using a specific .asoundrc or asound.conf that might make a difference. Any information would be appreciated.
 

Thread Tools

Forum Jump


All times are GMT -4. The time now is 07:45 PM.


Official Ubuntu Forums Powered by vBulletin Version 3.6.0 Release Candidate 2. Copyright ©2000 - 2006, Jelsoft Enterprises Ltd. - Tangerine Ubuntu Theme
Ubuntu Logo, Ubuntu and Canonical are trademarks of Canonical Ltd