Skip to content

Commit

Permalink
scripts: add acpi-rm for switch
Browse files Browse the repository at this point in the history
Use acpi-rm can easily switch between codec and nocodec device.

Signed-off-by: Pan Xiuli <[email protected]>
  • Loading branch information
xiulipan authored and plbossart committed Jan 10, 2019
1 parent 45e52c8 commit d933f4e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions acpi-rm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Author: Xiuli Pan
# script to rm acpi hooks
# use like this: acpi-rm

BASEHOOKSDIR="/lib/firmware/acpi-upgrades"


echo -e "\nRemove ${count} aml files\n"
sudo rm -rf $BASEHOOKSDIR/*aml

echo -e "\nUpdate initramfs...\n"
# update initramfs
#sudo update-initramfs -u -k all
sudo update-initramfs -u -t -k `uname -r`
echo -e "\nDone\n"


0 comments on commit d933f4e

Please sign in to comment.