~ubuntu-branches/ubuntu/utopic/bluetooth-touch/utopic

« back to all changes in this revision

Viewing changes to debian/bluetooth-touch-grouper.conf

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2013-08-13 16:42:48 UTC
  • Revision ID: package-import@ubuntu.com-20130813164248-hm25riyr2x1hq9xy
Tags: 0.2.0
* Rename Source and Binary to bluetooth-touch to be more generic.
* Add/revise upstart jobs for maguro, mako and grouper.
* debian/source/format: we're using source format 3.0 (native).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# bluetooth-touch-grouper - Bluetooth initialization
 
2
#
 
3
# Bluetooth initialization job, specifically for the Nexus 7 device (grouper),
 
4
# uses brcm-patchram-plus to patch firmware, set line discipline and write
 
5
# the bluetooth address for the device.
 
6
#
 
7
 
 
8
description     "Nexus 7 bluetooth initialization"
 
9
 
 
10
stop on stopping bluetooth
 
11
 
 
12
expect fork
 
13
 
 
14
env PATCHRAM_ARGS="--patchram /system/etc/firmware/bcm4330.hcd
 
15
        --no2bytes \
 
16
        --scopcm=0,2,0,0,0,0,0,0,0,0 \
 
17
        --enable_hci \
 
18
        --enable_lpm \
 
19
        --baudrate 3000000 --use_baudrate_for_download \
 
20
        --tosleep=50000 \
 
21
        /dev/ttyHS2"
 
22
 
 
23
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS &
 
24
 
 
25
pre-start script
 
26
        chmod 0660 /sys/class/rfkill/rfkill0/state
 
27
        chmod 0660 /sys/class/rfkill/rfkill0/type
 
28
        chgrp dialout /sys/class/rfkill/rfkill0/state
 
29
        chgrp dialout /sys/class/rfkill/rfkill0/type
 
30
        rfkill unblock bluetooth
 
31
end script