#10 Create configuration screen for sound and brightness (if available)

Uzavrená
otvorené 6 rokov pred užívateľom clementinecomputing · 3 komentárov
priority low
estimate 2 work unit
| | | |---|---| | priority | low | | estimate | 2 work unit |
clementinecomputing okomentoval 6 rokov pred
Vlastník

As far as I can tell, the screens don't have a brightness setting.

With the 'quick dim' feature, the brightness shouldn't be such a high priority.

The sound is a priority and should have a facility to reduce be able to set the volume in the driver facing application.

This "works for me" (save into changevol script):

#!/bin/bash

volpct=100
if [[ "$1" != "" ]] ; then
  volpct=$1
fi
numid=`amixer controls | grep 'PCM Playback Volume' | head -n1 | cut -f1 -d',' | cut -f2 -d'='`
if [[ "$numid" == "" ]] ; then exit 1; fi
amixer cset numid=$numid "${volpct}%"  > /dev/null
exit 0

Quick test:

changevol 90
espeak "I'm speaking at 90% volume" --stdout | aplay -
changevol 100
espeak "I'm speaking at 100% volume" --stdout | aplay -

Note that at 50% it's barely audible (for me).

As far as I can tell, the screens don't have a brightness setting. With the 'quick dim' feature, the brightness shouldn't be such a high priority. The sound is a priority and should have a facility to reduce be able to set the volume in the driver facing application. This "works for me" (save into `changevol` script): ``` #!/bin/bash volpct=100 if [[ "$1" != "" ]] ; then volpct=$1 fi numid=`amixer controls | grep 'PCM Playback Volume' | head -n1 | cut -f1 -d',' | cut -f2 -d'='` if [[ "$numid" == "" ]] ; then exit 1; fi amixer cset numid=$numid "${volpct}%" > /dev/null exit 0 ``` Quick test: ``` changevol 90 espeak "I'm speaking at 90% volume" --stdout | aplay - changevol 100 espeak "I'm speaking at 100% volume" --stdout | aplay - ``` Note that at 50% it's barely audible (for me).
clementinecomputing okomentoval 6 rokov pred
Vlastník

Brightness functionality is being deferred to a later ticket.

The configuration screen with a volume slider is implemented.

Still TODO is to hook up the diu_ui.js slider callback to make an API request and have the DIU server make the appropriate volume change.

Brightness functionality is being deferred to a later ticket. The configuration screen with a volume slider is implemented. Still TODO is to hook up the diu_ui.js slider callback to make an API request and have the DIU server make the appropriate volume change.
clementinecomputing okomentoval 6 rokov pred
Vlastník

resolved in 7c3e3be3ec

resolved in 7c3e3be3ec617878b68fb588faf7a92d8a856583
Prihláste sa pre zapojenie do konverzácie.
Žiadny míľnik
Žiadny priradený
1 účastníkov
Načítavanie...
Zrušiť
Uložiť
Zatiaľ neexistuje žiadny obsah.