You are not logged in.

#1 2011-04-06 17:10:13

aremar
Member
Registered: 2011-03-11
Posts: 4

EeePC 1005PX acpi-eeepc-generic -> The wifi only turns off

Hi,
I'm with thar new laptop, and I'm trying to set up the functional keys. It was not so hard to do it, but i have one problem. When I use the wifi toggel key Fn+F2 the wifi is only turning off. When I start the "acpi-eeepc-generic-toggle-wifi.sh" script manualy, everything is working normal. These are my files:

/etc/acpi/eeepc/models/acpi-eeepc-1005PX-events.conf

# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/acpi-eeepc-generic/
#
# acpi-eeepc-generic is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# acpi-eeepc-generic is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with acpi-eeepc-generic.  If not, see <http://www.gnu.org/licenses/>.


KEY_SILVER1=NONE
KEY_SILVER2=NONE
KEY_SILVER3=NONE
KEY_SILVER4=NONE

# Fn+F? combination
KEY_Fn_F1="00000080"    # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037"    # Touchpad
KEY_Fn_F4="00000038"    # Resolution
KEY_Fn_F5="0000002*"    # Brightness down
KEY_Fn_F6="0000002*"    # Brightness up
KEY_Fn_F7="00000016"    # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030"    # XRandR
KEY_Fn_F9="00000012"    # Task Manager
KEY_Fn_F10="00000013"   # Mute
KEY_Fn_F11="00000014"   # Volume Down
KEY_Fn_F12="00000015"   # Volume Up
KEY_Fn_Space="00000039" # Space Bar


#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space

EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_ROTATE=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12

/etc/conf.d/acpi-eeepc-generic.conf

#
# Configuration file for EeePC ACPI utilities
#
# Please edit to your liking!!!
#
# http://code.google.com/p/acpi-eeepc-generic/
# http://aur.archlinux.org/packages.php?ID=23318
#
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
#
# acpi-eeepc-generic is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# acpi-eeepc-generic is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with acpi-eeepc-generic.  If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
#
# Put your username in "XUSER". It _is_ important.
#
# Some defaults are defined, but
# they might not work on your system. For example, the task manager
# used is "lxtask", which is part of the LXDE desktop environment.
# You can install it with "pacman -S lxtask". You can use
# something else if you want, just be sure to edit the appropriate
# variable.
#
#################################################################
# Format:
# Format of the settings is as follow:
#   VARIABLE_NAME=("command number 1" "command number 2" "etc.")
#
#################################################################
# Note that:
#   -Commands with spaces _need_ to be double-quoted
#   -You can put as many commands as you want, as in the previous example
#   -Some defaults are provided which might not work on your
#    system. Please edit as your liking. Look at
#    COMMANDS_WIFI_POST_UP for example. It uses by
#    default "wicd" for for network management. It is killed and
#    re-run to save battery. If you don't use wicd, please remove
#    it from the commands to run!!!
#   -All commands are executed as root. To execute a command as
#    yourself (not root), put @ in front of the command. This allow
#    graphical applications to work.
#   -If a key is not working, uncomment KEY_SHOW. It will show
#    you the code of the key you pressed. Then report it to me
#    with your model number.
#   -Change your wifi module. By default it uses "rt2860sta", which
#    is the one used in the 901/1000*.
#   -You can choose between different OSD:
#       libnotify: by default (GTK), you need "notification-daemon"
#       knotify: OSD used by KDE, you need "kdebase"
#       dzen: Small OSD, you need "dzen2"
#       NONE: You guessed it... none :)
#
#################################################################
# Different helper script you can use:
#
#   Rotate the screen
#       /etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh
#   Suspend to ram
#       /etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh
#   Toggle bluetooth on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh
#   Toggle between different monitors
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh
#   Toggle a suspension lock on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-lock-suspend.sh
#   Toggle card reader on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-cardr.sh
#   Change between supported screen resolutions
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh
#   Enable or disable the touchpad (needs SHM)
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh
#   Toggle webcam on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-webcam.sh
#   Toggle wifi on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh
#
#################################################################
# Different hardware states can be saved and restored when needed.
# To restore at boot, just add "eeepc-restore" to your DAEMONS
# array in /etc/rc.conf
#################################################################

