Add special keys for Samsung Series 9 laptops

Bug #1072371 reported by Սահակ
94
This bug affects 21 people
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Please, add the following 4 lines to /lib/udev/keymaps/samsung-other
----------------------------
0x96 kbdillumup # keyboard backlit up
0x97 kbdillumdown # keyboard backlit down
0xCE prog1 # system settings
0xD5 wlan # wifi toggle
--------------------------------
and the following 4 lines to /lib/udev/keymaps/force-release/samsung-other
----------------------------
0x96 # keyboard backlit up
0x97 # keyboard backlit down
0xCE # system settings
0xD5 # wifi toggle
-----------------------------------------

this change should fix support for special function keys for Samsung Series 9, 900X3A, 900X3B and 900X3C.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udev (Ubuntu):
status: New → Confirmed
Revision history for this message
Piotr Plenik (piotr-plenik-f) wrote :

I have NP900X3C, and I don't see with special function keys in other types (900X3B and 900X3A).

On fresh Ubuntu 12.10, i don't have key code event for 4 function keys (i've checking using "/lib/udev/keymap -i input/event3").

I've created files:

# /lib/udev/keymaps/samsung-900x3c
0x97 kbdillumdown # FN+F9 Keyboard backlight down
0x96 kbdillumup # FN+F10 Keyboard backlight up
0xB3 silentmode # FN+F11 Silentmode
0xD5 wlan # FN+F12 WiFi

# /lib/udev/keymaps/force-release/samsung-900x3c
0x97 # FN+F9 Keyboard backlight down
0x96 # FN+F10 Keyboard backlight up
0xB3 # FN+F11 Silentmode
0xD5 # FN+F12 WiFi

and insert to files:
# /lib/udev/rules.d/95-keymap.rules
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*900X3*", RUN+="keymap $name samsung-900x3c"

# /lib/udev/rules.d/95-keyboard-force-release.rules
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*900X3*", RUN+="keyboard-force-release.sh $devpath samsung-900x3c"

After adding this and reboot, FUnctional eksy is recognized correcty by udev.

Revision history for this message
Սահակ (petrosyan) wrote :

Thanks Piotr,

I added wifi toggle scancode as well.
Since 900X3A, 900X3B and 900X3C all use the same scancodes I don't think it makes sense to create separate files for each one them.

That's why I think putting everything into "samsung-other" files makes more sense.

0xB3 scancode is already bound to "0xB3 prog3 # Fn+F8 switch power mode (battery/dynamic/performance)"
and samsung-other mapping is being run on all samsung laptops.

does "silentmode" have some default behavior in Ubuntu?

"wlan" binding does now have a default behavior in Ubuntu, so we need some special scripts to make it behave properly, right?

description: updated
Revision history for this message
Piotr Plenik (piotr-plenik-f) wrote :

Hi Սահակ (petrosyan).

Your resolution is better by my. After my changes I notice, that Keyboard Backlight still does not work properly.

With yours works greate.

Unfortunately "wlan" switch does not work.
"silentmode" is wrong - it's not declared in "/usr/include/linux/input.h".

In attachment sending patch with changed "samsung-other".

tags: added: samsung
tags: added: 900x3a 900x3b 900x3c
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lib/udev/keymaps/force-release/samsung-other, lib/udev/keymaps/samsung-other" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Gabriel_P (gabp) wrote :

As another user noted here http://askubuntu.com/questions/233312/how-to-make-keyboard-backlight-fn-buttons-work-in-samsung-series-9 this does not work on Samsung Series 9.

I have a Samsung Series 7 and I can reproduce the exact same issues by that user after applying this fix.

I'd say this is not a patch.

Revision history for this message
Սահակ (petrosyan) wrote :

Gabriel,
As is written in the first comment this patch works only for Samsung Series 9 900X3A, 900X3B and 900X3C models.

It is not for 900X4C model.

https://help.ubuntu.com/community/SamsungSeries9 documentation links to a different page for 900X4C model.

Revision history for this message
jhnwsk (jhnwsk) wrote :

Hi guys,

First of all thanks for the awesome work, you've brought my Fn keyboard backlight keys back to life!
Unfortunately although I see they work now, all they do is show the keyboard backlight notification maxed out. I think it's around halfway up and stays that way. So they work but don't do their job.

Any ideas on this? It'd be awesome for this to work.

Also on a side note, the silent mode key works on a fresh 12.04 install. Showing three possible fan states. I don't know but maybe this helps you figure it out. (12.04 not possible since it doesn't support EFI right?)

Սահակ (petrosyan)
description: updated
Revision history for this message
Victor Engmark (victor-engmark) wrote :

This is not a duplicate of bug #1012365, since the solution is different (and the other bug is about how the original solution doesn't work for 900X3C).

Also, it doesn't seem to work in Ubuntu 13.04. I tried modifying /lib/udev/keymaps/samsung-other and /lib/udev/keymaps/force-release/samsung-other as described in OP and rebooting. When pressing Fn+F7/8 I simply see a keyboard backlight icon pop-up with no "progress" indicator (like there is for the volume) and *the backlight doesn't change* no matter how many times I click.

I also tried following the instructions at <http://jablonskis.org/2012/linux-and-samsung-series-laptop-9-fn-keys/>, with the same result - The keyboard illumination indicator pops up (without showing the current state), and the state doesn't change.

Revision history for this message
microsome (mpkummer) wrote :

Running 13.04 I have the same issue as l0b0. Strangely, sometimes I have backlight but currently not.

Revision history for this message
Gisle Enåsen (enaasen) wrote :

Back light not working under 13.10 and creating changes to /lib/udev/keymaps/force-release/samsung-other and /lib/udev/keymaps/samsung-other does not help.

Revision history for this message
svenmeier (sven-meiers) wrote :

Works fine here with 14.04 on my 900x3c with the new Samsung entries in /lib/udev/hwdb.d/60-keyboard.hwdb

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.