Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Marek Elias
Hi,

I have the same problem.

These are three pushes of the mic mute button on kacpimon:

Input Layer:  Type: 4  Code: 4  Value: 28
Input Layer:  Type: 1  Code: 28  Value: 0
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 1
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 0
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 1
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 0
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 1
Input Layer:  Sync
Input Layer:  Type: 4  Code: 4  Value: 26
Input Layer:  Type: 1  Code: 248  Value: 0
Input Layer:  Sync

lines
Input Layer:  Type: 4  Code: 4  Value: 28
Input Layer:  Type: 1  Code: 28  Value: 0
appear only when pushed for the first time.

The led inside mic mute button also does not switch on/off. This works
fine for normal mute button.

thanks,

marek


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Ted Felix

On 04/24/2013 04:21 AM, Marek Elias wrote:

Input Layer:  Type: 1  Code: 28  Value: 0


  That's the Enter key.  Nothing to worry about.


Input Layer:  Type: 1  Code: 248  Value: 1


  This is KEY_MICMUTE.  That can easily be added to acpid by adding 
the following lines to input_layer.c:


   {{{0,0}, EV_KEY, KEY_MICMUTE, 1},
  button/micmute MICMUTE 0080 },

  Add them to the /*** AUDIO ***/ section.  Rebuild and try it. 
acpid should receive mic mute events.  This doesn't mean it will do 
anything with them.  You'll need to add a config file and a script to 
make something useful happen.  See the man page.


  If this works and you find this helpful, let me know and I'll include 
this change in the next release.


  If you just wanted the mic mute button to work in your window manager 
(e.g. Gnome or KDE), then it's best to get them to support these 
keys/buttons.  acpid is geared more towards those who are not running a 
window manager (servers).  You can still use it for this, but it's not 
really the best solution.


 The led inside mic mute button also does not switch on/off. This works
 fine for normal mute button.

  Your script for acpid will need to turn the light on and off.  Most 
likely, your window manager is doing this already for the mute button, 
but it is not aware of the mic mute button and the LED.


Ted.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Marek Elias
thanks for your reply.

I did the changed you suggested and rebuilt the acpid package.
Now I can see the events and run scripts with it.

But I still can't see the events in xev anyway. Maybe this is caused by
too old version of xorg (I use squeeze).

So you are telling me that acpid is now obsolete and things should be
done in some other way? I don't use KDE nor GNOME. I use fluxbox and I
used to configure some of my keys through acpid. And I like it, when the
keys work in console as well as in X.

Does acpid has something to do with forwarding events to X? Or X should
get the events itself?

When I will have a scripts for this button, I should probably send them
to package acpi-support, am I right?

bye,

marek


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: [Pkg-acpi-devel] Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Michael Meskes
On Wed, Apr 24, 2013 at 04:19:30PM +0200, Marek Elias wrote:
 So you are telling me that acpid is now obsolete and things should be
 done in some other way? I don't use KDE nor GNOME. I use fluxbox and I

No, not really, you just don't need it anymore when running stuff like GNOME or
KDE which have their own means of handling these events. I have no idea about
fluxbox though.

 used to configure some of my keys through acpid. And I like it, when the
 keys work in console as well as in X.

Right, and for that you still need acpid.

 Does acpid has something to do with forwarding events to X? Or X should
 get the events itself?

X does not need acpid.

 When I will have a scripts for this button, I should probably send them
 to package acpi-support, am I right?

Right.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Ted Felix

On 04/24/2013 10:19 AM, Marek Elias wrote:

I did the changed you suggested and rebuilt the acpid package.
Now I can see the events and run scripts with it.


  Great.  Then I'll go ahead and add the lines to the official source. 
 It will appear in the next version.  Since there haven't been any 
major changes lately, that might be a while off.


Ted.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-04-24 Thread Ted Felix

On 04/24/2013 10:19 AM, Marek Elias wrote:

I did the changed you suggested and rebuilt the acpid package.
Now I can see the events and run scripts with it.


  I just added this change to the official source.  If you wouldn't 
mind retesting with the official source, I'd appreciate it.  You can 
find the sf git repo here:


http://sourceforge.net/p/acpid2/code/ci/master/tree/

  Let me know if it works.  Thanks.

Ted.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-02-22 Thread Yevgeny Kosarzhevsky
Package: acpid
Version: 1:2.0.18-1
Severity: normal

Dear Maintainer,

when I run acpi_listen and press MicMute button I get only ^@ output, no codes 
recognized. 


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages acpid depends on:
ii  kmod  9-2
ii  libc6 2.13-38
ii  lsb-base  4.1+Debian8

Versions of packages acpid recommends:
ii  acpi-support-base  0.141-2

acpid suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701206: acpid: Mic mute button on Thinkpad X230 is not recognized

2013-02-22 Thread Ted Felix

On 02/22/2013 10:00 PM, Yevgeny Kosarzhevsky wrote:

when I run acpi_listen and press MicMute button I get only ^@ output, no codes 
recognized.


  What does kacpimon report for that button?  You'll need to kill acpid 
for kacpimon to work.  Check the man page for more.


Ted.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org