Some Fn keys not work on Samsung R60

Bug #253874 reported by Sergey
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Intrepid by Stefan Bader
Declined for Jaunty by Stefan Bader
Nominated for Lucid by Keng-Yu Lin
Karmic
Fix Released
Medium
Keng-Yu Lin
udev (Ubuntu)
New
Medium
Unassigned
Declined for Intrepid by Stefan Bader
Declined for Jaunty by Stefan Bader
Nominated for Lucid by Keng-Yu Lin
Karmic
Invalid
Undecided
Unassigned

Bug Description

Notebook info from dmidecode:
Manufacturer: SAMSUNG ELECTRONICS CO., LTD.
Product name: R59P/R60P/R61P
Version: 05YI

Ubuntu 8.04.1 Release: 8.04
Linux hell-nb 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux

Some Fn keys not work:

1. Fn+F2 Battery status: no keycode, no unknown keys in dmesg, no acpi events
2. Fn+F3 Monitor switch: no keycode, no unknown keys in dmesg, no acpi events
3. Fn+F5 Backlight off: no keycode, no unknown keys in dmesg, no acpi events
4. Fn+F8 powersave mode switch: no keycode, no unknown keys in dmesg, no acpi events
5. Fn+F9 WIFI on/off: no keycode, no unknown keys in dmesg, no acpi events
6. Fn+Up Brightness up: no keycode, no unknown keys in dmesg, no acpi events
7. Fn+Down: Brightness down: no keycode, no unknown keys in dmesg, no acpi events

Other Fn keys produces scan codes and work as needed.

I test scancodes with showkey -s, tail -f /var/log/dmesg; acpi events with tail -f /var/log/acpid

Revision history for this message
Sergey (sjuriev) wrote :
Revision history for this message
Daniel Moerner (dmoerner) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in hotkey-setup.

Revision history for this message
zl0i (sancheolz) wrote :

I have updated hal-info to version 20090128-0ubuntu1~intrepid1. Now some Fn keys working, but with new bugs. For example: when I press Fn+Up brightness changes in cycle.(brightness change window does not disappear). I think because some keys (actual fn+something combinations) generate Down events but no Up events.

Revision history for this message
heinzi (heinzisoft) wrote :

I have the same bug as zl0i on Ubuntu 8.10.
For a detailled description (german) of the bug, see here: http://www.hackerboard.de/thread.php?postid=294513#post294513

Revision history for this message
zl0i (sancheolz) wrote :

I`v find a fix for this bug. The bug was in kernel. Here is the patch. Please send it to kernel.org, my english is not good:)

Revision history for this message
Steve Langasek (vorlon) wrote :

Thanks, reassigning this bug to the linux kernel package.

affects: hotkey-setup (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
importance: Undecided → Medium
status: New → Triaged
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
assignee: Canonical Kernel Team (canonical-kernel-team) → Keng-Yü Lin (lexical)
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I applied the patch from zl0i. Would someone with Samsung R60 help test the patched kernel.
They are available at
  http://people.ubuntu.com/~lexical/archive/lp253874/

  2.6.27 (intrepid kernel)
  2.6.28 (jaunty kernel)

Please report the testing result in order to get the patch into the Jaunty/Intrepid SRU.

Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
zl0i (sancheolz) wrote :

I `ve tested this pathed kernel. The patch was applied right. Here the result after it:
1. Fn+F2 Battery status: OK
2. Fn+F3 Euro (In my model): NOT - it sends chain of keys like Alt + 1,2,3 (like in Win to print special characters) (did somebody knows how to fix it?)
3. Fn+F4 Switch displays: OK
4. Fn+F5 Backlight off: NOT - it sends keykode and in X it recognised like "XF86Launch1", but function not work (anybody knows utility to swtch off backlight?)
5. Fn+F7 launch special soft: NOT - it sends keykode and in X it recognised like "XF86Launch2", but function not work (so you can launch any soft by this key)
4. Fn+F8 launch special soft: NOT - it sends keykode and in X it recognised like "XF86Launch3", but function not work (so you can launch any soft by this key)
5. Fn+F9 WIFI on/off: NOT - it sends keykode and in X it recognised like "XF86WLAN", function not work beacause of ath5k driver (in version of ubuntu 9.04 driver not provide rfkill), so you need update to latest ath5k driver or new kernel 2.6.30 (Can anybody test it?)
6. Fn+Up Brightness up: OK
7. Fn+Down: Brightness down: OK
So, the patch is correct, it`is do what it`s must do. Fn keys work, but not all functions work. Other problems can`t solved by this patch.
P.S. Is this fix will available in kernel from official repository and how soon?

Revision history for this message
zl0i (sancheolz) wrote :

Many owners of other models of samsung notebooks have the same problems and I`ve made same patches for them and it works. Shel I post new bugs or can post patches here? One more question: Will this patch\patches send to kernel.org?
P.S. : I`ve made some scripts to provide functions for "empty" fn keys, Post theme?

Revision history for this message
Keng-Yu Lin (lexical) wrote :

zl0i:
  You you want people here to help test, you can post your patch here. I can also help to make your patch upstream (in the mainline kernel tree).
  If your new patch of other models also work on R60, you can post it here. Or you can create another new issue.

  I don't understand what functions for "empty" fn keys are. Could you please explain a bit?

Revision history for this message
zl0i (sancheolz) wrote :

Keng-Yü Lin:
OK, My patch and other (for q210, r518 and maybe many others) are tested by some forum.ubuntu.ru users and them work correct. I just want to see these patches in mainline kernel, because I don`t want to patch kernel every time I update it. So ,please, help to make them upstream.
In old posts of bugzilla.kernel.org I saw same discussion. They said it is not good solution to make many patches for many models. The patches are same if not for all but for many models ( such as r60, q210, r518...). And this was a barrier to apply all patches to kernel. So the code after all patches will be "dirty". But users just want Fn keys work. Now It is your choose.
"empty" fn keys are:
fn+f3 - "euro" - I made a simple python script for it (print euro sign in input-box on focus).
fn+f5 - backlight off - I made a simple bash script for it.( call in it "xset dpms force off")
fn+f7 - samsung tool (in win) - you can bind everything on it.
fn+f8 - powersave mode switch - I made a bash script for it too. (just switch backlight to lowest level and cpu throttling to 50%)
I call them "empty" because linux is not provide functions for them and I make for them my own scripts. And switch wifi (fn+f9) will work if wifi driver updated to latest or kernel to 2.6.31. So fn+f9 works fine.

Revision history for this message
scottnn (scottnn) wrote :

Just wanted to confirm this problem also exists with the Samsung Q320. If any files or info is needed about the Q320 let me know and I will forward them on.

Revision history for this message
Keng-Yu Lin (lexical) wrote :

@scottnn
Can you execute "sudo dmidecode" and find the field "Product Name". Reply me its content here. I will try to generate a testing kernel deb for you.

Changed in linux (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Keng-Yu Lin (lexical) wrote :

@zl0i
Could you try the "empty fn key" with the following step:

1) dmesg | grep GPE
  will show you something like "ACPI: EC: GPE = 0x11, I/O: command/status = 0x66, data = 0x62"

2) cat /sys/firmware/acpi/interrupts/gpe11
  use the number in 1)

3) press fn keys and cat again to see if the number increases

Revision history for this message
Keng-Yu Lin (lexical) wrote :

@zl0i
  Please skip my last comment. I missed some point and get it back after re-reading the thread.

  You can use `xbacklight -set 0` to turn off the backlight.

Revision history for this message
Keng-Yu Lin (lexical) wrote :

Unfortunately, the patch is not accepted upstream.

http://patchwork.kernel.org/patch/46340/

Revision history for this message
zl0i (sancheolz) wrote :

@Keng-Yü Lin
    I skiping #14 - but number increases, if it helps. For #15: xbacklight -set 0 doesn`t help - I`m using 'xset dpms force off' instead.
    #16: anyway Thanks a lot, this words "in .32 there will be a way to adjust the bitmap through sysfs", gives more hope. I think a new patch will help other laptops without kernel patching. Thank you for response.
Regards.

Revision history for this message
scottnn (scottnn) wrote :

Sorry for my late reply. The output of dmidecode is below. Hope this helps.

Product Name: Q320/P320

Revision history for this message
mpw (matthiaspeterw) wrote :

Hello,

I got a Samsung Q320 aswell and I have the same problem. The only fn-key which works is the mute/unmute sound. I can't enable/disable the wifi, BT, can't change brightness, can't switch on external screen. etc...

The most horrible thing is that ubuntu doesn't support the energy saving mode of this laptop. On Vista the battery live is about 5 hours and more. On Ubuntu exactly the half, about 2,5 h.
That's very annoying.

Thanks for any help.

Will post anything you need.

Bye
MPW

Revision history for this message
Keng-Yu Lin (lexical) wrote :

@scottnn, mpw

Would you like to try the patched karmic kernel package (http://people.canonical.com/~lexical/archive/lp253874/linux-image-2.6.31-16-generic_2.6.31-16.50lp253874lexical1_i386.deb) and report whether it works well. Not all the function keys works without some user space modification. Please refer to the previous discussion.

@zl0i

Would you also like to test the patched karmic deb. Since the sys interface will not be available until .32 kernel, this patch may be worthy of an SRU.

Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
zl0i (sancheolz) wrote :

@Keng-Yü Lin
Yes, all keys sends release events, but I cant decrease brightness and toggle wifi - so I think problem is in udev or else, but not in patch. rfkill works, fn-f9 binded to XF86WLAN, but maybe XF86WLAN not binded to toggle wifi. And last - all key quirks migrated from hal to udev fine.(You can check it in /lib/udev/rules.d/95-keymap.rules and /lib/udev/keymaps/samsung-other)
Regards.

Revision history for this message
zl0i (sancheolz) wrote :

I take some words back: the brightness decreases normally.

Revision history for this message
Keng-Yu Lin (lexical) wrote :

Anyone to test on Q320/P320?

Revision history for this message
Cyril Buquet (cyril11) wrote :

This is my report with karmic patched Kernel
kubuntu 9.10 x86, Product Name: R59P/R60P/R61P

Key Key Logo XEV Key Status
Fn+ESC sleep OK
Fn+F2 battery XF86Battery key ok, but no action
Fn+F3 Euro keysym 0xff97, KP_up Ko
Fn+F4 External screen XF86Display Ok
Fn+F5 LCD On/Off XF86Launch1 key ok, but no LCD on/off
Fn+F6 Sound On/Off XF86AudioMute Ok
Fn+F7 Samsung Doctor XF86Launch2 Ok
Fn+F8 CPU Profile XF86Launch3 key ok, no cpu profile change
Fn+F9 Wifi XF86WLAN key ok, no rfkill
Fn+F10 Touchpad on/off OK
Fn+F11 numeric keypad OK
Fn+F12 Scroll Lock Scroll_Lock key ok, no scroll lock
Fn+Home Home XF86HomePage key ok, no action
Fn+Sound Down XF86AudioLowerVolume OK
Fn+Sound Up XF86AudioRaiseVolume OK
Fn+Brightness Up XF86MonBrightnessUp OK
Fn+Brightness Down XF86MonBrightnessDown OK

Conclusion : Wonderfull !!
With KDE4, i can now affect action on key. Thanks.

Suggestion : may bye extend the patch for popular Samsung NC10 (netbook). Some friends impacted.

How add solution in upstream ?

Horror (blooddimon)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I already sent this patch to 2.6.31 stable tree. It will be pulled info karmic automatically if accepted upstream.

Changed in linux (Ubuntu):
status: Confirmed → Fix Committed
Surbhi Palande (csurbhi)
tags: added: 2.6.31.10
Revision history for this message
Stefan Bader (smb) wrote :

Keng-Yü, I added a Karmic task. Please update the main task to reflect that status in 2.6.32/Lucid. Thanks

Keng-Yu Lin (lexical)
Changed in linux (Ubuntu Karmic):
status: New → Fix Committed
Changed in linux (Ubuntu):
status: Fix Committed → Invalid
Changed in linux (Ubuntu Karmic):
assignee: nobody → Keng-Yü Lin (lexical)
Changed in linux (Ubuntu):
assignee: Keng-Yü Lin (lexical) → nobody
importance: Medium → Undecided
Changed in linux (Ubuntu Karmic):
importance: Undecided → Medium
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu Karmic):
status: Fix Committed → Triaged
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I set the status to "triaged" as this patch will be pulled into karmic soon but not yet committed.

Revision history for this message
tyrant (tyranos) wrote :

i tested lucid lynx alpha 3 on samsung r60
there was no major change since intrepid concerning fn-keys the same keys worked:

