Giter Club home page Giter Club logo

Comments (9)

sergge1 avatar sergge1 commented on August 20, 2024 1

will check the volume change and report here.

Checked. New command works well with RPi & Buster. Thanks. Will add pull request to add this config to readme.md

from mmm-volume.

eouia avatar eouia commented on August 20, 2024

Maybe your ALSA setup doesn't have PCM.
Try this on your terminal shell.

amixer sset -M 'Master' 10%

If volume is changed, configure your config.js like this;

usePresetScript: null,
getVolumeScript: `amixer sget 'Master' | awk -F"[][]" '{print ""$2""}' | grep %  | awk '{gsub ( /%/, "" ) ; print}'`, 
setVolumeScript: `amixer sset -M 'Master' #VOLUME#%`, 

Everybody might have a different environment, so if presetScript doesn't work, find proper command for your environment and use it.

from mmm-volume.

sergge1 avatar sergge1 commented on August 20, 2024

Thank you for quick responses
Will check today

from mmm-volume.

sergge1 avatar sergge1 commented on August 20, 2024

amixer sset returns the following

pi@raspberrypi:~ $ amixer sset -M 'Master' 100%
amixer: Unable to find simple control 'Master',0

will look for other options

from mmm-volume.

eouia avatar eouia commented on August 20, 2024

Sorry. I don't know your environment. You need to find a proper command to control your RPI volume by yourself.

from mmm-volume.

sergge1 avatar sergge1 commented on August 20, 2024

I have found this one - this commands 10%+ increases and 10%- decreases by voulme by 10% (percentage could be any)

pi@raspberrypi:~ $ amixer set Speaker 10%+
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 151
  Mono:
  Front Left: Playback 68 [45%] [-15.63dB] [on]
  Front Right: Playback 68 [45%] [-15.63dB] [on]
pi@raspberrypi:~ $ amixer set Speaker 30%+
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 151
  Mono:
  Front Left: Playback 114 [75%] [-7.00dB] [on]
  Front Right: Playback 114 [75%] [-7.00dB] [on]

from mmm-volume.

sergge1 avatar sergge1 commented on August 20, 2024

your environment

i have clean Buster updated/upgraded. RPi 3 B+. usb sound card

from mmm-volume.

eouia avatar eouia commented on August 20, 2024

So, try this;

usePresetScript: null,
getVolumeScript: `amixer sget Speaker | awk -F"[][]" '{print ""$2""}' | grep %  | awk '{gsub ( /%/, "" ) ; print}'`, 
setVolumeScript: `amixer sset -M Speaker #VOLUME#%`, 

from mmm-volume.

sergge1 avatar sergge1 commented on August 20, 2024

So, try this;

Thank you.
Can't check the volume change right now, only volume set at the start.
But during the start the module is set to the level specified in config.
Also, dark-blue rectangle disappear as needed (from #14 )
Will install telegram later and will check the volume change and report here.

from mmm-volume.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.