From d1d9b4757f9090e434577c988c2fba16223c6047 Mon Sep 17 00:00:00 2001 From: pandora Date: Tue, 12 Jul 2022 16:31:57 +0000 Subject: [PATCH] work on vm --- install.sh | 3 +++ pandora-box.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 6fa4a3d..63f2e6b 100755 --- a/install.sh +++ b/install.sh @@ -148,6 +148,9 @@ usermod -a -G video $SUDO_USER # allow read mouse input usermod -a -G input $SUDO_USER +# allow read mouse input +usermod -a -G tty $SUDO_USER + # Start Pandora at boot cp pandora.service /etc/systemd/system/pandora.service sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service diff --git a/pandora-box.py b/pandora-box.py index 855b344..363c700 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -92,6 +92,8 @@ def display_image(status): else: return os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (SCREEN_SIZE, SCREEN_SIZE, image)) +# os.system("killall -9 fbi 2>/dev/null") +# os.system("fbi -T 1 -d /dev/fb0 -noverbose -a %s" % image) # -----------------------------------------------------------