[GH-ISSUE #720] Calculating help #631

Closed
opened 2026-02-26 00:33:11 +03:00 by kerem · 4 comments
Owner

Originally created by @kevdagoat on GitHub (Jul 6, 2019).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/720

Hi,

I have no clue what I am doing. Would like to control the two fans on my Lenovo Ideapad c340.

I have managed to dump the DSDT table, but I am stuck on where to go next??

I think the appropriate register names are FAN1 and FAN2, but I cannot work out how to calculate the hex value and the byte value of the register

Sorry to bug everyone :)

DSDT Table:

            OperationRegion (ECMM, SystemMemory, 0xFC7E0800, 0x1000)
            Field (ECMM, AnyAcc, Lock, Preserve)
            {
                Offset (0x5D), 
                ERIB,   16, 
                Offset (0x61), 
                SMST,   8, 
                SMAD,   8, 
                SMCM,   8, 
                SMD0,   256, 
                BCNT,   8, 
                SMAA,   24, 
                SMBN,   8, 
                Offset (0xA0), 
                Offset (0xA1), 
                    ,   1, 
                VIDO,   1, 
                TOUP,   1, 
                Offset (0xA2), 
                ODTS,   8, 
                OSTY,   4, 
                    ,   1, 
                PBOV,   1, 
                ECRD,   1, 
                ADPT,   1, 
                PWAK,   1, 
                MWAK,   1, 
                LWAK,   1, 
                RWAK,   1, 
                WWAK,   1, 
                UWAK,   1, 
                KWAK,   1, 
                TWAK,   1, 
                CCAC,   1, 
                AOAC,   1, 
                BLAC,   1, 
                PSRC,   1, 
                BOAC,   1, 
                LCAC,   1, 
                AAAC,   1, 
                ACAC,   1, 
                S3ST,   1, 
                S3RM,   1, 
                S4ST,   1, 
                S4RM,   1, 
                S5ST,   1, 
                S5RM,   1, 
                CSST,   1, 
                CSRM,   1, 
                OSTT,   8, 
                OSST,   8, 
                THLT,   8, 
                TCNL,   8, 
                MODE,   1, 
                    ,   2, 
                INIT,   1, 
                FAN1,   1,  //Fan 1??
                FAN2,   1,  //Fan 2??
                FANT,   1,  //Fan Threshold???
                SKNM,   1, 
                SDTM,   8, 
                FSSN,   4, 
                FANU,   4,  //Dunno, fan related?
                PCVL,   6, 
                SWTO,   1, 
                TTHR,   1, 
                TTHM,   1, 
                THTL,   1, 
                TFCT,   1, 
                NPST,   5, 
                CTMP,   8, 
                CTML,   8, 
                EST3,   8, 
                SKTB,   8, 
                SKTC,   8, 
                DPOT,   8, 
                EST1,   8, 
                EST2,   8, 
                    ,   1, 
                LIDF,   1, 
                PMEE,   1, 
                PWBE,   1, 
                RNGE,   1, 
                BTWE,   1, 
                Offset (0xB9), 
                BRTS,   8, 
                S35M,   1, 
                S35S,   1, 
                    ,   1, 
                MSFG,   1, 
                FFEN,   1, 
                FFST,   1, 
                Offset (0xBB), 
                WLAT,   1, 
                BTAT,   1, 
                WLEX,   1, 
                BTEX,   1, 
                KLSW,   1, 
                WLOK,   1, 
                AT3G,   1, 
                EX3G,   1, 
                PJID,   8, 
                CPUJ,   3, 
                CPNM,   3, 
                GATY,   2, 
                Offset (0xC0), 
                BTY0,   1, 
                BAM0,   1, 
                Offset (0xC1), 
                BST0,   8, 
                BRC0,   16, 
                Offset (0xC6), 
                BPV0,   16, 
                BDV0,   16, 
                BDC0,   16, 
                BFC0,   16, 
                GAU0,   8, 
                BAT0,   8, 
                BPC0,   16, 
                BAC0,   16, 
                BCG0,   16, 
                BFCB,   16, 
                BTPB,   16, 
                BOL0,   1, 
                BFS0,   1, 
                Offset (0xDB), 
                ORRF,   1, 
                Offset (0xDC), 
                Offset (0xDD)
            }
