summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-02-24 16:43:05 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-02-27 17:40:09 -0300
commit2c27dfa10e7c14295376de644bf8e1771d02217e (patch)
tree7d4db6a2413cb34cc290729080f2733ba6918aaa
parent95822169b1b45a63dfbe7a69e32b4c9badd1a7b4 (diff)
downloadbluez-le-docs-2c27dfa10e7c14295376de644bf8e1771d02217e.tar.gz
bluez-le-docs-2c27dfa10e7c14295376de644bf8e1771d02217e.tar.xz
bluez-le-docs-2c27dfa10e7c14295376de644bf8e1771d02217e.zip
howto: add comments about becoming root where needed
-rw-r--r--howto.tex13
1 files changed, 8 insertions, 5 deletions
diff --git a/howto.tex b/howto.tex
index 225f4bf..7ce3c20 100644
--- a/howto.tex
+++ b/howto.tex
@@ -250,10 +250,12 @@ CONFIG_DYNAMIC_DEBUG=y
\end{verbatim}
Dynamic debugging is controlled via the {\em dynamic\_debug/control} file.
-Bluetooth files that you wanna track should be added to that file.
+Bluetooth files that you wanna track should be added to that file, with {\em
+root} privileges.
\begin{verbatim}
-$ FILES="net/bluetooth/hci_sock.c \
+$ sudo su -
+# FILES="net/bluetooth/hci_sock.c \
> net/bluetooth/hci_conn.c \
> net/bluetooth/hci_event.c \
> net/bluetooth/l2cap_core.c \
@@ -263,10 +265,11 @@ $ FILES="net/bluetooth/hci_sock.c \
> net/bluetooth/hci_core.c \
> net/bluetooth/mgmt.c"
-$ for f in $FILES
+# for f in $FILES
> do
> echo "file $f +pf" >> /sys/kernel/debug/dynamic_debug/control
> done
+# exit
\end{verbatim}
And finally, to see the messages through \verb|dmesg|, the level of messages
@@ -330,13 +333,13 @@ Testing discovery directly through MGMT socket, finding LE devices, both public
and random addresses:
\begin{verbatim}
-$ ./btmgmt find -l
+$ sudo ./btmgmt find -l
\end{verbatim}
Finding BR/EDR devices through the MGMT socket:
\begin{verbatim}
-$ ./btmgmt find -b
+$ sudo ./btmgmt find -b
\end{verbatim}
Without any parameter \verb|btmgmt find| will perform interleaved discovery: