Comment 25 for bug 810093

Revision history for this message
Felix Vollmer (felixvollmer) wrote :

I tested my Idea and it is just working. All I changed is from original 3.0 kernel samsung-laptop.c is the "set_brightness" function. I can't notice any problems with the fast change to min_brightness. I think this should work on any Samsung Laptop and doesn't require any complicated quirk check. Sry I don't have a patch right now but this is the code I used for testing:

static void set_brightness(u8 user_brightness)
{
 if (user_brightness == read_brightness())
  return;
 u8 user_level = user_brightness + sabi_config->min_brightness;
 sabi_set_command(sabi_config->commands.set_brightness, sabi_config->min_brightness);
 sabi_set_command(sabi_config->commands.set_brightness, user_level);
}

This code might be a bad Idea or bad written. I never coded anything hardware or kernel related. Sry.