ubuntu 18.04.3 LTS 无法识别我的 MacBook 板载摄像头

ubuntu 18.04.3 LTS 无法识别我的 MacBook 板载摄像头

我最近用 Ubuntu 18.04.3 替换了我的 macair 操作系统。我安装了 skype,发现摄像头无法识别。

以下是有关我的系统的一些信息:

lshw输出

description: Laptop
product: MacBookAir7,1 (System SKU#)
vendor: Apple Inc.
version: 1.0
serial: C02P7CM7GFWM
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
configuration: boot=normal chassis=laptop family=Mac sku=System SKU# uuid=6CC9DA71-AC5E-7B52-AB2A-5CC6442374ED

的结果

sudo lsmod | grep video 

给出

video  49152  1 i915

/etc/local/src在我的配置中不存在

/usr/src,我有以下内容

bcmwl-6.30.223.271+bdcom  linux-headers-5.0.0-23  linux-headers-5.0.0-23-generic

如果有人愿意帮助我解决这个问题,我很乐意听到他们的意见。

答案1

来自@simon-shields 编辑的问题:

这就是我修复它的方法。

(请注意,这需要curl安装,可以使用 来完成sudo apt install curl。)

1)克隆来自https://github.com/patjak/bcwc_pcie.git

$ cd /usr/local/src
$ sudo git clone https://github.com/patjak/bcwc_pcie.git
Cloning into 'bcwc_pcie'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1057 (delta 2), reused 4 (delta 0), pack-reused 1049
Receiving objects: 100% (1057/1057), 352.48 KiB | 537.00 KiB/s, done.
Resolving deltas: 100% (709/709), done.

2)从以下位置克隆 facetimehd 固件https://github.com/patjak/facetimehd-firmware进入 bcwc_pcie 文件夹

$ cd /usr/local/src/bcwc_pcie
$ sudo git clone https://github.com/patjak/facetimehd-firmware
Cloning into 'facetimehd-firmware'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 886 (delta 0), reused 0 (delta 0), pack-reused 885
Receiving objects: 100% (886/886), 290.76 KiB | 294.00 KiB/s, done.
Resolving deltas: 100% (585/585), done.

3)构建并安装 facetimehd-firmware

$ cd /usr/local/src/bcwc_pcie/facetimehd-firmware
$ sudo make

Checking dependencies for driver download...
/usr/bin/curl
/usr/bin/xzcat
/bin/cpio

Downloading the driver, please wait...


Found matching hash from OS X, El Capitan 10.11.5
==> Extracting firmware...
 --> Decompressing the firmware using gzip...
 --> Deleting temporary files...
 --> Extracted firmware version 1.43.0

$ sudo make install
Copying firmware into '//lib/firmware/facetimehd'

4)制作并安装bcwc_pcie驱动

$ cd /usr/local/src/bcwc_pcie
$ sudo make
make -C /lib/modules/5.0.0-23-generic/build M=/usr/local/src/bcwc_pcie modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
  CC [M]  /usr/local/src/bcwc_pcie/fthd_ddr.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_hw.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_drv.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_ringbuf.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_isp.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_v4l2.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_buffer.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_debugfs.o
  LD [M]  /usr/local/src/bcwc_pcie/facetimehd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/src/bcwc_pcie/facetimehd.mod.o
  LD [M]  /usr/local/src/bcwc_pcie/facetimehd.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'

$ sudo make install
make -C /lib/modules/5.0.0-23-generic/build M=/usr/local/src/bcwc_pcie modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
  INSTALL /usr/local/src/bcwc_pcie/facetimehd.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  5.0.0-23-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'

5)启用驱动程序

$ sudo depmod
$ sudo modprobe -r bdc_pci
$ sudo modprobe facetimehd

现在 Skype 使用 facetimehd 驱动程序进行视频传输。

但是,由于某种原因,相机直到被另一个本机应用程序(例如奶酪)使用时才打开。

$ sudo apt install cheese

**6) 确保facetime高清重新启动后开始添加一行
/etc/模块通过运行命令
sudo echo facetimehd >> /etc/modules

相关内容