Originally created by @kevdagoat on GitHub (Jul 6, 2019). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/720 Hi, I have no clue what I am doing. Would like to control the two fans on my Lenovo Ideapad c340. I have managed to dump the DSDT table, but I am stuck on where to go next?? I think the appropriate register names are FAN1 and FAN2, but I cannot work out how to calculate the hex value and the byte value of the register Sorry to bug everyone :) DSDT Table: ``` OperationRegion (ECMM, SystemMemory, 0xFC7E0800, 0x1000) Field (ECMM, AnyAcc, Lock, Preserve) { Offset (0x5D), ERIB, 16, Offset (0x61), SMST, 8, SMAD, 8, SMCM, 8, SMD0, 256, BCNT, 8, SMAA, 24, SMBN, 8, Offset (0xA0), Offset (0xA1), , 1, VIDO, 1, TOUP, 1, Offset (0xA2), ODTS, 8, OSTY, 4, , 1, PBOV, 1, ECRD, 1, ADPT, 1, PWAK, 1, MWAK, 1, LWAK, 1, RWAK, 1, WWAK, 1, UWAK, 1, KWAK, 1, TWAK, 1, CCAC, 1, AOAC, 1, BLAC, 1, PSRC, 1, BOAC, 1, LCAC, 1, AAAC, 1, ACAC, 1, S3ST, 1, S3RM, 1, S4ST, 1, S4RM, 1, S5ST, 1, S5RM, 1, CSST, 1, CSRM, 1, OSTT, 8, OSST, 8, THLT, 8, TCNL, 8, MODE, 1, , 2, INIT, 1, FAN1, 1, //Fan 1?? FAN2, 1, //Fan 2?? FANT, 1, //Fan Threshold??? SKNM, 1, SDTM, 8, FSSN, 4, FANU, 4, //Dunno, fan related? PCVL, 6, SWTO, 1, TTHR, 1, TTHM, 1, THTL, 1, TFCT, 1, NPST, 5, CTMP, 8, CTML, 8, EST3, 8, SKTB, 8, SKTC, 8, DPOT, 8, EST1, 8, EST2, 8, , 1, LIDF, 1, PMEE, 1, PWBE, 1, RNGE, 1, BTWE, 1, Offset (0xB9), BRTS, 8, S35M, 1, S35S, 1, , 1, MSFG, 1, FFEN, 1, FFST, 1, Offset (0xBB), WLAT, 1, BTAT, 1, WLEX, 1, BTEX, 1, KLSW, 1, WLOK, 1, AT3G, 1, EX3G, 1, PJID, 8, CPUJ, 3, CPNM, 3, GATY, 2, Offset (0xC0), BTY0, 1, BAM0, 1, Offset (0xC1), BST0, 8, BRC0, 16, Offset (0xC6), BPV0, 16, BDV0, 16, BDC0, 16, BFC0, 16, GAU0, 8, BAT0, 8, BPC0, 16, BAC0, 16, BCG0, 16, BFCB, 16, BTPB, 16, BOL0, 1, BFS0, 1, Offset (0xDB), ORRF, 1, Offset (0xDC), Offset (0xDD) } ```
kerem 2026-02-26 00:33:11 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@webloft commented on GitHub (Aug 2, 2019):

I have also FAN2 DSDT name but just 1 Fan - i think it is not related to controlling and other parts of DSDT are more point of interest here.

But maybe my instruction works for you:

See https://github.com/hirschmann/nbfc/issues/688#issuecomment-517526452

<!-- gh-comment-id:517528956 --> @webloft commented on GitHub (Aug 2, 2019): I have also FAN2 DSDT name but just 1 Fan - i think it is not related to controlling and other parts of DSDT are more point of interest here. But maybe my instruction works for you: See https://github.com/hirschmann/nbfc/issues/688#issuecomment-517526452
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2020):

This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed

<!-- gh-comment-id:580518519 --> @github-actions[bot] commented on GitHub (Jan 31, 2020): This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed
Author
Owner

@dchwilk commented on GitHub (Jun 16, 2020):

@kevdagoat I also try the C340. Did you succeed in the end? If not, could you share your intermediate status?

<!-- gh-comment-id:644607103 --> @dchwilk commented on GitHub (Jun 16, 2020): @kevdagoat I also try the C340. Did you succeed in the end? If not, could you share your intermediate status?
Author
Owner

@kevdagoat commented on GitHub (Jun 16, 2020):

No I sadly didn’t succeed

On 16 Jun 2020, at 4:10 pm, Dennis Wilk notifications@github.com wrote:


@kevdagoat I also try the C340. Did you succeed in the end? If not, could you share your intermediate status?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

<!-- gh-comment-id:644610837 --> @kevdagoat commented on GitHub (Jun 16, 2020): No I sadly didn’t succeed > On 16 Jun 2020, at 4:10 pm, Dennis Wilk <notifications@github.com> wrote: > >  > @kevdagoat I also try the C340. Did you succeed in the end? If not, could you share your intermediate status? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub, or unsubscribe.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#631
No description provided.