[SOLVED] Not Working on N76VZ
Can't control keyboard backlight using function keys, and light is out on wake from sleep. Debian Testing.
My light control is at /sys/devices/
... so I modified BRIGHTNESS and MAX in /etc/acpi/
I got this working once, but have lost that backup. Have struggled with this now for weeks and can't get my backlight on resume. I have to manually:
echo 2 > /sys/devices/
... which is the only thing that works.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Fabien LOISON
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#2 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
|
#3 |
Hello,
If the paths are right in /etc/acpi/
sudo /etc/acpi/
/etc/
If it does not works → there is a problem with this scipt.
If it works → the problem is maybe located in the bindings with ACPID (files /etc/acpi/
Regards,
Revision history for this message
|
#4 |
Thank you Fabien. I find that you have made these scripts and I've installed your .deb file. It did give the following on Debian Testing:
`update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: current start runlevel(s) (2) of script `asus-kbd-
insserv: warning: current stop runlevel(s) (empty) of script `asus-kbd-
h`
I don't know whether this is significant or not. I may attempt to convert these to systemd. And whether I give the up or down command, I get this:
`/etc/acpi/
(asus-kbd-
**
libnotify:
Aborted`
I don't understand this. I can control the backlight manually with:
`echo 2 > /sys/devices/
Revision history for this message
|
#5 |
I now understand this better. I had to change these lines in /etc/acpi/
`MAX_BRIGHTNESS
BRIGHTNESS_FILE = "/sys/devices/
And the commands work to control brightness, but I get:
`# /etc/acpi/
(asus-kbd-
**
libnotify:
Aborted
# /etc/acpi/
(asus-kbd-
**
libnotify:
Aborted`
Also I can't sort out the keyboard bindings. I don't know of a tool that will read out the characters received when a key is pressed, and when in XFCE I set Settings|
And finally, the process which I actually came here before, I cannot find the proper way to relight the keyboard after a Resume from Suspend.
Revision history for this message
|
#6 |
Hello,
You can ignore the « libnotify-WARNING »... It is just for the notifications, it will have no impact...
If it does not work when you press your keys, it is a binding issue with the ACPI event. Can you give me the ACPI events corresponding to your brightness buttons (execute the "acpi_listen" command and press the brightness up/down keys) ?
Regards,
Revision history for this message
|
#7 |
Hello Fabien,
Oddly, it's the same code whether I press keyboard bright up, or down.
Here I pressed down three times, up three times, down three times, and
up three times:
/# acpi_listen
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
PNP0C14:01 000000ff 00000000
I triple-checked to make sure I was pressing the right keys.
On Tue, Jan 14, 2014, at 4:01, Fabien LOISON wrote:
Your question #241242 on ASUS Keyboard Backlight changed:
[1]https:/
42
Status: Open => Needs information
Fabien LOISON requested more information:
Hello,
You can ignore the « libnotify-WARNING »... It is just for the
notifications, it will have no impact...
If it does not work when you press your keys, it is a binding issue
with
the ACPI event. Can you give me the ACPI events corresponding to your
brightness buttons (execute the "acpi_listen" command and press the
brightness up/down keys) ?
Regards,
--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
[2]https:/
42
You received this question notification because you asked the question.
References
1. https:/
2. https:/
--
http://
Revision history for this message
|
#8 |
Hello,
In "/etc/acpi/
event=hotkey (ATKD|HOTK) 000000c5
by:
event=
and then restart acpid:
sudo service acpid restart
Does the brightness change when you press the buttons?
Revision history for this message
|
#9 |
Yes! Brightness goes down with the down key, but of course it doesn't
go up. So I put the same line in asus-kb-
came back up but now the down key doesn't work.
On Tue, Jan 14, 2014, at 10:51, Fabien LOISON wrote:
Your question #241242 on ASUS Keyboard Backlight changed:
[1]https:/
42
Status: Open => Needs information
Fabien LOISON requested more information:
Hello,
In "/etc/acpi/
event=hotkey (ATKD|HOTK) 000000c5
by:
event=
and then restart acpid:
sudo service acpid restart
Does the brightness change when you press the buttons?
--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
[2]https:/
42
You received this question notification because you asked the question.
References
1. https:/
2. https:/
--
http://
Revision history for this message
|
#10 |
Hello,
I patched the scripts for you. The code was pushed here:
https:/
If you want to try it, do this:
# Remove the previous version
sudo apt-get remove asus-kbd-backlight
# Install Bazaar (for downloading the code)
sudo apt-get install bzr
# Download the source code
bzr branch lp~flozz/
# Go to the source directory
cd asus-keyboard-
# Install Asus Keyboard Backlight
sudo ./install.sh -i
# Restart ACPId
sudo service acpid restart
Now if you press the brightness up/down keys, it should cycle the keyboard backlight (0, 1, 2, 3, 0, 1, 2, 3,...)
Regards,
Revision history for this message
|
#11 |
Hum... I forget something...
Instead of:
sudo apt-get remove asus-kbd-backlight
do
sudo apt-get remove --purge asus-kbd-backlight
If its too late, remove the event files manually:
sudo rm -rfv /etc/acpi/
sudo rm -rfv /etc/acpi/
Regards,
Revision history for this message
|
#12 |
It works! Although I get a popup error for each time I use the keys:
http://
Now if I could only figure out my original problem, turning on the
keyboard backlight on wake from sleep.
On Tue, Jan 14, 2014, at 12:51, Fabien LOISON wrote:
Your question #241242 on ASUS Keyboard Backlight changed:
[1]https:/
42
Status: Open => Answered
Fabien LOISON proposed the following answer:
Hello,
I patched the scripts for you. The code was pushed here:
[2]https:/
keyboard-
If you want to try it, do this:
# Remove the previous version
sudo apt-get remove asus-kbd-backlight
# Install Bazaar (for downloading the code)
sudo apt-get install bzr
# Download the source code
bzr branch
lp~
# Go to the source directory
cd asus-keyboard-
# Install Asus Keyboard Backlight
sudo ./install.sh -i
# Restart ACPId
sudo service acpid restart
Now if you press the brightness up/down keys, it should cycle the
keyboard backlight (0, 1, 2, 3, 0, 1, 2, 3,...)
Regards,
--
If this answers your question, please go to the following page to let
us
know that it is solved:
[3]https:/
42/+confirm?
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
[4]https:/
42
You received this question notification because you asked the question.
References
1. https:/
2. https:/
3. https:/
4. https:/
--
http://
Revision history for this message
|
#14 |
Hello,
For the popup, it was caused because you have assigned a binding to the brightness keys in your graphical environment... So there is two solutions:
1. Remove this binding,
2. Create empty event files ( sudo touch /etc/acpi/
> Now if I could only figure out my original problem, turning on the
> keyboard backlight on wake from sleep.
This should work too. Asus Keyboard Backlight should remember the last state and restore it on reboot/resume. The script was here:
But maybe I missed something (I havn't an Asus laptop anymore, so I can't test :s)
Regards,
Revision history for this message
|
#15 |
Thanks Fabien LOISON, that solved my question.
Revision history for this message
|
#16 |
Indeed you care correct again, on both counts. Thanks for your able
help Fabien.
On Wed, Jan 15, 2014, at 3:01, Fabien LOISON wrote:
Your question #241242 on ASUS Keyboard Backlight changed:
[1]https:/
42
Status: Needs information => Answered
Fabien LOISON proposed the following answer:
Hello,
For the popup, it was caused because you have assigned a binding to the
brightness keys in your graphical environment... So there is two
solutions:
1. Remove this binding,
2. Create empty event files ( sudo touch
/etc/
Now if I could only figure out my original problem, turning on the
keyboard backlight on wake from sleep.
This should work too. Asus Keyboard Backlight should remember the last
state and restore it on reboot/resume. The script was here:
[2]http://
keyboard-
backlight_resume.sh
But maybe I missed something (I havn't an Asus laptop anymore, so I
can't test :s)
Regards,
--
If this answers your question, please go to the following page to let
us
know that it is solved:
[3]https:/
42/+confirm?
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
[4]https:/
42
You received this question notification because you asked the question.
References
1. https:/
2. http://
3. https:/
4. https:/
--
http://