Volume control on x60s

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Volume control on x60s

fa-ml
Hello Thinkpad users,
    I own an x60s and I spent this morning battling a sound problem.

Long story short: there are two grey buttons on my laptop and they
control the volume (3 if we consider the mute button); I would like to
control the volume via command line and not using those.

Now, I can *see* where the volume change happens, i.e.

    f@x60s:~$ amixer -c 29
    Simple mixer control 'Console',0
      Capabilities: pvolume pvolume-joined pswitch pswitch-joined
      Playback channels: Mono
      Limits: Playback 0 - 14
      Mono: Playback 6 [43%] [on]
                        ^-- pressing the grey buttons will change
                            this number

but when I try to set the relevant parameter it fails:

    f@x60s:~$ amixer -c 29 set Console 100%
    amixer: Invalid command!

I am a bit at loss now, so here is the question: is there a way to
control the internal mixer via command line?

Thanks in advance
-F
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

Elimar Riesebieter
* Francesco Ariis <[hidden email]> [2018-02-08 13:52 +0100]:

> Hello Thinkpad users,
>     I own an x60s and I spent this morning battling a sound problem.
>
> Long story short: there are two grey buttons on my laptop and they
> control the volume (3 if we consider the mute button); I would like to
> control the volume via command line and not using those.
>
> Now, I can *see* where the volume change happens, i.e.
>
>     f@x60s:~$ amixer -c 29

Are you running *30* soundcards on your x60?

Elimar
--
  "Talking much about oneself can also
   be a means to conceal oneself."
         -Friedrich Nietzsche
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

Marius Gedminas-4
In reply to this post by fa-ml
On Thu, Feb 08, 2018 at 01:52:54PM +0100, Francesco Ariis wrote:
> Hello Thinkpad users,
>     I own an x60s and I spent this morning battling a sound problem.
>
> Long story short: there are two grey buttons on my laptop and they
> control the volume (3 if we consider the mute button); I would like to
> control the volume via command line and not using those.

A long time ago I remember using aumix to control the volume from the
console.

> Now, I can *see* where the volume change happens, i.e.
>
>     f@x60s:~$ amixer -c 29
>     Simple mixer control 'Console',0
>       Capabilities: pvolume pvolume-joined pswitch pswitch-joined
>       Playback channels: Mono
>       Limits: Playback 0 - 14
>       Mono: Playback 6 [43%] [on]
>                         ^-- pressing the grey buttons will change
>                             this number
>
> but when I try to set the relevant parameter it fails:
>
>     f@x60s:~$ amixer -c 29 set Console 100%
>     amixer: Invalid command!
I think it wants you to use 'set Console,0 100%', judging from the
examples in the amixer manual page.

> I am a bit at loss now, so here is the question: is there a way to
> control the internal mixer via command line?

Marius Gedminas
--
Power corrupts, but we need electricity.

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

signature.asc (169 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

fa-ml
In reply to this post by Elimar Riesebieter
On Fri, Feb 09, 2018 at 11:49:28AM +0100, Elimar Riesebieter wrote:
> Are you running *30* soundcards on your x60?

Hello Elimar,
    nope. When I launch `alsamixer` and press F6 to select a sound card
I get this result

        ┌─────────── Sound Card ───────────┐
        │-   (default)                     │
        │0   HDA Intel                     │
        │29  ThinkPad Console Audio Control│
        │    enter device name...          │
        └──────────────────────────────────┘

(let's hope it doesn't get horribly mangled in the ML archives...)


--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

fa-ml
On Fri, Feb 09, 2018 at 12:28:50PM +0100, Francesco Ariis wrote:
> (let's hope it doesn't get horribly mangled in the ML archives...)

Just in case, here is a more latin-1 friendly message

f@x60s:~/$ cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xe4440000 irq 30
29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
                      ThinkPad Console Audio Control at EC reg 0x30, fw 7BHT37WW-3.4

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

Elimar Riesebieter
* Francesco Ariis <[hidden email]> [2018-02-09 12:33 +0100]:

> On Fri, Feb 09, 2018 at 12:28:50PM +0100, Francesco Ariis wrote:
> > (let's hope it doesn't get horribly mangled in the ML archives...)
>
> Just in case, here is a more latin-1 friendly message
>
> f@x60s:~/$ cat /proc/asound/cards
>  0 [Intel          ]: HDA-Intel - HDA Intel
>                       HDA Intel at 0xe4440000 irq 30
> 29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
>                       ThinkPad Console Audio Control at EC reg 0x30, fw 7BHT37WW-3.4

Ok. Why don't you just run something like

amixer -c 0 set Master 78%

?

Elimar
--
  From The Collaborative International Dictionary of English v.0.48 [gcide]:
  .
  arsehole \arse"hole`\ ([aum]rs"h[=o]l`), n.
         1. execretory opening at the end of the alimentary canal.
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

fa-ml
In reply to this post by Marius Gedminas-4
Hello Marius,

On Fri, Feb 09, 2018 at 01:26:35PM +0200, Marius Gedminas wrote:
> On Thu, Feb 08, 2018 at 01:52:54PM +0100, Francesco Ariis wrote:
> >     f@x60s:~$ amixer -c 29 set Console 100%
> >     amixer: Invalid command!
>
> I think it wants you to use 'set Console,0 100%', judging from the
> examples in the amixer manual page.

Still no dice, unfortunately:

    f@x60s:/dev$ amixer -c 29 set Console,0 100%
    amixer: Invalid command!

I should add that amixer commands on the default soundcard work
like a charm

    amixer -q set Master 100%
    # this works.

It's ThinkPad Console Audio Control (Chip: ThinkPad EC 7BHT37WW-3.4 -
I wonder what use this internal mixer has) that seems hard-coded and
unmodifiable by alsa (or anything else that isn't "press those grey
buttons").
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

fa-ml
In reply to this post by Elimar Riesebieter
On Fri, Feb 09, 2018 at 01:06:08PM +0100, Elimar Riesebieter wrote:
> Ok. Why don't you just run something like
>
> amixer -c 0 set Master 78%

All the volumes on on card:0 (HDA Intel - Analog Devices AD1981) are set
to 100%, and they don't move when I press the grey "volume up" and "volume
down" buttons.
It seems the audio feeds into this internal mixer. To explain it via some
ascii diagram:


    HDA Intel --> ThinkPad Console Audio Control --> Speakers
       ^               ^
       |               |
       |               +-- I am not able to control this via command line
       |
       +---------------- I can control this via command line

When I set master volume on card:0 to 100% the audio gets louder, but you
can squeeze a good 50% more via the grey buttons.
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

Henrique de Moraes Holschuh-2
On Fri, 09 Feb 2018, Francesco Ariis wrote:
>     HDA Intel --> ThinkPad Console Audio Control --> Speakers
>        ^               ^
>        |               |
>        |               +-- I am not able to control this via command line

Kindly read this:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/laptops/thinkpad-acpi.txt

You want the section about volume control.

Thanks.

--
  Henrique Holschuh
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: Volume control on x60s

fa-ml
On Sat, Feb 10, 2018 at 12:15:34AM -0200, Henrique de Moraes Holschuh wrote:
> Kindly read this:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/laptops/thinkpad-acpi.txt
>
> You want the section about volume control.
>
> Thanks.

Many thanks Henrique, that was what I was looking for
-F
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad