Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add more configs files
- Loading branch information
Lorn Potter
committed
Feb 8, 2013
1 parent
292f797
commit 1852d38
Showing
6 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# TODO: add Aava-specific configs below | ||
# (and/or commit to upstream default config) | ||
deviceId = aava |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# TODO: add PEGATRON-specific configs below | ||
# (and/or commit to upstream default config) | ||
deviceId = pegatron | ||
|
||
# OrientationSensor. Each additional value rotates the top one step to | ||
# clock-wise direction | ||
orientation_offset = 0 | ||
|
||
orientation_threshold_landscape = 20 | ||
orientation_threshold_portrait = 20 | ||
orientation_overflow_min = -512 | ||
orientation_overflow_max = 512 | ||
|
||
# disable orientation poll since driver can report data | ||
# when it rotates into desired positions, no need to poll now. | ||
orientation_poll_interval = 0 | ||
|
||
[pegatron] | ||
accelerometeradaptor = pegatronaccelerometeradaptor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# TODO: add iCDK-specific configs below | ||
# (and/or commit to upstream default config) | ||
[plugins] | ||
accelerometeradaptor = accelerometeradaptor | ||
alsadaptor = alsadaptor-ascii | ||
proximityadaptor = proximityadaptor-ascii | ||
magnetometeradaptor = magnetometeradaptor-ascii | ||
|
||
[gyroscope] | ||
path = /sys/devices/platform/l3g4200dh/angular_rate | ||
path_datarate = /sys/devices/platform/l3g4200dh/odr | ||
dataranges = "-250000=>250000" | ||
intervals = "1.25,2.5,5,10" | ||
default_interval = "10" | ||
|
||
[accelerometer] | ||
dataranges = "-32767=>32767" | ||
intervals = "0,10=>1000" | ||
transformation_matrix = "-1,0,0,0,-1,0,0,0,-1" | ||
|
||
[als] | ||
mode = 1 | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/apds9802als/5-0029/apds9802als/lux_output | ||
range_file_path = /sys/bus/i2c/drivers/apds9802als/5-0029/apds9802als/sensing_range | ||
intervals = "50=>2000" | ||
default_interval = 1000 | ||
|
||
[keyboardslider] | ||
input_match = gpio-keys | ||
dataranges = "0=>2" | ||
intervals = 0 | ||
|
||
[proximity] | ||
driver_type = 3 | ||
mode = 1 | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/apds9802ps/5-0055/apds9802ps/proximity | ||
dataranges = "0=>4096" | ||
|
||
[magnetometer] | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/ak8975/5-000f/ak8975/curr_pos | ||
path_power_state = /sys/bus/i2c/drivers/ak8975/5-000f/ak8975/power_state | ||
path_sens_adjust = /sys/bus/i2c/drivers/ak8975/5-000f/ak8975/sens_adjust | ||
dataranges = "-4096=>4096" | ||
intervals = "25=>1000" | ||
default_interval = 1000 | ||
scale_coefficient = 300 | ||
calibration_rate = 100 | ||
calibration_timeout = 60000 | ||
|
||
[tap] | ||
device = accelerometer | ||
dataranges = "0=>2" | ||
intervals = 0 | ||
|
||
[orientation] | ||
threshold_landscape = 25 | ||
threshold_portrait = 20 | ||
overflow_min = 800 | ||
overflow_max = 1250 | ||
discard_time = 750000 | ||
|
||
[context] | ||
orientation_poll_interval = 0 | ||
orientation_offset = 0 | ||
stability_timeout = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[plugins] | ||
accelerometeradaptor = mrstaccelerometeradaptor-mrst | ||
alsadaptor = alsadaptor-ascii | ||
|
||
[accelerometer] | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/bma023/2-0038/accel_data | ||
transformation_matrix = "-1,0,0,0,1,0,0,0,1" | ||
dataranges = "-256=>256" | ||
intervals = "10=>586" | ||
default_interval = 100 | ||
|
||
[orientation] | ||
overflow_min = -256 | ||
overflow_max = 256 | ||
|
||
[context] | ||
orientation_poll_interval = 100 | ||
orientation_offset = 2 | ||
|
||
[als] | ||
path = /sys/bus/i2c/drivers/isl29020/0-0044/isl29020/lux0_input | ||
dataranges = "0=>1000" | ||
intervals = "10=>98" | ||
default_interval = 90 | ||
|
||
[gyroscope] | ||
mode = 1 | ||
path = /sys/bus/i2c/drivers/mpu3050/2-0068/gyro_data | ||
dataranges = "-32768=>32767" | ||
intervals = "10=>113" | ||
default_interval = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
deviceId = oaktrail | ||
|
||
# Oaktrail accelerometer driver | ||
oaktrail_acc_sys_path = /sys/bus/i2c/drivers/bma023/0-0038/accel_data | ||
|
||
# Accelerometer coordinate transformation matrix | ||
# (values separated by commas, concatenate rows from top to bottom) | ||
acc_trans_matrix = "-1,0,0,0,-1,0,0,0,-1" | ||
|
||
orientation_overflow_min = -256 | ||
orientation_overflow_max = 256 | ||
|
||
orientation_offset = 3 | ||
|
||
# disable orientation poll since driver can report data | ||
# when it rotates into desired positions, no need to poll now. | ||
orientation_poll_interval = 100 | ||
|
||
[oaktrail] | ||
accelerometeradaptor = oaktrailaccelerometeradaptor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[plugins] | ||
accelerometeradaptor = steaccelerometeradaptor | ||
alsadaptor = alsadaptor-ascii | ||
proximityadaptor = proximityadaptor-evdev | ||
magnetometeradaptor = magnetometeradaptor-ncdk | ||
|
||
[accelerometer] | ||
ste_acc_sys_path = /sys/bus/i2c/drivers/lsm303dlh_a/2-0018/device0/accel_raw | ||
path = /sys/bus/i2c/drivers/lsm303dlh_a/2-0018/device0/accel_raw | ||
mode_path = /sys/bus/i2c/drivers/lsm303dlh_a/2-0018/device0/mode | ||
frequency_mode = 4 | ||
range_path = /sys/bus/i2c/drivers/lsm303dlh_a/2-0018/device0/accel_range | ||
range_mode = 1 | ||
dataranges = "-32767=>32767" | ||
intervals = "50,100,400,1000" | ||
transformation_matrix = "-1,0,0,0,-1,0,0,0,-1" | ||
|
||
[magnetometer] | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/lsm303dlh_m/2-001e/device1/data | ||
path_power_state = /sys/bus/i2c/drivers/lsm303dlh_m/2-001e/device1/mode | ||
path_sens_adjust = /sys/bus/i2c/drivers/lsm303dlh_m/2-001e/device1/config | ||
dataranges = "-4096=>4096" | ||
intervals = "25,50,100,200,250,500,1000" | ||
default_interval = 1000 | ||
scale_coefficient = 300 | ||
calibration_rate = 100 | ||
calibration_timeout = 60000 | ||
|
||
|
||
[als] | ||
driver_type = 3 | ||
mode = 1 | ||
seek = 1 | ||
path = /sys/bus/i2c/drivers/bh1780/2-0029/lux | ||
powerstate_path = /sys/bus/i2c/drivers/bh1780/2-0029/power_state | ||
dataranges = "0=>65535" | ||
intervals = "50=>2000" | ||
default_interval = 1000 | ||
|
||
[proximity] | ||
input_match = gpio-keys | ||
dataranges = "0=>4096" | ||
|
||
[global] | ||
device_sys_path = /dev/input/event%1 |