Fn+ESC sleep OK (and since lucid it wakes up again finally)
Fn+F2 battery XF86Battery key ok, but no action(this worked before after editing some xml)
Fn+F3 Euro keysym 0xff97,
Fn+F4 External screen XF86Display Ok
Fn+F5 LCD On/Off XF86Launch1 key ok, BUT flickers and never touch again
Fn+F6 Sound On/Off XF86AudioMute Ok
Fn+F7 Samsung Doctor XF86Launch2 Ok
Fn+F8 CPU Profile XF86Launch3 key ok, no cpu profile change
Fn+F9 Wifi XF86WLAN key ok, no rfkill
Fn+F10 Touchpad on/off OK
Fn+F11 numeric keypad OK
Fn+F12 Scroll Lock Scroll_Lock key ok, no scroll lock
Fn+Home Home XF86HomePage key ok, no action
Fn+Sound Down XF86AudioLowerVolume OK
Fn+Sound Up XF86AudioRaiseVolume OK
Fn+Brightness Up XF86MonBrightnessUp Works only once then locks the keyboard because it receives no key release event
Fn+Brightness Down XF86MonBrightnessDown Works only once then locks the keyboard because it receives no key release event (ctrl+alt+# and back to X to use the keyboard again)

Revision history for this message
Keng-Yu Lin (lexical) wrote :

Would you please apply the attached patch on /lib/udev/rules.d/95-keyboard-force-release.rules, reboot and try the hotkeys again?

The hotkey issue of forcing release event is now handled from userspace.

Changed in udev (Ubuntu Karmic):
status: New → Invalid
Changed in udev (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Stefan Bader (smb) wrote :

I will mark this bug a duplicate of bug 509730 as the patch for Karmic will come in through the pending stable update. If there are problems in Lucid this should be reported in a new bug as that will need userspace support.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted linux into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in linux (Ubuntu Karmic):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.1 KiB)

This bug was fixed in the package linux - 2.6.31-21.59

---------------
linux (2.6.31-21.59) karmic-proposed; urgency=low

  [ Andy Whitcroft ]

  * [Config] generic-pae switch to M586TSC
    - LP: #519448

  [ Chris Wilson ]

  * (pre-stable) drm/i915: Increase fb alignment to 64k
    - LP: #404064

  [ Colin Ian King ]

  * Input: i8042 - bypass AUX IRQ delivery test on laptops
    - LP: #534448

  [ Jerone Young ]

  * SAUCE: Fix volume hotkeys for Dell Studio 1557
    - LP: #465250

  [ Mirsal Ennaime ]

  * SAUCE: aufs: Fix header files inclusion in debug.h
    - LP: #517151

  [ Stefan Bader ]

  * [Config] Enable all CGROUP configuration options
    - LP: #480739

  [ Surbhi Palande ]

  * Revert "[Upstream] acerhdf: Limit modalias matching to supported
    boards"
    - LP: #509730
  * [Config] ext3 defaults to ordered mode
    - LP: #510067

  [ Tim Gardner ]

  * [Config] Fix sub-flavours package conflicts
    - LP: #454827

  [ Upstream Kernel Changes ]

  * PCI/cardbus: Add a fixup hook and fix powerpc
    - LP: #455723
  * fnctl: f_modown should call write_lock_irqsave/restore
    - LP: #519436
  * ACPI: enable C2 and Turbo-mode on Nehalem notebooks on A/C
    - LP: #516325
  * tg3: Add 57788, remove 57720
    - LP: #515390
  * HID: ignore all recent SoundGraph iMON devices
    - LP: #488443
  * Input: ALPS - add interleaved protocol support (Dell E6x00 series)
    - LP: #296610
  * acerhdf: limit modalias matching to supported
    - LP: #509730
  * ASoC: Do not write to invalid registers on the wm9712.
    - LP: #509730
  * cifs: NULL out tcon, pSesInfo, and srvTcp pointers when chasing DFS
    referrals
    - LP: #509730
  * clockevents: Prevent clockevent_devices list corruption on cpu hotplug
    - LP: #509730
  * dma: at_hdmac: correct incompatible type for argument 1 of
    'spin_lock_bh'
    - LP: #509730
  * drivers/net/usb: Correct code taking the size of a pointer
    - LP: #509730
  * Libertas: fix buffer overflow in lbs_get_essid()
    - LP: #509730
  * md: Fix unfortunate interaction with evms
    - LP: #509730
  * pata_cmd64x: fix overclocking of UDMA0-2 modes
    - LP: #509730
  * pata_hpt3x2n: fix clock turnaround
    - LP: #509730
  * SCSI: fc class: fix fc_transport_init error handling
    - LP: #509730
  * sound: sgio2audio/pdaudiocf/usb-audio: initialize PCM buffer
    - LP: #509730
  * USB: emi62: fix crash when trying to load EMI 6|2 firmware
    - LP: #509730
  * USB: Fix a bug on appledisplay.c regarding signedness
    - LP: #509730
  * USB: musb: gadget_ep0: avoid SetupEnd interrupt
    - LP: #509730
  * USB: option: support hi speed for modem Haier CE100
    - LP: #490068, #509730
  * x86, cpuid: Add "volatile" to asm in native_cpuid()
    - LP: #509730
  * e100: Use pci pool to work around GFP_ATOMIC order 5 memory allocation
    failure
    - LP: #509730
  * e100: Fix broken cbs accounting due to missing memset.
    - LP: #509730
  * hostap: Revert a toxic part of the conversion to net_device_ops
    - LP: #509730
  * hwmon: (fschmd) Fix check on unsigned in watchdog_write()
    - LP: #509730
  * hwmon: (sht15) Off-by-one error in array index + incorrect constants
    - LP: #509730
  * i2c/tsl2550: Fix...

Read more...

Changed in linux (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.