Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lost some ACPI keys after kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 91

PostPosted: Fri Apr 09, 2010 12:11 pm    Post subject: Lost some ACPI keys after kernel update Reply with quote

Hi, I have just updated from gentoo-sources 2.6.31-r10 (I think it was r10, the one that that was stable yesterday in any case) to gentoo-sources 2.6.32-r7. I compiled the new kernel after a simple 'make oldconfig' and accepting all the default answers.

Everything is working fine, except that the keys I used to adjust the sound volume aren't working, they don't generate and ACPI event now. How can I get them to work again? Looking for a kernel patch? Some new config option I missed? Using an alternative to ACPI?

My PC is an Asus Eee PC S101 (which is hardware-wise practically the same as the 901, or was it 1001?).

Thanks.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Apr 09, 2010 5:45 pm    Post subject: Reply with quote

The 2.6.32 kernel has some ACPI regression issues. I have a thread open here about the LID event not triggering properly:
https://forums.gentoo.org/viewtopic-t-807468-highlight-.html

Of note, look at this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=14667

It looks like a patch has been developed and will be rolled into 2.6.34. I'm not exactly sure if this will fix your issues as well, but it seems likely.
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 91

PostPosted: Sat Apr 10, 2010 6:13 am    Post subject: Reply with quote

In my case the lid events still work, but in any case it probably is the same problem. I guess we'll have to wait for 2.6.34.

One question, though: if this is a known bug, and there is a patch available, how come this kernel is marked as stable? Or, if it is marked stable, why not add the patch to gentoo-sources? This is not a complaint, I'm just trying to understand what's the difference between vanilla kernel and the gentoo sources that are released a while later.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Sat Apr 10, 2010 1:59 pm    Post subject: Reply with quote

luismw wrote:
One question, though: if this is a known bug, and there is a patch available, how come this kernel is marked as stable? Or, if it is marked stable, why not add the patch to gentoo-sources? This is not a complaint, I'm just trying to understand what's the difference between vanilla kernel and the gentoo sources that are released a while later.
There are a lot of open bugs in the kernel sources. Most of the time they will have little effect on you, but in this case it looks like we both got bitten. Gentoo simply follows the kernel release schedule and marks the kernel sources stable after some QA process. Bugs like this won't really affect the Gentoo devs from marking sources as stable, since it's an upstream issue and only affects some users.

The reason you won't see this patch in gentoo-sources, is because gentoo-sources simply adds a handful of gentoo specific patches to the vanilla-sources. This type of bug fix will need to wait for an integration with the vanilla-sources (the release from kernel.org) before it makes its way into gentoo.
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 91

PostPosted: Mon May 17, 2010 8:45 pm    Post subject: Reply with quote

I've tried vanilla kernel 2.6.34 today and the issue persists :cry:

How can I have the system react to keys that don't even register on acpi_listen?
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Tue May 18, 2010 1:31 pm    Post subject: Reply with quote

luismw wrote:
I've tried vanilla kernel 2.6.34 today and the issue persists :cry:

How can I have the system react to keys that don't even register on acpi_listen?
Hmm... that patch should have been rolled into the 2.6.34 kernel. I haven't tried it myself, but according to the kernel bugzilla it should be there.

Since your issue is related to the volume buttons you might be able to create a workaround based on key presses. You can use xbindkeys to bind your volume keys to a script that raises/lowers your volume. You can get the proper key codes with xev. This is actually what I use on my laptop to control volume, since those keys have never worked for me on pretty much any laptop I've owned.

Here is the script I use if you need it. It controls volume via the Front channel. You can un-comment the PCM lines and comment the Front lines if you want to control it via PCM instead. You call the script with the parameter 'up' or 'down' (without quotes) to increase / decrease the volume.
Code:
#!/usr/bin/perl

$CURRENT = `amixer get Front`;
#$CURRENT = `amixer get PCM`;
$CURRENT =~ s/\n/ /g;
$CURRENT =~s/^.* Playback ([0-9]+).*$/$+/;

if      ($ARGV[0] eq up)        { $volume = $CURRENT + 1; }
elsif   ($ARGV[0] eq down)      { if ($CURRENT > 0)
                                        { $volume = $CURRENT - 1; }
                                  else
                                        { $volume = 0; }
                                }

`amixer set Front $volume`;
#`amixer set PCM $volume`;
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 91

PostPosted: Wed May 19, 2010 7:05 pm    Post subject: Reply with quote

Thanks a lot for your suggestion. Sadly, xev does not detect the volume keys, maybe that's a problem with the kernel. It does detect all the fn+F key combinations that already work, such as brightness up or down and wireless toggle.

I'm going to try just making up a combination using, for instance, the super_L key instead of the fn key.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum