[Bug 35319] Re: no Fn at all Vaio SZ1XP Dapper

Arnaud arnaud.mazin at gmail.com
Tue Apr 18 18:43:46 UTC 2006


I.
As I was getting the same kind of trouble, I read sonypi.c and noticed that stelian was very accurate : type3 VAIO model is detected if an ICH6 chipset is found on the host. As my SZ1 has a ICH7, It falls back on a type2 behaviour.
I simply had this to drivers/char/sonypi.c: 

--- drivers/char/sonypi.c~      2006-04-18 19:58:19.878837000 +0200
+++ drivers/char/sonypi.c       2006-04-18 20:17:56.204352750 +0200
@@ -1341,6 +1341,9 @@
        else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
                                          PCI_DEVICE_ID_INTEL_ICH6_1, NULL)))
                sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE3;
+       else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
+                                         PCI_DEVICE_ID_INTEL_ICH7_1, NULL)))
+               sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE3;
        else
                sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE2;

And now, I'm getting the following log at module insertion : 

Apr 18 20:25:11 localhost kernel: sonypi: Sony Programmable I/O Controller Driver v1.26.
Apr 18 20:25:11 localhost kernel: sonypi: detected type3 model, verbose = 0, fnkeyinit = off, camera = off, compat = off, mask = 0xffffffff, useinput = on, acpi = on
Apr 18 20:25:11 localhost kernel: sonypi: enabled at irq=11, port1=0x1080, port2=0x1084
Apr 18 20:25:11 localhost kernel: sonypi: device allocated minor is 62
Apr 18 20:25:11 localhost kernel: input: Sony Vaio Jogdial as /class/input/input4
Apr 18 20:25:11 localhost kernel: input: Sony Vaio Keys as /class/input/input5

No more "command failed at drivers/char/sonypi.c" stuff

And events like : 

Apr 18 20:34:06 localhost logger: sony/hotkey SPIC 00000001 00000020
Apr 18 20:34:06 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:09 localhost logger: sony/hotkey SPIC 00000001 0000000d
Apr 18 20:34:09 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:10 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:10 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:10 localhost logger: sony/hotkey SPIC 00000001 0000000e
Apr 18 20:34:10 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:10 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:10 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:10 localhost logger: sony/hotkey SPIC 00000001 0000000f
Apr 18 20:34:10 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:10 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:10 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:11 localhost logger: sony/hotkey SPIC 00000001 00000010
Apr 18 20:34:11 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:11 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:11 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:11 localhost logger: sony/hotkey SPIC 00000001 00000011
Apr 18 20:34:11 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:11 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:11 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:12 localhost logger: sony/hotkey SPIC 00000001 00000012
Apr 18 20:34:12 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:12 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:12 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:12 localhost logger: sony/hotkey SPIC 00000001 00000015
Apr 18 20:34:12 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:12 localhost logger: sony/hotkey SPIC 00000001 0000003b
Apr 18 20:34:12 localhost logger: ACPI group sony/hotkey / action SPIC is not defined
Apr 18 20:34:14 localhost logger: sony/hotkey SPIC 00000001 00000017

Which is that I expected (am I wrong ?)

Please notice that I'm not a kernel guru at all so I don't know if it this the right way to do it...
Maybe stelian can validate/invalidate this can of patch (tested against 2.6.16.7 vanila).

However, I haven't tested yet if this still works after an hibernation. I'll let you know.

-- 
no Fn at all Vaio SZ1XP Dapper
https://launchpad.net/bugs/35319




More information about the kernel-bugs mailing list