You are not logged in.

#1 2012-09-02 12:30:52

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Volume up shortcut not working `/usr/bin/amixer set Master playback`

I used to use something like

/usr/bin/amixer set Master playback 2+

to increase/decrease volume but it seems to have stopped working after update and changing to GNOME3 from XFCE 4.10. Same in terminal, has the syntax changed?


Computer Science Student, Web Developer

Offline

#2 2012-09-02 15:38:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Volume up shortcut not working `/usr/bin/amixer set Master playback`

What's the output?
I get

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [-12.00dB] [on]
  Front Right: Playback 23 [74%] [-12.00dB] [on]
$ /usr/bin/amixer set Master playback 2-
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 21 [68%] [-15.00dB] [on]
  Front Right: Playback 21 [68%] [-15.00dB] [on]

and it seems to work (I'm not using GNOME).



Edit: This should work in the console too. Try booting to console and running it before starting GNOME.

Last edited by karol (2012-09-02 15:41:21)

Offline

#3 2012-09-03 00:38:17

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Re: Volume up shortcut not working `/usr/bin/amixer set Master playback`

In the console:

[jiewmeng@JM Nodebook]$  /usr/bin/amixer set Master playback 2-
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 21533 [33%] [on]
  Front Right: Playback 21533 [33%] [on]
[jiewmeng@JM Nodebook]$  /usr/bin/amixer set Master playback 2-
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 21531 [33%] [on]
  Front Right: Playback 21531 [33%] [on]

notice theres no change ... 33%. Oh then I did Ctrl+Alt+F2 to go into console. Then did the same with same results. Then did with sudo and it worked. It worked b4 without sudo? Maybe I messed up something? Btw, this happened after I did `sudo pacman -Syyu gnome`. Maybe it changed some config? Or maybe its the upgrades?


Computer Science Student, Web Developer

Offline

#4 2012-09-03 00:47:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Volume up shortcut not working `/usr/bin/amixer set Master playback`

It did change by 2, as you wanted: 21533 -> 21531 (Front Left / Right: Playback).
I have no idea why you have such high values. Are you sure the output is the same when you run it with sudo?

Offline

#5 2012-09-08 13:35:36

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Re: Volume up shortcut not working `/usr/bin/amixer set Master playback`

If I do it in the console (Ctrl+Alt+F2, tty?) I have the command work as expected. However when I do so in the (XFCE) terminal window (Ctrl+Alt+T), I get those high values.

UPDATE

Fixed by doing 2%+ instead of 2+

Last edited by jiewmeng (2012-09-08 13:36:48)


Computer Science Student, Web Developer

Offline

#6 2012-09-08 20:13:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Volume up shortcut not working `/usr/bin/amixer set Master playback`

If this solves your problem, please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB