hmc
Active Member
Hi,
should this be requested this way and done by ED or some other Pandora OS maintainer, or should I make such changes by myself using git or something?
If I should do this by myself, can anyone give some initial hints please? I am not familiar with contributing to the Pandora OS yet.
The purpose of the changes is that the keyboard LED light can be controlled by a configbutton Plugin.
I think I'll distribute the Configbutton Plugin in an installer PND, that's probably the best way, as most people won't need that Plugin?
Here is the receipe:
Create script:
sudo nano /usr/pandora/scripts/op_kbd_light.sh
fill it with:
#!/bin/sh
# Released under the GPL
# Sets keyboard light (if keyboard light hardware is installed) to given val$
# Give value for PWM brightness control as parameter $1
# Valid values: 0 (off) to 255 (full brightness)
echo $1 > /sys/class/leds/pandora\:\:keypad_bl/brightness
make it executable:
sudo chmod a+x /usr/pandora/scripts/op_kbd_light.sh
Add script to sudoers file:
sudo nano /etc/sudoers.d/50_openpandora
by adding line:
%wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_kbd_light.sh
should this be requested this way and done by ED or some other Pandora OS maintainer, or should I make such changes by myself using git or something?
If I should do this by myself, can anyone give some initial hints please? I am not familiar with contributing to the Pandora OS yet.
The purpose of the changes is that the keyboard LED light can be controlled by a configbutton Plugin.
I think I'll distribute the Configbutton Plugin in an installer PND, that's probably the best way, as most people won't need that Plugin?
Here is the receipe:
Create script:
sudo nano /usr/pandora/scripts/op_kbd_light.sh
fill it with:
#!/bin/sh
# Released under the GPL
# Sets keyboard light (if keyboard light hardware is installed) to given val$
# Give value for PWM brightness control as parameter $1
# Valid values: 0 (off) to 255 (full brightness)
echo $1 > /sys/class/leds/pandora\:\:keypad_bl/brightness
make it executable:
sudo chmod a+x /usr/pandora/scripts/op_kbd_light.sh
Add script to sudoers file:
sudo nano /etc/sudoers.d/50_openpandora
by adding line:
%wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_kbd_light.sh
Last edited by a moderator: