Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
nv:tegra3:common
>
configs-tegra3
> configs-tegra3.sh
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File configs-tegra3.sh of Package configs-tegra3
#!/bin/bash encswap="/dev/mapper/encswap" start() { echo "Setting alsamixer: loading Tegra defaults" if [ -e /etc/asound_tegra.state ]; then alsactl restore 0 -f /etc/asound_tegra3.state fi echo "Setting /sys/power/state access rights" if [ -e /sys/power/state ]; then chmod 0664 /sys/power/state fi echo "Enabling cpu auto hot plug" echo 1 > /sys/module/cpu_tegra3/parameters/auto_hotplug echo "Enabling lp2 idle state" echo "Y" > /sys/module/cpuidle/parameters/lp2_in_idle echo "Setting mmc read ahead size" if [ -e /sys/block/mmcblk0/queue/read_ahead_kb ]; then echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb fi if [ -e /sys/block/mmcblk1/queue/read_ahead_kb ]; then echo 2048 > /sys/block/mmcblk1/queue/read_ahead_kb fi } stop() { echo "Disabling lp2 idle state" echo "N" > /sys/module/cpuidle/parameters/lp2_in_idle echo "Disabling cpu auto hot plug" echo 0 > /sys/module/cpu_tegra3/parameters/auto_hotplug } case "$1" in start) start ;; stop) stop ;; *) echo "Usage: $0 {start|stop}" esac exit 0