Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati


Guida verificata con Ubuntu: 22.04

Problemi in questa pagina? Segnalali in questa discussione

Introduzione

In questa pagina sono riportate le informazioni sul riconoscimento hardware del portatile Apple MacBook Air 6.2 e il resoconto dell'installazione di Xubuntu in dual boot a fianco di OS X.

Se invece si desidera eliminare OS X per usare Ubuntu come unico sistema si possono ignorare i primi 4 punti del paragrafo Installazione e, quando richiesto, scegliere di cancellare tutto il disco e usare Ubuntu

{*} Scheda tecnica

Marca:

Apple

Modello:

MacBook Air 6.2 (metà 2013)

Memoria RAM:

4 GB 1600 MHz

Processore:

Intel Core i5-4250U @ 1.30GHz

Scheda video:

Intel HD Graphics 5000 1536 MB

Schermo:

13"

La RAM è composta da due moduli DDR3 da 2 GB in due slot.
La versione del sistema operativo installata è OS X Yosemite 10.10.5.

Installazione

  1. Avviare il Mac e aprire il programma Disk Utility dalla cartella Utility delle Applicazioni o cercandolo con Spotlight.

  2. Nel pannello di sinistra selezionare l'unità di livello più alto per il disco quindi, nel pannello di destra, selezionare Partizione.

  3. Selezionare la partizione esistente, fare clic sul pulsante [+], trascinare il separatore per ridimensionare la partizione e creare spazio non allocato.

  4. Fare clic su Applica per ridimensionare la partizione quindi spegnere il Mac.

  5. Inserire la Live USB di Ubuntu e avviare il Mac tenendo premuto il tasto alt quindi, alla schermata del boot manager, selezionare EFI Boot e premere Invio.

  6. Installare Ubuntu secondo le consuete modalità avendo cura di:

    • selezionare il partizionamento manuale;
    • selezionare lo spazio non allocato creato in precedenza con Disk Utility, formattandolo nel filesystem Linux desiderato.

Durante la procedura di installazione selezionare la voce relativa al software di terze parti per permettere l'istallazione del driver proprietario Broadcom 802.11 Linux STA wireless (senza il quale il Wi-Fi non funzionerà).

L'installazione si conclude correttamente ma potrebbe essere necessario forzare lo spegnimento dal pulsante di accensione.

Al riavvio partirà direttamente Ubuntu. Se si è scelto di installare in dual boot, per potere avviare OS X seguire la seguente procedura:

  1. Aprire con i privilegi di amministrazione e con un editor di testo il file /etc/default/grub.

  2. Aggiungere una riga contenente il seguente testo:

    GRUB_DISABLE_OS_PROBER=false
  3. Salvare e chiudere l'editor.
  4. Aprire con i privilegi di amministrazione e con un editor di testo il file /etc/grub.d/40_custom.

  5. Aggiungere il seguente testo:

    menuentry "OS X" {
        insmod hfsplus
        search --set=root --file /System/Library/CoreServices/boot.efi
        chainloader /System/Library/CoreServices/boot.efi
    }
  6. Digitare in un terminale il seguente comando:

    sudo update-grub

Ad ogni riavvio verrà visualizzato il menu del boot loader GRUB da cui si potrà scegliere quale sistema avviare.

GRUB non riesce ad avviare versioni di OS X pari o superiori a 10.13 (High Sierra). In questi casi è possibile tenere premuto il tasto alt all'avvio del Mac, quindi alla comparsa del boot manager selezionare il nome del volume Apple (di solito Macintosh HD) e premere Invio. In alternativa si può installare il boot loader rEFInd

Rilevamento dell'hardware

Dispositivi connessi

Per verificare il corretto rilevamento dell'hardware del portatile, digitare in un terminale il seguente comando:

lspci

Il comando precedente restituirà una schermata simile alla seguente:

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:15.0 DMA controller: Intel Corporation 8 Series Low Power Sub-System DMA (rev 04)
00:15.4 Serial bus controller: Intel Corporation 8 Series SPI Controller #1 (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4360 802.11ac Wireless Network Adapter (rev 03)
04:00.0 SATA controller: Marvell Technology Group Ltd. 88SS9183 PCIe SSD Controller (rev 14)
05:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
06:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
06:03.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
06:04.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
06:05.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
06:06.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
07:00.0 System peripheral: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)

Processore

Per visualizzare i dettagli sul processore, aprire in lettura il file /proc/cpuinfo, digitando in un terminale il seguente comando:

cat /proc/cpuinfo

