Page 10 of 19

Re: Let's add support to other Samsung netbooks

Posted: 28 Mar 2010, 22:35
by voria
New packages on the repository. ;)
Changelogs:

Code: Select all

linux (2.6.31-20.59~ppa6~loms~karmic) karmic; urgency=low
   ...
   * Fix FN keys release on following samsung models:
     N120, N128, N130, N140, N148/N208, NB30, N150/N210/N220,
     N220, N310, N510, Q310, R518, R519/R719, R528/R728, X118, X120.
   * Apply 'libata-ata_piix-clear-spurious-IRQ.patch' to fix the
     SATA freezing problem on Samsung N130/N140.
   * Apply 'linux-phc-0.3.2.patch'.

Code: Select all

udev (147~-6.2~ppa18~loms~karmic) karmic; urgency=low

   * Add support for Samsung R528/R728.

Re: Let's add support to other Samsung netbooks

Posted: 28 Mar 2010, 22:52
by Julian2010
@voria,
Well, just ask SAMSUNG all their references, and add them: it will make your work quite easier!

Re: Let's add support to other Samsung netbooks

Posted: 28 Mar 2010, 23:48
by voria
Hehe, I thought about it ;D

Well, it's not that hard to add support for other models, I'll continue to do it when someone ask for it. It's just a matter of time, all these problems with FN keys will be (hopefully) gone when Lucid will be released, in less than a month. ;)

Re: Let's add support to other Samsung netbooks

Posted: 29 Mar 2010, 01:04
by Julian2010
@voria:
I have not enough knowledge to understand the technical issues dealt with/improved/etc..which will come into force with Lucid Lynx.
Could you, without being too "technical", please explain whether, for a "simple end-user" as i am one, it will bring real benefits to switch from 9.10 to 10.04 and if it will be an easy or difficult task?
I understand everything is moving fast befeore Aptil 29, but I suppose that the main differences are already known, aren't they?
I mean by my question: now my N510 works quite well, thanks all your efforts with the FN/Fx problems solved, the backlight issues (which ended, at least for the N510 with upgrading to a non-buggy BIOS) and the Samsung Tools.
So have have you any idea of the complexity/risks involved: I have a dual boot WinXP /Ubuntu 9.10, and my HDD has so three partitions, the third being the "Data common" (readable from Ubuntu OS, of from WinXP OS-which I quite never use), not forgetting the swap one, which is the fourth:Will the partitions keep the same extension naming standard.?
What about the WIFI install (at the moment ndiswrapper + WinXP pilot for Realtek 8192E).
I would not like to "restart from scratch" my install for some or all the items on which I (well in fact you..) spent much time to get to work, if it were only to get in the end new grub/splash screen designs, or gain 4 seconds at boottime, or get a new purple screencolor.
Please note this is not at all a criticism about the new Ubuntu release,I am reallysure that the modifications decided for the upgrade have all good reasons (efficiency, reliability, maintenability,having solutions working for the maximum of hardwre configs. and so on...)
I would just like to get an "authorized" advice about the ""energy" needed to switch to 10.04 and have the N510 working as it is with 9.10 ..or better.
Anyway I won't be the first to "wipe the fresh plasters" (that's a french expression).
I do not need at all a quick answer, but as you know Ubuntu so well, and solved so many specific problems raised by users on this forum, I'm pretty sure you can give a very wise advice on that matter, which would help a lot.
Thank you in advance and congratulations again for the great job you did so far for the community.
PS: last added sentence in Launchpad translated.

Re: Let's add support to other Samsung netbooks

Posted: 29 Mar 2010, 15:17
by CaptnDifool
I had edited the file '/lib/udev/rules.d/95-keymap.rules' and added |*E252*| for my E252 Notebook, rebooted with your latest kernel (and all other relevant updates from your repo) an follwing happened:

The backlight turns with FN + screendown down but with screenup not up anymore. The soundsettings and letters on keybord was locked. Other FNkeybindings don't responded. However, I was able to switch to a console and I undoned all changes in '/lib/udev/rules.d/95-keymap.rules' After reboot all was as before.

