acpi script to change LED requires root and I need to make it not require root.
Distro: Debian Wheezy (Testing)
Laptop: Dell Inspiron 15R Special Edition (2012)
CPU: Intel Core i7 Ivy Bridge
I bought a new Dell 15R Special Edition laptop (2012 model).
The function key to enable/disable the touchpad does not work although I see that xev is generating X86TouchpadToggle events.
I found that /etc/acpi/asus-touchpad.sh works for disabling the touchpad since it's the same touchpad as Asus laptops.
However, this script has a problem in that it assumes the laptop has an asus led, which it doesn't.
So I've created a new script to work with my laptop, as follows...
My problem is that it appears that I need sudo or root access to run this script. I want to somehow bind this script to the function key Fn+F3 which triggers a XF86TouchpadToggle key event.
Any ideas/suggestions? I've tried kde-config-touchpad and ktouchpadenabler. ktouchpadenabler only disables the touchpad until it is touched (worthless, possibly a bug) and kde-config-touchpad doesn't seem to provide a way to completely disable the touchpad by the keyboard.
Further, when I try to bind XF86TouchpadToggle to any hotkeys inside of KDE, I get an error popup that says "The key you just pressed is not supported by QT"!
So I need to somehow go *around* kde to get this done.. I'm not sure how to do it..
Right now, I'm just executing the script manually in a console with sudo or root and it works for toggling the touchpad (including LED status!) but I'm not sure what the proper way to do it is.
Any help is greatly appreciated.
An acpi event is *not* generated when I press the Fn+F3 button to toggle the touchpad.. So I guess I *CAN'T* use acpid to run the script. What can I do??
Alright, I've got it... After spending a while looking through other people trying to manipulate system leds from userspace by doing ridiculous things (editing udev rules, ick!)
I added this to /etc/sudoers:
And I also made sure that /etc/acpi/dell-touchpad.sh is read-only, executable for everybody.
Which allows me to execute "sudo /etc/acpi/dell-touchpad.sh" without prompting for a password. Now I just need to bind this script to XF86TouchpadToggle and I'm done.
|All times are GMT -5. The time now is 07:29 PM.|