Udev rules to turn off keyboard backlight on Asus UX32VD AFTER login

Hi,
I would like to turn off the keyboard backlight everytime my laptop starts.
I looked at :
https://wiki.archlinux.org/index.php/As … _Backlight
So I created a rule :
/etc/udev/rules.d/kbd_backlight.rules
SUBSYSTEM=="leds", ACTION=="add", KERNEL=="asus::kbd_backlight",DRIVERS=="asus-nb-wmi", ATTR{brightness}="0"
It works quite fine, after the boot the keyboard turns OFF.
But at GNOME login it goes ON again.
I found this :
https://wiki.archlinux.org/index.php/Ba … ht_service
and masked
systemctl mask systemd-backlight@leds:asus::kbd_backlight.service
No more success...
On grep later I masked this one :
systemctl mask sys-devices-platform-asus\x2dnb\x2dwmi-leds-asus::kbd_backlight.device
Nothing new.
On more grep and I commented this :
/lib64/udev/rules.d/99-systemd.rules
# SUBSYSTEM=="leds", KERNEL=="*kbd_backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service"
I tried to understand a bit more with this, but without success:
https://wiki.archlinux.org/index.php/Ud … f_a_device
udevadm info -a -p /sys/class/leds/asus\:\:kbd_backlight
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight':
KERNEL=="asus::kbd_backlight"
SUBSYSTEM=="leds"
DRIVER==""
ATTR{brightness}=="0"
ATTR{max_brightness}=="3"
ATTR{trigger}=="[none] cpu0 cpu1 cpu2 cpu3 AC0-online rfkill0 phy0rx phy0tx phy0assoc phy0radio BAT0-charging-or-full BAT0-charging BAT0-full BAT0-charging-blink-full-solid rfkill2 rfkill3 "
looking at parent device '/devices/platform/asus-nb-wmi':
KERNELS=="asus-nb-wmi"
SUBSYSTEMS=="platform"
DRIVERS=="asus-nb-wmi"
ATTRS{lid_resume}=="0"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
Any idea ?
Thanks!

This is driving me crazy...
At GRUB time the keyboard backlight goes on.
UDEV SCRIPT
/etc/udev/rules.d/kbd_backlight.rules
SUBSYSTEM=="leds", ACTION=="add", KERNEL=="asus::kbd_backlight",DRIVERS=="asus-nb-wmi", ATTR{brightness}="0"
=> turns it off later, more or less when the filesystem is loaded, but when gdm (login/passwd) starts it turns on again.
SYSTEMD SCRIPT
After some fight with systemd I could do a script (the tricky part was to start it at the good "level")
/etc/systemd/system/kbd_backlight_off.service
[Unit]
Description=Turns off the keyboard backlight
Requires=upower.service graphical.target network.target
After=upower.service graphical.target network.target
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart= /usr/bin/dbus-send --type=method_call --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/KbdBacklight org.freedesktop.UPower.KbdBacklight.SetBrightness "int32:0"
[Install]
WantedBy=graphical.target
=> useless, adds nothing to udev (standalone it has the same effect than the udev script)
DESKTOP AUTOSTART SCRIPT
.config/autostart/kbd_backlight_off.desktop
[Desktop Entry]
Type=Application
Exec=dbus-send --type=method_call --print-reply=literal --system --dest='org.freedesktop.UPower' '/org/freedesktop/UPower/KbdBacklight' 'org.freedesktop.UPower.KbdBacklight.SetBrightness' "int32:0"
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=kbd_backlight_off
Name=kbd_backlight_off
Comment[en_US]=kbd_backlight_off
Comment=kbd_backlight_off
=> it turns if off after the login, but when the background wallpaper is displayed it goes on again...
Shouldn't be so difficult to turn the keyboard backlight off, from the boot time... What am I missing ???

Similar Messages

  • Pausing iTunes Turning Off Keyboard Backlight

    got a new MacBook Pro recently and just now noticing something pretty odd...
    whenever I pause a song in iTunes, be it by pressing spacebar while the application is active, hitting the actual button in iTunes, or using the shortcut keys on the keyboard itself, the keyboard backlighting always cuts off. it comes back on at random intervals, and sometimes not all.
    I've even tired re-installing iTunes. it's a pretty odd problem, heh...
    any ideas?
    thanks!

    Is it doing it like this?:
    http://www.youtube.com/watch?v=U4COGPnUo8Y
    If so, see this:
    http://discussions.apple.com/thread.jspa?messageID=10411273
    I'm guessing you too have the "iSpazz" plugin installed in your iTunes folder. If so remove it and your problem will be fixed. as far as I know, there is no way to keep the plug in in there without causing this problem. Its a pain, but the only way I found is to put the plug in in there when I want to show off the keyboard, and take it out when I'm done.
    Hope this helps
    Regards,
    Scott

  • Can't Turn of keyboard backlight in system preferences after installing Lion.

    After installing OSX Lion backlight on the keyboard on my Macbook Pro will not shut off even though it says it's not activated in system preferences. Is anybody else having this problem?

    Ditto!
    How did they miss it?
    Can we expect a fix in a .0.1 release?

  • "turning off" the backlight

    is it possible to "turn off" the backlight of the screen?
    finding it very difficult to watch a dvd for example as I get very poor contrast and dark/blacks
    adjusting the brightness hasn't solved the problem and I can't find a "contrast" function anywhere?
    is this possible to adjust at all?

    "Won't it become almost unviewable without a backlight?"
    I know what you mean, the question was really whether you can adjust the contrast, it's fine when you're doing any other task / web etc but I only noticed the poor quality when trying to watch a film on "real" dvd. otherwise it's all fine.
    BSteely's response pretty much confirms we have to live with it. Maybe this screen should be just a little smaller 12inch would be better probably!

  • Do i need to turn off keyboard when logging off

    Do I need to turn off keyboard every time I log off the IMac? 

    If you shut down the iMac and the keyboard is a wireless keyboard turning it off will preserve battery life. The same goes for a wireless mouse.

  • Ipod nano 6 gen hangs when turning off the backlight. That is, it doesn't respond to button presses on the touch screen.

    ipod nano 6 gen hangs when turning off the backlight. That is, it does not respond to button presses on the touch screen. He also has just a white screen instead of the desktop display. Tried to rearrange the screen from another Ipod nano, but nothing came of it - all the same ... What should I do?

    Hi Rc_Drifter,
    Welcome to the Support Communities!  The article below will help you troubleshoot the issue you are having with your iPod nano. Restoring the device may resolve the backlight issue as well.  
    iPod nano (6th generation): Hardware troubleshooting
    http://support.apple.com/kb/ts3474
    Display shows a white screen
    Try putting the iPod into disk mode:
    Reset the device (press the Sleep and Volume Down buttons simultaneously until the display turns black—about eight seconds).
    When the display turns black, hold down the Volume Down and Volume Up buttons simultaneously until the device enters Disk mode.
    While the device is in disk mode, sync it to iTunes and try to restore.
    I hope this information helps ....
    - Judy

  • Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it.It is 4 gen running on 4.3.3

    Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it to turn it on .It is 4 gen running on 4.3.3.Please help

    so I have called HP tech support 12 times over the last 6 weeks and still my HP Officejet 4620 loses connection overnight. Of course becasue it was a birthday present I spent more time than I normally would have on this issue. While the tech are very polite they have not fixed my problem and now it is too late to return printer to store. This is a lot of money wasted and I think they need to admit this is a bug in this printer and resolve the problem!!!!!

  • T440p turn on keyboard backlight at startup automatically

    Hi
    Is there a way to do this at Windows 7 / 8???
    I know that it's not possible from the BIOS but there must be an utility there which turns on the keyboard backlight at every windows startup and keep it on regardless of what.
    Also I would like it to be turned back on when the computer comes out of sleep/hibernation.
    Does anyone know a software for this?
    Thanks

    Maybe from lenovo software but there must be another windows utility for this.
    In linux manipulating leds are possible through /sys/class/leds/tcapi
    The person who I want to give this computer as a gift is completely computer analfabet and she would love to have the backlight to be turned on all the time.

  • 1 Mail Rule automatically turns off upon launching Mail

    I have recently upgraded to Snow Leopard (10.6.4) from Tiger. I moved the "Mail" & "Mail Downloads" folders, as well as the "com.apple.mail.plist" preference file, from the old system into the new one in the appropriate user folder. I also rebuilt all the mailboxes once this was done. So far, everything's there and functioning great with one exception.
    The problem I am having is that every time I launch Mail, there is 1 mail rule which is turned off upon launching, forcing me to manually turn it on. It stays on until I quit the program, and the next time I launch it's off again.
    I use about 25 rules total, and none of the other rules display this behavior.
    Am I missing something obvious here?
    Thanks in advance!

    I have exactly the same problem. I have moved from a G5 with Leopard to a Mac Pro with Snow Leopard. I have about 8 rules, one of which turns off after I quit and then launch again. I have tried to recreate that rule manually and it still occurs. I think I'm going to fill out a bug report.

  • How to turn off keyboard sound in Windows 8 (not the touch keyboard, but the regular one)

    The clicking noise whe I am typing on my wireless keyboard seems impossible to turn off.  ANy way to get rid of this sound?
    Thanks!

    Getdaisy, welcome to the forum.
    You can go to PC Settings / PC and devices / Typing / Touch keyboard / turn off "Play key sounds as I type".
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Turn ON keyboard backlight?

    hello,please give me help that how to turn on the backlight keyboard for lenovo E550??

    Did you try "Fn + Space"?

  • Turn off keyboard sounds

    I'm trying to turn off or mute the keyboard clicks. I have followed settings path and I can not find the on screen keyboard setting. Its not there. can anyone advise please

    Hi, On the main screen of your BB z10, bottom middle you'll see the "search" hour glass.  click that and type in at top of screen, keyboard sound.  Then click on (mines in blue at the top of the screen) "On-Screen Keyboard", then just swipe to the left and your keyboard typing sound is gondie!  Cheers

  • Turn off permanent backlight under F5 key on Spectre x360

    Is there a way to disable the persistent backlight under the F5 key on HP Spectre x360 notebooks?  TO CLARIFY, I'M NOT ASKING HOW TO DISABLE THE FUNCTIONALITY OF THE F5 KEY OR ANY OTHER FUNCTION KEYS.  I just would like to know how to TURN OFF the PERMANENT light underneath the F5 KEY.  It is extremely bright and distracting.  Any help would be appreciated.  Thanks.

    File name: sp71197.exeRelease detailsReleased: Apr 21, 2015Version F.12 Rev.AFix and enhancements- Fixes an intermittent issue which causes the system to shutdown unexpectedly.
    - Fixes an intermittent issue where the system displays a fan fault alert message in error when the fan is functioning properly.- Provides an improved help message for the Trusted Platform Module (TPM) state in the F10 BIOS setup option.
    -Provides the ability to enable or disable the audible password prompt (beep) for the BIOS administrator login or Power-On Password. The audible prompt is disabled when the Power On Self-Test (POST) Hotkey Delay setting is set to 0. (Please ensure that this is the correct BIOS update softpaq for your particular model, but note the last fix listed.) I did promise to update you when I was sure that there was a solution. I hope this works well for you!

  • Lenovo Thinkpad E550 - Turn ON keyboard backlight?

    hello,
    please give me help that how to turn on the backlight keyboard for lenovo E550??
    Mod Edit: Subject line edited for clarity.

    Good day and welcome to the community.
    Does your spacebar show this icon: ?
    If so, please try holding the Fn key and then tapping the spacebar.
    If your spacebar doesn't have that icon, then, in my experience, you don't have a backlit keyboard.
    Regards

  • Can't turn off keyboard sound on iphone when dialing. I don't want to hear the clicks. Any advice?  It never did this before and just happened out of the blue.

    All of the sudden my iPhone clicks when I dial a number.  How can I turn off this annoying feature? 

    Did you already try to set it up as new device, as explained in this article?
    How to back up your data and set up as a new device
    Maybe without using the latest backup afterwards, in case it contains corrupt data causing your problem.

