Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
command line to switch off back light of an USB keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3652
Location: Hamburg

PostPosted: Sun Apr 23, 2017 2:49 pm    Post subject: command line to switch off back light of an USB keyboard Reply with quote

I do wonder if I do have a chance to switch off the back light of my "VENDOM Illuminated Scissor Keyboard, black" somehow in /proc or /sys ?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21541
Location: here

PostPosted: Sun Apr 23, 2017 3:33 pm    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3652
Location: Hamburg

PostPosted: Sun Apr 23, 2017 4:13 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Can help this?
Not really, I can set and get values between 0 and 2 but the keyboard back light itself doesn't change
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21541
Location: here

PostPosted: Sun Apr 23, 2017 6:35 pm    Post subject: Reply with quote

In /sys/class/leds/ you have some entry referencing on keyboard backlight?
In my system (laptop)
Code:
$ ls /sys/class/leds/dell\:\:kbd_backlight/

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3652
Location: Hamburg

PostPosted: Mon May 01, 2017 6:43 pm    Post subject: Reply with quote

fedeliallalinea wrote:
In /sys/class/leds/ you have some entry referencing on keyboard backlight?
In my system (laptop)
Code:
$ ls /sys/class/leds/dell\:\:kbd_backlight/
Weöll, I do have
Code:
# pwd
/sys/class/leds/tpacpi::kbd_backlight
t44 tpacpi::kbd_backlight # ls -l
total 0
-rw-r--r-- 1 root root 4096 May  1 20:40 brightness
lrwxrwxrwx 1 root root    0 May  1 20:39 device -> ../../../thinkpad_acpi
-r--r--r-- 1 root root 4096 May  1 12:46 max_brightness
drwxr-xr-x 2 root root    0 May  1 20:39 power
lrwxrwxrwx 1 root root    0 May  1 12:46 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 May  1 20:39 trigger
-rw-r--r-- 1 root root 4096 May  1 12:45 uevent
but that doesn't help, writing any value of 0, 1 or 2 to the file brightness doesn't show any effect.
Back to top
View user's profile Send private message
R0b0t1
Apprentice
Apprentice


Joined: 05 Jun 2008
Posts: 255

PostPosted: Mon May 01, 2017 8:24 pm    Post subject: Reply with quote

Hello,

It looks like it's using the Thinkpad driver - is that actually the right one? Do you know how the backlight is managed when used with Windows? Most non-laptop keyboards I have seen manage the brightness themselves with hotkey combinations that are not interpreted by the OS.

I just found this question - https://askubuntu.com/questions/13886/how-to-light-up-back-lit-keyboard - which was going to be my other guess for how the backlight is exposed. Apparently it might be another LED on your keyboard like the number, capitalization, or scroll locks, and could be exposed via the HID driver.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue May 02, 2017 2:26 pm    Post subject: Reply with quote

Quote:
VENDOM Illuminated Scissor Keyboard, black


most of the time, a hidden kernel module + setting

when there is a module for it, if not.

https://github.com/terrycain/razer-drivers/wiki/Reverse-Engineering-USB-Protocol

Quote:
There are a few things you will need when reverse engineering the USB protocol device. Firstly you will need a device :wink:. You will also need an additional keyboard, Virtualbox, VirtuaBox Extensions Pack, a Windows VM (I normally use 7 for this, but this has been reported to work), ...


Quote:

It looks like it's using the Thinkpad driver - is that actually the right one? Do you know how the backlight is managed when used with Windows? Most non-laptop keyboards I have seen manage the brightness themselves with hotkey combinations that are not interpreted by the OS.


Since uefi and a few years. every hid has its own firmware and its own written tools by the manufacturer how to set the magic bits.

the link above gives a good insight for starters
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3652
Location: Hamburg

PostPosted: Tue May 02, 2017 4:59 pm    Post subject: Reply with quote

R0b0t1 wrote:
https://askubuntu.com/questions/13886/how-to-light-up-back-lit-keyboard
Hhm, just FWIW,
Code:
xset led 3
switches on the LED for caps lock.
Back to top
View user's profile Send private message
R0b0t1
Apprentice
Apprentice


Joined: 05 Jun 2008
Posts: 255

PostPosted: Wed May 03, 2017 3:52 am    Post subject: Reply with quote

toralf wrote:
R0b0t1 wrote:
https://askubuntu.com/questions/13886/how-to-light-up-back-lit-keyboard
Hhm, just FWIW,
Code:
xset led 3
switches on the LED for caps lock.


Have you tried every number?

The reason I don't think there is a custom driver is because unlike a laptop keyboard, which can put the LED controller on an internal I2C bus, the USB keyboard LEDs must be controlled via USB in some way. It is possible to create multiple USB endpoints but that should be something you would be able to detect.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum