• Jordan Crouse's avatar
    [PATCH] APM Screen Blanking fix · 3841b0a1
    Jordan Crouse authored
    - Fix screen blanking on BIOSes that return APM_NOT_ENGAGED when APM enabled
      screen blanking is not turned on.
    
      The original code only tried to set the state on device 0x100, and then
      0x1FF, and I added 0x101 to the mix too.
    
    - Clean up logic in apm_console_blank().
    
    - Prevent the error message from printing out twice.
    
    Cc: Jordan Crouse <jordan.crouse@amd.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3841b0a1
apm.c 68.8 KB