Maybe you are looking for

  • PrE Can't Find My DVD/BD Burner - Why?

    You have a multi-drive (DVD, or BD drive and Burner) installed on you computer, and it appears fine in the Control Panel>System>Hardware profile. Other programs can use it, but PrE, or Encore cannot find the burner, and reports such. What is going on

  • I cannot install firefox, i just keep getting a message to restart my computer over and over again & I MISS my firefox!

    I tried to upgrade to Firefox 4 and after downloading, I got this message: "Your computer must be restarted to complete a previous upgrade of Firefox. Do you want to reboot now?" I reboot and try to start Firefox and get this message: "Your computer

  • Over Absorption in Production Cost Center.

    Dears, We are getting the over absorption in cost center after doing of actual price calculation settlement. we have done the following transactions at month end. eventhough we are getting over absorption (i.e., credits are more than debits) Credits

  • Render engine does not stop after reaching 100%

    It looks like to me that the render engine does not stop after reaching 100%. It does not affect the rendered file which is fine and complete -the Pause and Stop buttons are displayed but have no effect on pausing or stoping the render -when I want t

  • Lightroom, OS Mountain Lion and Epson 7880 large print problems

    I have used Lightroom to beautifully print many 20x16, 24x20 and 24x36 prints on my Epson 7880.   I have been trying unsucessfully to print a 24x74 panoramic print. What happens is I geet a 24 x 20 inch blank piece of paper come out of the printer, a