Arcadia

the quieter you become, the more you hear

SAMSUNG NB30 MOD (Part 2: Software)

Return to index HERE


Compare to the hardware mod of NB30, the software part is even more annoying. Not only the drivers, but also some weird problems.

For a huge Linux fan, I still need windows sometimes. So I decided to install Windows and Xubuntu dual boot. At first I used Windows 7, but the performance is really poor, the system is very slow. Then I tried Windows 8, it is not perfect, but still much better. As for the Xubuntu I choose Xubuntu 14.04 LTS 64 bit, simply because the CPU supports 64 bit :-).

The easiest way is to install dual boot with grub, of course, is to install Windows 8 first and then Xubuntu.

    1, Install Windows 8:

Not much to say. I used the windows 8 32 bit image, wrote the iso to a USB flahs drive and installed it on the half of the space on my SSD. Then I licenced it with Microsoft Dreamspark.

RAM and Keyboard: the most easy upgrade, no additional driver required.

SSD: although we don't need to install extra driver, the official tool Sandisk SSD Toolkit [LINK Here] is definitely recommend to install. With this tool, we can monitor the disk status and update the firmware.

WiFi and Bluetooth: the drivers can be updated through the windows update center

CrystalHD Decoder: Install the official Windows Driver from Broadcom [LINK Here]. But please note that some media players must add the extra filters in order for the decoder to work. For potplayer (my favourite), go to [setting]->[filter]->[video decoder]->[filter management]

add the external filter from the install folder
  • /your-install-folder/Broadcom/Broadcom CrystalHD Decoder/bcmDFilter.dll

  • Then you'll be able to use the 'Broadcom Video Decoder' in the [video decoder]. You can use the decoder to decode many formats: MPEG1, XVID, H264, AVC1, WMV3, VC-1. You can watch your HD video with the decoder smoothly.

    Screen: The touch screen worked out of the box with 2 touch points supported, which really surprised me because it is only a resistive touch screen. But the backlight cannot be adjusted directly, you need to modify some small registry settings [GUIDE Here].

    run regedit as admin and edit dword key "FeatureTestControl" in
  • [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]

  • Set value as "FFFE" (without quotes).

    Then you can control the backlight with the hotkey.

      2, Install Xubuntu 14.04 LTS:

    There were some problems when I tried to install Xubuntu. I spent several days to solve the problems.

    The first obsticle I encountered is the installation problem. I wrote the iso file to my usb flash drive with 'LinuxLive USB Creator', but it just won't boot, no matter what. In the end I used an external DVD driver to finish the job.

    Usually for the SAMSUNG NB30, there is a kernel module called 'samsung_laptop' to make use of all the hotkeys and control LCD backlight. But there is a small bug in it, with it running, the 'rfkill' keeps physically disabling my WiFi card. You must block it at the boot to enable the WiFi card. To block it, write the following line at the end of the file /etc/modprobe.d/blacklist.conf
  • blacklist samsung_laptop

  • Almost all the hardware can work out of the box with Xubuntu 14.04, except for the Broadcom Decoder. The touch screen also works under Xubuntu, but only 1 touch point supported. To install the broadcom crystal hd decoder, don't use the official linux driver, its outdated and does not work with latest kernel. Please follow this guide [GUIDE Here].

    Also, with samsung_laptop module disabled, the brightness hotkey does not function at all. After some searching, I found 4 ways to adjust screen brightness.

    A, the easiest way to do it is to add 'acpi_backlight=vendor' parameter at the grub configuration file
  • sudo nano /etc/default/grub

  • change the line
  • GRUB_CMDLINE_LINUX_DEFAULT = "quit splash"

  • into
  • GRUB_CMDLINE_LINUX_DEFAULT = "quit splash acpi_backlight=vendor"

  • ctrl + x to save the file and run
  • sudo update-grub

  • after that, the FN + Vol hotkey should work. It can even turn the backlight completely off, very useful.

    B, use setpci to interface with hardware directly
  • sudo setpci -s 00:02.0 F4.B=value

  • the value is a hex number form 00-FF

    so to set the brightness to full, use
  • sudo setpci -s 00:02.0 F4.B=FF

  • to turn off the backlight, use
  • sudo setpci -s 00:02.0 F4.B=00

  • you can also check current value with
  • lspci -s 00:02.0 -xxx | grep f0: | awk '{print $6}'

  • This also sets the maximum brightness for the system.

    C, interface with system device
    under root, enter
  • echo value > /sys/class/backlight/intel_backlight/brightness

  • the value is a integer number form 0-12421

    D, third party programs
    xbacklight is highly recommended since it does not require root privilege

    to set the brightness to half full
  • xbacklight -set 50

  • However the FN+F5 hotkey still does not work. But we can adjust the brightness till 0, so no that important.

    To better make use of the pixel qi screen, I need a way to switch off the backlight quickly. But just turn off the backlight isn't enough, I still need to switch to a different theme to have better contrast, better view of the screen, since only gray scale image is presented with backlight off.

    I wrote two small scripts to do the job, it uses xfconf-query and xbacklight, therefore no administrative rights required. Just save it with .sh file extension and execute.

    off.sh
    1. # change desktop theme, icon, and backgroung img
    2. xfconf-query -c xsettings -p /Net/ThemeName -s HighContrast
    3. xfconf-query -c xsettings -p /Net/IconThemeName -s HighContrast
    4. xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/last-image -s /home/white.png.bak
    5. # change file association, since gedit theme cannot be edit through cmd easily
    6. mv ~/.local/share/applications/select/mimeapps.list.mousepad ~/.local/share/applications/mimeapps.list
    7. # turn off backlight
    8. xbacklight -set 0
    9. on.sh

    on.sh
    1. # change desktop theme, icon, and backgroung img
    2. xfconf-query -c xsettings -p /Net/ThemeName -s Greybird
    3. xfconf-query -c xsettings -p /Net/IconThemeName -s elementary-xfce-dark
    4. xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/last-image -s /home/[your original background image.jpg]
    5. # change file association, since gedit theme cannot be edit through cmd easily
    6. mv ~/.local/share/applications/select/mimeapps.list.gedit ~/.local/share/applications/mimeapps.list
    7. # turn on backlight
    8. xbacklight -set 100

    the off.sh script changes the theme to 'High contrast', changes the desktop background image to complete white(you can either use a white image or change the background solid color to white). Then it modifies the file association. Because we need to change the theme of the terminal and the text editor too, but I didn't find a way to do it under command line. So I took the easy way out and used a different text editor mousepad with a predefined theme, then change mimeapps.list file while necessary. For the terminal, I just used xterm and created a desktop launcher with the option
  • xterm -rv -fa "monospace:size=12"

  • the on.sh script does the opposite, but be sure to change the theme and background image in the script to the one that you want to use.

    That's the end of the software part. I have to say that I learned a lot through this. Maybe there are better computers, better hardware, but you cannot compare the fun in modding something yourself.