Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old June 17th, 2006   #1
phico
Just Give Me the Beans!
 
Join Date: Mar 2006
Beans: 68
Ubuntu on MacBook Pro

MacBook Pro 4 (Penryn) Ubuntu Single boot

-------------------------------------------
This thread was dedicated to first MacBook pro generation .. you can still find information about MBP 1 here bellow (post #5)
now it is has been updated to ubuntu single boot on MacBook Pro 4 generation (Penryn)
(you can run other OS in VMware and boot MacOs on external usb as explained hereafter..)
-------------------------------------------

Install Backup MacOS USB disk
You need a backup MacOS at least for firmware update.
- Boot on MacOS installation CD holding "C" key
- Plug the USB disk
- Install MacOS on the USB disk

Partition the main disk
- unplug the USB disk
- Boot on MacOS installation CD
- Open terminal application
- Partition the main disk as this :
Code:
diskutil partitionDisk disk0  HFS+ refit 20M Linux linux 100%
(efi is going to boot on our small 20M partition where we are
going to install refit. )
- quit the terminal
- plug the usb disk
- open the startup disk utility
- select your usb disk
- restart

(if your system does not boot on macos usb see troubleshooting below :
try the following :
try 1 : ALT choose boot disk
try 2 : ALT+CMD+P+R then try to boot
try 3 : Remove USB HD and boot holding C key.
Open startup disk utility
Plug USB disk
Select USB disk
Restart)


Install refit
- download refit image and mount it (refit.sf.net)
- copy efi folder from the refit image to the refit partition
- open terminal application and run enable-always.sh (from the refit partition)

Install ubuntu
- Unplug USB disk
- Boot with ubuntu CD (32 or 64bit)
- refit shoud show linux cd option
- run installation
- make manual partition :
-> ext3 mounted on / (All free)
-> swap (between 4-8GB)
- reboot
- run partition tool in refit menu

Ubuntu configuration
- At first boot Ubuntu should propose updates
- Install all updates and Nvidia video drivers

- Video : works out of the box

- Sound :
Code:
sudo gedit /etc/modprobe.d/options
- add this line
Code:
options snd_hda_intel model=mbp3
- reboot
- double click volume icon
- enable "pcm" and "front" in preferences and unmute them
- right click volume icon, select PCM

- Wifi :
Code:
sudo apt-get install unrar
     sudo apt-get install ndiswrapper-common
     sudo apt-get install ndiswrapper-utils-1.9
- put MacOS installation disk in CD

Code:
cp /media/cdrom/boot\ camp/drivers/broadcom/broadcomxpinstaller.exe .
     unrar -e broadcomxpinstaller.exe 
     sudo ndiswrapper -i bcmwl5.inf 
     sudo ndiswrapper -m
     sudo modprobe ndiswrapper
Code:
sudo gedit /etc/modules
- add this line
Code:
ndiswrapper
- Webcam : work out of the box

- Touchapd : if you want multitouch support (two fingers scrolling, right click, ..)
you can install driver from http://web.comhem.se/rydberg/Bits/ :


Code:
wget http://web.comhem.se/rydberg/Bits/bcm5974-0.54-src.zip
unzip bcm5974-0.54-src.zip 
cd bcm5974/
make -C /lib/modules/`uname -r`/build M=$PWD modules
sudo cp bcm5974.ko /lib/modules/`uname -r`/kernel/drivers/input/mouse/
sudo ./scripts/bcm5974-post-install
sudo modprobe bcm5974
add these lines to source repositories /etc/apt/sources.list

Code:
deb http://ppa.launchpad.net/mactel-support/ubuntu hardy main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu hardy main
install or upgrade xserver-xorg-input-synaptics:
Code:
apt-get install xserver-xorg-input-synaptics
edit /etc/X11/xorg.conf and put one of http://web.comhem.se/rydberg/Bits/ synaptics config

reboot

- Function keys :

install pommed manually because ubuntu package is not compatible with MBP 4th gen

Code:
wget http://alioth.debian.org/frs/download.php/2465/pommed-1.20.tar.gz
tar xvfz pommed-1.20.tar.gz
cd pommed-1.20/
sudo apt-get install libconfuse-dev  libasound-dev libaudiofile-dev libofapi-dev libdbus-1-dev pciutils-dev
make pommed
sudo cp pommed/pommed /usr/bin
sudo mkdir /usr/share/pommed
sudo cp  pommed/data/* /usr/share/pommed
sudo cp pommed.conf.mactel /etc/pommed.conf
sudo cp pommed.init /etc/init.d/pommed
sudo chmod u+x /etc/init.d/pommed
sudo cp dbus-policy.conf /etc/dbus-1/system.d/pommed.conf
sudo update-rc.d pommed defaults
sudo /etc/init.d/pommed start
- Touchpad :
If you want to get multitouch support (two finger scrolling, right click ..)
you can install driver from : http://web.comhem.se/rydberg/Bits/



4Gb RAM support
If you get a MBP with 4Gb RAM then go to my dedicated thread to
use all your RAM on a 32 bit system
http://ubuntuforums.org/showthread.p...89#post5347489

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)



Reference : https://wiki.ubuntu.com/MacBookPro/Penryn
Attached Thumbnails
Click image for larger version

Name:	TuxApplePhoto.jpg
Views:	4965
Size:	501.7 KB
ID:	11626   Click image for larger version

Name:	Screenshot.png
Views:	2176
Size:	229.1 KB
ID:	76741  

Last edited by phico; July 9th, 2008 at 04:28 PM..
phico is offline  
Old June 17th, 2006   #2
Wanderer2005
First Cup of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: Ubuntu on MacBook Pro

Great post! Just what I needed before buying my Mac!
Wanderer2005 is offline  
Old June 18th, 2006   #3
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
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?
rapido is offline  
Old June 19th, 2006   #4
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
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.
rapido is offline  
Old June 19th, 2006   #5
phico
Just Give Me the Beans!
 
Join Date: Mar 2006
Beans: 68
Re: Ubuntu on MacBook Pro

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------

OLD information for MacBook Pro 1

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------



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, JDR, alexinfurs, msprunck for their
feedback and contribution and all the people providing
drivers and/or useful information about Linux on Macbook
especially Nicolas Boichat and Ronald S. Bultje

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.jasonparekh.com/?page_id=9
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
http://blogs.gnome.org/portal/rbultje
http://www.boichat.ch/nicolas/macbook-tools/
http://blogs.vislab.usyd.edu.au/inde...macbook_pro_15
http://www.ubuntuforums.org/showthread.php?t=225621
https://wiki.ubuntu.com/MacBook
http://ubuntuforums.org/showthread.php?t=205449


For triple boot Mac OS X - Linux - Windows, follow
blue instructions.


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 Alt key
  3. Follow installation instruction.

BootMenu installation

1.Boot on MacOsX
2.Install bootcamp

For triple boot: Burn MacBook Windows CD driver

3.Install rEFIt (http://refit.sf.net)
  • install mac image
  • copy efi to root directory (drag efi folder to MacOs disk)
  • open a mac os terminal (in utilities)
  • cd /efi/refit
  • ./enable-always.sh

Partionning

In a MacosX terminal, partition the disc :
Code:
sudo diskutil resizeVolume disk0s2 10G
That sets 10G for MacOsX and the rest for Linux



For triple boot:
Code:
sudo diskutil resizeVolume disk0s2 10G Linux Linux 52G "MS-DOS FAT32" Windows 30G
Install Windows XP SP2
Boot, in refit, choose the Windows CDRom.
Launch install, at reboot choose the Windows HardDisk.
Install drivers from BootCamp CD drivers.
Follow my howto to customize Mac keyboard on Windows :
http://discussions.apple.com/thread....08584&tstart=0


Install Linux Ubuntu
  • Boot on Ubuntu drapper live cd


    For triple boot, make a swap file because of partion number limit explained
    on http://wiki.onmac.net/index.php/Trip...t_via_BootCamp
    Open a terminal. (Application>Accessories>Terminal)
    Quote:
    sudo su
    mkdir /mnt/linux
    mount -t ext3 /dev/sda3 /mnt/linux
    sudo dd if=/dev/zero of=/mnt/linux/swap bs=1024 count=2097152
    mkswap /mnt/linux/swap
    swapon /mnt/linux/swap

  • 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 :
    • if possible, do not mount /mount/EFI (select white item in list)
    • /dev/sda3 => swap
    • /dev/sda4 => /


    For triple boot
  • define mount :
    • /dev/sda3 => /
    Triple boot uses a swap file

  • Grub installation fails at the end, just ignore it (you are going
    to install lilo anyway). (For people who still want to install Grub they can have a look to this page https://wiki.ubuntu.com/MacBook)
  • Open a terminal : Terminal 1 (Application>Accessories>Terminal)
    (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
    (Remark :Some users report problem to find lilo because no network is not
    available in the chroot terminal. It is strange it works for most for us.

    If you have that problem, the solution is to reactivate the network in the chroot terminal.
    Either manually (ifup eth0), with dhclient
    or using the graphical config (gksu network-admin).)

  • create /etc/lilo.conf
    Add this content:
    (with "vi" or Application>Accessories>Text Editor)
    Code:
    boot=/dev/sda4
    default=Linux
    map=/boot/map
    delay=20
    image=/vmlinuz initrd=/initrd.img
    root=/dev/sda4
    label=Linux
    read-only

    For triple boot use /dev/sda3 instead
    Code:
    boot=/dev/sda3
    default=Linux
    map=/boot/map
    delay=20
    image=/vmlinuz initrd=/initrd.img
    root=/dev/sda3
    label=Linux
    read-only

  • Open a second terminal : Terminal 2
    Code:
    sudo parted
    print
    set 4 boot on
    quit

    For triple boot use /dev/sda3 instead
    Code:
    sudo parted
    print
    set 3 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


    For triple boot
    Quote:
    lilo -P ignore -b /dev/sda3
    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

Update

Update your system and install restritected drivers
Code:
sudo apt-get install linux-restricted-modules-2.6.15-26-686 linux-kernel-headers
sudo apt-get dist-upgrade
Relaunch lilo if kernel has changed

For triple boot
Quote:
lilo -P ignore -b /dev/sda3

For dual boot
Code:
sudo lilo -b /dev/sda
Reboot

Video

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"
Uncomment the universe and multiverse repositories in /etc/apt/sources.list

download drivers from ATI web site and follow this install :
Code:
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.27.10-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.27.10-x86.run
./ati-driver-installer-8.27.10-x86.run --buildpkg Ubuntu/dapper
sudo dpkg -i xorg-driver-fglrx_8.27.10-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.27.10-1_i386.deb
sudo dpkg -i fglrx-control_8.27.10-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, gcomizthemer ant themes and discover compiz ...
Quote:
sudo apt-get install gset-compiz gcompizthemer gcompizthemer-themes
gset-compiz
Configure effects, key shortcuts with gset-compiz
and customize your theme with gcompizthemer

- I also had to add this line to the startcompiz script
Code:
killall gnome-panel
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-26
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
)

Microphone does not work with "sound recorder" application but
It works with skype 1.3 beta for Linux (but not with skype 1.2)

(I also installed latest alsa drivers (1.0.12rc1) following their
INSTALL file) You can also follow the excellent thread here :
http://ubuntuforums.org/showthread.php?t=205449

With old drivers and kernel when headset is plugged in jack, you might
hear the sound in both headset AND speakers ?!

With new alsa drivers (1.0.12rc1) and kernel ( 2.6.15-26-686 ),
I do not have this problem any more.

Finally ... sound is working perfectly on MBP17"

If you have some issues left, you can have a look to this link,
it contains many useful informations that are not here :
http://www.jasonparekh.com/?page_id=9

Wireless
(the following comes from http://bin-false.org/?p=17 )
  • sudo modprobe new_wlan_scan_sta
  • sudo apt-get install network-manager 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

Nicolas Boichat wrote drivers for screen and keyboard backlight.
http://www.boichat.ch/nicolas/macbook-tools/

Here is how to install :

Code:
sudo apt-get install pciutils-dev
wget http://www.boichat.ch/nicolas/macbook-tools/macbook-tools-0.1.1.tar.bz2
tar xvfj macbook-tools-0.1.1.tar.bz2
cd macbook-tools-0.1.1
sudo rm /usr/local/bin/backlight
sudo make install
Use :
backlight +10
backlight -10

To control backlight with key pressed, you can use a program
developed by alexinfurs available here :
http://ubuntuforums.org/showthread.php?t=215801

Code:
sudo apt-get install libvte-dev
sudo ln -s /usr/local/bin/backlight /usr/bin/macbook-backlight
tar xvfz macbook-backlight-control-0.2.tar.gz  (get it from the link above)
cd macbook-backlight-control/src
make
./macbook-backlight-control
Try :
Ctrl+F1
Ctrl+F2

Add macbook-bakclight-control to your session start scripts
System>Preference>Session

To get automatic backlight adjustement from sensors, apply
kernel patch developped by Nicolas Boichat

Thank you to msprunck for his feedback

Keyboard Backlight

Nicolas Boichat wrote drivers for screen and keyboard backlight.
See :
http://www.boichat.ch/nicolas/macbook-tools/

Follow "Screen brightness" installation

./applesmc 255
to turn light on
sudo ./applesmc 0
to turn light off
./applesmc
to see sensors values

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

Temperatures

Hard Disk Temperature:
Code:
sudo apt-get install hddtemp
hddtemp  /dev/sda
That prints the temperature of your harddisk

CPUs Temperature :
(This code was written by Jan Bernhardt and Ludovi Roussearu under GPL)
Code:
sudo apt-get install subversion
svn co https://svn.sourceforge.net/svnroot/mactel-linux mactel-linux
cd mactel-linux/trunk/tools/temperature/
make
sudo modprobe msr
sudo ./coretemp
That prints temperatures of both CPUs




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


Ronald S. Bultje is writing a driver look at his blog :
http://blogs.gnome.org/portal/rbultje

Rapido get it working. His notes are here :
http://www.ubuntuforums.org/showthread.php?t=225621

Code:
sudo apt-get install libusb-0.1-4 libusb-dev libgcrypt11-dev libglib2.0-dev
wget http://people.freedesktop.org/~rbultje/linux-uvc-0.1.0-e.tar.gz
tar xvfz linux-uvc-0.1.0-e.tar.gz
cd linux-uvc-0.1.0-e/
make
sudo make install
sudo mkdir /mnt/mac
sudo mount -t hfsplus /dev/sda2 /mnt/mac/
sudo ./extract /mnt/mac/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
sudo modprobe uvcvideo
Then try a soft like Ekiga with V4L2 support. It works !
See rapido post for more details. http://www.ubuntuforums.org/showthread.php?t=225621

Access MacOsX partition

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

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

Heat ... under Linux MBP is even hotter than on MacOSx ..
Especially the harddrive ..

"kernel panic - not syncing: IO-APIC + timer doesn't work!"
occurs often when the usb mouse is plugged at boot. So either
apply patches or boot with mouse unplugged ...
(I also had rarely this error with unplugged mouse ..)

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)




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:
me@host:/etc/modprobe.d$ grep -i intel /etc/modutils/*
me@host:/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; July 7th, 2008 at 09:14 AM..
phico is offline  
Old June 19th, 2006   #6
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
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?
rapido is offline  
Old June 20th, 2006   #7
phico
Just Give Me the Beans!
 
Join Date: Mar 2006
Beans: 68
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
phico is offline  
Old June 26th, 2006   #8
Gendo
First Cup of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
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.
Gendo is offline  
Old June 22nd, 2006   #9
Nelson-Ray
5 Cups of Ubuntu
 
Join Date: May 2006
Beans: 37
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?
Nelson-Ray is offline  
Old June 22nd, 2006   #10
phico
Just Give Me the Beans!
 
Join Date: Mar 2006
Beans: 68
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.
phico is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:39 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry