Search This Blog

Loading...

Popular Posts

Thursday, 17 February 2011

Linux Kernel will soon provide better Samsung Laptop support

As posted by Greg Kroah-Hartman on his blog,

Finally, after many years of people asking for this, Linux can now properly support all known Samsung laptop devices. This means we can now handle backlight control, wifi button issues,and the weird "performance mode" keys as well as some of the other function keys.

If you have a Samsung laptop, I suggest looking at the driver in this post on the linux-kernel mailing list, and letting me know if you have any problems with it or not. If your laptop is not listed in the DMI table, please feel free to send me a patch to add it so we can properly support it.

Many thanks to Samsung oh so long ago for providing some of the needed information to get this to work, and to Ingmar Steen for putting all of the pieces together properly to handle the devices that were not being handled by the old in-kernel driver.

http://www.kroah.com/log/linux/samsung_laptop.html posted Wed, 09 Feb 2011 in [/linux]

As a Samsung Laptop user I think this is great news but reading the mailing list and the kernel patch file I saw something interesting.

Some Samsung laptops have different "performance levels"
+ that are can be modified by a function key, and by this
+ sysfs file. These values don't always make a whole lot
+ of sense, but some users like to modify them to keep
+ their fans quiet at all costs. Reading from this file
+ will show the current performance level. Writing to the
+ file can change this value.
+ Valid options:
+ "silent"
+ "normal"
+ "overclock"
+ Note that not all laptops support all of these options.
+ Specifically, not all support the "overclock" option,
+ and it's still unknown if this value even changes
+ anything, other than making the user feel a bit better.

So it seems like there is some confusion as to what the performance levels should do. Well, based on my observations in Windows,

Silent

Set CPU frequency scaling to [Power Saver] + deactivate fan. But if temperature > [Active Fan Trip Point] activate fan on until temp < [Active Fan Trip Point + 10]

Or some other variable

[Active Fan Trip Point] is a BIOS set value which varies according to model/processor. On a Samsung R510 it is set to 71c

Normal 

Set CPU frequency scaling to [Balanced] + Activate BIOS fan control

Overclock
 
Set CPU frequency scaling to [Performance] + Activate BIOS fan control

A more appropriate label for 'Overclock' should be 'Performance'. In fact in Windows this performance level is referred to as 'Performance'

It is important that the Silent mode activates the fan if the [Active Fan Trip Point] has been reached, failing to do so will cause the processor temperature to continue rising until it reaches the critical shutdown temperature.

And not to mention the potential of causing many unhappy Samsung users, claiming Linux killed their laptop.

4 comments:

  1. i really hope this works, want this to operate well on my samsung

    ReplyDelete
  2. Is it coming in 2.6.38 or even later?

    ReplyDelete
  3. Did you got some sourcecode from http://www.voria.org/forum ? That forum seems to have dedicated itself to support all samsung models. I however have not been able to easily install it on a Debian system, due to time contraints I have not been able to see what all those different packages there actually do. (You need to take care not to install a Realtek wireless lan package if you have an Intel).

    I would really to see support for the "wireless toggle" key. My Samsung model is:

    Printed on physical screen: R510
    Printed serial: NP-R510-AS01NL

    root@Pierre:~/samsung# dmidecode -s system-product-name
    R510/P510


    Also, please note that my backlight keys seems to be working correctly on Debian Squeeze with Gnome. I do have a small error, that it turns the backlight completely off if I set it to its lowest value. After doing that, you cannot turn it back on, and you have to restart. This error is also mentioned here: http://www.voria.org/forum/viewtopic.php?f=4&t=620

    Please note that I am not using the packages from the above website, as my brightness is already functional. If you want to add control for wireless (and other keys), I would be happy to test it.

    I can be reached at:
    pierre.oord
    @gmail.com

    ReplyDelete
  4. One more thing to add: After installing these packages:

    easy-slow-down-manager-dkms_0.13.7_all.deb
    samsung-tools_1.3.2~ppa1~loms~maverick_all.deb

    (I modified the tools package to fit the dependend easy-slow-down-manager-dkms, because it expects such a package without -dkms)

    I can successfully control the keys.

    Regards, Pierre
    pierre.oord
    @gmail.com

    ReplyDelete

Note: only a member of this blog may post a comment.