xpilot icon indicating copy to clipboard operation
xpilot copied to clipboard

Notification issue

Open WuEs1357 opened this issue 1 year ago • 4 comments

Linux, Ubuntu 22.04 - no sound of notifications. Notification audio device set the same as in Audio section, all switches set ON in Notifications section (see attached screenshots). Beta version (one of the last ones) worked well.

Screenshot from 2024-10-31 21-26-47 Screenshot from 2024-10-31 21-26-24

WuEs1357 avatar Oct 31 '24 20:10 WuEs1357

Can you hear ATC audio without any problems?

justinshannon avatar Oct 31 '24 21:10 justinshannon

Yes, everything works perfectly, only no notifications sound.

czw., 31 paź 2024, 22:40 użytkownik Justin @.***> napisał:

Can you hear ATC audio without any problems?

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/222#issuecomment-2450859309, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMSOXXN75VUPS6LVSS4IX6TZ6KPUZAVCNFSM6AAAAABQ7CLOHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQHA2TSMZQHE . You are receiving this because you authored the thread.Message ID: @.***>

WuEs1357 avatar Oct 31 '24 21:10 WuEs1357

I have tested a few last versions, and the last one that notification sound of private message is transmitted (triple beep) is xPilot-2.0.0-beta.53-Linux. It was tested inside of an airplane on the ground.

WuEs1357 avatar Nov 01 '24 10:11 WuEs1357

As a workaround (because I missed "contact me" messages) I use a little script that parses the log file and plays a sound when it senses a text message.

#! /bin/bash

# saner programming env: these switches turn some bugs into errors
set -o errexit -o pipefail -o noclobber -o nounset

dir="$HOME/.local/share/org.vatsim.xpilot"

play() {
    ## Pulseaudio
    #paplay "$1"    

    ## Pipewire
    # find with `pw-top`
    pwTarget="alsa_output.pci-0000_64_00.6.HiFi__hw_Generic_1__sink"
    pw-play --target="$pwTarget" "$dir"/Sounds/NewMessage.wav
}

printf "Starting %s\n" "$0"
play "$dir"/Sounds/NewMessage.wav

while true; do
    tail -n 0 -f "$dir"/NetworkLogs/* | grep -Eq '<<< #T[^:]*:[^@]'
    play "$dir"/Sounds/NewMessage.wav
done

jonaseberle avatar Aug 20 '25 03:08 jonaseberle