I have a Sony Vaio VPCS11E7E and since Linux 3.5 (3.6 too) I can no longer use my Fn keys such as screen backlight up/down anymore. They are not even detected by acpi_listen.
Moreover kbd_backlight and kbd_backlight_timeout disappeared from /sys/devices/platform/sony-laptop (although the new thermal_* controls are there).
Reverting to 3.4.x solves the problems.
I am new here and I don't know what info you may need for this, so please ask me for anything.
After a few testing, I think that's the root of the problem:
root@VPCS11E7E:/usr/src/linux-stable# git bisect bad
5fe801a7427cb13c530af59e2b77b30d789d9b9a is the first bad commit
Author: Marco Chiappero <firstname.lastname@example.org>
Date: Sat May 19 22:35:48 2012 +0900
sony-laptop: improve SNC initialization and acpi notify callback code
Loop through the list of SNC handles and run the proper initialization
function for each of the known handles. Also return void in function
where we are not checking the return value anyway.
For notifications we also know which handle is linked to the event and
the code becomes simpler to read with a switch rather than using
[email@example.com: Code reworked to merge the initialization code
improvements and the notify callback changes. Modified the code paths to
allow easier error exit paths. Also fixed some missing break statements
and spelling mistakes.]
Signed-off-by: Marco Chiappero <firstname.lastname@example.org>
Signed-off-by: Mattia Dongili <email@example.com>
Signed-off-by: Matthew Garrett <firstname.lastname@example.org>
:040000 040000 eaea189cb16a74b5fc10a6e5ad8f7a59e68693c8 2be889391b731842440173913e8a605a8e6eb0fa M drivers
could you please attach the DSDT of you laptop and the kernel log (dmesg) after loading sony-laptop with 'modprobe sony-laptop debug=1'?
To get the DSDT you can run
acpidump -t DSDT -b -o DSDT.aml
cat /sys/firmware/acpi/tables/DSDT > DSDT.aml
then you can decompile the resulting file using:
iasl -d DSDT.aml
you can attach either the binary file or the decompiled one.
also, maybe you're also seeing this issue:
Created attachment 84941 [details]
Created attachment 84951 [details]
Well, at first glance my dmesg output looks very similar to id=45281, but I can't say the module "crashed", since I have thermal_control and thermal_profiles under /sys/devices/platform/sony-laptop/
Created attachment 85011 [details]
attempt at fixing and printing additional debug information
Fabrizio, could you please try this patch and again attach the kernel log after loading the driver with debug=1 ?
*** Bug 45281 has been marked as a duplicate of this bug. ***
I applied the patch against kernel 3.6.3 and it seems to fix bug 45281 for me, the module loads and the brightness keys work again.
Created attachment 85021 [details]
dmesg with patched module
Created attachment 85031 [details]
dmesg with patched sony-laptop
Same for me. Fn keys work and kbd_backlight* are shown.
After resuming from suspend however the module starts acting oddly: keyboard backlight lights up (even if kbd_backlight was/is set to 0, but setting it to 0 again turns it off) and Fn keys stop working.
I got another problem: Sometimes the backlight keys start to act weird after some time. They are only triggered after pressing them multiple times or don't work at all in between. It's kind of hard to explain and I'm not sure what triggers this behaviour. I noticed however that this stops after resuming from suspend and the keys work fine again. I'm gonna try to find out when/how exactly this starts happening.
can't comment on the keyboard backlight, my model (VPCS11C5E) doesn't have it.
As a side note, I really wanna smack this laptop against a wall, I've always had some kind of new problem with every new kernel release and there never was a point where everything "just worked".
Don't get me wrong, I'm not blaming the Linux devs, I'm blaming Sony for what I'm guessing are crappy BIOS/ACPI implementations. Sorry, I needed to say this. ;)
My bad, I booted the wrong kernel. Everything seems ok with 3.6.3 and I haven't had the multiple pressing problem so far.
(In reply to comment #13)
> I got another problem: Sometimes the backlight keys start to act weird after
> some time. They are only triggered after pressing them multiple times or
> work at all in between. It's kind of hard to explain and I'm not sure what
> triggers this behaviour. I noticed however that this stops after resuming
> suspend and the keys work fine again. I'm gonna try to find out when/how
> exactly this starts happening.
you can try to run sony-laptop with the debug=1 parameter and see if it logs any activity. Or reload the module to see if it's related to
sony-laptop at all.
In any case it sounds unrelated to the issue reported here, if you want we can keep discussing separately.
Thanks both for your help!
A patch referencing this bug report has been merged in Linux v3.8-rc4:
Author: Mattia Dongili <email@example.com>
Date: Fri Dec 21 07:21:09 2012 +0900
sony-laptop: fix SNC buffer calls when SN06 returns Integers