tag:blogger.com,1999:blog-12366865.post6182948562856525847..comments2024-01-16T14:13:50.160+01:00Comments on all mine!: Questions about laptop hardware on LinuxJos Poortvliethttp://www.blogger.com/profile/05243886270488333877noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-12366865.post-37599455815826879922012-08-08T23:05:04.996+02:002012-08-08T23:05:04.996+02:00I see,
though most of those keys work on my 900X4...I see,<br /><br />though most of those keys work on my 900X4C without patching udev. Those that do not work are F1 for the settings, F9-F10 for the keyboard brightness, F11 for the performance mode and F12 for the wifi. The keycodes for these ones in the bugzilla entry linked by you are the same of the respective keys for the 90X3A, no matter what the FN keys they are assigned to. You can check that the keycodes match if you look at what you have in samsung-90xa. I do not know why I don't need keycodes for the LCD brightness, volume keys, etc., kind of mistery.<br /><br />Anyway, it would be great if our models could be recognised by udev without further action, and thanks a lot for pointing me to the Red Hat bugzilla, maybe we should add such link to my upstream report.Alessandro Crismanihttps://www.blogger.com/profile/13033190590692401808noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-26040810398909857562012-08-08T19:26:50.219+02:002012-08-08T19:26:50.219+02:00The screen backlight works, it's the keyboard ...The screen backlight works, it's the keyboard one that doesn't I've got the keys fixed now (following a how-to adding stuff to udev) but nothing happens upon using them. Do you happen to know if anything in a Plasma workspace is supposed to react to that or do we not support that at all? GNOME Shell is supposed to take care of it but I haven't tested that yet.Jos Poortvliethttps://www.blogger.com/profile/05243886270488333877noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-32987001084868482352012-08-08T18:27:37.545+02:002012-08-08T18:27:37.545+02:00I added the changes from here:
https://bugzilla.re...I added the changes from here:<br />https://bugzilla.redhat.com/show_bug.cgi?id=838036<br /><br />As far as I can tell (but I might be wrong) you describe different keycodes - so that would mean it's not correct.. For example, the performance mode is not under Fn-F1 but onder Fn-F11 with keycode 0xB3 (the Fn F1 has the samsung settings app under it on my laptop). Moreover, the keyboard backlight buttons are F9 and F10, not F7 and F8...Jos Poortvliethttps://www.blogger.com/profile/05243886270488333877noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-28204071711155360232012-08-08T15:33:22.668+02:002012-08-08T15:33:22.668+02:00See here, and if you could test the patch that wou...See here, and if you could test the patch that would be sweet!<br />https://bugs.freedesktop.org/show_bug.cgi?id=53243Alessandro Crismanihttps://www.blogger.com/profile/13033190590692401808noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-45715506065459729682012-08-08T14:31:30.934+02:002012-08-08T14:31:30.934+02:00I'm in the process of trying to upstream a pat...I'm in the process of trying to upstream a patch that makes udev recognising our newer model for applying the correct keymap rules.<br /><br />Will let you know :)Alessandro Crismanihttps://www.blogger.com/profile/13033190590692401808noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-65882567107202692662012-08-08T11:51:18.661+02:002012-08-08T11:51:18.661+02:00And from Lennart Poettering on G+:
The special key...And from Lennart Poettering on G+:<br />The special keycodes should be added to systemd/udev so that they are automatically applied based on DMI info, i.e. somewhere here:<br /><br />http://cgit.freedesktop.org/systemd/systemd/tree/keymaps<br /><br />applied with this rules file:<br /><br />http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/keymap/95-keymap.rules<br /><br />For more information see:<br /><br />http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/keymap/README.keymap.txt<br /><br /><br />Thanks all for the comments, I'll go play with this when I have time and will integrate it in the final blog post (provided I figure it all out) or ask either some of you directly or via a blog post again (if I didn't) :DJos Poortvliethttps://www.blogger.com/profile/05243886270488333877noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-22870725865977489382012-08-08T08:56:29.949+02:002012-08-08T08:56:29.949+02:00Hi there,
I got most of the keys working by follo...Hi there,<br /><br />I got most of the keys working by following the steps of<br />http://jablonskis.org/2012/linux-and-samsung-series-laptop-9-fn-keys/<br /><br />and the previous post that is listed at the top of the linked one.<br /><br />Just be sure to check the udev rule files and replace "*90X3A*" with "*900X3C*" (I actually own a 900X4C).<br /><br />Regarding the power thing, see here, and help if you can :)<br />https://bugzilla.kernel.org/show_bug.cgi?id=44161Alessandro Crismanihttps://www.blogger.com/profile/13033190590692401808noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-59667278637194129242012-08-08T03:01:04.067+02:002012-08-08T03:01:04.067+02:00I am not sure if this is related to your problem a...I am not sure if this is related to your problem as my laptop is not a Samsung, but to get my laptop function keys and other power related things working I had to try different values for acpi_osi on the kernel command line in GRUB.<br /><br />For me the one that worked was having acpi_osi= (no value - tried other values that didn't work, leaving it out altogether also didn't work)<br /><br />Not sure if that's the best way to work around those problems but it seemed to work for me...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12366865.post-40300649282297352382012-08-07T20:47:37.141+02:002012-08-07T20:47:37.141+02:00Following Lamarque advise, I would start to add yo...Following Lamarque advise, I would start to add your user to wheel group<br />and look for any samsung or acpi module that can help <br /><br />here's there some good candidate<br /><br />find /lib/modules/ -iname "*samsung*" <br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/platform/x86/samsung-laptop.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/platform/x86/samsung-q10.ko<br /><br />find /lib/modules/ -iname "*acpi*" <br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/ata/pata_acpi.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/acpi<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/acpi/acpi_pad.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/acpi/acpi_ipmi.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/acpi/acpi_memhotplug.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/platform/x86/toshiba_acpi.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/platform/x86/thinkpad_acpi.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/pci/hotplug/acpiphp_ibm.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/pci/hotplug/acpiphp.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/cpufreq/acpi-cpufreq.ko<br />/lib/modules/3.1.10-1.16-desktop/kernel/drivers/hwmon/acpi_power_meter.ko<br /><br />/sbin/modinfo samsung-laptop<br />filename: /lib/modules/3.1.10-1.16-desktop/kernel/drivers/platform/x86/samsung-laptop.ko<br />license: GPL<br />description: Samsung Backlight driver<br />author: Greg Kroah-Hartman <br />srcversion: F0C9A569403AD48169F5B22<br />alias: dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:ct*14*:<br />alias: dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:ct*10*:<br />alias: dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:ct*9*:<br />alias: dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:ct*8*:<br />depends: rfkill<br />vermagic: 3.1.10-1.16-desktop SMP preempt mod_unload modversions <br />parm: force:Disable the DMI check and forces the driver to be loaded (bool)<br />parm: debug:Debug enabled or not (bool)<br /><br />once you have them working modprobe -v as root <br />you will be able to add then in /etc/sysconfig/kernel file so they will also be reloaded and inserted in the initrdBruno Friedmann (tigerfoot)https://www.blogger.com/profile/02283050262604323342noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-30031699457340936652012-08-07T20:24:19.666+02:002012-08-07T20:24:19.666+02:00The battery plasmoid uses polkit to set the bright...The battery plasmoid uses polkit to set the brightness or a helper suid program when polkit does not work. You should not need to do any chmod'ing. Anyway, you can use sudo to allow a specific user or group to execute a specific command. You just need something like this in /etc/sudoers:<br /><br />%wheel LOCALHOST=NOPASSWD: <br /><br />=====<br />keycodes are used by the kernel, Xorg uses keysyms. If a key does not have a keysym associated to it then Xorg cannot use it (even if the kernel can). The bad news is that the keysym also has to have a enum in Qt to be used by any Qt program (https://bugs.kde.org/show_bug.cgi?id=182672)<br /><br />=====<br />what does 'upower -d' return? The line with 'online: ' indicates if the computer is on power or not. 'lid-is-closed: ' indicates lid state. The laptop lid is based on ACPI, if it is not working then there will be no event to upower and consequently to PowerDevil.<br /><br />=====<br />I do not use Synaptiks, so I cannot help much here. The crashlog would be helpfull.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-12366865.post-2789230846620936692012-08-07T20:01:34.329+02:002012-08-07T20:01:34.329+02:00Hm, I can not say anything specific about Samsung ...Hm, I can not say anything specific about Samsung laptops, but there may be different reasons. First you should check if there is samsung kernel module and if it is loaded correctly. May be there are also different ones and you need to find out which one you need. If the problem lies here, you may find the solution for all the problems. Then there is the possibility of selecting a different keyboard layouts. I do not know about Opensuse but in Kubuntu it can be selected on installation. May be there is a better one compared to the one which was automatically selected.<br />The problem with keys which can not be assigned may also have something to do with qt and or the xserver. At least that is what I was told for my Thinkpad There is not enough "space" for all combinations so some don't work. Unfortunately KDE lacks a simple tool for configuring special laptop keys :-(<br />About the crash after suspend: If your laptop is intel, there was a bug with suspend which was fixed only recently and may be the cause of your problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12366865.post-67436222432574909302012-08-07T19:46:40.854+02:002012-08-07T19:46:40.854+02:00> First, I know 'chmod 777' is a tad ru...> First, I know 'chmod 777' is a tad rude. What should be safer?<br />I would recommend for files: chgrp users ; chmod 664<br /><br /><br />> echo 1 > /sys/devices/platform/samsung/rfkill/rfkill0/state<br />> bash: echo: write error: Operation not permitted<br />It is getting a permission error on the write instead of the open as you would get for forbidden files. <br /><br />http://minerva.netgroup.uniroma2.it/svn/discreet/tfcproject/trunk/linux-2.6.23.12-TFC/net/rfkill/rfkill.c<br />shows a check for capable(CAP_NET_ADMIN)<br />and normally, only root has any of those capabilities.<br /><br />The power and lid things might need drivers or kernel patches. Or maybe BIOS updates could help?Anonymousnoreply@blogger.com