public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@infradead.org>
To: Jan Vlietland <j.vlietland@nisi.nl>
Cc: Corentin Chary <corentin.chary@gmail.com>,
	Andy Shevchenko <andy@infradead.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:SAMSUNG LAPTOP DRIVER" 
	<platform-driver-x86@vger.kernel.org>
Subject: Re: Keyboard backlight not working on my NP900X5N laptop
Date: Wed, 2 Jan 2019 18:03:23 -0800	[thread overview]
Message-ID: <20190103020323.GA21617@wrath> (raw)
In-Reply-To: <ffa49970-ce0a-614e-3c90-03eb4924fbef@nisi.nl>

On Mon, Dec 31, 2018 at 08:40:43PM +0100, Jan Vlietland wrote:
> Hi all,
> 

Hey Jan,

> Greg K-H suggested to mail you guys.
> 
> I installed Linux 4.20.0-rc7 (downloaded, compiled and installed) on a Samsung NP900X5N laptop and have noticed 3 bugs. 2 of them I found in Bugzilla and replied on them (i915 and Nouveau issues). I am currently discussing them with an intel engineer.
> 
> On other bug I haven't found so therefore a mail directly to you guys as maintainers.
> 
> On my other machine, a Samsung NP900X4D (just bought it in the USA, 2017 model), the samsung-laptop.ko module is enabling the use of the keyboard backlight keys.
> 
> It is not working on my new machine NP900X5N. My samsung-laptop.ko driver isn't loading. If I try to load it manually it complains about 'no such device".
> 
> My Linux kernel is working in CSM mode. The module is still not loaded.
> 

That's correct.

> As it is weekend I did some more reading and debugging of the module. To my understanding the module checks the model and type of the laptop. The known models and types are stored in the struct:
> 
> static struct dmi_system_id __initdata samsung_dmi_table[]
> 
> I wondr if the NP900X5N notebook is included in this list.
> 
> With dmidecode -t chassis it shows:
> Getting SMBIOS data from sysfs.
> SMBIOS 3.0.0 present.
> 
> Handle 0x0003, DMI type 3, 22 bytes
> Chassis Information
>         Manufacturer: SAMSUNG ELECTRONICS CO., LTD.
>         Type: Notebook
>         Lock: Not Present
>         Version: N/A
>         Serial Number: 0F4C91CJ900346
>         Asset Tag: No Asset Tag
>         Boot-up State: Safe
>         Power Supply State: Safe
>         Thermal State: Other
>         Security Status: None
>         OEM Information: 0x00000000
>         Height: Unspecified
>         Number Of Power Cords: 1
>         Contained Elements: 0
>         SKU Number: Chassis
> 
> If I use the -u flag. The notebook value is 0x0A, not 0x10!!!
> 
> Could that be the reason for not loading?

Seems likely.

> 
> 		.matches = {
> 			DMI_MATCH(DMI_SYS_VENDOR,
> 					"SAMSUNG ELECTRONICS CO., LTD."),
> 			DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */
> 		},
> 
> Maybe another reason could that that either the i915 and Nouveau modules are
> not working well. I get black screens with the i915 and MMIO faults with the
> nouveau driver. That is another issue that I need to tackle.
> 

I would expect a different error than "no such device" in that case.
I think your first thought was correct.

As a simple test, I'd suggest replacing "10" with "0A" in the existing
DMI_CHASSIS_TYPE match, recompile, and see if it loads and works
correctly.  Would you be able to test this?

> Oh happy new year :-)


Happy New Year!

-- 
Darren Hart
VMware Open Source Technology Center

       reply	other threads:[~2019-01-03  2:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ffa49970-ce0a-614e-3c90-03eb4924fbef@nisi.nl>
2019-01-03  2:03 ` Darren Hart [this message]
2019-01-04 16:16   ` Keyboard backlight not working on my NP900X5N laptop Jan Vlietland
2019-01-13  4:02     ` Darren Hart
2019-01-14  9:47       ` Jan Vlietland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190103020323.GA21617@wrath \
    --to=dvhart@infradead.org \
    --cc=andy@infradead.org \
    --cc=corentin.chary@gmail.com \
    --cc=j.vlietland@nisi.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox