You are not logged in.

#1 2013-09-09 15:54:57

joanelis
Member
Registered: 2013-09-09
Posts: 2

Asus g46vw - fn key doesn't work

Hello everybody,

My arch is up to date and i still have a problem with my keyboard : the fn key and every shortcuts associated with it doesn't work.

showkey and xev don't show anything when i press the fn key.
I work with KDE and already tried to change the keyboard type under the system configuration without effect.
The asus-nb-wmi module doesn't help.

For the moment i added script on custom kde shortcuts with the "windows" key, if it can help someone :

switch on/off touchpad :

#!/bin/sh
curr_val=$(synclient | grep "TouchpadOff" | sed 's/^.*\=\ //')
if (($curr_val > 0))
then synclient TouchpadOff=0
else synclient TouchpadOff=1
fi

switch wlan & LED on/off :

#!/bin/sh
#switch wlan on or off
#NOTE : iwconfig is a depedencies, or you can modify this script and add your wlan interface name
curr_val=$(cat /sys/class/leds/asus\:\:wlan/brightness)
iwconfig 1>/tmp/iwconfig 2>/dev/null
wlan_iface=$(head -n1 /tmp/iwconfig | sed 's/\ .*//')
if (($curr_val > 0))
then echo "0">/sys/class/leds/asus\:\:wlan/brightness && ip link set $wlan_iface down
else echo "1">/sys/class/leds/asus\:\:wlan/brightness && ip link set $wlan_iface up
fi

Increase screen brightness :

#!/bin/sh
#increase screen brightness by 100 on asus G46VW
curr_bright=$(cat /sys/class/backlight/intel_backlight/actual_brightness)
max_bright=$(cat /sys/class/backlight/intel_backlight/max_brightness)
new_bright=$(($curr_bright+100))
if (($new_bright <= $max_bright))
then echo "$new_bright">/sys/class/backlight/intel_backlight/brightness
fi

decrease screen brightness :

#!/bin/sh
#decrease screen brightness by 100 on asus G46VW
curr_bright=$(cat /sys/class/backlight/intel_backlight/actual_brightness)
new_bright=$(($curr_bright-100))
if (($new_bright >= 0))
then echo "$new_bright">/sys/class/backlight/intel_backlight/brightness
fi

increase keyboard backlight :

#!/bin/sh
#increase keyboard brightness by 1 on asus G46VW
#NOTE : you have to load the asus-nb-wmi module on boot
curr_bright=$(cat /sys/class/leds/asus\:\:kbd_backlight/brightness)
max_bright=$(cat /sys/class/leds/asus\:\:kbd_backlight/max_brightness)
new_bright=$(($curr_bright+1))
if (($new_bright <= $max_bright))
then echo "$new_bright">/sys/class/leds/asus\:\:kbd_backlight/brightness
fi

decrease keyboard backlight :

#!/bin/sh
#decrease keyboard brightness by 1 on asus G46VW
#NOTE : you have to load asus-nb-wmi on boot
curr_bright=$(cat /sys/class/leds/asus\:\:kbd_backlight/brightness)
new_bright=$(($curr_bright-1))
if (($new_bright >= 0))
then echo "$new_bright">/sys/class/leds/asus\:\:kbd_backlight/brightness
fi

Thanks for your help.

Edit : I just found out that the fn key work for volume control, hybernate and screen shutdown (fn + f1, f7, f10, f11, f12).
Showkey print code for those shortcuts but nothing for the others.

Last edited by joanelis (2013-09-12 16:22:19)

Offline

#2 2013-09-10 12:52:03

poupouneroot
Member
Registered: 2013-09-10
Posts: 1

Re: Asus g46vw - fn key doesn't work

hi i'm french, excuse me for my bad english but test this:

add to section modules

MODULES="asus-nb-wmi"

in /etc/mkinitcpio.conf and execute

sudo mkinitcpio -p linux 

reboot and test.

Offline

#3 2013-09-10 16:40:11

joanelis
Member
Registered: 2013-09-09
Posts: 2

Re: Asus g46vw - fn key doesn't work

Thanks for your reply poupouneroot,

I already add this modules to get the keyboard backlight listed in /sys, but there is no change : fn+some keys doesn't print anything on showkey or xev.

Offline

Board footer

Powered by FluxBB