![]() |
Feel free with Open Source SoftwareAndries Filmer - Internet professional sinds 1996.
|
|
|
|
Laptop Asus K52F met UbuntuIf you have a laptop Asus K52F with Ubuntu almost everything is working out of the box. You need some ajustments for Wireless LED and to toggle the touchpad hotkeys. Main source: http://ubuntuforums.org/showthread.php?t=1460790
Wireless LEDFor the wireless LED you need to create two files and restart acpi. Follow this commands:
First file: sudo nano /etc/acpi/events/asus-wireless-switch Code: event=hotkey ATKD 0000005d action=/etc/acpi/asus-wireless-switch.sh
Second file: sudo nano /etc/acpi/asus-wireless-switch.sh Code: #!/bin/sh # Toggle wireless device on Asus K52 laptops WLANSTATUS=`cat /sys/class/ieee80211/phy*/rfkill*/state` test -z $WLANSTATUS && exit 1 if [ $WLANSTATUS = 0 ]; then echo 0 > /sys/devices/platform/asus_laptop/wlan elif [ $WLANSTATUS = 1 ]; then echo 1 > /sys/devices/platform/asus_laptop/wlan fi Then run these commands: sudo chmod +x /etc/acpi/asus-wireless-switch.sh sudo service acpid restart sudo /etc/init.d/acpi-support restart
TouchpadThere is a solution to get the Elantech touchpad detected as such (and not ImPS/2 Logitech Wheel Mouse). If the touchpad is not detected you just need to run this two commands: echo "options psmouse force_elantech=1" | sudo tee -a /etc/modprobe.d/psmouse.conf sudo rmmod psmouse && sudo modprobe psmouse Then you can check your settings with "synclient -l" or with xinput list-props "ETPS/2 Elantech Touchpad" I made a startup script to keep two fingers tap as middle click, and three fingers tap as right click, with this command: xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 0, 0, 0, 0, 1, 2, 3 Backup the '/root/asus-touchpad.sh' file and create a new file to get the touchpad button working permanent:
sudo mv /etc/acpi/asus-touchpad.sh /root/asus-touchpad.sh sudo nano /etc/acpi/asus-touchpad.sh Code:
#!/bin/sh
# Toggle Elantech touchpad device on Asus laptops
[ -f /usr/share/acpi-support/power-funcs ] || exit 0
. /usr/share/acpi-support/power-funcs
getXconsole
TPSTATUS=`xinput list-props "ETPS/2 Elantech Touchpad" | grep "Device Enabled" | awk '{ print $4 }'`
test -z $TPSTATUS && exit 1
if [ $TPSTATUS = 1 ]; then
xinput set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 0
notify-send -i /usr/share/icons/hicolor/scalable/actions/touchpad-enabled.svg -t 3000 " TOUCHPAD OFF" "
Press Fn+F9 to enable"
elif [ $TPSTATUS = 0 ]; then
xinput set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 1
notify-send -i /usr/share/icons/hicolor/scalable/actions/touchpad-enabled.svg -t 3000 " TOUCHPAD ON" "
Press Fn+F9 to disable"
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 0, 0, 0, 0, 1, 2, 3
fi
Then run these commands: sudo service acpid restart sudo /etc/init.d/acpi-support restart Configure the touchpad. Dash -> Touchpad.
I appreciate if you give some comment about this page. Please go ahead. |
|
Andries Filmer | http://andries.filmer.nl | andries@filmer.nl | © 2011
|