From owner-svn-doc-head@freebsd.org Wed Jan 2 18:01:56 2019 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 932B6142B33A; Wed, 2 Jan 2019 18:01:56 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34E7E684F0; Wed, 2 Jan 2019 18:01:56 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 27E41D4C0; Wed, 2 Jan 2019 18:01:56 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x02I1uSf033908; Wed, 2 Jan 2019 18:01:56 GMT (envelope-from bcr@FreeBSD.org) Received: (from bcr@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x02I1t0O033905; Wed, 2 Jan 2019 18:01:55 GMT (envelope-from bcr@FreeBSD.org) Message-Id: <201901021801.x02I1t0O033905@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bcr set sender to bcr@FreeBSD.org using -f From: Benedict Reuschling Date: Wed, 2 Jan 2019 18:01:55 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52744 - in head: en_US.ISO8859-1/books/handbook/advanced-networking en_US.ISO8859-1/books/handbook/multimedia share/xml X-SVN-Group: doc-head X-SVN-Commit-Author: bcr X-SVN-Commit-Paths: in head: en_US.ISO8859-1/books/handbook/advanced-networking en_US.ISO8859-1/books/handbook/multimedia share/xml X-SVN-Commit-Revision: 52744 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 34E7E684F0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,0] X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2019 18:01:56 -0000 Author: bcr Date: Wed Jan 2 18:01:55 2019 New Revision: 52744 URL: https://svnweb.freebsd.org/changeset/doc/52744 Log: Add more information about Bluetooth usage. The patch shows how to create a remote device connection and how to manage devices in /etc/bluetooth/hosts. The multimedia chapter was extended with a description on how to set up and connect a Bluetooth audio device as a sound sink. It also adds man page references to man-refs.ent for hcsecd(8) and virtual_oss(8), respectively. I cleaned up the patch a bit for consistency and proper markup. PR: 228879 Submitted by: nekoxmachina@gmail.com Take a look at this PR by: lme Modified: head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml head/share/xml/man-refs.ent Modified: head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml Mon Dec 31 15:53:36 2018 (r52743) +++ head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml Wed Jan 2 18:01:55 2019 (r52744) @@ -55,6 +55,10 @@ How to configure multiple VLANs on &os;. + + + Configure bluetooth headset. + Before reading this chapter, you should: @@ -2365,8 +2369,9 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x To start and stop the Bluetooth stack, use its startup script. It is a good idea to stop the stack before unplugging - the device. When starting the stack, the output should be - similar to the following: + the device. Starting the bluetooth stack might require + &man.hcsecd.8; to be started. When starting the stack, the + output should be similar to the following: &prompt.root; service bluetooth start ubt0 BD_ADDR: 00:02:72:00:d4:1a @@ -2420,9 +2425,9 @@ Inquiry complete. Status: No error [00] Bluetooth device, similar to the MAC address of a network card. This address is needed for further communication with a device and it is possible to assign a - human readable name to a BD_ADDR. Information regarding the - known Bluetooth hosts is contained in - /etc/bluetooth/hosts. The following + human readable name to a BD_ADDR. + Information regarding the known Bluetooth hosts is contained + in /etc/bluetooth/hosts. The following example shows how to obtain the human readable name that was assigned to the remote device: @@ -2435,11 +2440,25 @@ Name: Pav's T39 your.host.name (ubt0). The name assigned to the local device can be changed at any time. + Remote devices can be assigned aliases in + /etc/bluetooth/hosts. More information + about /etc/bluetooth/hosts file might be + found in &man.bluetooth.hosts.5;. + The Bluetooth system provides a point-to-point connection between two Bluetooth units, or a point-to-multipoint connection which is shared among several Bluetooth devices. - The following example shows how to obtain the list of active - baseband connections for the local device: + The following example shows how to create a connection to a + remote device: + + &prompt.user; hccontrol -n ubt0hci create_connection BT_ADDR + + create_connection accepts + BT_ADDR as well as host aliases in + /etc/bluetooth/hosts. + + The following example shows how to obtain the list of + active baseband connections for the local device: &prompt.user; hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State Modified: head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Mon Dec 31 15:53:36 2018 (r52743) +++ head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Wed Jan 2 18:01:55 2019 (r52744) @@ -84,6 +84,10 @@ Configure an image scanner. + + + Configure a Bluetooth headset. + Before reading this chapter, you should: @@ -284,6 +288,49 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> (pl do not exist and will not appear in the output of &man.ls.1;. + + + + Setting up Bluetooth Sound Devices + + + Bluetooth audio + + + Connecting to a Bluetooth device is out of scope for this + chapter. Refer to for more information. + + To get Bluetooth sound sink working with FreeBSD's sound + system, users have to install + audio/virtual_oss first: + + &prompt.root; pkg install virtual_oss + + audio/virtual_oss requires + cuse to be loaded into the kernel: + + &prompt.root; kldload cuse + + To load cuse during system startup, run + this command: + + &prompt.root; sysrc -f /boot/loader.conf cuse_load=yes + + To use headphones as a sound sink with + audio/virtual_oss, users need to create a + virtual device after connecting to a Bluetooth audio + device: + + &prompt.root; virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp + + + headphones in this example is + a hostname from /etc/bluetooth/hosts. + BT_ADDR could be used instead. + + + Refer to &man.virtual_oss.8; for more information. Modified: head/share/xml/man-refs.ent ============================================================================== --- head/share/xml/man-refs.ent Mon Dec 31 15:53:36 2018 (r52743) +++ head/share/xml/man-refs.ent Wed Jan 2 18:01:55 2019 (r52744) @@ -303,6 +303,7 @@ h2xs1"> hash1"> hashstat1"> +hcsecd8"> hd1"> head1"> hesinfo1"> @@ -812,6 +813,7 @@ vidfont1"> view1"> vim1"> +virtual_oss8"> vis1"> vt220keys1"> vttest1">