Re: Volume control on T400

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> And you didn't tell me if the thinkpad-acpi driver does see changes in the> mute state properly, yet.  Please confirm that (but do NOT try to change the> volume, just check if the driver reports the mute state correctly, comparing> it with the mute led when you press the mute key, press it multiple times,> and also do mute/unmute cycles using mute and volume up/down).Sorry I forgot, the acpi driver recognizes the mute state.Press any times is only to mute, not toggle. Then press up/down willunmute the sound.
As a good news, the mute bit in the volume byte is correct in ANYtimes, even if someone is doing some funny thing with the volume inprocfs.
> So, it mutes only the speakers on hardware, and not speakers+headphone?>> That's _bad_.> ...> How does mute and volume work in Windows?  How do they behave re. the> spearkeds?  re. the headphone?
In Windows, the mute button works as a mute toggle key. And it workswith the headphone.
> That won't go down well, you need a mute _SWITCH_ to send absolute (mute)> and (unmute) events to do what you want properly, as keycodes can make the> mixer get out of sync with the firmware mute.>> The problem is that KEY_MUTE is actually KEY_TOGGLEMUTE, so it cannot be> used to syncronize two systems with memory if one of them can receive> external events (and the HDA mixer _CAN_, you just need an external keyboard> with a mute key, or to open the mixer applet and mute/unmute directly).I see... Then It's better to write another userspace program tosyncronize with HDA mixer and the ec memory, since someone may preferOSS than ALSAWhat I mean to emulate a keycode is not to determine whether the mutebutton is pressed, it is to determine after some time, whether themute bit changed, if it was changed, mute the alsa sound.
In fact, tpb provide some functions, but the code of tpb is somehow bad...
-- Sincerely,    Yang Zhe
------------------------------------------------------------------------------Crystal Reports - New Free Runtime and 30 Day TrialCheck out the new simplified licensign option that enables unlimitedroyalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects_______________________________________________ibm-acpi-devel mailing listibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux