Samsung N120 Brightness controls don't work (Jaunty+Karmic)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| hal-info (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: hal-info
Brightness control keys on a Samsung N120 netbook are not recognized and can't be used to control brightness.
Those are the up & down cursor keys (FN+UP and FN+DOWN).
I am using Jaunty (lpia kernel) with -proposed updates.
dmesg reports:
[ 341.102441] atkbd.c: Unknown key pressed (translated set 2, code 0x89 on isa0060/serio0).
[ 341.102458] atkbd.c: Use 'setkeycodes e009 <keycode>' to make it known.
[ 341.274301] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 341.274318] atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
It seems the N120's hardware description in /usr/share/
There are other similar bugs related to brightness control keys on Samsung systems:
Bug #359814 - Samsung nc20 brightness keys do not work
input-event returns the following ("#" prefixed comments mine0
iz@lilo:~$ sudo input-events /dev/input/event0
[sudo] password for iz:
/dev/input/event0
bustype : BUS_I8042
vendor : 0x1
product : 0x1
version : 43841
name : "AT Translated Set 2 keyboard"
phys : "isa0060/
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
waiting for events
08:39:35.153551: EV_MSC code=4 value=136 # FN+UP
08:39:35.153610: EV_SYN code=0 value=0
08:39:36.019309: EV_MSC code=4 value=137 #FN + DOWN
08:39:36.019371: EV_SYN code=0 value=0
Fabián Rodríguez (magicfab) wrote : | #1 |
Fabián Rodríguez (magicfab) wrote : | #2 |
Fabián Rodríguez (magicfab) wrote : | #3 |
Keep in mind this system BIOS has a "Brightness Mode Control" set to "Auto" under the "Boot" menu. Setting it to "User Control" makes the FN+UP/DOWN keys work at boot time.
Architecture: lpia
Dependencies:
DistroRelease: Ubuntu 9.10
Package: hal-info 20090716-0ubuntu1
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=fr_CA.UTF-8
LANGUAGE=
ProcVersionSign
Uname: Linux 2.6.31-10-lpia i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
tags: | added: apport-collected |
I've upgrade to Karmic and the same problem persists.
Architecture: lpia
Dependencies:
DistroRelease: Ubuntu 9.10
Package: hal-info 20090716-0ubuntu1
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
LANGUAGE=
ProcVersionSign
Uname: Linux 2.6.31-11-lpia i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape vboxusers video
XsessionErrors:
(gnome-
(gnome-
(nautilus:3179): Eel-CRITICAL **: eel_preferences
(polkit-
(gnome-
summary: |
- Samsung N120 Brightness controls don't work (Jaunty) + Samsung N120 Brightness controls don't work (Jaunty+Karmic) |
Felipe De la Puente (fdelapuente) wrote : | #7 |
Hi, fresh install on X420 has the same problem, probably the same hardware. Haven't checked that.
Sonsum (scottonsum) wrote : | #8 |
I have this too on a fully updated Karmic on a Samsung n120
nukul (nukulorrr) wrote : | #9 |
I have the same problem as Felipe De la Puente. I already compiled Kernel 2.6.33-rc3 and tried that, but to no avail.
There is a new module in that kernel version, "samsung-laptop", which is supposed to fix exactly this problem.
I did an insmod on it with force=1:
sudo insmod samsung-laptop.ko force=1
and it returned: This computer does not support SABI.
I don't know what to do now. I have time until Friday (Jan. 15, 2010) to give back the laptop to the store if I don't get it to work, so I'd like to have fixed it until then^^ If I can provide further information on the problem, just tell me, I'll be glad!
Hulin (hulin-thibaud-gmail) wrote : | #10 |
Hi,
I've the same probleme, however I resolved it with a bash script.
The command "sudo setpci -s 00:02.1 F4.B=n"
with n= a number from 5 to 100, adjust the luminosity.
I created a shortkey in preferences of gnome to execute a short script with shift / top arrow or shift / down arrow. These bash script increase or decrease the value record in a file with these inscrution.
Regards,
Thibaud.
Fortunato Ventre (voria) wrote : | #11 |
I've built a .deb package for the latest stable kernel, containing the kernel module written by Greg Kroah-Hartman (http://
It's called 'nc10-backlight' and it's available on my repository for the 'Linux On My Samsung' project:
https:/
Fabián Rodríguez (magicfab) wrote : | #12 |
@Hulin, would you share/attach such scripts ?
@Fortunate, thank you, I'll be testing that shortly, I hope other with the same system do the same :)
Fabián Rodríguez (magicfab) wrote : | #13 |
Sorry, meant to write Fortunato.
Sonsum (scottonsum) wrote : | #14 |
@Fortunato, I installed your .deb "nc10-backlight" package on my Samsung N120. The first thing I noticed was my screen is so much brighter on the first boot. The brightness function keys do not work out-of-the-box, but the brightness panel applet now works. Thanks a lot, this is very much appreciated!
Fortunato Ventre (voria) wrote : | #15 |
To enable the FN keys, you need to edit the file '/lib/udev/
In other words, modify the line:
ENV{DMI_
in:
ENV{DMI_
If after a reboot you notice that some FN keys are stucked and don't get released after they are used, this means the kernel needs to be patched for proper support, like for other Samsung models.
Let me know if this is the case: since I'm already building a patched kernel for other models, I can easily add support for the N120 too.
Hulin (hulin-thibaud-gmail) wrote : | #16 |
That's my script 'lumino' :
#!/bin/bash
file=$HOME/lumino
med=40
if [ -f $file ]
then
l=$(cat $file)
else
echo $med > $file
l=$med
fi
case "$1" in
"+")
l=$(( $l + 5 ))
[ $l -gt 95 ] && l=95
;;
"-")
l=$(( $l - 5 ))
[ $l -lt 5 ] && l=5
;;
esac
echo $l
sudo setpci -s 00:02.1 F4.B=$l
echo $l > $file
Before to execute it, modify the /etc/sudoers file with sudo visudo and add (or modify) this line :
user user-samsung140 = NOPASSWD: /usr/bin/setpci
Use the good name user and the good machine name.
This is for don't request the password for root.
I will try the solution of Fortunato.
Fabián Rodríguez (magicfab) wrote : | #17 |
Well this is interesting. I installed Fortunato's package and the brightness panel applet now works. I also modified the file and the FN+up / down keys for brightness control don't work, however ALT+up / down now control brightness (!). I removed the PPA as other packages risked being upgraded.
Fortunato Ventre (voria) wrote : | #18 |
That's really odd.
Are the Fn+up and Fn+down keys recognized by using the 'xev' command line utility?
Martti Kauppinen (marttikoo) wrote : | #19 |
Hi,
I installed your backlight package and modified 95-keymap.rules file. Now I have stuck FN key issue as you predicted might happen. Not big problem, but would be nice to have it solved. Hows your kernel patching going? Im using N120 and 9.10 netbook remix.
Thanks
Fortunato Ventre (voria) wrote : | #20 |
Sorry for the late answer, but I was no more subscribed to this bug.
You can find fixed kernel and udev packages on my repository (link below), for both karmic and lucid.
They fix the FN keys release on these samsung models:
N120, N128, N130, N140, N148/N208, NB30, N150/N210/N220, N220, N310,
N510, Q310, R428/P428, R518, R519/R719, R528/R728, R560, R59P/R60P/R61P,
SR58P, SR700, SX22S, X118, X120.
Fabián Rodríguez (magicfab) wrote : | #21 |
I've now upgraded this system to Ubuntu 10.04LTS and this problem persists. Fortunato, have you considered submitting your fixes to the main Linux kernel ?
Xavier Gnata (xavier-gnata-gmail) wrote : | #22 |
Is there a plan to merge these fixes and the samsung-
Things like "backlight control" should really work out of the box on 10.10.
Sonsum (scottonsum) wrote : | #23 |
@Xavier - Have you tried 10.10 yet? Because I believe they do work out of the box.
Xavier Gnata (xavier-gnata-gmail) wrote : | #24 |
With the current daily-live of Kubuntu (http://
I'm going to try ubuntu 10.10 to know if it is a Kubuntu specific bug or not...
Xavier Gnata (xavier-gnata-gmail) wrote : | #25 |
Same issue on ubuntu 10.10 daily-live : the Brightness controls do not work on a N210.
I don't know if it's a udev rules issues or something at higher level but it should be easy to figure out (I'm going to investigate....)
Changed in hal-info (Ubuntu): | |
status: | New → Confirmed |
Sonsum (scottonsum) wrote : Re: [Bug 429351] Re: Samsung N120 Brightness controls don't work (Jaunty+Karmic) | #26 |
Shouldn't this be posted as a different bug? 10.10 seems to be working
for me with my N120, which the original bug was about.
Shouldn't you make a new one for the n210?
Because this one seems solved.
I think it would be better for everyone if you made a new one,
generically for samsung laptops (instead of just the n120) and for
Maverick and Lucid instead of Jaunty and Karmic.
2010/9/22 Xavier Gnata <email address hidden>:
> ** Changed in: hal-info (Ubuntu)
> Status: New => Confirmed
>
> --
> Samsung N120 Brightness controls don't work (Jaunty+Karmic)
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “hal-info” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: hal-info
>
> Brightness control keys on a Samsung N120 netbook are not recognized and can't be used to control brightness.
> Those are the up & down cursor keys (FN+UP and FN+DOWN).
>
> I am using Jaunty (lpia kernel) with -proposed updates.
>
> dmesg reports:
> [ 341.102441] atkbd.c: Unknown key pressed (translated set 2, code 0x89 on isa0060/serio0).
> [ 341.102458] atkbd.c: Use 'setkeycodes e009 <keycode>' to make it known.
> [ 341.274301] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
> [ 341.274318] atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
>
> It seems the N120's hardware description in /usr/share/
>
> There are other similar bugs related to brightness control keys on Samsung systems:
> Bug #359814 - Samsung nc20 brightness keys do not work
>
> input-event returns the following ("#" prefixed comments mine0
> iz@lilo:~$ sudo input-events /dev/input/event0
> [sudo] password for iz:
> /dev/input/event0
> bustype : BUS_I8042
> vendor : 0x1
> product : 0x1
> version : 43841
> name : "AT Translated Set 2 keyboard"
> phys : "isa0060/
> bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
>
> waiting for events
> 08:39:35.153551: EV_MSC code=4 value=136 # FN+UP
> 08:39:35.153610: EV_SYN code=0 value=0
> 08:39:36.019309: EV_MSC code=4 value=137 #FN + DOWN
> 08:39:36.019371: EV_SYN code=0 value=0
>
> To unsubscribe from this bug, go to:
> https:/
>
Changed in hal-info (Ubuntu): | |
status: | Confirmed → Fix Released |
Albert I (albert-teixidor) wrote : | #27 |
With upgrade to 10.10 the Brightness controls do not work on my N120
Now i work with the patch
.
Changed in hal-info (Ubuntu): | |
assignee: | nobody → fai (cmf-flamel) |
Changed in hal-info (Ubuntu): | |
assignee: | fai (cmf-flamel) → nobody |
Also see Bug #333352 - Samsung Q210 brightness keys do not work. Updating bugs descriptions directly doesn't seem to work ("Entity-body was not a well-formed JSON document.").