Il risultato sarà simile al seguente:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 69
model name      : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
stepping        : 1
microcode       : 0x26
cpu MHz         : 1903.495
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
vmx flags       : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_unknown
bogomips        : 3800.04
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 69
model name      : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
stepping        : 1
microcode       : 0x26
cpu MHz         : 1997.688
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
vmx flags       : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_unknown
bogomips        : 3800.04
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 69
model name      : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
stepping        : 1
microcode       : 0x26
cpu MHz         : 1868.340
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
vmx flags       : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_unknown
bogomips        : 3800.04
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 69
model name      : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
stepping        : 1
microcode       : 0x26
cpu MHz         : 2004.199
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
vmx flags       : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_unknown
bogomips        : 3800.04
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

Configurazione dei componenti

Webcam

Driver

  1. Installare le dipendenze digitando nel terminale :

    sudo apt install -y curl git kmod libssl-dev linux-headers-generic cpio make xz-utils
  2. Creare il file /etc/kernel/postinst.d/99-facetime-camera con un editor di testo e con i privilegi di amministrazione con il seguente contenuto:

    set -e
    
    export CONFIG_MODULE_SIG=n
    export CONFIG_MODULE_SIG_ALL=n
    
    # La versione del kernel da installare ci viene passata
    export KERNELRELEASE=${1}
    
    echo -e "\n### Installazione della webcam FacetimeHD per $KERNELRELEASE ###"
    temp_dir=$(mktemp -d)
    cd $temp_dir
    git clone https://github.com/patjak/facetimehd-firmware.git
    git clone https://github.com/patjak/bcwc_pcie.git
    
    echo -e "\n### Estrazione del firmware"
    cd facetimehd-firmware
    echo "### nella directory $(pwd)"
    make
    make install
    
    echo -e "\n### Installazione del driver"
    cd $temp_dir/bcwc_pcie
    echo "### nella directory $(pwd)"
    make
    make install
    
    depmod               # informa il kernel del nuovo modulo
    modprobe facetimehd  # carica il modulo
    mkdir -p "/etc/modules-load.d"
    cat > "/etc/modules-load.d/facetimehd.conf" << EOL
    videobuf2-common
    videobuf2_v4l2
    videobuf2-dma-sg
    facetimehd
    EOL
    
    rm -rf $temp_dir
    echo -e "\n### Installazione della webcam FacetimeHD completata. ###"
  3. Rendere eseguibile il file ed eseguirlo digitando nel terminale:

    sudo chmod +x /etc/kernel/postinst.d/99-facetime-camera
    sudo /etc/kernel/postinst.d/99-facetime-camera $(uname -r)
    Lo script si occuperà di compilare e installare il driver ogni volta che si aggiorna il kernel.

Colori

La webcam potrebbe rendere i colori in modo impreciso. Per creare i file di calibrazione del sensore seguire questa procedura che utilizza il driver Apple per Windows.

  1. Installare il pacchetto unrar.

  2. Digitare i seguenti comandi in un terminale :

    wget https://download.info.apple.com/Mac_OS_X/031-30890-20150812-ea191174-4130-11e5-a125-930911ba098f/bootcamp5.1.5769.zip
    unzip bootcamp5.1.5769.zip
    cd BootCamp/Drivers/Apple/ && unrar x AppleCamera64.exe
    dd bs=1 skip=1663920 count=33060 if=AppleCamera.sys of=9112_01XX.dat
    dd bs=1 skip=1644880 count=19040 if=AppleCamera.sys of=1771_01XX.dat
    dd bs=1 skip=1606800 count=19040 if=AppleCamera.sys of=1871_01XX.dat
    dd bs=1 skip=1625840 count=19040 if=AppleCamera.sys of=1874_01XX.dat
    echo "a1831db76ebd83e45a016f8c94039406  1771_01XX.dat
    017996a51c95c6e11bc62683ad1f356b  1871_01XX.dat
    3c3cdc590e628fe3d472472ca4d74357  1874_01XX.dat
    479ae9b2b7ab018d63843d777a3886d1  9112_01XX.dat" > checksum
    md5sum -c checksum

    L'output dell'ultimo comando deve risultare uguale alle seguenti righe:

    1771_01XX.dat: OK
    1871_01XX.dat: OK
    1874_01XX.dat: OK
    9112_01XX.dat: OK
  3. Per integrare nel driver i file di calibrazione digitare i comandi:

    sudo cp *_01XX.dat /lib/firmware/facetimehd/
    sudo modprobe -r facetimehd && sudo modprobe facetimehd

Scheda video

Scheda video

Riconosciuta automaticamente {OK}

Scheda audio

Riconosciuta automaticamente {OK}

Interfacce di rete

Nello strumento Driver aggiuntivi abilitare la voce Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary) per permettere il funzionamento della scheda di rete wireless.

Touchpad

Riconosciuto automaticamente {OK}

Tasti rapidi

Riconosciuti automaticamente {OK}

Bluetooth

Riconosciuto automaticamente {OK}

Lettore di memorie SD

Riconosciuto automaticamente {OK}

Ulteriori risorse


CategoryHomepage