Site Tools


alexa sample app

aur sync -c avs-alexa-sampleapp
pacman -S avs-alexa-sampleapp
chown alexa:alexa /var/lib/avs-alexa-sampleapp/config.json 
sudo -u alexa /usr/share/avs-device-sdk/genConfig /var/lib/avs-alexa-sampleapp/config.json 123456 /var/lib/avs-alexa-sampleapp /var/lib/avs-alexa-sampleapp /var/lib/avs-alexa-sampleapp/AlexaClientSDKConfig.json
cp /etc/pulse/ ~/.pulse/
load-module module-native-protocol-tcp auth-ip-acl=
default-server =
pulseaudio -k
pulseaudio -D
systemctl start avs-alexa-sampleapp

anbox alexa app

aur sync -c anbox-git anbox-modules-dkms-git anbox-image
pacman -Sy anbox-git anbox-modules-dkms-git anbox-image
modprobe loop
systemctl restart systemd-networkd systemd-resolved
systemctl restart anbox-container-manager
# systemctl --user restart anbox-session-manager
anbox session-manager --gles-driver=host
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
adb install 

custom alexa skill

aur sync -c python-flask-ask ngrok
pacman -S python-flask-ask ngrok
git clone
cd py-control-arch
ngrok http 5000

alexa skill list:

  • create skill
  • Skill name: “Arch control”
  • Select “Custom”
  • Select “Self hosted”
  • Select “Start from scratch”
  • JSON-Editor
  • Go to and login with the same developer account as used by the SampleApp
  • Select “Skill” in the left menu
  • Select “Your skill” in the upper right corner
  • Select “All skills” in the menu below
  • Click on “Arch control” and select “Enable skill”
    "interactionModel": {
        "languageModel": {
            "invocationName": "arch control",
            "intents": [
                    "name": "YesIntent",
                    "slots": [],
                    "samples": []
                    "name": "AnswerIntent",
                    "slots": [
                            "name": "first",
                            "type": "AMAZON.NUMBER"
                            "name": "second",
                            "type": "AMAZON.NUMBER"
                            "name": "third",
                            "type": "AMAZON.NUMBER"
                    "samples": []
            "types": []
import logging
from flask import Flask
from flask_ask import Ask, statement, question, session
import subprocess

app = Flask(__name__)
app.config['ASK_VERIFY_REQUESTS'] = False
ask = Ask(app, "/")

def suspend():
    subprocess.Popen("systemctl suspend")
    return statement("Suspending computer")

def suspend():
    return statement("Launching Firefox")

def suspend():
    return statement("Locking screen")

if __name__ == '__main__':
avs-alexa.txt · Last modified: 2021/10/31 10:42 by