You are not logged in.
Pages: 1
Hi guys
I'm trying to control the operation of the function keys on my thinkpad, through acpi events.
Something so simple but is driving me crazy, is the functionality to change the status of my touchpad (turned on, off).
To do this I wrote the following script, if I run it in a terminal with my user (takedown) or as root, works great, but not through acpi.
/etc/acpi/events/toggleTouchpad
event=ibm/hotkey HKEY 00000080 00001008
action=/etc/acpi/actions/toggleTouchpad.sh
/etc/acpi/actions/toggleTouchpad.sh
#!/bin/bash
if [ `su takedown -c 'synclient -l | grep TouchpadOff | cut -b 31-32'` -ne 0 ]; then
su takedown -c 'synclient TouchpadOff=0'
su takedown -c '/usr/bin/kdialog --passivepopup Touchpad\ enable --title Thinkpad\ t500 "5"'
else
su takedown -c 'synclient TouchpadOff=1'
su takedown -c '/usr/bin/kdialog --passivepopup Touchpad\ disable --title Thinkpad\ t500 "5"'
fi
Another issue that can not solve, is the operation of Fn + F5 (wifi soft-switch) or the hard-switch.
Currently I am using "netcfg" to manage my wireless connections.
Both in hard or soft switch, I would like the behavior is as follows:
If I turn off the wireless switch, I like to put the wireless board in energy saving mode and suspend all wireless activity.
If I turn on wireless switch, the idea would be to turn on the wireless card (or quit energy saving mode) and reopen the wifi connection.
I have an Intel Wifi Link 5300.
I think abuse of you with too many doubts, I hope you know help me or guide me to the solution.
Thankyou
Offline
Pages: 1