You are not logged in.

#1 2017-07-19 07:18:57

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

Hello. Thank for your helps.
I have Asus 1005pxd notebook.
I have installed i686-archlinux on it, the FN keys was working out-of-box. but my F2 key is broken. so I can't turn off wi-fi device completly. I need to do this.
Is there are any alternative?

Offline

#2 2017-07-19 07:22:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-19 07:24:25

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

ojZim wrote:

I have installed i686-archlinux on it

If you aren't aware then it is important that you are: i686 support is being phased out.  Sorry if you don't have any 64-bit capable hardware.

Offline

#4 2017-07-19 07:37:09

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

headkase wrote:
ojZim wrote:

I have installed i686-archlinux on it

If you aren't aware then it is important that you are: i686 support is being phased out.  Sorry if you don't have any 64-bit capable hardware.

Thanks, yes I know. Fortunately my cpu supports x86_64. wink


jasonwryan wrote:

Thanks. I have readed wiki before posting for hours. But my English is not good so I can not understand all of the wiki. But, I understood how can I change keymap in Xorg.
but I did not get how can I change function keys in my OS.
I know: laptop Fn keys are at the lowest level of hardware.
Thanks.

Last edited by ojZim (2017-07-19 07:37:33)

Offline

#5 2017-07-19 19:46:01

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

Bump!

Offline

#6 2017-07-19 19:49:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2017-07-20 15:52:56

stupidus
Member
Registered: 2012-02-27
Posts: 124

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

In my laptop, the wireless key has the keysym "XF86WLAN". I am not sure, if it is the same on your computer. But if you are on Xorg, you can try to use xmodmap to rebind some other key to that.

The instructions can be found here: https://wiki.archlinux.org/index.php/Xmodmap

Offline

#8 2017-07-20 16:23:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

stupidus, the OP already noted that they can do this in X, but they want it systemwide (outside of X).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2017-07-20 17:39:22

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

Maybe redirect ctrl+alt+del to a wifi trigger script.
https://unix.stackexchange.com/a/297703


sys2064

Offline

#10 2017-07-26 23:26:25

evilteemo
Member
From: cyberspace
Registered: 2016-11-12
Posts: 10
Website

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

Alternatively, you can use https://wiki.archlinux.org/index.php/Xbindkeys

Last edited by evilteemo (2017-07-26 23:28:39)

Offline

#11 2017-07-27 13:28:32

stupidus
Member
Registered: 2012-02-27
Posts: 124

Re: My F2 key is broken. How can I press FN+F2 to turing on&off the wifi?

Trilby wrote:

stupidus, the OP already noted that they can do this in X, but they want it systemwide (outside of X).

I had seen that, but I must have misinterpreted it. Sorry.

Anyhow, if it is really about the hardware thing, would it not be easier to just repair the F2 key? How is it broken? If it is the plastic spring thingy or the rubber cap that's broken, you can just replaced it with a piece from another key that you don't need. (Scroll-lock, break, or menu key come to mind, whichever you need the least)

Offline

Board footer

Powered by FluxBB