Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1363231

Re: [PATCH] fujitsu-laptop: Support radio LED

From Michał Kępień <kernel@kempniu.pl>
Newsgroups linux.kernel
Subject Re: [PATCH] fujitsu-laptop: Support radio LED
Date 2016-03-23 09:00 +0100
Message-ID <rfLRV-g1-19@gated-at.bofh.it> (permalink)
References <rdhOi-8i5-17@gated-at.bofh.it> <re1o6-5ze-19@gated-at.bofh.it> <rfuHo-51N-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> > If you could let me know how you went about
> > acquiring the values on your machine I could try the exact same steps on the
> > S7020 to see what we get.
> 
> The BTNI value is printed to the kernel log buffer by
> acpi_fujitsu_hotkey_add(), so all it takes to retrieve it is:
> 
>     dmesg | grep BTNI
> 

I forgot to write that the other value I suggested could perhaps be used
to determine whether a radio toggle button is present on a given model
(0x00020320 on a Lifebook E744) is the return value of:

    call_fext_func(FUNC_RFKILL, 0x0, 0x0, 0x0);

It is stored in the rfkill_supported field of struct fujitsu_hotkey_t.
You can also look it up in a DSDT dump.  On a Lifebook E744:

    Method (S000, 3, Serialized)
    {
        Name (_T_0, Zero)  // _T_x: Emitted by ASL Compiler
        Local0 = Zero
        While (One)
        {
            _T_0 = Arg0
            If ((_T_0 == Zero))
            {
 >>             Local0 |= 0x00020000
                Local0 |= 0x0200
                Local0 |= 0x0100
                Local0 |= 0x20
            }
            ...
            Break
        }

        Return (Local0)
    }

On an E8420:

    Method (S000, 3, NotSerialized)
    {
        Local0 = 0x80000000
        If ((Arg0 == 0x00))
        {
            Local0 = Zero
            Local0 |= 0x20
            Local0 |= 0x0100
            Local0 |= 0x0200
        }
        ...
        Return (Local0)
    }

-- 
Best regards,
Michał Kępień

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] fujitsu-laptop: Support radio LED Jonathan Woithe <jwoithe@just42.net> - 2016-03-18 13:10 +0100
  Re: [PATCH] fujitsu-laptop: Support radio LED Michał Kępień <kernel@kempniu.pl> - 2016-03-22 14:40 +0100
    Re: [PATCH] fujitsu-laptop: Support radio LED Michał Kępień <kernel@kempniu.pl> - 2016-03-23 09:00 +0100
    Re: [PATCH] fujitsu-laptop: Support radio LED Jonathan Woithe <jwoithe@just42.net> - 2016-03-24 12:40 +0100
    Re: [PATCH] fujitsu-laptop: Support radio LED Darren Hart <dvhart@infradead.org> - 2016-03-28 19:50 +0200

csiph-web