Re: Problems with hardware radio kill switch on Sony Vaio notebook

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

 



On Tue, Mar 30, 2010 at 07:42:08PM +0200, Ralph Benzinger wrote:
> On March 30, you wrote:
> > Yes, it's most likely that sony-laptop would be the one module to point
> > fingers at.
> 
> Hello Mattia,
> 
> Thanks for looking into this.
> 
> First of all: Last night I compiled a vanilla 2.6.33.1 kernel on my
> Vaio, and the rfkill switch is working out-of-the-box!  Even sliding
> the hardware rfkill switch now works as intended.  I've attached the
> dmesg output for the 2.6.33.1 kernel for your reference.  Note that
> the brightness keys are not working, but there's the known workaround
> of using setpci for now.
> 
> The really weird thing is that booting with the 2.6.33.1 kernel just
> once somehow permanently enabled the kill switch handling for the
> Ubuntu 2.6.31 kernel.  In other words, I can now enable and disable
> wireless on Ubuntu just as expected.  (You can still see the
> corresponding event 0x05 in dmesg, though.)

Hummm, I doubt that 2.6.31 really works (realiably at least).
The code change required for you to have a working rfkill switch was
introduced in 2.6.33:

commit d5a664a311c1957a75bec1808cae0f10d606c378
Author: Mattia Dongili <malattia@xxxxxxxx>
Date:   Thu Dec 17 00:08:35 2009 +0900

    sony-laptop: rfkill support for newer models
    
    Vaio Type X and possibly other new models use F135 as the radio
    frequency controlling function attached to the SNC device. In the
    indexed table this corresponds to 0x0135 (surpise!).
    
    Signed-off-by: Mattia Dongili <malattia@xxxxxxxx>
    Signed-off-by: Len Brown <len.brown@xxxxxxxxx>

See with 2.6.33:
> [  366.590771] sony-laptop: Doing SNC setup
> [  366.658123] sony-laptop: Found rkfill handle: 0x0135
> [  366.665731] sony-laptop: Radio devices, looking at 0x00
> [  366.670576] sony-laptop: Radio devices, looking at 0x10
> [  366.689297] input: Sony Vaio Keys as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0d/SNY5001:00/input/input11
> [  366.689799] input: Sony Vaio Jogdial as /devices/virtual/input/input12
> [  366.689944] sony-laptop: brightness ignored, must be controlled by ACPI video driver

and 2.6.31:
> [  239.271228] sony-laptop: Doing SNC setup
> [  239.371916] input: Sony Vaio Keys as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:10/SNY5001:00/input/input11
> [  239.372024] input: Sony Vaio Jogdial as /devices/virtual/input/input12
> [  239.372087] sony-laptop: brightness ignored, must be controlled by ACPI video driver

You took the below on 2.6.31 didn't you? :)

> root@lynx:~# grep . /sys/class/rfkill/rfkill*/*
...
> /sys/class/rfkill/rfkill1/name:phy0
...
> /sys/class/rfkill/rfkill3/name:hci0

the sony rfkill devices are missing.

-- 
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux