[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-29 Thread Kieran Clancy
Simon,

Sorry about that - there was a syntax problem in regions.c

I've just updated it so it should work properly now, if you are happy to
test it again.

The keyboard shortcut is currently set up to connect to the samsung
laptop kernel driver, but since the module is disabled on UEFI, the
shortcuts don't do anything. That's why I want to write a UEFI-safe
module for this.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-29 Thread Kieran Clancy
Thanks Simon,

Looks like the KBCL variable is indeed the right one. Strange that it
changed from 01 to 04 rather than 01 to 05 though... If you have time
for a few more tests, I would love to know what values it takes when the
UEFI variable is modified from 00 through 07.

Currently we have:

UEFI   KBCL
  00
  01 01
  02
  03
  04
  05 04
  06
  07

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-29 Thread Kieran Clancy
Great work, thanks Simon.

I presume that there is no noticeable difference in brightness between
04 and 07 then?

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-28 Thread Kieran Clancy
Simon,

It looks like your UEFI variable has a different name:

KBDBacklitLvl-8be4df61-93ca-11d2-aa0d-00e098032b8c

Please do xxd on this and see if it looks similar to my
SecKeyboardBacklightLevel variable.

Thanks for your DSDT. It looks like your machine doesn't have a KBLL
variable... the closest thing I could find was a KBCL variable, but I
have no idea if it does the same thing.

I have uploaded a program to probe the memory at this region, designed
for your DSDT, at:

https://github.com/kieranclancy/probe-dsdt-regions/tree/900x3g

(Note to others, do NOT run this program, it is just for Simon's DSDT
and could break your system. If you want a version of this program for
your machine's DSDT, please ask me.)

If you have time, can you please:

1. Compile this program from the 900x3g branch
2. Reboot to get a relatively clean variable state
3. Save the output of 'sudo ./probe'
4. Dump the KBDBacklitLvl UEFI variable with xxd and save this too.
5. Modify the KBDBacklitLvl variable slightly (e.g. from 00 00 00 07 to 00 00 
00 06)
6. Reboot to reload variables
7. Save the output of 'sudo ./probe' to a new file

This will tell me whether your KBCL variable is the important one, or if
the variable has another name.

At some point I would like to handle these KBLL/KBCL variables in the
kernel, and this information from your machine can help me to write a
safe kernel module to do this.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-27 Thread Kieran Clancy
For those without KeyboardBacklight UEFI variables, can you attach a
list of the UEFI variables you do have, as well as attach a dump of your
DSDT:

sudo cat /sys/firmware/acpi/tables/DSDT  DSDT.aml

If you are not using UEFI (e.g. you have no /sys/firmware/efi directory)
then none of this will help you. Most likely you just need to fix your
key bindings.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-05-16 Thread Kieran Clancy
If you have UEFI disabled, the keyboard backlight control should work
automatically through the samsung-laptop kernel module.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1203592] Re: Keyboard backlight does not work in Samsung Series 9 NP900X4C

2014-04-25 Thread Kieran Clancy
If you are using UEFI, do not remove the blacklist on samsung-laptop!

You are probably safe from the bricking bug with a recent kernel, but
there are other UEFI problems with samsung-laptop that have never been
resolved, like machine check exceptions.

I did find a way of setting the keyboard backlight without the samsung-
laptop module, but I am still working on it.

The ACPI DSDT defines a variable KBLL (keyboard back-light level?) in
the SNVS (system non-volatile storage). This is where the the backlight
level can be stored, but it is highly non-trivial to set. I wrote a
program for my own machine, but it has hard-coded memory addresses which
probably make it very unwise to run on other systems.

A slightly safer way, which requires a reboot to work, is to set the
keyboard backlight level in the UEFI variables.

On my system:

# cd /sys/firmware/efi/efivars
# ls *KeyboardBacklight*
SecKeyboardBacklightLevel-2f440835-38c4-44b6-b7e4-4f321c8b4189
# xxd -p SecKeyboardBacklightLevel-2f440835-38c4-44b6-b7e4-4f321c8b4189
070001
# echo 070005 | xxd -p -r  
SecKeyboardBacklightLevel-2f440835-38c4-44b6-b7e4-4f321c8b4189
# reboot

You can change that last byte from 00 through 06 or so. Don't change the
first or other bytes. At some stage during the next boot, it will be
read into the KBLL value mentioned above.

I use '01' pretty well permanently. Now that recent kernels detect the
ambient light properly, it comes on automatically when I need it.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1203592

Title:
  Keyboard backlight does not work in Samsung Series 9 NP900X4C

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1203592/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs