Enable the backlight of the Led keyboard in Linux

Source: Internet
Author: User

A few days ago, my girlfriend gave me a kangaroo blue phantom backlit keyboard. However, in my Ubutnu 12.04, SL keys that enable backlight and other functions are not available, but can be used in Windows. I think it should be a driver problem, but I went to the website of kangaroo and checked it. But I did not see anything on the webpage, and I didn't even see the driver's shadow. However, I cannot install a windows instance on a single keyboard. But it cannot be a waste of resources, so it will not shine. I am so sorry for my girlfriend. Finally, based on my strong belief in Linux, I found xset (a tool used to set the X Window of linux, which is very powerful) and turned on the beautiful backlight. Since then, you are not afraid to turn off the lights at night and then press the wrong key. Below is a script I wrote. You can add it to your environment variables (for example, I put it in the/usr/local/bin directory ). Usage: (assume the Script Name Is sl ):

Enable backlight: sl on or sl ON

Turn off the backlight, and so on: sl OFF or sl off

#! /Bin/bash

If ["$1" = "on"] | ["$1" = "ON"]; then
Xset led named 'scroll lock'
Elif ["$1" = "off"] | ["$1" = "OFF"]; then
Xset-led named 'scroll lock'
Else
Echo "Usage: $0 on/off"
Exit 1
Fi
Exit 0

If you do not like to input commands in the terminal, but like to click with the mouse, you should write two scripts and put them on the desktop click...

Finally, let's talk about Thank you, my sweetheart! Love you, love it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.