The internal FN-Keybindings seems to be differ from model to model, while your scripts running well as they are. So I had already don a small workaround and set the scripts for wifi, cpu-speed-mode and internal webcam as icons on the desktop, wich commands the samsung scripts. I will try out also the xbacklight by icon.

Re: Let's add support to other Samsung netbooks

Posted: 29 Mar 2010, 22:23
by vic
I've tested patch for Samsung R528/R728

All fn hotkeys seem to work, except for brightness hotkeys: the backlight adjustment slider moves, but the backlight still remains on the same level.

I installed 'samsung-backlight', 'samsung-scripts'.

Also tried to add "acpi_backlight=vendor" to grub, when I add it I don't see backlight adjustment slider and brightness do not change. Though when I change brightness in grub menu its level stays in started ubuntu. Without "acpi_backlight=vendor" when I choose brightness level in grub it does not remain the same in ubuntu, but backlight adjustment slider is not shown.

So, what am I doing wrong?

Re: Let's add support to other Samsung netbooks

Posted: 31 Mar 2010, 01:42
by postadelmaga
Hi all an thanks to Voria work :)

netbook: n150
firmware: 06JI (it is the last on the samsung site)
kernel: 2.6.32-17-generic -> ubuntu Lucid

I had installed samsung-tool and samsung-backlight from voria ppa

Many FN still doesn't work after the update
all this key doesn't work:

- FN key for backlight doesn't work ( gnome applet work but it very slow ...and hang a bit the system )
- FN key F4 -> for the monitor switch
- FN key F5 -> i don't know what is used for but ...
- FN key F7 - F8 - F11 - F12 -> i don't know what is used for but ...
- FN key F8 -> i think it is for performance switch
- FN key F9 -> disable wifi
- FN key F10 -> disable touchpad but with no notification

That keys seams to be not mapped by the system

If i disable wifi or bluetouth by samsung-tool, the wifi light is still on and the output of the command" rfkill list " is:

0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no

So it seams there is no way to totaly disable wifi and bluetouth radio ...

I think the priority to have a system at the top :) are backlight FN key and totaly disable wifi and bluetooth radio ( for power, health and for using the pc on a flight )

i hope that will be usefull :)
let me know if i missed something or if i can add some info more usefull

Re: Let's add support to other Samsung netbooks

Posted: 03 Apr 2010, 10:42
by voria
Concerning the FN keys, the kernel shipped with Lucid includes a definite fix to the problem.
Anyway, the FN keys are actually mapped by udev, and the current udev packages available on Lucid does not have support for all the Samsung models yet.

If it will not be added in time for the official Lucid release, I will provide fixed udev packages on my repository. ;)

About the rfkill, I don't really trust the output of 'rfkill list' command.
By using 'samsung-tools' on lucid, there is the option to use the 'easy-slow-down-manager' interface, which talks directly to the BIOS for toggling wireless. So the wireless card is really shut down, no matter what 'rfkill list' says. ;)
On my NC10, also to use the iwconfig commands to shut down the wireless card works, according to power usage reported by 'powertop'.
The same is for bluetooth: according to 'powertop', it seems that setting the radio off with the 'hciconfig' command is enough.

Re: Let's add support to other Samsung netbooks

Posted: 11 Apr 2010, 18:37
by zaubererb
hi @all,
first of all, voria thanks for the great job you are doing.

after a long time of testing without succes i will ask you for help.

first some things about my notebook (not netbook):
uname -a

Code: Select all

Linux merlin-ubuntu 2.6.32-19-generic #28-Ubuntu SMP Thu Apr 1 10:39:41 UTC 2010 x86_64 GNU/Linux
lspci -nn:

Code: Select all

00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 12)
00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 12)
00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 06)
00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 06)
00:1c.3 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [8086:3b48] (rev 06)
00:1d.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 06)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a6)
00:1f.0 ISA bridge [0601]: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller [8086:3b09] (rev 06)
00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller [8086:3b29] (rev 06)
00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 06)
02:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0a29] (rev a2)
02:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be2] (rev a1)
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
07:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. Device [11ab:4381] (rev 11)
ff:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers [8086:2c62] (rev 02)
ff:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2d01] (rev 02)
ff:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2d10] (rev 02)
ff:02.1 Host bridge [0600]: Intel Corporation Core Processor QPI Physical 0 [8086:2d11] (rev 02)
ff:02.2 Host bridge [0600]: Intel Corporation Core Processor Reserved [8086:2d12] (rev 02)
ff:02.3 Host bridge [0600]: Intel Corporation Core Processor Reserved [8086:2d13] (rev 02)
dmidecode -s system-product-name

Code: Select all

R580/R590   

out of the box, only the fn-keys for touchpad and volume are working well.

i use lucid and installed all three packages from the linux on my samsung rep. the applet allows me to change the cpu fan, cam and wlan (the R580 has no bluetooth) correctly, but the fn keys are not working. so i tryed to insert my model in the lib/udev/rules.d/95-keymap.rules. now sth happens when i press one of the fn-events, but the keyrelease is not working and the keybord isnt usable any more so i have to quit my session (alt+print+k)
in my understanding (i am quite new to linux and so i don't understand everything in this thread) i would have to patch my kernel and compile a new one myself cause the kernel offerd from you is an older version from karmic.? right? ???
i googled this problem and found sth similar here from a amilo-notebook: http://git.kernel.org/?p=linux/kernel/g ... 0f534d9d49
am i right if i would download a kernel, change the mentioned amilo-code, add it in the kernel and compile it (i don't know yet how this is done, but i think there will be a tutorial somewhere)
or is there an easyer way to fix the problem?
am i right, that maybe someone would have report a patch similar to the amilo-example to kernel.org, so they could include it to a new kernel. of course, this would not be included in the current lucid-kernel, but we could install the new kernel and wouldn't have to patch our own kernel after each kernel-update.

hope someone understands my thinking and could help me.
thanks and have a nice sunday ;-)
zaubererb

Re: Let's add support to other Samsung netbooks

Posted: 11 Apr 2010, 19:45
by voria
First of all, welcome to the forum. :)

With new kernels >=2.6.32 there is no more the need to add FN keys release support for each model as it was for older kernels: adding support to udev packages should be enough now to have fully functional FN keys, with no need to patch and recompile the kernel.

Anyway, I was waiting for the official Lucid release prior to take further actions in order to fix FN keys, in the hope the problem would be fixed in the official ubuntu packages. But, since you are not the first to ask for help about that, I've changed my mind and I've uploaded new udev packages on the repository that should fix the problem.
Here is the changelog:

Code: Select all

udev (151-9~ppa1~loms~lucid) lucid; urgency=low

   * Add support for FN keys release on the following Samsung models:
     N120, N128, N140, N148/N208, NB30, N150/N210/N220, N220, N310,
     N510, X118, X120, R518, R519/R719, R528/R728, R580/R590.
Let me know if everything works as expected. ;)

Re: Let's add support to other Samsung netbooks

Posted: 12 Apr 2010, 11:16
by voria
@CaptnDifool:
I've added support for the E252 in the udev packages for Lucid.
As soon as you have a chance to test it, please report back and let me know if it works. ;)

Re: Let's add support to other Samsung netbooks

Posted: 12 Apr 2010, 22:37
by zaubererb
hi,
the fn-release works great with the udev-package.
what not works is the brightnesscontrol and the CPU-fan which worked before by using the applet.

maybe the cpufan issue has sth to do with the normal ubuntu-update i did today or have you made an update of the samsung-tools which maybe influenced this situation?!?

