[lkml]   [2007]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Linus' laptop and Num lock status
    Hi Linus,

    On Wed, 14 Feb 2007 11:12:23 -0800 (PST), Linus Torvalds wrote:
    > On Wed, 14 Feb 2007, Dax Kelson wrote:
    > > Are there any technical or political reasons why kernel can't change
    > > from "force off" to "Follow BIOS"?
    > How would you query it? I'm not even 100% sure that you can on all
    > keyboards. We never query the leds, we always set them. I think. I don't
    > know of any AT kbd command to read the led state out of the keyboard.

    On x86, the BIOS led state can be read from byte 0x97 the BIOS RAM. The
    BIOS RAM is mapped at 0x400 so all we need to do is to one byte from
    RAM (offset 0x497). This is how Suse's hwinfo does.

    But maybe the first question to ask is: why is the BIOS setting lost in
    the first place? Why is the kernel resetting the led state?

    Jean Delvare
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-02-14 20:25    [W:0.020 / U:109.288 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site