Samsung Series 9 (NP900X3C-A05UK) Ubuntu/Linux setup for power management and keybindings

UPDATE: Ubuntu 14.10 settings

Ubuntu 12.10 works pretty well out of the box (for me it was just power management and keybindings that needed work), see Ubuntu wiki if you have any other issues . Using powertop I was able to understand what needed doing. What follows are my settings:

/etc/rc.local

#!/bin/sh -e

# Temp disable ethernet port
modprobe -r r8169

# Disable wake up on lan if I do use ethernet port
ethtool -s eth2 wol d;

# Temp disable bluetooth
modprobe -r btusb

# Adjust backlight to start much lower
echo 11 > /sys/class/backlight/acpi_video0/brightness

# - NMI Watchdog (turned off)
echo 0 > '/proc/sys/kernel/nmi_watchdog';

# - SATA Active Link Powermanagement
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';

# - USB Autosuspend (after 2 secs of inactivity)
for i in `find /sys/bus/usb/devices/*/power/control`; do echo auto > $i; done;
for i in `find /sys/bus/usb/devices/*/power/autosuspend`; do echo 2 > $i; done;

# - Device Power Management
echo auto | tee /sys/bus/i2c/devices/*/power/control > /dev/null;
echo auto | tee /sys/bus/pci/devices/*/power/control > /dev/null;

# - CPU Scaling (on demand scaling governor for all CPU's
for i in `find /sys/devices/system/cpu/*/cpufreq/scaling_governor`; do echo ondemand > $i; done;

exit 0

On the keybingings the only keys that didn’t work were some of the Fn Keys

/lib/udev/keymaps/samsung-other

0xCE prog1              # FN+F1 System Settings (NOT WORKING)
0x89 brightnessdown     # Fn+F2
0x88 brightnessup       # Fn+F3
0x82 switchvideomode    # Fn+F4 CRT/LCD (high keycode: "displaytoggle")
0xF7 f22                # Fn+F5 Touchpad on
0xF9 f23                # Fn+F5 Touchpad off
0x97 kbdillumdown	# FN+F9 Keyboard backlight down
0x96 kbdillumup         # FN+F10 Keyboard backlight up
0xB3 silentmode         # FN+F11 Silentmode (NOT WORKING)
0xD5 wlan               # FN+F12 WiFi  (NOT WORKING)

/lib/udev/keymaps/force-release/samsung-other

# list of scancodes (hex or decimal), optional comment
0xCE # FN+F1 System Settings
0x89 # FN+F2 Brightness down
0x88 # FN+F3 Brightness up
0x82 # FN+F4 Switch video mode
0xCE # FN+F1 System Settings
0x89 # FN+F2 Brightness down
0x88 # FN+F3 Brightness up
0x82 # FN+F4 Switch video mode
0xF7 # Fn+F5 Touchpad on
0xF9 # FN+F5 Turn touchpad off
0x97 # FN+F9 Keyboard backlight down
0x96 # FN+F10 Keyboard backlight up
0xB3 # FN+F11 Silentmode
0xD5 # FN+F12 WiFi

The volumn keys and trackpad all worked for me so I didn’t change them.

5 thoughts on “Samsung Series 9 (NP900X3C-A05UK) Ubuntu/Linux setup for power management and keybindings”

  1. Hi Dan is it working FN+F11 Silentmode ? I have np900x3d model using 3.5 low latency kernel but i dont know how to enable silent mode above confiuration is enough to use silent mode ? Thanks for answer

  2. I don’t actually know what silent mode is meant to do as I have never heard the fan actually come on. Do you know what it should do? And which program it might actually run?

  3. FN+F11 can be silent, normal or overclocked. Either use samsung-laptop or easy-slow-down-manager to get access.

    See /proc/ or /sys/ for access and/or use samsung-tools package.

    Mine worked and the fan comes on and off as needed.

    Beware of samsung-laptop on UEFI systems, could be bricked as articles report.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.