### Fallback user to be used for X session if autodetection fails
XUSER=vidyu

### Choose what kind of notification you want. libnotify is the
### default, but can disable it with NONE.
NOTIFY="libnotify"  # Gnome, XFCE, GTK
#NOTIFY="kdialog"   # KDE, QT
#NOTIFY="dzen"      # dwm, wmii, xmonad or any other
#NOTIFY="naughty"   # Awesome window manager
#NOTIFY=NONE
NOTIFY_DURATION="2000" # Duration, in ms, of the OSD

### Show the ACPI key event
#KEY_SHOW="1"

### Some scripts needs to be run as root. Specify how to gain priviledges
#SUDO="sudo"
#SUDO="kdesu -i eee"
SUDO="gksu" # Append "--sudo-mode" to use sudo instead of su

#################################################################
### Drivers used by this Eee. Most used are "rt2860sta", "ath9k"
### and "iwlagn". For Madwifi you can try this exact list:
###     "wlan_tkip" "wlan_ccmp" "ath_pci" "ath_rate_sample" "ath_hal" "wlan_scan_sta" "wlan"
WIFI_DRIVERS=("rt2860sta")
BLUETOOTH_DRIVERS=("bluetooth")
CAMERA_DRIVERS=("uvcvideo")
# Let acpi-eeepc-generic load/unload modules?
#DRIVERS_LOAD="no"      # default: yes
#DRIVERS_UNLOAD="no"    # default: yes

#################################################################
### Volume options
ALSA_VOLUME_MIXER=("Master") # Mixer(s) to change volume

#################################################################
### Defined commands on specific key press
### Please edit to what you want!!!
### Some defaults are provided, but they might not work on your
### system if you don't have the utility installed.

COMMANDS_POWER_BUTTON=("/sbin/shutdown -t3 -h now")
# Users of LXDE might consider the following:
#COMMANDS_POWER_BUTTON=("@_LXSESSION_PID=`pidof lxsession` lxde-logout")
# See http://code.google.com/p/acpi-eeepc-generic/issues/detail?id=26
# and http://wiki.archlinux.org/index.php/LXDE#Shutdown_and_Reboot_from_LXDE

# These are the 4 silver buttons, located above the Fn+F2 to
# Fn+F6 on certain models and the Fn+Spacebar. The first just
# shutdown your screen to save power. The second toggle the touchpad on and off.
# Note the "@" in from of the two user button commands: because
# of this, theese commands will be executed as yourself and not root.
# The User1, User2 & User3 (when available) are executed as your username!!!
COMMANDS_BUTTON_BLANK=("xset dpms force off")
COMMANDS_BUTTON_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
COMMANDS_BUTTON_USER1=("@terminal")
COMMANDS_BUTTON_USER2=("@pcmanfm --no-desktop")

COMMANDS_SHE_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-she.sh")

COMMANDS_SLEEP=("/etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh")
# On some models, calling the wifi toggle script can prevent the card from
# being re-enabled. If you have that problem, just don't call the script and
# let the BIOS dis/enable the card.
# See http://wiki.github.com/nbigaouette/acpi-eeepc-generic/wireless
COMMANDS_WIFI_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh")
#COMMANDS_WIFI_TOGGLE=()
COMMANDS_WIFI_UP=()
COMMANDS_WIFI_DOWN=()
COMMANDS_WIFI_PRE_UP=()
#COMMANDS_WIFI_POST_UP=("/etc/rc.d/wicd start" "@wicd-client")
#COMMANDS_WIFI_PRE_DOWN=("pkill wicd-client" "/etc/rc.d/wicd stop" "pkill wpa_supplicant" "pkill dhcpcd")
COMMANDS_WIFI_POST_UP=()
COMMANDS_WIFI_PRE_DOWN=()
COMMANDS_WIFI_POST_DOWN=()
COMMANDS_BLUETOOTH_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh")
COMMANDS_BLUETOOTH_UP=()
COMMANDS_BLUETOOTH_DOWN=()
COMMANDS_BLUETOOTH_PRE_UP=()
COMMANDS_BLUETOOTH_POST_UP=()
COMMANDS_BLUETOOTH_PRE_DOWN=()
COMMANDS_BLUETOOTH_POST_DOWN=()
COMMANDS_TOUCHPAD_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
COMMANDS_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh")
COMMANDS_BRIGHTNESS_DOWN=() # Brightness down controled by BIOS
COMMANDS_BRIGHTNESS_UP=()   # Brightness up controled by BIOS
#COMMANDS_SCREEN_OFF=(/etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh)
COMMANDS_SCREEN_OFF=("${COMMANDS_BLUETOOTH_TOGGLE[@]}")
#COMMANDS_XRANDR_TOGGLE=("@lxrandr") # Run as user (not root)
COMMANDS_XRANDR_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh")
COMMANDS_XRANDR_TOGGLE_VGA="above"  # VGA is: right-of, left-of, above or below of LVDS
COMMANDS_TASKM=("@lxtask")
#COMMANDS_TASKM=("@xterm htop")
#COMMANDS_TASKM=("@ksysguard")

