You are not logged in.

#1 2012-06-10 10:57:28

ArtemGuzhva
Member
Registered: 2012-06-10
Posts: 7

[SOLVED] Using shortcut to enable/disable network.

Hello ArchLinux users,

I am configuring the acpid and I want it to disable/enable internet connection after pressing the keyboard shortcut by using netcfg and rfkill, but it seems that this shortcut(Fn+F2 in my case) is already works. It uses rfkill to enable/disable my wireless card, but I want it also to use netcfg.

How to find out which script is being run after pressing the shortcut? Thank you in advance smile

Here is the output of acpi_listen when pressing the shortcut:

hotkey ATK0100:00 0000005d 00000006
button/wlan WLAN 00000080 00000000 K
hotkey ATK0100:00 0000007e 00000003

Last edited by ArtemGuzhva (2012-06-10 11:19:49)

Offline

#2 2012-06-10 11:08:01

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

Re: [SOLVED] Using shortcut to enable/disable network.

Is this a laptop/netbook?

Many laptops have the "hotkey" managed at a lower level (eg firmware/bios) so there may not be any visible script that is currently run by it.  (See my recent follies here).

Provided your laptop/netbook maker wasn't as incompetent as Lenovo, you should be able to map that keypress to whatever you want it to do with netcfg using any method you prefer.  The rfkill work will still be handled at the firmware/bios level.


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

Offline

#3 2012-06-10 11:18:42

ArtemGuzhva
Member
Registered: 2012-06-10
Posts: 7

Re: [SOLVED] Using shortcut to enable/disable network.

Okay, thank you for reply. I have Asus K52F and I guess you are right about hardcoded shortcut.

Offline

Board footer

Powered by FluxBB