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
#!/bin/sh | |
if [ -z $1 ] | |
then | |
echo "Usage: $0 { p | l | a }. p - portrait, l - landscape, a - auto" | |
elif [[ $1 == a* ]] | |
then | |
echo "Turning on automatic rotation" | |
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1 | |
else |
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
From d5d695031656571f3cc334c2b713564c30b339ad Mon Sep 17 00:00:00 2001 | |
From: Michel Thierry <[email protected]> | |
Date: Tue, 2 Dec 2014 11:02:25 +0000 | |
Subject: [PATCH] XXX: Disable encryption | |
Change-Id: Icd270b304d4476b47ba8538c6981b2e99a4a0f10 | |
--- | |
groups/boot-arch/efi/fstab | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) |
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
#!/bin/sh | |
ARCH=x86_64 | |
# Extract boot parameters from an existing boot.img if availavle | |
if [ -e $ANDROID_PRODUCT_OUT/boot.img ]; | |
then | |
OLD_PARAMS=`strings $ANDROID_PRODUCT_OUT/boot.img | head -2 | tail -1` | |
# The boot hardware should match our target product |
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
#boot | |
#fastboot boot /usr2/Shared/android_ring1_ppgtt_bk/image/dist/bxt_rvp-flashfiles-eng.michelth/loader.efi | |
adb reboot bootloader | |
read -r -p "Continue flashing? [y/N] " response | |
response=${response,,} # tolower | |
if [[ $response =~ ^(yes|y)$ ]] | |
then | |
#fastboot oem unlock | |
sleep 5 | |
#flash |
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
#!/bin/sh | |
# | |
# Tool for running a suspend/resume on android | |
# Copyright (c) 2014, Intel Corporation. | |
# | |
# This program is free software; you can redistribute it and/or modify it | |
# under the terms and conditions of the GNU General Public License, | |
# version 2, as published by the Free Software Foundation. | |
# | |
# This program is distributed in the hope it will be useful, but WITHOUT |
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
From 6b410174614ee1b706ef3bc12cce2cc532e1c120 Mon Sep 17 00:00:00 2001 | |
From: Daniel Stone <[email protected]> | |
Date: Tue, 3 Nov 2015 21:42:31 +0000 | |
Subject: [PATCH] drm/i915: Fix locking around GuC firmware load | |
The GuC firmware load requires struct_mutex to create a GEM object, | |
but this collides badly with request_firmware. Move struct_mutex | |
locking down into the loader itself, so we don't hold it across the | |
entire load process, including request_firmware. |
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
#!/bin/bash | |
if [[ $EUID != 0 ]] ; then | |
echo This must be run as root! | |
exit 1 | |
fi | |
for xhci in /sys/bus/pci/drivers/?hci_hcd ; do | |
if ! cd $xhci ; then |
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
From 9f9e539f90bcecfdc7b3679d337b7a62d4313205 Mon Sep 17 00:00:00 2001 | |
From: Daniel Vetter <[email protected]> | |
Date: Fri, 23 Oct 2015 11:10:59 +0200 | |
Subject: [PATCH] drm/i915: Shut up GuC errors when it's disabled | |
DRM_ERROR an continue without any issues aren't allowed since that | |
causes noise in the CI system. But we absolutely want to have the | |
DRM_ERROR when we want to run with GuC. | |
For simplicity just short-circuit all the loader code when it's not |
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
Install cfdisk | |
# apt-get install cfdisk | |
Install netatalk | |
# apt-get install netatalk | |
# update-rc.d netatalk defaults | |
Format new disk | |
# cfdisk /dev/sdx | |
# mkfs.ext4 /dev/sdx1 |
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
# Netatalk 2.x afp volume cofiguration | |
# | |
# volume format: | |
# :DEFAULT: [all of the default options except volume name] | |
# path [name] [casefold:x] [options:z,l,j] \ | |
# [allow:a,@b,c,d] [deny:a,@b,c,d] [dbpath:path] [password:p] \ | |
# [rwlist:a,@b,c,d] [rolist:a,@b,c,d] [limitsize:value in bytes] \ | |
# [preexec:cmd] [root_preexec:cmd] [postexec:cmd] [root_postexec:cmd] \ | |
# [allowed_hosts:IPv4 address[/IPv4 netmask bits]] \ |