brightness control:
i think it is the same issue as from Julian (buggy BIOS), but actually i have the latest (07JB) bios-version installed yet without bringing the brightness to work for my r580. so i think users of R580 and similar have to wait for a bios-update from samsung for this issue :-(
changes in the /proc/acpi/video/NVID/LCD/brightness remain unchanged (sudo echo 45 < brightness)

one more thing:
i now also installed the 2.6.33-020633 kernel (normally lucid has the 2.6.32) because my lan-device is not supported in 2.6.32 but in 2.6.33 - this also has not changed anything to the brightness control or the cpu fan control issues.
maybe it would be better to wait another two weeks until the final release of lucid is out or the new 34-kernel is out?!?

thanks for your help!
merlin

Re: Let's add support to other Samsung netbooks

Posted: 12 Apr 2010, 23:00
by voria
zaubererb wrote: maybe the cpufan issue has sth to do with the normal ubuntu-update i did today or have you made an update of the samsung-tools which maybe influenced this situation?!?
Yes, I got the same problem. For some reason (yet unknown) the 'easy-slow-down-manager' did not get automatically updated against the new kernel released today (2.6.31-20). You can fix the problem by manually reinstalling the package:

Code: Select all

sudo apt-get install --reinstall easy-slow-down-manager
zaubererb wrote: brightness control:
i think it is the same issue as from Julian (buggy BIOS), but actually i have the latest (07JB) bios-version installed yet without bringing the brightness to work for my r580. so i think users of R580 and similar have to wait for a bios-update from samsung for this issue :-(
changes in the /proc/acpi/video/NVID/LCD/brightness remain unchanged (sudo echo 45 < brightness)
I'm afraid you are right, there is nothing we can do to fix the problem, it's up to samsung now. :(
zaubererb wrote: one more thing:
i now also installed the 2.6.33-020633 kernel (normally lucid has the 2.6.32) because my lan-device is not supported in 2.6.32 but in 2.6.33 - this also has not changed anything to the brightness control or the cpu fan control issues.
maybe it would be better to wait another two weeks until the final release of lucid is out or the new 34-kernel is out?!?
This is strange, looking at the output of your 'lspci' you have an Atheros card which should work with the 'ath9k' kernel module with no problems at all.
Please reboot with the official kernel 2.6.32 and check if the above module is loaded with the command 'lsmod'. If it is not, try to load it manually with the command:

Code: Select all

sudo modprobe ath9k
zaubererb wrote: thanks for your help!
You are welcome. ;)

Re: Let's add support to other Samsung netbooks

Posted: 12 Apr 2010, 23:51
by zaubererb
sorry, i have not wrote it clearly. i ment my wired-lan. this is

Code: Select all

07:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 4381 (rev 11)
which is only supported in the 33-kernel (sometimes i also need wired lan)
the wireless works perfect out of the box, i can even turn it on and off with fn+f9 with the samsung-tools (to be exact: fn+f9 disables all wireless devices, not only the internal device. if i have mounted my additional external wireless-device, fn+f9 disables both devices an not only the internal, but this is not realy a problem)

to the backlight problem:
in some forums people are talking about this is working, but not for me.

Code: Select all

sudo setpci -s 02:00.0 f4.b=77
am i right, that samsung maybe "placed" backlight on another slot (not f4.b) so if i am able to figure out (maybe in windows where i have the original samsung tool installed) another slot which is used for my device?!?
lspci-x gives:

Code: Select all

....
02:00.0 VGA compatible controller: nVidia Corporation Device 0a29 (rev a2)
00: de 10 29 0a 07 00 10 00 a2 00 00 03 00 00 80 00
10: 00 00 00 cc 0c 00 00 d0 00 00 00 00 0c 00 00 ce
20: 00 00 00 00 01 20 00 00 00 00 00 00 4d 14 6a c0
30: 00 00 00 00 60 00 00 00 00 00 00 00 0b 01 00 00
...
so maybe in one of these numbers there is the brightness set?

maybe i am complete wrong, but for me it sounds possible...

Re: Let's add support to other Samsung netbooks

Posted: 13 Apr 2010, 00:27
by zaubererb
yeaahhhhhh, i have the solution
i had to add

Code: Select all

	Option "RegistryDwords" "EnableBrightnessControl=1"
in the Section "Device" in my /etc/X11/xorg.conf
now i can change the brightness by the normal brightnes-applet but not by fn-up/down - do you have an idea to fix this issue? btw: the applet says, that it is not able to get the current brightness although i can change it with it.
smartdimmer for example doesn't work yet.
it would be great to get it working since it is discussed in some other forums,too.

the cpu fan dows not work with the reinstalled easy-slow-down-manager. i will try it tomorrow with the 2.6.32-kernel and not with the 2.6.33 i am using right now.