Finally I've solved my problem, now I'll explain briefly steps I did.
- First of all I've recompiled a patched kernel 2.6.31, in particular there's a little change to do in the file /usr/src/linux-source-2.6.31/drivers/input/keyboard/atkbd.c, without this step pressing the brightness button locks the keyboard,
you have to add your model after others Samsung, I've added these lines:
- Last step, I gave the command xrandr --output LVDS --set BACKLIGHT_CONTROL legacy , it's possible to add this command in Sessions.
Now I can control brightness with fn keys and with brightness applet. There's only one little issue, if I set brightness to minimum, screen goes black and it's impossible to revert the situation, I need to switch to the console (Ctrl+Alt+F1) and than come back to X.
It would be great if a patch will be placed in next Karmic, it's not amazing recompiling kernel each time.
Finally I've solved my problem, now I'll explain briefly steps I did.
- First of all I've recompiled a patched kernel 2.6.31, in particular there's a little change to do in the file /usr/src/ linux-source- 2.6.31/ drivers/ input/keyboard/ atkbd.c, without this step pressing the brightness button locks the keyboard,
you have to add your model after others Samsung, I've added these lines:
{ MATCH(DMI_ SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), MATCH(DMI_ PRODUCT_ NAME, "R519/R719"), forced_ release, forced_ release_ keys,
.ident = "Samsung R519/R719",
.matches = {
DMI_
DMI_
},
.callback = atkbd_setup_
.driver_data = atkbd_samsung_
},
- Second step, I've added info about my pc on /usr/share/ hal/fdi/ information/ 10freedesktop/ 30-keymap- misc.fdi
Just a little change, string
<match key="/org/ freedesktop/ Hal/devices/ computer: system. hardware. vendor" prefix_ ncase=" samsung" > freedesktop/ Hal/devices/ computer: system. hardware. product" contains_ outof=" NC10;SP55S; SQ45S70S; SX60P;SX30S; R59P/R60P/ R61P;Q210; Q310;X05" >
<match key="/org/
becomes
<match key="/org/ freedesktop/ Hal/devices/ computer: system. hardware. vendor" prefix_ ncase=" samsung" > freedesktop/ Hal/devices/ computer: system. hardware. product" contains_ outof=" NC10;SP55S; SQ45S70S; SX60P;SX30S; R59P/R60P/ R61P;Q210; Q310;X05; R519/R719" >
<match key="/org/
- Last step, I gave the command xrandr --output LVDS --set BACKLIGHT_CONTROL legacy , it's possible to add this command in Sessions.
Now I can control brightness with fn keys and with brightness applet. There's only one little issue, if I set brightness to minimum, screen goes black and it's impossible to revert the situation, I need to switch to the console (Ctrl+Alt+F1) and than come back to X.
It would be great if a patch will be placed in next Karmic, it's not amazing recompiling kernel each time.