Andries filmer

Feel free with Open Source Software

Andries Filmer - Internet professional sinds 1996.
Ik ben groot voorstander van Free- en Opensource Software (FOSS) en laat deze site jouw overtuigen waarom dit goed is.
Home Over deze website Kennisbank Ezelsoren Freelancer Online gereedschap

Laptop Asus K52F met Ubuntu

Index
  1. Wireless LED
  2. Touchpad
  3. Comments

If 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 LED

For 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

Touchpad

There 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.

This page is created on 2011-10-15 and updated on 2012-03-04

I appreciate if you give some comment about this page. Please go ahead.
Your e-mailaddress will not be published it is only to contact you (if needed).

 
Your name
Your e-mailaddress
To prefent robots to use this form I ask you kindly to type the next characters in the input field.
 

 


Mijn Curriculum vitae | De content op deze website heeft de Creativecommons 3.0 licentie | © 2011
Andries Filmer | http://andries.filmer.nl | andries@filmer.nl | © 2011
Deze website wordt gerealiseerd met Free- en Open Source Software: | | | | | |