View Full Version : Ubuntu on MacBook Pro
phico
June 17th, 2006, 08:40 AM
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 :
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 :
sudo gedit /etc/modprobe.d/options
- add this line
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 :
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
cp /media/cdrom/boot\ camp/drivers/broadcom/broadcomxpinstaller.exe .
unrar -e broadcomxpinstaller.exe
sudo ndiswrapper -i bcmwl5.inf
sudo ndiswrapper -m
sudo modprobe ndiswrapper
sudo gedit /etc/modules
- add this line
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/ :
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
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:
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
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.php?p=5347489#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 (http://www.gnome-look.org/content/show.php?content=40670), HumanAzul (http://www.gnome-look.org/content/show.php?content=37099), Tux-Mania (http://www.gnome-look.org/content/show.php?content=15994) GDM and a Tux screenshot (http://www.gnome-look.org/content/show.php?content=26229) 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
Wanderer2005
June 17th, 2006, 12:24 PM
Great post! Just what I needed before buying my Mac!
rapido
June 18th, 2006, 09:38 AM
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
June 19th, 2006, 10:19 AM
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.
phico
June 19th, 2006, 01:42 PM
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
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/Triple_Boot_via_BootCamp
http://www.jasonparekh.com/?page_id=9
http://www.ethicalhack.org/howto/triple_boot_howto.html
http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_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/index.php/JohnStavrakakis/2006/07/28/triple_boot_on_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
Install MacOsX pro with a minimum of features. It may be useful for firmware update or hardware check ..
Boot on MacOsX CD holding Alt key
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 :
sudo diskutil resizeVolume disk0s2 10G
That sets 10G for MacOsX and the rest for Linux
For triple boot:
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.jspa?threadID=608584&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/Triple_Boot_via_BootCamp
Open a terminal. (Application>Accessories>Terminal)
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 )
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)
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
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
sudo parted
print
set 4 boot on
quit
For triple boot use /dev/sda3 instead
sudo parted
print
set 3 boot on
quit
Go back to Terminal 1
lilo -b /dev/sda
exit
umount /mnt/ubuntu/proc
umount /mnt/ubuntu/dev
umount /mnt/ubuntu
For triple boot
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
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
lilo -P ignore -b /dev/sda3
For dual boot
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/Ubuntu_Dapper_Installation_Guide
disable fglrx module : sudo vi /etc/default/linux-restricted-modules-common
DISABLED_MODULES="fglrx"
Uncomment the universe and multiverse repositories in /etc/apt/sources.list
download drivers from ATI web site and follow this install :
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 :
fglrxinfo
you should have :
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 ...
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
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 :
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
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.php?p=1269085&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 :
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
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 :
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 :
xmodmap /usr/share/xmodmap/xmodmap.mbp.be
Put it somewhere so that it is loaded automatically
Here is my french - belgian/fr xmodmap file :
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
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 :
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 :
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:
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)
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:
sudo vi /etc/default/mouseemu
Add that content :
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 :
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 :
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
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 :
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 (http://www.gnome-look.org/content/show.php?content=40670), HumanAzul (http://www.gnome-look.org/content/show.php?content=37099), Tux-Mania (http://www.gnome-look.org/content/show.php?content=15994) GDM and a Tux screenshot (http://www.gnome-look.org/content/show.php?content=26229) 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)
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
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 :
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
rapido
June 19th, 2006, 06:12 PM
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?
phico
June 20th, 2006, 01:24 AM
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
Nelson-Ray
June 22nd, 2006, 01:10 AM
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?
phico
June 22nd, 2006, 04:14 AM
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.
Gendo
June 26th, 2006, 07:05 PM
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.
phico
June 27th, 2006, 07:35 AM
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.
I did not had to install anything special ( or I did not notice it or I was lucky ...)
Anyway If I can help you sharing config of so, just ask.
I have a MBP 17 with Sigmatel STAC9221 A1 chipset
and I choosed HDA Intel (Alsa Mixer) device in my sound config
Gendo
June 27th, 2006, 11:06 AM
Sure if you are using an asound.conf or .asoundrc that information might be helpful as well as what is in /var/lib/alsa/asound.state . I did not realize you had a 17 inch macbook pro, I am using a 15 inch that was released before the glossy and 17 inch models, so I am wondering if maybe something is different with the 17 inch models. From the info in patch_sigmatel.c from the alsa drivers the note on the macs mentions
/*
* Early 2006 Intel Macintoshes with STAC9220X5 codecs seem to have a
* funky external mute control using GPIO pins.
*/
So I guess it is possible they changed the hardware a bit on the 17 inch models.
phico
June 27th, 2006, 01:55 PM
Sure if you are using an asound.conf or .asoundrc that information might be helpful as well as what is in /var/lib/alsa/asound.state .
I have no asound.conf neither .asoudrc on my system.
asound.state is in attachment
From the info in patch_sigmatel.c from the alsa drivers the note on the macs mentions
/*
* Early 2006 Intel Macintoshes with STAC9220X5 codecs seem to have a
* funky external mute control using GPIO pins.
*/
So I guess it is possible they changed the hardware a bit on the 17 inch models.
Yes it might be. Did you check which chipset you have ?
I though that patch could help me also because, as said above, my
microphone is not yet working.
sam666
June 29th, 2006, 03:40 AM
Guys,
I installed Ubuntu on My 15" 2.1Ghz macbook pro. I follwed instructions but I noticed the following:
- ATI Graphics is not fully accelerated.. some 2D displays are fast (moving windows, VMware display etc...), but resizing a terminal window or switching from one desktop to another lags considerably.
Did I miss something in the installation? Any ideas?
Should I use 8.26.18 Ati drivers or 8.25.18 ( I used the ones that matched xorg-ati-drivers..: 8.25.18... but tested 8.26.18 as well...)?
I read another post mentionning that to get full acceleration the kernel had to be recompiled without imacfb or something else like Frame buffer... Haven't tried yet. Does anyone know about this?
- Sound does not work, even with 2.6.16-25 686 (didn't investigate a lot yet...)
- Also, the CPU being multi-core wouldn't it be better to use a SMP kernel? are both core used with an non SMP kernel?
- hdparm -t gives me very bad statistics for my internal (and firewire) drive: something between 20-30 MB/s reading. I had much more under debian on a less powerfull Dell laptop.
- most hdparm parameters (DMA etc..) return an error...
Any suggestion?
Thanks,
Sam
phico
June 29th, 2006, 06:57 AM
- ATI Graphics is not fully accelerated..
the kernel had to be recompiled without imacfb or something else like Frame buffer...
I did not check that myself. It is true that some screensavers do not seem to rue very smootly.
imacfb is closely linked to efi. I recompiled the kernel 2.6.17 with Macbook Pro options with this config :
http://modular.math.washington.edu/macbook/triboot/config-2.6.16.16
and add imacfb but it did not changed anything excepted I lost sound ! A patch is needed
with 2.6.17 It has been posted on mactel-linux-user mailing list
If you do it please feedback.
For sound, It seems some MBP does not have the same chipset as
mine. That could explain. It works with 2.6.15-25-686
both core used with an non SMP kernel?
My kernel is 2.6.15-25-686 #1 SMP PREEMPT Wed Jun 14 11:34:19 UTC 2006 i686 GNU/Linux
Both core are used
- hdparm -t gives me very bad statistics for my internal (and firewire) drive: something between 20-30 MB/s reading. I had much more under debian on a less powerfull Dell laptop.
On my system I get this result on internal 7200rpm drive :
Timing buffered disk reads: 134 MB in 3.01 seconds = 44.55 MB/sec
Gendo
June 29th, 2006, 02:50 PM
Here is what I did for ATI accelerration
http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide
Here is for compiz and XGL
http://wiki.cchtml.com/index.php/Xgl-Compiz-Dapper
Good luck!
phico
June 29th, 2006, 06:12 PM
Here is what I did for ATI accelerration
http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide
Here is for compiz and XGL
http://wiki.cchtml.com/index.php/Xgl-Compiz-Dapper
Good luck!
Thanks for those links, I added your contribution to the beginning of the thread.
Also I tried to configure the right click on the touchpad.
I managed to get is working but it freeze the touchpad after each click ..
If anyone could find out why .. that could be useful !
Install mouseemu (with synaptic or apt-get --install mouseemu)
Edit config file:
sudo vi /etc/default/mouseemu
Add that content :
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 :
sudo /etc/init.d/mouseemu restart
Gendo
July 1st, 2006, 11:12 AM
I have been do some research on the sound issue and I have found there does seem to be a difference between the 17" mbp and the 15" mbp. The 17" mbp seems to be more like the mini in the way it behaves which is why I think the speakers are working on the 17".
For example in windows to disable the internal speaker and have the headphone jack only on the 17" and mini you need to change the 00 REG_BINARY at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318} from 85 to 05, but this does not work on the 15" mbp and this needs to be changed from 85 to 80.
I have been poking around in the alsa code (patch_sigmatel.c) trying to add a switch that might toggle this, I have manged to get a switch to display but it really does not do anything as I am really not well versed in alsa's workings. I do think it may have to do with the two calls to stac922x_gpio_mute in stac92xx_init. That or for whatever reason the AUTO_PIN_XXXXs are not getting enumerated properly. However like I said I am not well versed in ALSA and how it works so I am pretty much just throwing darts.
I also found this table, I am not sure if it is pertinent or not, but just throwing it out there.
00,01
85 88 both
85 85 both
88 88 head phone
88 85 HEADphone
85 both
88 head
rapido
July 1st, 2006, 11:29 AM
Gendo,
I have a little more information to possibly help with the research. Mostly, on which machines seem to work and which fail ( sound-wise ).
I have both a 15" mbp, and a 20" Intel Imac. I have installed Ubuntu on both, and have the same end result on both as far as sound is concerned. They will each play over the headphone jack only. I believe that both of these are considered "Early 2006" as far as firmware, etc. My thought is that if we find a solution for one of these machines, that both will work.
I have not yet confirmed any fully working audio examples of these machines.
But, I have heard of successes with the new Macbook ( http://desrt.mcmaster.ca/macbook.xhtml ) and the 17" mbp ( this thread ).
Gendo
July 1st, 2006, 02:01 PM
rapido, I had seen that link earlier, and the patch referenced is what is merged into the latest dev alsa drivers at ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.12rc1.tar.bz2 and similarly the ubuntu kernel has been patched with similar code.
The way I figure it the pin settings for the iMac and 15" mbp pro are the same (not working) , and the 17" mbp, mac mini, and regular macbook are the same (working).
I am trying to see if I can reverse the behavior in the alsa code with a toggle, so maybe it could be merged in. But so far I have not had much success other than making the line out and the headphones work for output without being toggled to and unable to be turned off.
I am going to post my results to the alsa devs (see bugtrack that had been started by someone else https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2198) in a day or so since there are a few more things I am going to try before giving up.
sam666
July 1st, 2006, 09:04 PM
About graphic performance. I followed the instruction to get 8.26.18 installed and running and I noticed the following:
1/ - 2d Acceleration doesnt work very well when the fglrx module is loaded (when fglrxinfo shows ATI...
2/ - 2D acceleration works much better when fglrx is not loaded ( when fglrx shows MESA...)
when I mean 2d Acceleration is slow (1/) I mean everything seems fast except resizing a terminal (lags...) and switching desktops (redrawing the windows takes 2-3 seconds)...
Any idea why that is?
Sam
phico
July 4th, 2006, 09:53 AM
About graphic performance. I followed the instruction to get 8.26.18 installed and running and I noticed the following:
1/ - 2d Acceleration doesnt work very well when the fglrx module is loaded (when fglrxinfo shows ATI...
2/ - 2D acceleration works much better when fglrx is not loaded ( when fglrx shows MESA...)
when I mean 2d Acceleration is slow (1/) I mean everything seems fast except resizing a terminal (lags...) and switching desktops (redrawing the windows takes 2-3 seconds)...
Any idea why that is?
Sam
Yes I confirmed that behaviour. I noticed however that under XGL/compiz,
switching from desktop is faster than with Gnome Session. So it might be
related to the Xserver also. Until now, I would use MESA with a Gnome Session
and ATI with XGL session but I have no explanation why it is like that..
gavinfo
July 4th, 2006, 10:37 AM
Before I think about trying this, I want to make sure I understand the process. In the section
Install Linux Ubuntu
after
Grub installation fails at the end, just ignore it.
it says
Open a terminal : Terminal 1
In my imagination at this point I see a black screen with an error message - how do you open up a terminal? (is there some key combination, or is my imagination of it wrong)
phico
July 4th, 2006, 01:38 PM
Before I think about trying this, I want to make sure I understand the process. In the section
Install Linux Ubuntu
after
Grub installation fails at the end, just ignore it.
it says
Open a terminal : Terminal 1
In my imagination at this point I see a black screen with an error message - how do you open up a terminal? (is there some key combination, or is my imagination of it wrong)
Only the installation process should crash not the system. So you can still open a Terminal with the menu Applications>Accessories>Terminal
(Ubuntu installation is done by :
1 - boot the live cd
2 - install from there on the disk (this is the process which crashes at the end .. but you are still in your working live cd system)
gavinfo
July 4th, 2006, 02:09 PM
I see, thanks for that.
Greywhind
July 4th, 2006, 02:29 PM
I'm about to install Ubuntu on my iMac - can anyone tell me whether the partition for it should be as large as I can get it or just enough for the OS itself?
If the OS can read files from other areas of the disk, I would assume that it should be a small partition for Ubuntu. If it can only read from its own partition, I would make it large. Please tell me which one is the case, if anyone knows.
phico
July 4th, 2006, 02:53 PM
I'm about to install Ubuntu on my iMac - can anyone tell me whether the partition for it should be as large as I can get it or just enough for the OS itself?
If the OS can read files from other areas of the disk, I would assume that it should be a small partition for Ubuntu. If it can only read from its own partition, I would make it large. Please tell me which one is the case, if anyone knows.
You can choose the partition as large as you want (as soon as it is large
enough to install ubuntu)
I created a very small MacOsX partition because my principal OS is Linux
and I keep MacOsX only for firmware update
You can still mount and access your Mac partition (read only) as this :
sudo mount -t hfsplus /dev/sda2 /mnt/mac
cd /mnt/mac
gavinfo
July 4th, 2006, 04:28 PM
Is it possible to change the partition size non-destructively later on? (at least non-destructively for the linux partition, but ideally for both)
Edit: seems diskutil resizeVolume from the Mac side should resize the partitions non-destructively.
phico
July 4th, 2006, 05:09 PM
Is it possible to change the partition size non-destructively later on? (at least non-destructively for the linux partition, but ideally for both)
Edit: seems diskutil resizeVolume from the Mac side should resize the partitions non-destructively.
It should ... but .. maybe It would be safer to test on a simple dual boot install before !
chasisaac
July 4th, 2006, 09:31 PM
Edit: seems diskutil resizeVolume from the Mac side should resize the partitions non-destructively.
Thanks for the the edit.
ci
Gendo
July 5th, 2006, 09:17 PM
rapido, or anyone with a 20" iMac could you cat /proc/asound/card0/codec#* and post the results here. This is for the alsa guys.
imrazor
July 6th, 2006, 02:44 AM
OK, I'm stuck. I installed ubuntu and lilo, but I'm stuck at the part that says:
Go in the rEFIt partition editor and synchronize MBR
I get *no* such option. rEFIt gives me four options: Boot Mac OS X from HD, Boot Linux from HD, About and Restart. I've checked the refit.conf file and "hideui" is *not* specified.
When I attempt to "Boot Linux from HD" I get a message:
No bootable device -- insert boot disk and press any key
Fortunately, Boot Mac OS X still functions, so I'm not completely hosed.
So is this because I can't sync the MBR and GPT tables, or because there's something wrong with the Ubuntu install? Is there an alternative way to sync the MBR and GPT tables (with parted maybe?)
EDIT: Figured it out...the location of the tools are hard-coded as /efi/tools. When I unzipped rEFIt it created a directory called refit-0.7 in the root directory, which confused refit when the notebook booted.
phico
July 6th, 2006, 04:04 AM
OK, I'm stuck. I installed ubuntu and lilo, but I'm stuck at the part that says:
Go in the rEFIt partition editor and synchronize MBR
I get *no* such option. rEFIt gives me four options: Boot Mac OS X from HD, Boot Linux from HD, About and Restart. I've checked the refit.conf file and "hideui" is *not* specified.
When I attempt to "Boot Linux from HD" I get a message:
No bootable device -- insert boot disk and press any key
Fortunately, Boot Mac OS X still functions, so I'm not completely hosed.
So is this because I can't sync the MBR and GPT tables, or because there's something wrong with the Ubuntu install? Is there an alternative way to sync the MBR and GPT tables (with parted maybe?)
EDIT: Figured it out...the location of the tools are hard-coded as /efi/tools. When I unzipped rEFIt it created a directory called refit-0.7 in the root directory, which confused refit when the notebook booted.
Boot on MacOsX
Go to the config file of refit : /etc/efi/refit.conf
Unhide the menu like this :
#hideui tools funcs hdbadges
#hideui all
Reboot, you should have more options ...
rapido
July 8th, 2006, 01:30 AM
rapido, or anyone with a 20" iMac could you cat /proc/asound/card0/codec#* and post the results here. This is for the alsa guys.
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x100
Revision Id: 0x103401
Default PCM: rates 0x7e0, bits 0x0e, types 0x1
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x66 0x66]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
PCM: rates 0x7e0, bits 0x0e, types 0x5
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
PCM: rates 0x160, bits 0x0e, types 0x5
Connection: 1
0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP
Pin Default 0x010b4040: [Jack] Line Out at Ext Rear
Conn = Comb, Color = Green
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT
Pin Default 0x90a30110: [Fixed] Mic at Int N/A
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x24: IN
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT
Pin Default 0x90130130: [Fixed] Speaker at Int N/A
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP
Pin Default 0x4000000f: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0824: IN
Pin Default 0x4000000f: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT
Pin Default 0x01813020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x20: IN
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x014be050: [Jack] SPDIF Out at Ext Rear
Conn = Comb, Color = White
Pin-ctls: 0x40: OUT
Connection: 3
0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN
Pin Default 0x4000000f: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x01 0x01]
Connection: 7
0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15* 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x4000000f: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x4000000f: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Connection: 1
0x1a
fanopanic
July 9th, 2006, 04:20 AM
Hi there,
I have a 17" MBP and my sound was very noisy (ugly little clicks) both on HP and on the speakers. This did not happen on OSX. Reducing the volume even to very low did not make it go away.
The solution was to add either
options snd-hda-intel "position_fix=1"
or
options snd-hda-intel "position_fix=2"
to /etc/modprobe.d/alsa-base.
phico
July 14th, 2006, 01:00 PM
options snd-hda-intel "position_fix=2"
to /etc/modprobe.d/alsa-base.
position_fix=2 did not work on my MPB 17" .. I had sound card
not recognised any longer ..
Also I added at the begining of the thread some information
to get keyboard backlight working
tomoya846
July 17th, 2006, 07:23 AM
hi everyone, i got an issue here with my ubuntu on MBP 15"
after the installation of mouseemu, i couldnt use my touchpad anymore! just wondering if anyone knows how to get rid of mouseemu or are there any other ways to solve this problem.
thanks:)
eddie
phico
July 17th, 2006, 07:36 AM
As said above, I have the same issue. I could
get the control back with an external mouse.
It seems mouseemu need some change to work on macbook pro
Gendo
July 17th, 2006, 11:36 PM
Well I figured out a way to get sound working out of the speakers on the 15 incher. It is not elegant at the moment but if you are dying to have sound from the speakers like I was here is a quick hack until the alsa guys can fix it.
Grab the latest alsa dev release here ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.12rc1.tar.bz2
Unpack it somewhere.
in the alsa-driver-1.0.12rc1 folder run
./configure --with-cards=hda-intel --with-sequencer=yes
After it is done go to alsa-driver-1.0.12rc1/alsa-kernel/pci/hda and open up hda_codec.c and comment out lines 2135 and 2147 so it now looks like
//if (! cfg->line_outs) {
if (cfg->speaker_outs) {
cfg->line_outs = cfg->speaker_outs;
memcpy(cfg->line_out_pins, cfg->speaker_pins,
sizeof(cfg->speaker_pins));
cfg->speaker_outs = 0;
memset(cfg->speaker_pins, 0, sizeof(cfg->speaker_pins));
} else if (cfg->hp_pin) {
cfg->line_outs = 1;
cfg->line_out_pins[0] = cfg->hp_pin;
cfg->hp_pin = 0;
}
//}
Save the file and then go back to alsa-driver-1.0.12rc1.
Do a make;make install reboot and you should have sound from the speakers. Problem is the headphone jack will not work (the line out toggle will but the speakers will not auto switch off when an input is plugged in). I will work on adding a check box toggle a little later, but I was eager to get my speakers working so someone else may be as eager as I was. Good luck!
phico
July 18th, 2006, 04:44 PM
Well I figured out a way to get sound working out of the speakers on the 15 incher.
Great ! Thanks. I mentioned your post above.
Did you find a way to get the microphone working ?!
Gendo
July 18th, 2006, 06:08 PM
Well not sure if it was working before, but with my change from above and then if you open volume control 2.14 hit the options tab, set the input source to mic, close it, and then launch sound recorder, I was able to record through the mic. Not sure if the code change had an effect on this or not though, that and it may not work with the 17".
fanopanic
July 19th, 2006, 11:30 AM
position_fix=2 did not work on my MPB 17"
Interestingly enough I have to use position_fix=1 since the latest kernel update. With position_fix=2 the crackling continues.
Edit: Regarding no sound with the fix above: I noticed I have to reboot with headphones plugged in after a kernel upgrade (I kid you not). I will then have sound only in the HP at first, and when I remove them I have sound on the laptop again. Plugging them in again, however, does not turn off the laptop speakers again.
Seems like sound on the MBP is still adventure. :D
phico
July 19th, 2006, 03:49 PM
Thanks for your feedbacks about sound ..
Microphone is still not working with "sound recroder" application but
It works with Skype 1.3 beta for Linux :-D :-D (but not with skype 1.2)
At least, it was what I was missing most on the macbook ...
I installed latest alsa drivers, latest kernel and the new skype 1.3 beta.
Also I get rid of sound in speakers and headset at the same time ..
In one word .. sound is now working perfectly on MPB17 :p :p
zoglesby
July 21st, 2006, 03:33 PM
I have a 15 inch macbook pro and I followed the directions from this link (http://blogs.gnome.org/view/rbultje/2006/07/18/1) to get my sound to work but the only time that I hear any sound is when I am loging off with a reboot, so I know the sound works but somthing must be set up wrong.
Edit: So that seems to not be ture. I tried to start the computer up with my headphones pluged in and the sound did work for that boot but it still seems odd that when I reboot I get the logout sound (without ever having pluged in the headphones).
eyebrowman92
July 21st, 2006, 07:26 PM
How do we go into the rEFIt partition editor to synchronize the MBR?
phico
July 22nd, 2006, 05:26 PM
How do we go into the rEFIt partition editor to synchronize the MBR?
please see here :
http://ubuntuforums.org/showpost.php?p=1219768&postcount=33
eyebrowman92
July 22nd, 2006, 06:37 PM
Ok and my MacBook has no sound, even with the new kernel updates. Any suggestions?
phico
July 23rd, 2006, 03:44 AM
Ok and my MacBook has no sound, even with the new kernel updates. Any suggestions?
If it is a MBP15 check Gendo trick : http://ubuntuforums.org/showpost.php?p=1269085&postcount=39
(It was not needed on MBP17)
phico
July 27th, 2006, 02:03 AM
"kernel panic - not syncing: IO-APIC + timer doesn't work!" at boot
occurs only when the usb mouse (or another usb devide)
is plugged at boot.
So either apply patches or boot with mouse unplugged ...
Seq
July 27th, 2006, 10:50 AM
"kernel panic - not syncing: IO-APIC + timer doesn't work!" at boot
occurs only when the usb mouse (or another usb devide)
is plugged at boot.
So either apply patches or boot with mouse unplugged ...
This happens to me with no external devices plugged in to my MacBook (not Pro). Although the iSight, Trackpad, and keyboard are all USB I guess, just not external.
phico
July 28th, 2006, 04:22 AM
This happens to me with no external devices plugged in to my MacBook (not Pro). Although the iSight, Trackpad, and keyboard are all USB I guess, just not external.
Good to know. Thanks. Indeed I read iSight is USB.
auslander
July 28th, 2006, 09:11 PM
I installed mouseemu and my trackpad is now disabled. I had to do this:
sudo /etc/init.d/mouseemu stop
to get it to work again. This is the case with both a blank /etc/default/mouseemu file and with one that contains this (which I found somewhere else):
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
I have a 15" 2.16GHz MBP. has anyone got ctrl-click or anything else to get right-click to work?
thanks,
phico
July 29th, 2006, 03:08 AM
/etc/default/mouseemu file and with one that contains this (which I found somewhere else):
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
I do not see any difference between that config and the one I gave above ?
Did you change something else ?
Indedd touchpad freezes after each right click with that config.
auslander
July 29th, 2006, 10:22 AM
I do not see any difference between that config and the one I gave above ?
Did you change something else ?
Indedd touchpad freezes after each right click with that config.
Yeah, sorry -- that config is from above. I've been switching between about 10 sources for configs to get it working, I must have become confused. However, in my case, when I start mouseemu I can move the mouse about 1" on the screen before it freezes, not enough time to even get one right-click out of it.
lordmule
July 30th, 2006, 12:49 AM
This guide was the most helpful for me in getting triple boot going. But I had alot of problems with the bootloader stuff and I have posted how I managed to get it finally going here (http://blogs.vislab.usyd.edu.au/index.php/JohnStavrakakis/2006/07/28/triple_boot_on_macbook_pro_15)
good luck lads
rapido
July 30th, 2006, 01:21 AM
I just put together a quick howto on the Built-in iSight. Here's the thread:
http://www.ubuntuforums.org/showthread.php?t=225621
phico
July 30th, 2006, 05:03 PM
I just put together a quick howto on the Built-in iSight. Here's the thread:
http://www.ubuntuforums.org/showthread.php?t=225621
Thank you rapido .. very useful and .. it is working !
phico
July 31st, 2006, 09:08 AM
This happens to me with no external devices plugged in to my MacBook (not Pro). Although the iSight, Trackpad, and keyboard are all USB I guess, just not external.
You are right Seq .. It has just happen to be also with usb mouse unplugged ... Though it seems to appear more often with plugged mouse :confused: :confused:
bfad
August 5th, 2006, 12:48 PM
Lilo will not install for me. I've booted from the CD, installed Ubuntu and followed the directions, but lilo won't install, I get an error saying:
"Package lilo is not availale, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source.
E: Package lilo has no instalation canidate"
In fact, I get that same error trying to install anything. However, if I don't chroot /mnt/ubuntu /bin/bash, installations work fine. It's as if I don't have internet connection when I've changed root.
I'm guessing that if I do installations without chroot-ing then I'm "installing" them on the CD and not my hard drive. Any suggestions?
bfad
August 5th, 2006, 02:10 PM
I solved the issue! I reinstalled the distribution, and when the Grub error came up, I didn't click okay, but went immediately into the Terminal and ran the commands!
phico
August 5th, 2006, 05:20 PM
I solved the issue! I reinstalled the distribution, and when the Grub error came up, I didn't click okay, but went immediately into the Terminal and ran the commands!
Good to know ! thanks for your feedback.
That step may be a source of problem indeed ..
another user reported me that he could not get acess to the network
in the chroot terminal ?! He had to reconfigure the network manually.
Ross Hend
August 7th, 2006, 03:24 PM
I've followed a lot of the tutorials on this thread, and they all worked! Thank You! I've now got a fully functional install of Ubuntu on my Macbook Pro.
2cute4u
August 8th, 2006, 01:55 AM
I have a 20" intel imac and I followed the instructions given. I can't seem to get any video with the ati driver.
I've attached my xorg.conf
idn
August 10th, 2006, 04:29 PM
Hi
I have folowed thje instructions up until I have to install lilo, the trouble is I cant find the package anywhere. I also cant find most of the other packages I need to install, as I cant connect to the servers - no wireless - I am kinda stuck. I dont want to reboot because I dont think I will be able to reboot into ubuntu after. Anyone have any ideas?
I have the standard dapper instsll....
Edit: I just downloaded the debs through the synaptic on the live cd then copied them over to the installed copy of ubuntu and installed them using dpkg -i
phico
August 11th, 2006, 02:17 AM
Hi
I have folowed thje instructions up until I have to install lilo, the trouble is I cant find the package anywhere. I also cant find most of the other packages I need to install, as I cant connect to the servers - no wireless - I am kinda stuck. I dont want to reboot because I dont think I will be able to reboot into ubuntu after. Anyone have any ideas?
I have the standard dapper instsll....
Edit: I just downloaded the debs through the synaptic on the live cd then copied them over to the installed copy of ubuntu and installed them using dpkg -i
Hello,
Another user report me simililar issue. The problem seems no network is
available in the chroot terminal. It is strange it works for most fo us.
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).
idn
August 11th, 2006, 02:51 AM
Yeah there seems to be something wrong with my networking. I cant get wireless to work at the moment. Someone reported some success when they uninstalled network manager and the restricted modules, upgraded everything, then installed network manager and the restricted modules again again.
I also cant seem to find anything on aiglx, in the tutorial you mention xgl but from what i heard aiglx is faster, specially for ati people. Is there a chance you could add a section for installing aiglx?
Oh one more thing = mouseemu just freezes my mouse whenever its started
Great tutorial tho!
EDIT: I got the networking going by simply commenting everything but the top two lines in /etc/network/interfaces, then restarting. Everything then worked out the box! Im now on wireless - woot
phico
August 11th, 2006, 05:45 AM
I also cant seem to find anything on aiglx, in the tutorial you mention xgl but from what i heard aiglx is faster, specially for ati people. Is there a chance you could add a section for installing aiglx?
Interesting information. I did not try it yet.
It seems there are some incompatibilty between fglrx and aigxl because
they use different version of Xorg. We should wait for fglrx to
support Xorg 7.1. XGL with ati drivers works ok for now.
Did you install it yourself ? Is there any link you could suggest about it ?
Oh one more thing = mouseemu just freezes my mouse whenever its started
It freezes only my touchpad when right click. It is a known problem. Mousemu was not written for macbook but for powerbook. I do not beleive there is a update yet.
idn
August 11th, 2006, 01:44 PM
I tried to install aiglx but an into problems so turned back, but I believe you are right we will proably have to wait until edgy to use aiglx.
I used xgl before and it worked fine - no speed problems although that was on a top end desktop with all the bells and whistles.
It just seems to me aiglx would be alot faster as it is a part of the xx server rather than something that is a hack and sits on top of it
I was wondering, would it be possible to add a seciton on how to configure lilo - even if it is a bit off topic. It would be good to make the boot silent - so theres none of those debug messages, and also so the text in the console is a little smaller. Its a shame there is no widescreen mode for the console (Ctlr Alt F1), because I tend to use this console alot day to day - makes ne feel retro :) I guess we could use the following for the 15" ppl
# VESA framebuffer console @ 1024x768x32k
vga="792"
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
May not be important to some but I find when there are a million boot messages going on i might miss soemthing important.
idn
August 11th, 2006, 05:10 PM
Has anyone else noticed that the cap locks key doesnt a actually work? Even the LED doesnt toggle on and off...
idn
August 12th, 2006, 01:37 PM
Hey
I tried to follow the install guide for xgl but I get the following error when I run startcompiz
compiz.real: No composite extension
Could someone post their xorg.conf? I'm not sure what the problem is
I also get the following problem when i run flgxinfo:
fglrxinfo: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
EDIT: I have fixed the above issue by:
sudo aptitude reinstall libgl1-mesa
Ross Hend
August 17th, 2006, 09:58 AM
I noticed a lot of artifacts when using xgl and compiz. However, I'm new to ubuntu and have no idea whether they were the culprit.
And I have to make the point of a previous poster, the caps lock does not function (not that I ever use it).
idn
August 22nd, 2006, 08:19 PM
Has anyone got got the fn key working at all? It works for the volume control however it doesnt register when i press it in xev.
Seq
August 23rd, 2006, 04:58 PM
Has anyone got got the fn key working at all? It works for the volume control however it doesnt register when i press it in xev.
they Fn key is not supposed to send a key event, it modifies other keys. It is handled in the kernel rather than X
eyseman
August 26th, 2006, 12:02 PM
hi there,
thx for the great install manual but i still face some probs.
i managed bootloading mac os x and xp on my intel iMac.
but when it comes to the point of resync the mbr i fail.
this is my table is see after resync
1 EFI Protective
2 Mac OS X HFS+
3 EFI System FAT
4 FAT 32
shouldn't there be an ext2 line or something like that for ubuntu?
I already checked the workaround manual but i can't find my lilo.conf any more when booting from cd.
Booting "First Hard Disk" out of the Live CD gives me a system hangover.
Any ideas?
best regards,
eyseman
rapido
August 28th, 2006, 01:29 AM
Thought I would post a quick shot of the recent mod to the exterior of my Macbook pro. I wanted make it clear which OS I am running ( or which I am not, depending on the perspective ).
http://www.shiftingheat.com/images/p1000212_sm.jpg
As the photo shows, I created an adhesive, vinyl, Ubuntu logo that just "masks" out the Apple logo. The center of the logo is cut out to allow the light to glow.
idn
August 28th, 2006, 05:33 AM
Lol, i like the ubuntu sticker.
I have a problem though, I accidently installed typed "lilo -b /dev/sda4" instead of lilo "lilo -b /dev/sda" and now when I try to boot nothing works and I also get two penguin logos :(
frej
August 28th, 2006, 10:18 AM
lilo -u /dev/sdaX should remove lilo from that partition.
perkypat
September 9th, 2006, 06:57 PM
Hello,
I am trying to follow this guide but am stuck. When I type:
lilo -b /dev/sda
It says: command not found
What can I do about this????
PS: I am a bit of a noob i'm afraid...
mejy
September 10th, 2006, 03:28 PM
I am using a MacBook Pro 15" which is already configured for dual boot. Before I go for triple boot (I'm using parallels at the moment):
Is there any way I can non distructively shrink my windows partition (from 25gb to 15gb)?
Is it possible to revert to the bootcamp boot loader and my dual boot solution, and is it really necessary to use rEFIt?
Is there any chance of data loss on either of my partitions?
Does the rEFIt still look as ugly as this (http://refit.sourceforge.net/screen.html)? ;p
Looks like a very usefull how to, but I'm debating sticking with Ubuntu in parallels until a more supported solution comes out (using a beta boot menu on a beta boot solution using a partition setup not mentioned in the how to feels a bit risky).
Thanks in advance.
n00bWillingToLearn
September 11th, 2006, 03:10 AM
I installed mouseemu and my trackpad is now disabled. I had to do this:
sudo /etc/init.d/mouseemu stop
to get it to work again. This is the case with both a blank /etc/default/mouseemu file and with one that contains this (which I found somewhere else):
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
I have a 15" 2.16GHz MBP. has anyone got ctrl-click or anything else to get right-click to work?
thanks,
All I had to do was sudo apt-get remove mouseemu. Anyways, it looks like the gentoo people have it working on a macbook (non pro) without mouseemu from http://gentoo-wiki.com/HARDWARE_Apple_MacBook#Touchpad_in_X11
But I have not yet tried that in Ubuntu, or on a macbook pro.
[Edit] Have been working on it but no success so far, probably not usefull :(
wild26
September 15th, 2006, 02:25 PM
I used BootCamp to partition my MacBook Pro HD, but instead of installing WinXP, I want to install ubuntu.
I have Dapper Drake on a disk, and as I go through the install steps, I run into a point where I can't go any further.
Where the directions say:
define mount :
if possible, do not mount /mount/EFI (select white item in list)
/dev/sda3 => swap
/dev/sda4 => /
I don't seem to have enough partitions, and I can't resize the 5G partition I created with BootCamp because the format isn't recognized. What do I do to continue with this install?
UPDATE: I have asked a couple IT people at my school for help on this too, and unfortunately they don't know Mac, just Linux. I tried something on my own, and now I have a stray, seemingly unusable 5GB space on my HD and no way to get it back. Any advice?
Thanks.
hajk
September 16th, 2006, 04:05 AM
I guess you used Boot Camp Assistant to make a 5GB "Windows" partition? Once you start the Dapper installation from the liveCD it will soon ask about disk partitioning. Choose Manual Partitioning at this stage, which opens the GParted partitioning tool: there are three partitons visible, of which the third is the newly made "Windows" partition (it may be labeled "unknown partition"). You must delete this partition, thereby creating unallocated space instead. Then back up a few pages and this time choose to install Ubuntu in the largest unallocated space. From here on, the installer will take care of creating and formatting the partitions /dev/sda3 and /dev/sda4 for / and swap.
If still in doubt, have a look at my install notes (see sig) for the MacBook (not Pro), the procedure would be very similar. There's a note on reclaiming the whole HD for Mac OS X as well.
phico
September 16th, 2006, 05:04 PM
Any advice?
Thanks.
Look here, this is the best explanation about Macbook partitions
you can find .. http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp
(Section : Disk Partitions and their Limitations )
Hope this help. If you do not want multi-boot then you have to use Linux Efi but it will be more difficult for firmware updates..)
michaels
September 16th, 2006, 05:38 PM
I follow this instruction to install xgl and compiz on my macbook pro(the package installed csm, cgwd and cgwd-theme), but the compiz doesn't work well. All the windows don't have title bar and can't be moved as well.
could some one tell me what's the problem for it? and how could I fix it?
bhalash
September 16th, 2006, 06:57 PM
My problem seems to be slightly different from other people's in that Ubuntu won't boot at all. To work backwards from the problem, I installed Ubuntu and Windows, partitioning for a tri-boot. I had originally intended to install Gentoo, but time (a new baby) had me leaning towards Ubuntu instead - I had also intended to use reiserfs under Gentoo, so I reformatted the Linux partition.
The installer ran perfectly, lilo was installed and configured on sda3 and I can mount the partition perfectly fine under the live CD.
rEFIt resynchronized partitions after installation just fine and its menu Linux listed fine, but when I actually boot...black screen, nothing loads.
Partitions are listed weirdly under both rEFIt and diskutil under OS X:
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *74.5 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS OSX 24.0 GB disk0s2
3: EFI 25.0 GB disk0s3
4: Microsoft Basic Data WINDOWS 25.2 GB disk0s4
disk0s2 shows at just EFI under OS X and rEFIt shows the partition as being "Basic Data (FAT)".
On the whole, I'm under the impression that the partition is somehow corrupt. Has anyone experienced this and would have an idea as to my options short of wiping everything again?
EDIT: Fixed this, it was a rEFIt problem.
ZERO_SHIFT
September 17th, 2006, 08:07 PM
I was wondering if you could run the following on a macbook without the firmware as in istalling only ubuntu on your mac:
iSight
mighty mouse -wireless-
and what about xgl on macbook -not pro- is it possible??
thanks in advance
idn
September 17th, 2006, 08:56 PM
I think you can run aiglx on a macbook (not pro) and so run compiz - i have aiglx running on my other machine and it works fine.
Roner
September 18th, 2006, 04:29 AM
After setting up my iMac 20" with rEFIt triple-boot lilo, I was able to get grub to work under rEFIt. I am running Edgy, so I don't know if it would work with dapper, but it is worth a try.
After you have Ubuntu up and running, uninstall lilo, install and configure grub:
sudo dpkg --purge lilo
sudo apt-get install grub
sudo grub-install /dev/sda3
sudo update-grub
sudo vi /etc/grub/menu.lst
Here go to the automagic section, and make sure you change all the hd0,0 references to hd0,2; then make sure you change all the references to your Ubuntu partition from the elaborate location grub created to the simple /dev/sda3. You can also tweak grub's wait time and cancel the menu autohide.
When you are done, run once more
sudo update-grub
And now, upon rebooting and selecting the linux partition, grub should be up and running.
Let me know if it works in Dapper - I am thinking of going back to it. It seems that the Edgy kernel will include evetually all of the Mactel patches (there are quite a few already there), but it is still not completely stable.
michaels
September 19th, 2006, 01:19 PM
should I run the lilo command everytime my system has been update?
:D
phico
September 19th, 2006, 01:41 PM
should I run the lilo command everytime my system has been update?
:D
If the kernel has changed, yes.
If you followed the instruction of this thread,
remember that lilo command for triple boot is
different that for dual boot (dual boot put
lilo boot on mbr while for triple boot I put it on
/dev/sda3)
If you make a mistake, you can still go back with
lilo -u command.
hajk
September 19th, 2006, 01:55 PM
should I run the lilo command everytime my system has been update?
:D
That depends... if the /vmlinuz and /initrd symlinks (in the / directory) point to the updated kernel in the /boot directory, and if you use these symlinks in the /etc/lilo.conf file, then you don't need to reinstall lilo after a kernel update to a new (sub)version (like from 2.6.15-25 to 2.6.15-26). Kernel updates automatically change these symlinks to the latest version installed, so you really should use the symlinks...
Sometimes the kernel (sub)version stays the same when the update is just a change in Ubuntu-supplied patches. The same holds in that case.
Good luck!
jordiR
September 19th, 2006, 06:41 PM
I have followed the Roner's howto to install grub and it doesn't work for me, when I try to execute grub-install I get this error:
The file /boot/grub/stage1 not read correctly.
I'm using Edgy.
ZERO_SHIFT
September 22nd, 2006, 03:04 PM
Will updates affect the Macbook Booting system, thus should we not update at all.
and is it possible to have the Macbook runnug on ubuntu ONLY??
Thanks
Seq
September 23rd, 2006, 11:22 PM
That depends... if the /vmlinuz and /initrd symlinks (in the / directory) point to the updated kernel in the /boot directory, and if you use these symlinks in the /etc/lilo.conf file, then you don't need to reinstall lilo after a kernel update to a new (sub)version (like from 2.6.15-25 to 2.6.15-26). Kernel updates automatically change these symlinks to the latest version installed, so you really should use the symlinks...
Sometimes the kernel (sub)version stays the same when the update is just a change in Ubuntu-supplied patches. The same holds in that case.
Good luck!
With Grub, this is true. lilo, however, does need to be updated when your kernel changes, symlinks or not. The symlinks make things much easier, as you do not need to update the configuration, just re-run lilo. This is why Grub rocks, I think.
The below quote is from the LILO mini-HOWTO (http://tldp.org/HOWTO/LILO-2.html) on TLDP. Emphasis mine:
When Lilo boots the system, it uses BIOS calls to load the Linux kernel off the disk (IDE drive, floppy or whatever). Therefore, the kernel must live in some place that can be accessed by the bios.
At boot time, Lilo is not able to read filesystem data, and any pathname you put in /etc/lilo.conf is resolved at installation time (when you invoke /sbin/lilo). Installation time is when the program builds the tables that list which sectors are used by the files used to load the operating system. As a consequence, all of these files must live in a partition that can be accessed by the BIOS (the files are usually located in the /boot directory, this means that only the root partition of your Linux system needs to be accessed via the BIOS).
Another consequence of being BIOS-based is that you must reinstall the loader (i.e., you must reinvoke /sbin/lilo) any time you modify the Lilo setup. Whenever you recompile your kernel and overwrite your old image you must reinstall Lilo.
n00bWillingToLearn
September 24th, 2006, 12:19 AM
is it possible to have the Macbook runnug on ubuntu ONLY??
It is possible, but not recommended. Among other things, OS x is required for firmware updates. If you want, you can keep OS x installed on an external drive, then reformat your internal drive and use all of that space for Ubuntu. But you should not get rid of OS x entirely, and you should keep your OS x recovery disks also.
illmonkey
October 2nd, 2006, 08:08 AM
Hello I install Xubuntu on my macbook pro. I've some problems with sound, when i plug my headset the speakers don't mute and I don't have sound on my headset..
I follow these tips :
Grab the latest alsa dev release here ftp://ftp.alsa-project.org/pub/drive....12rc1.tar.bz2
Unpack it somewhere.
in the alsa-driver-1.0.12rc1 folder run
./configure --with-cards=hda-intel --with-sequencer=yes
After it is done go to alsa-driver-1.0.12rc1/alsa-kernel/pci/hda and open up hda_codec.c and comment out lines 2135 and 2147 so it now looks like
//if (! cfg->line_outs) {
if (cfg->speaker_outs) {
cfg->line_outs = cfg->speaker_outs;
memcpy(cfg->line_out_pins, cfg->speaker_pins,
sizeof(cfg->speaker_pins));
cfg->speaker_outs = 0;
memset(cfg->speaker_pins, 0, sizeof(cfg->speaker_pins));
} else if (cfg->hp_pin) {
cfg->line_outs = 1;
cfg->line_out_pins[0] = cfg->hp_pin;
cfg->hp_pin = 0;
}
//}
Save the file and then go back to alsa-driver-1.0.12rc1.
Do a make;make install reboot and you should have sound from the speakers.
Problem is the headphone jack will not work (the line out toggle will but the speakers will not auto switch off when an input is plugged in). I will work on adding a check box toggle a little later, but I was eager to get my speakers working so someone else may be as eager as I was. Good luck!
Has some solve this problem?
Thank you!
krutoymuzhik
October 5th, 2006, 10:43 PM
Hey guys im sorry for the n00b question, but im stuck at this point:
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
i am trying to search for help on the board but can't find anything.](*,) How do i create this lilo.conf file? I did the step prior to install lilo and it went fine and d/led etc but just stuck on this part and i dont want to skip it. Any help would be great appreciated.
Thanks
krutoymuzhik
October 8th, 2006, 10:28 AM
Can no one help me at all? I have asked around diffrent places and no one seems to know. Like i stated above, i am trying to create the lilo.conf. I tryed Vi to know success and even opening gedit as sudo and trying to save it as a lilo.conf file in /etc but it just creates a folder instead. I would really like to get this to work, but im stuck at this time. I appreciate anything someone can give me.
Thanks
hajk
October 8th, 2006, 11:12 AM
I recommend that you use the nano editor, which is much easier to use for a newcomer to Linux. So, in a terminal make sure that you are root (with the # prompt), then open the lilo.conf file with
# nano -w /etc/lilo.conf
and type the following lines in this file (assuming that your boot/root file is in /dev/sda4):
boot=/dev/sda4
default=Ubuntu
map=/boot/map
delay=20
root=/dev/sda4
read-only
compact
image=/vmlinuz
initrd=/initrd.img
append="quiet splash lpj=8000000"
label=Ubuntu
Now save the file with Ctl-x, answer Y and hit Enter.
The lpj=8000000 option prevents a kernel panic due to the kernel BogoMips estimate turning out low -- you may have to increase it if you get kernel panics -- but is harmless otherwise. The label is just that, but make sure that it is the same for the default.
Once you get a bit more experience with Linux, you may want to learn the vi editor -- it is very efficient and fast in use, but the learning curve is steep...
krutoymuzhik
October 10th, 2006, 12:16 PM
I recommend that you use the nano editor, which is much easier to use for a newcomer to Linux. So, in a terminal make sure that you are root (with the # prompt), then open the lilo.conf file with
Code:
# nano -w /etc/lilo.conf
Well the problem is I dont have a lilo.conf in /etc at all. I installed lilo like it explained in the instructions, but it did not create a lilo.conf.
This is what im asking, because the instructions state "create" which to me means I must create the lilo.conf and place it in /etc.
But from what I understand from your instructions is it should already be there?
If someone could clarify this to me that would be great. I appreciate all your help.
hajk
October 10th, 2006, 12:27 PM
You would have had your answer if you had just followed the instruction -- nano (or any editor, for that matter) will create the file if it does not already exist! Neat, huh?
michaels
October 11th, 2006, 06:48 AM
I'm a newbie to ubuntu and I intall ubuntu on my macbook pro following this how-to. However, my wireless card doesn't work. In fact, it worked once and after that it doesn't work any more. And When I open the Networking in the Adminstration, it says the wireless card is active.
Could somebody tell me how to configure it?
Thank you
krutoymuzhik
October 11th, 2006, 08:14 AM
Well I got Ubuntu installed, and got Compiz/XGL running smoothly. Only thing I can find now that is out of ordinary, is when I launch to reFit it shows my OS X, and two Linux Pinguins. One of the linux ones work, the other doesn't. I know it has to do with something I screwed up during the install process because I went through it like 4 times.
Other than that Hibernate doesn't work, it crashes the system. And my sound doesn't work, but I guess this is fixed by updating the kernel? Is that true with x86 imacs also?
Thanks for the help.
entangled
October 11th, 2006, 08:52 AM
Will updates affect the Macbook Booting system, thus should we not update at all.
and is it possible to have the Macbook runnug on ubuntu ONLY??
Thanks
Having tried multi-booting and parallels virtual machine on OSX, I found single booting ubuntu is best on my Mac mini (Macbook should be similar). It is easy to do and gives the least trouble. As far as I can see everything that worked under MacOSX also works under ubuntu (printing is even better) and I have only used 4 GB - despite pruning MacOSX it used 30 GB, but I never found out why it was so greedy.
My old MacOSX is on backup disk if ever I need a firmware update, but these are rare. I also run Windows under vmware server on ubuntu. It is free and works very well.
matt_granucci
October 14th, 2006, 05:26 PM
Does anyone have info on fan control for a 15in Macbook pro? They seem to kick in when the system is already way to hot.
Thanks
The General
October 18th, 2006, 02:44 PM
Hi! Great how-to! :)
I am having a problem booting Linux ... I am on a 15" Macbook Pro. ](*,) I followed the instructions exactly, and for some reason when I choose Linux in rEFIt, it seems to hang with a blank screen. I can't tell if the laptop is off or on, but I have to press the power button twice to get it to turn back on, so I'm thinking that it is on. I have this partition layout:
sda1 = 200MB EFI ---
sda2 = 80GB Mac OS X ---
sda3 = 2GB swap swap
sda4 = 29GB ext3 /
Could the size differences be the problem? I don't know much about lilo but did I need to run liloconfig like it said when I apt-got it? :confused: Is there any way I can use GRUB on here? That would make it so much easier for me as I know GRUB really well. I don't want to screw anything up though, so I'll wait for a response. ;)
Thanks :(
Mike
October 20th, 2006, 05:40 PM
After setting up my iMac 20" with rEFIt triple-boot lilo, I was able to get grub to work under rEFIt. I am running Edgy, so I don't know if it would work with dapper, but it is worth a try.
After you have Ubuntu up and running, uninstall lilo, install and configure grub:
sudo dpkg --purge lilo
sudo apt-get install grub
sudo grub-install /dev/sda3
sudo update-grub
sudo vi /etc/grub/menu.lst
Here go to the automagic section, and make sure you change all the hd0,0 references to hd0,2; then make sure you change all the references to your Ubuntu partition from the elaborate location grub created to the simple /dev/sda3. You can also tweak grub's wait time and cancel the menu autohide.
When you are done, run once more
sudo update-grub
And now, upon rebooting and selecting the linux partition, grub should be up and running.
When I do
sudo apt-get install grub
I get the error
"The file /boot/grub/stage1 not read correctly"
any ideas?
mirroredfire
October 22nd, 2006, 02:30 AM
Im having some problems, ive decided to try this with kubuntu and it seems to all work until I get to this point:
the command im trying to put in is lilo -b /dev/sda
the prompt is root@ubuntu:/#
/etc/lilo.conf: No such file or directory
ive double checked and that file is DEFINATELY in the /etc folder
I don't see a penguin on rEFIt unless I get my cd in, and the legacy OS option pops up but just says no OS loaded.
I had to change things around a little bit, for one I have my main / set to sda2 and my swap set to sda3, I switched all the coding to reflect that though :hmm:
enj0y
October 24th, 2006, 06:58 AM
I dont know if you noticed but someone wrote an OSX app which lets you set the minimum fan speed on your Macbook / Pro. You can get it here: http://81.169.182.62/~eidac/software/page5/page5.html
The source code is included, so maybe someone can check whether its easily portable to linux...?
greetings
Mike
October 27th, 2006, 09:36 PM
Edgy installs on Macbook Pro fairly easily, still have to use lilo (grub has a problem with the stage1 file).
The only issue I'm having is get get the middle and right mouse buttons mapped to something.
http://www.ubuntuforums.org/showthread.php?p=1674906
bigbluevan
October 28th, 2006, 01:55 AM
Edgy installs on Macbook Pro fairly easily, still have to use lilo (grub has a problem with the stage1 file).
The only issue I'm having is get get the middle and right mouse buttons mapped to something.
http://www.ubuntuforums.org/showthread.php?p=1674906
I did get synaptics driver working but then my hard drive corrupted (I recommend going with ext3 for the journaling not ext2..). past couple days(after I've recovered from the crash) I've been trying to figure/remember exactly how I got it working.
when I try what I think I did a crash occurs(the crash seems to relate to fglrx) -- simply replace the CorePointer in xorg.conf with what is described here (I may have also changed the Protocol to event) -- someone feel free to try and confirm any of this since I did have it at least working at one point:
http://wiki.debian.org/MacBookPro
edit: I just tried to reproduce this but it didn't crash but it didn't get synaptics working either
Presently I'll get this error in /var/log/Xorg.log
(EE) Synaptics Touchpad no synaptics touchpad detected and no repeater device
(EE) Synaptics Touchpad Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "Synaptics Touchpad"
(II) UnloadModule: "synaptics"
but based on my readings of synaptics, my synaptics driver isn't loading properly. you can cat /proc/bus/input/devices and if it doesn't list the "SynPS/2 Synaptics TouchPad" or "AlpsPS/2 ALPS TouchPad" then according to the trouble shooting guide of synaptics something is wrong. Mine just lists a bunch of Apple stuff.
Also, I recommend trying a newer kernel since it will have proper keyboard support (enables the fn as well as pgup/pgdown/home/end keys, etc) - tested and working in 2.6.18 and 2.6.18.1 (I never tested it with the kernel in the starting post.. ).. anyway....
ajslater
October 28th, 2006, 02:01 AM
Grub works fine on edgy on my MBP 15"
I read somewhere that you have to force MB & MPB touchpads into 'raw' mode before the appletouch or xorg synaptics driver loads or it will just emulate a usb mouse.
bigbluevan
October 28th, 2006, 03:41 PM
I am happy to state I got the synaptics drivers working. With only one caveat - if I restart X/kdm it doesn't detect the synaptics anymore, so I would need to reboot [I haven't tested this with suspend either which may or may not create problems].
My main source of help came from this post:
http://www.jasonparekh.com/?page_id=9
The only modification I had to make was that, in addition to what is posted at the above URL, I also needed to add "blacklist tsdev" to /etc/modprobe.d/appletouch
I realized that it was loading the ts0 device due to what it was saying in /proc/bus/input/devices, you need to make sure it only lists mouseX and eventX -- if it has tsX then it means you should blacklist it.
in response to the fan post earlier, there is this although I haven't had the chance to investigate it (and it may not apply to the mbp )
http://www.jasonparekh.com/?p=11
another patch he has on his site is for improving 2 finger scrolling, I haven't tested it but when I get the time, hopefully I can experiment:
http://www.jasonparekh.com/?p=6
note: the stuff on jason's site appears to be for the macbook not the macbook pro so it may not always apply
jasonparekh
October 28th, 2006, 10:50 PM
My main source of help came from this post:
http://www.jasonparekh.com/?page_id=9
Awesome, people are using my site :)
I added your suggestions with credit (hope you don't mind--if you do, I'll remove them), thanks!
I highly suggest the trackpad patch. It smooths the mouse massively (at least for the MB) and allows for two finger detection even when the fingers are touching each other (no gap between fingers). Also, the fan patch is useful for keeping the MB(P) cool. Both of these patches should apply and work cleanly on the MBP, but please let me know if you run into issues.
jason
Gendo
October 30th, 2006, 10:00 AM
.
Gendo
October 30th, 2006, 10:00 AM
Just a heads up on the sound for the poster a while back that was looking for a change from me. The latest alsa release 1.0.13 looks to have everything fixed. http://www.alsa-project.org , speaker mute when the headphone is plugged in etc. Anyhow download it, compile the driver, lib, and utils packages. Reboot and then make sure to unmute all the channels. Works with Edgy. Good Luck.
Mike
October 30th, 2006, 02:11 PM
Just as a warning, I'm going to move this thread to the Laptop area of the forum. The Apple PPC part of the forum is for PPC talk only.
I will leave a permanent re-direct.
Mike
Mike
October 30th, 2006, 02:47 PM
Does the trackpad patch not appear to work with a Macbook Pro.
Awesome, people are using my site :)
I added your suggestions with credit (hope you don't mind--if you do, I'll remove them), thanks!
I highly suggest the trackpad patch. It smooths the mouse massively (at least for the MB) and allows for two finger detection even when the fingers are touching each other (no gap between fingers). Also, the fan patch is useful for keeping the MB(P) cool. Both of these patches should apply and work cleanly on the MBP, but please let me know if you run into issues.
jason
frigaut
October 30th, 2006, 03:25 PM
I confirm that I have had no success with the trackpad thing on a macbook pro.
synaptic does not detect a synaptic trackpad, even though appletouch is loaded before usbhid, and tsdev is blacklisted.
frigaut
October 30th, 2006, 03:51 PM
Just a heads up on the sound for the poster a while back that was looking for a change from me. The latest alsa release 1.0.13 looks to have everything fixed. http://www.alsa-project.org , speaker mute when the headphone is plugged in etc. Anyhow download it, compile the driver, lib, and utils packages. Reboot and then make sure to unmute all the channels. Works with Edgy. Good Luck.
hum...did all of that (drivers, libs, utils) using the latest 1.0.13 versions, and unmuted all channels, but no luck, still nothing on the speakers. darn.
just to confirm: I "made install" the drivers and just rebooted. I assume it's the same driver names and that the one that come with edgy and that I don't have to modprobe them?
Same for the libs and utils: I just compiled and installed them, but did nothing else. right?
bigbluevan
October 31st, 2006, 02:26 PM
I confirm that I have had no success with the trackpad thing on a macbook pro.
synaptic does not detect a synaptic trackpad, even though appletouch is loaded before usbhid, and tsdev is blacklisted.
Are you using 2.6.18?
http://lxr.linux.no/source/drivers/usb/input/appletouch.c?v=2.6.18
you will most likely need to be running a minimum of 2.6.18, "Geyser 3" is what shows in my dmesg and it doesn't look like a mention of that wasn't added until 2.6.18 (refer to this diff (http://lxr.linux.no/diff/drivers/usb/input/appletouch.c?v=2.6.18;diffval=2.6.17.13;diffvar=v) ).
If the modules have been blacklisted properly, it should list "appletouch" instead of "Apple Computers blahblahtrackpad" in /proc/bus/input/devices
If you are running 2.6.18 and still having issues post the contents of the following:
/proc/bus/input/devices
/var/log/Xorg.0.log
dmesg
/etc/X11/xorg.conf
/etc/modules
/etc/modprobe.d/appletouch
that'd be just about everything needed to diagnose the problem
ALSA stuff:
I also haven't been able to get the sound working.
I followed the instructions here for compiling:
http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=Intel&card=ICH+southbridge+HD-audio+and+modem.&chip=ICH6%2C+ICH6M%2C+ICH7%2C+ESB2&module=hda-intel
I haven't had time to strongly investigate it but IIRC it wasn't compiling the sequencer module and I was receiving a variety of errors as a result of this. it's been a low priority though but I will post details here if I get it.
ajslater
October 31st, 2006, 04:37 PM
MBP 15" sound works with the 2.6.17 kernel and ALSA 1.0.13
MBP