Page 1 of 1

900X3E Fn keys

Posted: 11 Oct 2013, 20:27
by lpt
I can't get the Fn keys for brightness & keyboard backlight working. Tested on both Debian Wheezy / Jessie and both kernel 3.10 / 3.11 with samsung_laptop loaded.

Fn keys for touchpad, mute, volume +/- work out of the box, also samsung-tools works just fine. samsung_backlight also loads - what is this good for btw?
I can adjust brightness by echoing /sys/class/backlight/acpi_video0/brightness or change the keyboard backlight by echoing /sys/devices/platform/samsung/leds/samsung\:\:kbd_backlight/brightness however not by Fn keys.


The keys themselves seem to be mapped correct, see the Fn+F10 (keyboard backlight +) output for example:

Code: Select all

penguin@debian:/# /lib/udev/keymap -i input/event3
scan code: 0x96   key code: kbdillumup

Code: Select all

penguin@debian:/# xev
KeyPress event, serial 40, synthetic NO, window 0x1200001,
    root 0xaa, subw 0x1200002, time 5809003, (54,41), root:(1000,64),
    state 0x0, keycode 238 (keysym 0x1008ff05, XF86KbdBrightnessUp), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x1200001,
    root 0xaa, subw 0x1200002, time 5809003, (54,41), root:(1000,64),
    state 0x0, keycode 238 (keysym 0x1008ff05, XF86KbdBrightnessUp), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
I have absolutely no idea where I should look next. Any help appreciated.

Re: 900X3E Fn keys

Posted: 11 Oct 2013, 20:50
by seabird
Most important: INSTALL IN CMOS only via BIOS!!!!

if you fail to do this samsung-tools and platform are not loaded by the kernel.

My steps to make it work:

The ********* are for my reference. Don't copy paste them

Code: Select all

sudo nano /lib/udev/keymaps/samsung-900x3e
****************************************************
0xCE prog1              # FN+F1 System Settings
0x89 brightnessdown     # FN+F2 Brightness down
0x88 brightnessup       # FN+F3 Brightness up
0x82 switchvideomode    # FN+F4 Switch video mode
0xF9 f23                # FN+F5 Turn touchpad off
0xA0 mute               # FN+F6 Mute
0xAE volumedown         # FN+F7 Volume down
0xB0 volumeup           # FN+F8 Volume up
0x97 kbdillumdown       # FN+F9 Keyboard backlight down
0x96 kbdillumup         # FN+F10 Keyboard backlight up
0xB3 silentmode         # FN+F11 Silentmode
0xD5 wlan               # FN+F12 WiFi
******************************************************

sudo nano /lib/udev/keymaps/force-release/samsung-900x3e
******************************************************
0xCE # FN+F1 System Settings
0x89 # FN+F2 Brightness down
0x88 # FN+F3 Brightness up
0x82 # FN+F4 Switch video mode
0xF9 # FN+F5 Turn touchpad off
0xA0 # FN+F6 Mute
0xAE # FN+F7 Volume down
0xB0 # FN+F8 Volume up
0x97 # FN+F9 Keyboard backlight down
0x96 # FN+F10 Keyboard backlight up
0xB3 # FN+F11 Silentmode
0xD5 # FN+F12 WiFi
*******************************************************

sudo nano /lib/udev/rules.d/95-keymap.rules
#add
*******************************************************
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*900X3E*", RUN+="keymap $name samsung-900x3e"
*******************************************************

sudo nano /lib/udev/rules.d/95-keyboard-force-release.rules

#add
*******************************************************
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*900X3E*", RUN+="keyboard-force-release.sh $devpath samsung-900x3e"
*******************************************************

sudo reboot

sudo add-apt-repository ppa:voria/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install samsung-tools

Re: 900X3E Fn keys

Posted: 11 Oct 2013, 21:44
by lpt
Thanks, I did all this already though.
seabird wrote:Most important: INSTALL IN CMOS only via BIOS!!!!
if you fail to do this samsung-tools and platform are not loaded by the kernel.
It is a standard BIOS installation. As mentioned above samsung_laptop, samsung_backlight is loaded and samsung-tools works just fine.


I'm using the same udev mapping as you posted. Here you can verify the keymap is indeed loaded:

Code: Select all

penguin@debian:/# /lib/udev/keymap -i input/event3
Press ESC to finish, or Control-C if this device is not your primary keyboard
scan code: 0xCE   key code: prog1
scan code: 0x89   key code: brightnessdown
scan code: 0x88   key code: brightnessup
scan code: 0x82   key code: switchvideomode
scan code: 0xF7   key code: f22
scan code: 0xA0   key code: mute
scan code: 0xAE   key code: volumedown
scan code: 0xB0   key code: volumeup
scan code: 0x97   key code: kbdillumdown
scan code: 0x96   key code: kbdillumup
scan code: 0xB3   key code: prog3
scan code: 0xD5   key code: wlan
This is taken directly from the console.


If running from xterm I witness some weird autoscrolling behavior as if some "ghost" keys a pressed automatically:

Code: Select all

penguin@debian:/# /lib/udev/keymap -i input/event3
Press ESC to finish, or Control-C if this device is not your primary keyboard




scan code: 0xCE   key code: prog1



scan code: 0x89   key code: brightnessdown



scan code: 0x88   key code: brightnessup



scan code: 0x82   key code: switchvideomode



scan code: 0xF7   key code: f22



scan code: 0xA0   key code: mute



scan code: 0xAE   key code: volumedown



scan code: 0xB0   key code: volumeup



scan code: 0x97   key code: kbdillumdown



scan code: 0x96   key code: kbdillumup



scan code: 0xB3   key code: prog3



scan code: 0xD5   key code: wlan



scan code: 0x01   key code: esc



penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#
penguin@debian:/#

Do you get the same behavior on your box? Are your Fn keys working on the console (Ctrl+Alt+F1) too?

Re: 900X3E Fn keys

Posted: 29 Jan 2014, 13:56
by cray
Hi,

I have the ativ book 9 lite (NP905S3G) with ubuntu 12.04 LTS (64-bit) installed.

All the fn keys work except the screen brightness F2 and F3 buttons.

Any help would be appreciated!

Re: 900X3E Fn keys

Posted: 07 Jun 2014, 03:17
by dav7x
I just found this. With proper adjustments to your respective cases, it might work:
http://forums.linuxmint.com/viewtopic.php?f=49&t=155225.
Does this solve the issue?

I'm highly tempted of buying a Samtung Ativ 8 (870Z5G) and this is one of the few issues keeping me finally doing it.