the-gimp-master
Posts: 60
Joined: Wed Jul 15, 2020 1:03 pm

Alsa volume control in background

Sun Aug 02, 2020 7:13 am

Can you have Alsa loaded in the background ? So anytime I need to adjust the volume using my keyboard with the up and down arrows.

tvjon
Posts: 786
Joined: Mon Jan 07, 2013 9:11 am

Re: Alsa volume control in background

Sun Aug 02, 2020 7:54 am

That already happens.

Refer to the picture I posted in your I2S thread yesterday: this time left click the speaker icon, & as you press either volume up or down on your keyboard (in my case they're shared with F6 & F7 function keys), the vertical slider will raise or lower & adjust the volume accordingly.

So you have 2 visual plus audible feedback that volume is changing.

pidd
Posts: 717
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: Alsa volume control in background

Sun Aug 02, 2020 8:11 am

That was one of my first surprises with the Pi, the basic media buttons worked without me doing anything..

the-gimp-master
Posts: 60
Joined: Wed Jul 15, 2020 1:03 pm

Re: Alsa volume control in background

Sun Aug 02, 2020 9:11 am

But what if your not using desktop.

pidd
Posts: 717
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: Alsa volume control in background

Sun Aug 02, 2020 9:41 am

You can check is alsa is running with

Code: Select all

ps -ef|grep alsa
You will probably get two lines return, the first (in this example) is showing the alsa daemon is running, the second is your search and irrelevant.

Code: Select all

root       404     1  0 Aug01 ?        00:00:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
pi       13936 12720  1 10:38 pts/1    00:00:00 grep --color=auto alsa

tvjon
Posts: 786
Joined: Mon Jan 07, 2013 9:11 am

Re: Alsa volume control in background

Sun Aug 02, 2020 11:19 am

"But what if your not using desktop."

Read & digest Dougie Lawson's signature.


Whilst omxplayer is playing your tune, press your keyboard + key to increase the volume, - for the opposite.

Return to “Beginners”