Difference between revisions of "Xubuntu PPC issues"

From FreekiWiki
Jump to navigation Jump to search
m (Fixed internal link, format)
 
(21 intermediate revisions by 2 users not shown)
Line 16: Line 16:
 
|-
 
|-
 
! rowspan=3 |
 
! rowspan=3 |
! colspan=11 | G4
+
! colspan=1 | G3
 +
! colspan=10 | G4
 
! colspan=2  | G5
 
! colspan=2  | G5
 
|-
 
|-
 
! colspan=2 | iBook
 
! colspan=2 | iBook
! colspan=6 | Powerbook
+
! colspan=2 | Titanium
 +
! colspan=4 | Powerbook (Al)
 
! | Mini
 
! | Mini
 
! | Lamp
 
! | Lamp
Line 27: Line 29:
 
! | Tower   
 
! | Tower   
 
|-
 
|-
|width=18pt| 4,1 4,2
 
| other
 
|width=18pt| 3,2
 
|width=18pt| 3,3
 
3,4
 
3,5
 
|width=18pt| [http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.0_17.html 5,1]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_867_12.html 6,1]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.0_12.html 6,2]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.33_12.html 6,4]
 
|width=18pt| [http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.25_15.html 5,2]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.33_17.html 5,3]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.5_15.html 5,4]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.5_17.html 5,5]
 
|width=18pt| [http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.5_12.html 6,8]
 
|width=18pt| [http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.67_15.html 5,6]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.67_17.html 5,7]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.67_15_hr.html 5,8]
 
[http://www.everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.67_17_hr.html 5,9]
 
|width=20pt| 10,1  10,2
 
 
|
 
|
 +
{{EverymacSpecSearch|ibook||PowerBook|4,1}}
 +
{{EverymacSpec|ibook|600_14|PowerBook|4,2}}
 +
|other
 
|
 
|
 +
{{EverymacSpecSearch|powerbook_g4|400|PowerBook|3,2}}
 
|
 
|
 +
{{EverymacSpecSearch|powerbook_g4|667|PowerBook|3,3}}
 +
{{EverymacSpecSearch|powerbook_g4|667_dvi|PowerBook|3,4}}
 +
{{EverymacSpecSearch|powerbook_g4|867|PowerBook|3,5}}
 
|
 
|
 +
{{EverymacSpec|powerbook_g4|1.0_17|PowerBook|5,1}}
 +
{{EverymacSpec|powerbook_g4|867_12|PowerBook|6,1}}
 +
{{EverymacSpec|powerbook_g4|1.0_12|PowerBook|6,2}}
 +
{{EverymacSpec|powerbook_g4|1.33_12|PowerBook|6,4}}
 +
|
 +
{{EverymacSpecSearch|powerbook_g4|1.25_15|PowerBook|5,2}}
 +
{{EverymacSpec|powerbook_g4|1.33_17|PowerBook|5,3}}
 +
{{EverymacSpecSearch|powerbook_g4|1.5_15|PowerBook|5,4}}
 +
{{EverymacSpec|powerbook_g4|1.5_17|PowerBook|5,5}}
 +
|
 +
{{EverymacSpec|powerbook_g4|1.5_12|PowerBook|6,8}}
 +
|
 +
{{EverymacSpecSearch|powerbook_g4|1.67_15|PowerBook|5,6}}
 +
{{EverymacSpec|powerbook_g4|1.67_17|PowerBook|5,7}}
 +
{{EverymacSpec|powerbook_g4|1.67_15_hr|PowerBook|5,8}}
 +
{{EverymacSpec|powerbook_g4|1.67_17_hr|PowerBook|5,9}}
 +
|
 +
{{EverymacSpecSearch|mac_mini|g4_1.42|PowerMac|10,1}}
 +
{{EverymacSpecSearch|mac_mini|g4_1.5|PowerMac|10,2}}
 +
|
 +
{{EverymacSpecSearch|imac|800_fp|PowerMac|4,2}}
 +
{{EverymacSpec|imac|800_17_fp|PowerMac|4,5}}
 +
{{EverymacSpecSearch|imac|1.25_17_fp|PowerMac|6,1}}
 +
{{EverymacSpec|imac|1.25_20_fp|PowerMac|6,3}}
 +
|
 +
{{EverymacSpecSearch|powermac_g4|466|PowerMac|3,4}}
 +
{{EverymacSpecSearch|powermac_g4|733_qs|PowerMac|3,5}}
 +
{{EverymacSpecSearch|powermac_g4|867_dp_mdd|PowerMac|3,6}}
 +
|
 +
{{EverymacSpecSearch|imac|g5_1.8_20|PowerMac|8,1}}
 +
{{EverymacSpecSearch|imac|g5_2.0_20|PowerMac|8,2}}
 +
{{EverymacSpecSearch|imac|g5_2.1_20|PowerMac|12,1}}
 +
|
 +
{{EverymacSpecSearch|powermac_g5|2.0_dp|PowerMac|7,2}}
 +
{{EverymacSpecSearch|powermac_g5|2.7_dp|PowerMac|7,3}}
 +
{{EverymacSpec|powermac_g5|1.8_2|PowerMac|9,1}}
 +
{{EverymacSpecSearch|powermac_g5|quad_2.5|PowerMac|11,2}}
 
|-
 
|-
 
|| Video:[[#Rage128|Rage128]]
 
|| Video:[[#Rage128|Rage128]]
Line 56: Line 82:
 
|-
 
|-
 
|| Video:[[#Nvidia|Nvidia]]
 
|| Video:[[#Nvidia|Nvidia]]
||-||-||-||-||Y||-||Y||-  ||-|| ||  || ||
+
||-||-||-||-||[[#Nvidia12inch|Y*]]||-||Y||-  ||-|| ||  || ||
 
|-
 
|-
 
|| Video:[[#Radeon|Radeon]]
 
|| Video:[[#Radeon|Radeon]]
Line 62: Line 88:
 
|-
 
|-
 
|| Audio:[[#snd-aoa|snd-aoa]]
 
|| Audio:[[#snd-aoa|snd-aoa]]
|| || || || || || ||Y||Y  || || ||  || ||
+
|| || || || ||-|| ||Y||Y   ||Y|| ||  || ||
 +
|-
 +
|| Audio:[[#alsamixer|alsamixer]]
 +
|| || || || ||Y|| || ||   || || ||  || ||
 
|-
 
|-
 
|| Wireless:[[#BCM4306|BCM4306]]
 
|| Wireless:[[#BCM4306|BCM4306]]
 +
|| || || || ||Y|| || ||    || || ||  || ||
 +
|-
 +
|| Power:[[#CPU frequency scaling|CPU scaling]]/fan control
 
|| || || || || || || ||    || || ||  || ||
 
|| || || || || || || ||    || || ||  || ||
 
|-
 
|-
 
|| Power:[[#Battery monitor|Battery monitor]]
 
|| Power:[[#Battery monitor|Battery monitor]]
 
||Y||Y||Y||Y||Y||Y||Y||Y
 
||Y||Y||Y||Y||Y||Y||Y||Y
|-
+
|rowspan=5 colspan=5|
|| Power:[[#CPU frequency scaling|CPU scaling]]/fan control
 
|| || || || || || || ||
 
 
|-
 
|-
 
|| Power:[[#Display sleep|Display sleep]]/suspend
 
|| Power:[[#Display sleep|Display sleep]]/suspend
Line 83: Line 113:
 
|-
 
|-
 
|| Input:[[#Appletouch smoothing|Appletouch smoothing]]
 
|| Input:[[#Appletouch smoothing|Appletouch smoothing]]
|| || || || || || || ||Y
+
|| || || || ||N|| || ||Y
 
|}
 
|}
 
  
 
==Video==
 
==Video==
Line 94: Line 123:
 
(Source: https://wiki.ubuntu.com/PowerPCFAQ#Nvidia_cards, [[Linux_PPC_Testing#Video_Drivers_on_12.22_PowerBooks]])
 
(Source: https://wiki.ubuntu.com/PowerPCFAQ#Nvidia_cards, [[Linux_PPC_Testing#Video_Drivers_on_12.22_PowerBooks]])
  
THIS METHOD NEEDS VALIDATION.
+
'''Goal: replace xserver-xorg-video-nv package'''
Do either A or B:
+
 
=====A) Recompile xserver-xorg-video-nv package=====
+
FOLLOWING METHOD NEEDS VALIDATION:
Remove existing version:
+
 
 +
1) Remove existing version:
 
   sudo apt-get purge xserver-xorg-video-nv
 
   sudo apt-get purge xserver-xorg-video-nv
Temporarily append lines to /etc/apt/sources.list:
+
 
 +
2) Either A) install existing package OR B) recompile
 +
 
 +
A) Install existing package
 +
*Download [[Media:Xserver-xorg-video-nv_2.1.17-3_powerpc.deb|pre-compiled driver]]
 +
*Install it:
 +
  ???
 +
 
 +
B) Recompile package
 +
*Temporarily append 2 lines to /etc/apt/sources.list:
 
   sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
 
   sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
 
   sudo echo deb http://ports.ubuntu.com/ubuntu-ports/ precise universe >> /etc/apt/sources.list
 
   sudo echo deb http://ports.ubuntu.com/ubuntu-ports/ precise universe >> /etc/apt/sources.list
 
   sudo echo deb-src http://archive.ubuntu.com/ubuntu precise universe >> /etc/apt/sources.list
 
   sudo echo deb-src http://archive.ubuntu.com/ubuntu precise universe >> /etc/apt/sources.list
Update build tools:
+
*Update build tools:
 
   sudo apt-get update
 
   sudo apt-get update
 
   sudo apt-get install build-essential fakeroot dpkg-dev
 
   sudo apt-get install build-essential fakeroot dpkg-dev
Create source dir:
+
*Create source dir:
 
   mkdir nv-build
 
   mkdir nv-build
 
   cd nv-build
 
   cd nv-build
 
   apt-get source xserver-xorg-video-nv
 
   apt-get source xserver-xorg-video-nv
Compile (VERIFY VERSION 2.1.17):
+
*Compile (VERIFY VERSION 2.1.17):
 
   cd xserver-xorg-video-nv-2.1.17
 
   cd xserver-xorg-video-nv-2.1.17
 
   sudo apt-get build-dep xserver-xorg-video-nv
 
   sudo apt-get build-dep xserver-xorg-video-nv
Line 116: Line 155:
 
   cd ..
 
   cd ..
 
   sudo dpkg -i ./*.deb
 
   sudo dpkg -i ./*.deb
Restore original /etc/apt/sources.list:
+
*Restore original /etc/apt/sources.list:
 
   sudo mv /etc/apt/sources.list.old /etc/apt/sources.list
 
   sudo mv /etc/apt/sources.list.old /etc/apt/sources.list
 
   (sudo apt-get update)?
 
   (sudo apt-get update)?
Remove nouveau driver:
+
 
 +
 
 +
3) Remove and blacklist nouveau driver:
 
   sudo apt-get remove xserver-xorg-video-nouveau
 
   sudo apt-get remove xserver-xorg-video-nouveau
 +
  sudo echo blacklist nouveau >> /etc/modprobe.conf
  
=====B) Install pre-compiled nv package=====
+
<span id="Nvidia12inch">Note: certain powerbooks (all 12"?) will appear to work correctly without this change, using the default nouveau driver, but will take intolerably long (e.g 7+ minutes) to boot, leaving various nouveau-related errors in the logs (e.g. /var/log/dmesg).</span>
*Download [[Media:Xserver-xorg-video-nv_2.1.17-3_powerpc.deb|pre-compiled driver]]
 
*Edit /etc/modprobe.conf to add:
 
  blacklist nouveau
 
  
 
===Radeon===
 
===Radeon===
Line 132: Line 171:
 
==Audio==
 
==Audio==
 
===snd-aoa===
 
===snd-aoa===
 +
(Source: https://wiki.ubuntu.com/PowerPCFAQ#Why_do_I_have_no_sound.3F)
 +
 +
Newer systems (>2005ish?) use audio driver snd-aoa instead of snd-powermac, and it may be incorrectly blacklisted.
 +
 +
To comment out any snd-aoa* references from blacklist:
 +
<!--  sudo rm /etc/modprobe.d/blacklist.local.conf-->
 +
<!--  sudo sed -i.backup '/snd-aoa/d' /etc/modprobe.d/blacklist.local.conf-->
 +
  sudo sed -i -e "/^snd-aoa/s/^/#/" /etc/modprobe.d/blacklist.local.conf
 +
 +
After reboot, audio device(s) should be recognized.
 +
 +
===alsamixer===
 +
Defaults for alsamixer are set too low, and sound seems not to work.  Need to change master channel defaults?
  
 
==Wireless==
 
==Wireless==
 
===BCM4306===
 
===BCM4306===
The BCM4306 wireless card is a known troublemaker.  However, the <code>b43</code> driver has vastly improved over the last couple of years and should support this chip without issue.  We'll just need to add the appropriate repository. Run the following in a terminal:
+
The BCM4306 wireless card is a known troublemaker.  However, the <code>b43</code> driver has vastly improved over the last couple of years and should support this chip without issue.  We'll just need to add the appropriate repository.  
 +
 
 +
Run [[Media:Mac-bcm-enable-wifi.sh | this script]].
 +
Wifi should then work without rebooting.
 +
 
 +
Or instead, run the following equivalent in a terminal:
 
   sudo -i
 
   sudo -i
 
   cat << EOF >> /etc/apt/sources.list.d/b43.list
 
   cat << EOF >> /etc/apt/sources.list.d/b43.list
Line 151: Line 208:
 
   sudo modprobe pmu_battery
 
   sudo modprobe pmu_battery
  
To enable it permanently for all sessions, edit the file /etc/modules:
+
To enable it permanently for all sessions:
   sudo nano /etc/modules
+
   sudo echo pmu_battery >> /etc/modules
or
 
  gksudo gedit /etc/modules
 
  
and add the following line:
+
Then battery monitor should work on reboot.
  pmu_battery
 
Save and exit, and battery monitor should work on reboot.
 
  
 
===CPU frequency scaling===
 
===CPU frequency scaling===
Line 179: Line 232:
 
==Input Devices==
 
==Input Devices==
 
===Right-click emulation===
 
===Right-click emulation===
Ubuntu's default right-click is F12, which is unorthodox and inconvenient. To add the customary MacOSX key control-click, edit the file /etc/default/mouseemu:
+
Ubuntu's default right-click is F12, which is unorthodox and inconvenient. To add the customary MacOSX key (control-click), edit the file /etc/default/mouseemu to uncomment the line
  sudo nano /etc/default/mouseemu
+
''RIGHT_CLICK="-right 29 272"'':
and uncomment the line
+
 
  RIGHT_CLICK="-right 29 272"
+
  sudo sed -i "/right 29 272/ s/^# *//" /etc/default/mouseemu
 +
 
 
Reboot to enable the new right-click mapping.
 
Reboot to enable the new right-click mapping.
  
Line 189: Line 243:
 
===Appletouch smoothing===
 
===Appletouch smoothing===
  
[[Category:Mac Development]]
+
 
 +
===Installation Options===
 +
Install using mini-image (CD or netboot) with following options (defaults in parens)
 +
  Lang:(English)
 +
  Location:(US)
 +
  Keyboard:(no); (English/US); (English/US)
 +
  Hostname: xubuntu-ppc-pbX-Y
 +
  Mirror: (UK); (ports.ubuntu.com); ()
 +
  Username:Default User;  oem
 +
  Password: freegeek; freegeek
 +
  Encrypt Home: (no)
 +
  Timezone=LosAngeles: (yes)
 +
  Partitioning: (Guided,Entire Disk); (SCSI1); yes
 +
  Updates: (no automatic)
 +
  Packages:Xubuntu desktop
 +
...
 +
  Time=UTC:(yes)
 +
  Reboot:(continue)
 +
 
 +
 
 +
 
 +
[[Category:Macintosh Archive]]

Latest revision as of 15:39, 21 February 2014


Plan of Action for Finalizing the Linux PPC Project
  • Fleshing out the Issues Matrix
    • Filling in all cells
    • Linking to existing documentation
  • Identifying and developing documentation and procedures for all known issues
    • Validating issues identified
  • Developing long-term/robust fixes over hacks
  • Developing Mac Build procedures, checklists

Issue Relevance Matrix

Relevance of configuration issue to Mac PPC models
G3 G4 G5
iBook Titanium Powerbook (Al) Mini Lamp Tower iMac Tower
other
Video:Rage128 Y - Y - - - - - -
Video:Nvidia - - - - Y* - Y - -
Video:Radeon - Y - Y - Y - Y Y
Audio:snd-aoa - Y Y Y
Audio:alsamixer Y
Wireless:BCM4306 Y
Power:CPU scaling/fan control
Power:Battery monitor Y Y Y Y Y Y Y Y
Power:Display sleep/suspend
Input:Right-click Y Y Y Y Y Y Y Y
Input:Single-touch scrolling Y Y Y Y Y Y Y Y
Input:Appletouch smoothing N Y

Video

Rage128

(Source: https://wiki.ubuntu.com/PowerPCFAQ#ATI_Rage_128_cards)

Nvidia

(Source: https://wiki.ubuntu.com/PowerPCFAQ#Nvidia_cards, Linux_PPC_Testing#Video_Drivers_on_12.22_PowerBooks)

Goal: replace xserver-xorg-video-nv package

FOLLOWING METHOD NEEDS VALIDATION:

1) Remove existing version:

 sudo apt-get purge xserver-xorg-video-nv

2) Either A) install existing package OR B) recompile

A) Install existing package

 ???

B) Recompile package

  • Temporarily append 2 lines to /etc/apt/sources.list:
 sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
 sudo echo deb http://ports.ubuntu.com/ubuntu-ports/ precise universe >> /etc/apt/sources.list
 sudo echo deb-src http://archive.ubuntu.com/ubuntu precise universe >> /etc/apt/sources.list
  • Update build tools:
 sudo apt-get update
 sudo apt-get install build-essential fakeroot dpkg-dev
  • Create source dir:
 mkdir nv-build
 cd nv-build
 apt-get source xserver-xorg-video-nv
  • Compile (VERIFY VERSION 2.1.17):
 cd xserver-xorg-video-nv-2.1.17
 sudo apt-get build-dep xserver-xorg-video-nv
 dpkg-buildpackage -rfakeroot -b
 cd ..
 sudo dpkg -i ./*.deb
  • Restore original /etc/apt/sources.list:
 sudo mv /etc/apt/sources.list.old /etc/apt/sources.list
 (sudo apt-get update)?


3) Remove and blacklist nouveau driver:

 sudo apt-get remove xserver-xorg-video-nouveau
 sudo echo blacklist nouveau >> /etc/modprobe.conf

Note: certain powerbooks (all 12"?) will appear to work correctly without this change, using the default nouveau driver, but will take intolerably long (e.g 7+ minutes) to boot, leaving various nouveau-related errors in the logs (e.g. /var/log/dmesg).

Radeon

(Source: https://wiki.ubuntu.com/PowerPCFAQ#Radeon_cards)

Audio

snd-aoa

(Source: https://wiki.ubuntu.com/PowerPCFAQ#Why_do_I_have_no_sound.3F)

Newer systems (>2005ish?) use audio driver snd-aoa instead of snd-powermac, and it may be incorrectly blacklisted.

To comment out any snd-aoa* references from blacklist:

 sudo sed -i -e "/^snd-aoa/s/^/#/" /etc/modprobe.d/blacklist.local.conf

After reboot, audio device(s) should be recognized.

alsamixer

Defaults for alsamixer are set too low, and sound seems not to work. Need to change master channel defaults?

Wireless

BCM4306

The BCM4306 wireless card is a known troublemaker. However, the b43 driver has vastly improved over the last couple of years and should support this chip without issue. We'll just need to add the appropriate repository.

Run this script. Wifi should then work without rebooting.

Or instead, run the following equivalent in a terminal:

 sudo -i
 cat << EOF >> /etc/apt/sources.list.d/b43.list
 deb http://ports.ubuntu.com/ubuntu-ports/ precise multiverse
 deb-src http://ports.ubuntu.com/ubuntu-ports/ precise multiverse
 EOF
 apt-get update && apt-get purge -y bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
 apt-get install b43-fwcutter firmware-b43-installer 

And reboot the system.

Power

Battery monitor

To enable the battery monitor for the current session:

 sudo modprobe pmu_battery

To enable it permanently for all sessions:

 sudo echo pmu_battery >> /etc/modules

Then battery monitor should work on reboot.

CPU frequency scaling

(Source: https://wiki.ubuntu.com/PowerPCFAQ#How_can_I_use_powernowd_for_CPU_frequency_scaling.3F)

To reduce CPU power consuption in G3 and G4 laptops, replace the default 'ondemand' kernel governor with 'powernowd'. First, install the powernowd package:

 sudo apt-get install laptop-detect
 wget -P/tmp http://ports.ubuntu.com/ubuntu-ports/pool/universe/p/powernowd/powernowd_1.00-1ubuntu5_powerpc.deb
 sudo dpkg -i /tmp/powernowd_1.00-1ubuntu5_powerpc.deb

The powernowd package is also available from the Ubuntu Software Center interface.

Finally, disable the ondemand governor:

 sudo update-rc.d ondemand disable

Display sleep

Input Devices

Right-click emulation

Ubuntu's default right-click is F12, which is unorthodox and inconvenient. To add the customary MacOSX key (control-click), edit the file /etc/default/mouseemu to uncomment the line RIGHT_CLICK="-right 29 272":

 sudo sed -i "/right 29 272/ s/^# *//" /etc/default/mouseemu

Reboot to enable the new right-click mapping.

Single-touch scrolling

Appletouch smoothing

Installation Options

Install using mini-image (CD or netboot) with following options (defaults in parens)

 Lang:(English)
 Location:(US)
 Keyboard:(no); (English/US); (English/US)
 Hostname: xubuntu-ppc-pbX-Y
 Mirror: (UK); (ports.ubuntu.com); ()
 Username:Default User;  oem
 Password: freegeek; freegeek
 Encrypt Home: (no)
 Timezone=LosAngeles: (yes)
 Partitioning: (Guided,Entire Disk); (SCSI1); yes
 Updates: (no automatic)
 Packages:Xubuntu desktop
...
  Time=UTC:(yes) 
  Reboot:(continue)