~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/bluetooth-touch-grouper.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-05-06 18:45:46 UTC
  • Revision ID: dimitri.ledkov@canonical.com-20140506184546-5toyx56xxrue0f0v
auto update

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