LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2017, 07:02 PM   #16
bateleur
Member
 
Registered: Feb 2016
Distribution: Slackware
Posts: 31

Rep: Reputation: Disabled

Quote:
Originally Posted by sithun View Post
thanks a lot. kmix is what i needed.



what action i must write to raise, lower and mute volume?


also i have a lot of special keys on keyboard (for e-mail client, homepage, search and many others) how can i know they code to add string like "key "<code>" <command>"?
Try this:

Code:
key "XF86AudioLowerVolume"      amixer -c 0 set Master 1%-
key "XF86AudioRaiseVolume"      amixer -c 0 set Master 1%+
key "XF86AudioMute"             amixer -c 0 set Master toggle
Of course you can change 1% to another number
 
1 members found this post helpful.
Old 01-03-2017, 08:47 PM   #17
sithun
Member
 
Registered: Jul 2016
Location: mongolia, bulgan
Posts: 102

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by bateleur View Post
Try this:

Code:
key "XF86AudioLowerVolume"      amixer -c 0 set Master 1%-
key "XF86AudioRaiseVolume"      amixer -c 0 set Master 1%+
key "XF86AudioMute"             amixer -c 0 set Master toggle
Of course you can change 1% to another number
do not work. after i write it buttons start to change volume of line output but i use hdmi output
 
Old 01-04-2017, 03:37 AM   #18
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Sithun, There's a painful but illuminating process called learning that you have yet to go through where sound is concerned. This isn't windows, but linux. The essential difference is that linux makes much fewer presumptions about what hardware it's operating on. You can, and have to configure stuff the way you want it. The X windows system operates under linux, & probably BSD, Solaris & HP-UX as well.

Open alsamixer, set the volumes there. Then run ' alsactl store'. That's what I do. There are man pages, and a little search like
Code:
ls -l /usr/*bin/alsa*
allows you to see what bits of alsa there are. There is also google.
 
1 members found this post helpful.
Old 01-04-2017, 05:40 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Open alsamixer, set the volumes there. Then run ' alsactl store'. That's what I do.
Since Slackware 14.2, you should use 'pavucontrol' instead of 'alsamixer'. And by default (i.e. with /etc/rc.d/rc.pulseaudio non executable) there is one pulseaudio process for each user, and alsactl store is not needed.

The learning process includes forgetting some know-how you learned but which is no more applicable - which makes it even more painful, alas.
 
3 members found this post helpful.
Old 01-04-2017, 09:22 AM   #20
sithun
Member
 
Registered: Jul 2016
Location: mongolia, bulgan
Posts: 102

Original Poster
Rep: Reputation: 1
success. solution is:
"pactl set-sink-volume 0 -1db"
"pactl set-sink-volume 0 +1db"
"pactl set-sink-mute 0 toggle"

thanks a lot for all answers!
 
Old 01-05-2017, 06:37 AM   #21
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by Didier Spaier View Post
Since Slackware 14.2, you should use 'pavucontrol' instead of 'alsamixer'. And by default (i.e. with /etc/rc.d/rc.pulseaudio non executable) there is one pulseaudio process for each user, and alsactl store is not needed.

The learning process includes forgetting some know-how you learned but which is no more applicable - which makes it even more painful, alas.
Tell me about it! You saw what a job of work I made over a printer. Sound, Printing, & wifi/networking are areas where linux systems seem to be failing to do one job, and do it well(i.e. Cups, Alsa/PulseAudio, & NetworkManager). The response to a bug report seems to be to add another script or three. Lucky hard disks are so generous these days.

Is there good reference material on pulseaudio anywhere?
 
Old 01-05-2017, 06:51 AM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Tell me about it!
...
Is there good reference material on pulseaudio anywhere?
See this article on SlackDoc.

It was written initially before the release of Slackware 14.2 that now ships pulseaudio, so you may skip the Installation chapter.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa to pulseaudio to Alsa - skype only problem Weber Kai Slackware 0 01-27-2012 07:23 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
LXer: How To Switch To ALSA Or OSS Instead Of PulseAudio In A Few Seconds LXer Syndicated Linux News 0 03-30-2010 09:00 PM
whats difference between OSS and ALSA? b123coder Linux - Hardware 4 04-06-2006 09:05 AM
ALSA-oss compatability works, but not programs intended for alsa ? qwijibow Linux - Software 5 03-14-2004 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration