mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
Improve styling of code blocks
@@ -159,7 +159,7 @@ The following steps have to be performed as `root`.
|
||||
### Adding the overlay using `layman`
|
||||
|
||||
First create a local overlay list:
|
||||
```
|
||||
```sh
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
|
||||
<repositories xmlns="" version="1.0">
|
||||
@@ -178,7 +178,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>
|
||||
```
|
||||
|
||||
Then make it known to layman and add it to your local overlays:
|
||||
```
|
||||
```sh
|
||||
layman -L
|
||||
layman -a toaster
|
||||
```
|
||||
@@ -187,7 +187,7 @@ layman -a toaster
|
||||
|
||||
Note that you have to set the `~amd64` keyword for the driver package and for `media-video/apple_facetimehd_firmware`. How this is done in detail depends on how you manage your keywords.
|
||||
|
||||
```
|
||||
```sh
|
||||
emerge -av media-video/bcwc_pcie
|
||||
```
|
||||
|
||||
@@ -215,12 +215,12 @@ videobuf2_core 57344 1 facetimehd
|
||||
videodev 176128 3 v4l2_common,facetimehd,videobuf2_core
|
||||
```
|
||||
- At the moment the kernel module is not loaded automatically. If you would like the kernel module to be loaded at system startup add the following line to `/etc/init.d/after.local` (Note that this is not yet recommended since the driver is not 100% stable)
|
||||
```
|
||||
```sh
|
||||
modprobe facetimehd
|
||||
```
|
||||
- In order to get it working after suspend see [below](#make-driver-load-correctly-after-suspend)
|
||||
- To test the camera install mplayer from Packman repo. If not yet done add Packman repo first
|
||||
```
|
||||
```sh
|
||||
zypper addrepo -f http://packman.inode.at/suse/openSUSE_Leap_42.1/ packman
|
||||
zypper install mplayer
|
||||
```
|
||||
@@ -237,7 +237,7 @@ See [Additional Notes](#additional-notes) below in case you come across any issu
|
||||
|
||||
1. Make sure the following lines (or its equivalent) are in `/etc/nixos/configuration.nix`
|
||||
|
||||
```
|
||||
```ini
|
||||
hardware.facetimehd.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
```
|
||||
@@ -260,7 +260,10 @@ Suspend/resume should now work without any additional fixes. Note that suspend/r
|
||||
|
||||
### Make driver load correctly on startup
|
||||
If you want the driver to be enabled on startup, extra steps may be required. On Ubuntu, the following should work:
|
||||
`echo facetimehd >> /etc/modules`
|
||||
|
||||
```sh
|
||||
echo facetimehd >> /etc/modules
|
||||
```
|
||||
|
||||
### For Ubuntu 15.04 and higher (Should work on some other distros too):
|
||||
|
||||
@@ -270,7 +273,7 @@ or if /lib/systemd/system-sleep does not exist:
|
||||
`sudo gedit /usr/lib/systemd/system-sleep/99facetimehd`
|
||||
|
||||
Paste this in the empty file:
|
||||
```
|
||||
```sh
|
||||
#!/bin/sh
|
||||
case $1/$2 in
|
||||
pre/*)
|
||||
@@ -297,7 +300,7 @@ or
|
||||
Paste this in terminal: `sudo gedit /etc/pm/sleep.d/99_facetimehd`
|
||||
|
||||
And paste this in and save file:
|
||||
```
|
||||
```sh
|
||||
#!/bin/sh
|
||||
case $1 in
|
||||
resume|thaw)
|
||||
|
||||
Reference in New Issue
Block a user