# If you use OSS, you can use http://ossvol.sourceforge.net/
COMMANDS_MUTE=("alsa_toggle_mute")
COMMANDS_VOLUME_DOWN=("alsa_set_volume 5%-")
COMMANDS_VOLUME_UP=("alsa_set_volume 5%+")

COMMANDS_AC_UNPLUGGED=()
COMMANDS_AC_PLUGGED=()
COMMANDS_ON_LID_CLOSE="yes"
COMMANDS_LID_CLOSE_ON_AC=("xset dpms force off")        # Just turn the backlight off
#COMMANDS_LID_CLOSE_ON_AC=("${COMMANDS_SLEEP[@]}")      # Do the same as COMMANDS_SLEEP
COMMANDS_LID_CLOSE_ON_BATTERY=("${COMMANDS_SLEEP[@]}")  # Do the same as COMMANDS_SLEEP


#################################################################
### Check for these processes before suspending
SUSPEND_BLACKLISTED_PROCESSES=(vlc mplayer smplayer kmplayer skype dragon songbird-bin amarok)
### Change the suspend commands.
SUSPEND2RAM_COMMANDS=("echo -n \"mem\" > /sys/power/state") # Simple suspend
#SUSPEND2RAM_COMMANDS=("pm-suspend") # Use pm-utils
#SUSPEND_QUIRKS_VTSWITCH="yes"

#################################################################
### Display toggling options (excluding LVDS only, since you
### need that one!). You can use any of these three, in any order.
#XRANDR_AVAILABLE_MODES=("clone" "vga" "both")
XRANDR_AVAILABLE_MODES=("vga" "both")

#################################################################
### Restore feature: On boot, restore different hardware states
RESTORE_BLUETOOTH=0
RESTORE_BRIGHTNESS=0
RESTORE_TOUCHPAD=0
RESTORE_WIFI=0

#################################################################
### If you mount /var/log in ram (to protect an SSD drive), you
### might want to backup them on shutdown/suspend, just in case.
### Add "logsbackup" to your DAEMONS array in /etc/rc.conf. You
### can also set the folder where to send these compressed backups.
LOGSBACKUP_FOLDER="/logs_backup"

#################################################################
### Please comment/remove the following, to prove that you edited
### and read fully the file ;)
### Else, you will get a 20 second warning.
EEEPC_CONF_DONE="yes"

EEEPC_MODEL="1005PX"
EEEPC_CPU="Atom"

Last edited by aremar (2011-04-06 17:14:05)

Offline

#2 2011-04-06 17:16:07

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,546

Re: EeePC 1005PX acpi-eeepc-generic -> The wifi only turns off

According to the author's wiki https://github.com/nbigaouette/acpi-eee … i/Wireless the wifi toggle is handled by the newer bios and there is no workaround

Offline

#3 2011-04-06 18:01:32

aremar
Member
Registered: 2011-03-11
Posts: 4

Re: EeePC 1005PX acpi-eeepc-generic -> The wifi only turns off

Thank you for the fast response. I've tried COMMANDS_WIFI_TOGGLE=() , but when I'm using acpi_osi=Linux in menu.lst the wifi light just flashes, and I am connected again. When I'm not using the acpi_osi=Linux , the other buttons don't work.

Offline

Board footer

Powered by FluxBB