LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   HP NX5000 activate WLAN switch (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/hp-nx5000-activate-wlan-switch-243260/)

leiv 10-15-2004 10:39 PM

HP NX5000 activate WLAN switch
 
hi to all,

i tried the driver ipw2200 driver from sourceforge version 12 now but cant activate my wlan. the nx5000 uses a spezial key to activate the antenna.
i just find a way to activate the soundbuttons but i found no way to get my wlun run.

any ideas.... someone out there who knows what to do?

meijer.o 12-04-2004 06:21 AM

button and sound.
 
to get the sound keys working

install hotkeys

copy the following file to /usr/share/hotkeys end name it nx5000.def:

<?xml version="1.0"?>

<definition>

<config model="HP/Compaq nx5000 Laptop">

<VolUp keycode="176" adj="2"/>
<VolDown keycode="174" adj="2"/>
<userdef keycode="151" command="kcmshell laptop">battery</userdef>
<userdef keycode="160" command="/usr/bin/togglemute">Mute</userdef>
<userdef keycode="178" command="sudo /usr/bin/button-wifi">wireless</userdef>
<userdef keycode="255" command="sudo /usr/bin/key-fnf3">suspend</userdef>
<userdef keycode="201" command="/usr/kde/3.3/bin/kdesktop_lock --forcelock">sceenlock</userdef>
<userdef keycode="159" command="/usr/kde/3.3/bin/ksysguard">ksysgard</userdef>
</config>



<contributor>
<name>Stuart Prescott</name>
<email>hotkeys@nanonanonano.net</email>
<email>meijerDOTo@wxs.nl</email>
</contributor>

</definition>

copy this file to /usr/bin, name it togglemute and make it executable:

#!/bin/sh

CURRENT=`amixer cget numid=32 | tail -1| cut -f2 -d=`

NEWVAL=0

if [ $CURRENT = "off" ]
then
NEWVAL=1
fi

# Muting External Amplifier
amixer cset numid=32 $NEWVAL
# Added muting for Master
amixer cset numid=1 $NEWVAL,$NEWVAL
# Added muting for Headphones
amixer cset numid=3 $NEWVAL,$NEWVAL

start hotkeys wirth: hotkeys -t nx5000

email me if you want to know more. this laptop works nice with linux

Kind regards,

Otto


All times are GMT -5. The time now is 12:38 PM.