I bought my mom a laptop some time ago with an unfortunate keyboard layout. OS is Linux Mint 18.2 Cinnamon 64-bit.
The thing is, instead of having F1 - F12 keys, she has different buttons for multimedia and more importantly an Airplane mode button. The F1 - F12 keys can be reached via Fn.
Because we have quite many pets, they often jump on the keyboard pressing multiple buttons including the Airplane mode button, thus disconnecting her from internet, which she complains about lately.
In BIOS I don't see a way to switch to normal keyboard layout. So, question for you is:
Is there a way to disable Airplane mode button on laptop keyboard?
It is impossible to keep the pets out of the room, because they are integral part of our household.
Of course, when mom is not at the computer, she closes the lid. But they jump on the laptop when she is at the laptop. Cats can be real pain in this sense :)
When Airplane mode is turned off, i.e. wireless is on, the following command:
rfkill list all
0: ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked: no 1: ideapad_bluetooth: Bluetooth Soft blocked: yes Hard blocked: no 2: hci0: Bluetooth Soft blocked: yes Hard blocked: no 3: phy0: Wireless LAN Soft blocked: no Hard blocked: no
Once Airplane button is pressed the wireless according to the previous command is blocked Soft.
when the button is pressed, outputs:
button/wlan WLAN 00000080 00000000 K
No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Lid Switch /dev/input/event1: Power Button /dev/input/event2: Power Button /dev/input/event3: AT Translated Set 2 keyboard /dev/input/event4: MOSART Semi. 2.4G Wireless Mouse /dev/input/event5: Video Bus /dev/input/event6: Video Bus /dev/input/event7: ETPS/2 Elantech Touchpad /dev/input/event8: Ideapad extra buttons /dev/input/event9: Lenovo EasyCamera /dev/input/event10: HDA Intel PCH Mic /dev/input/event11: HDA Intel PCH Headphone /dev/input/event12: HDA Intel HDMI HDMI/DP,pcm=3 /dev/input/event13: HDA Intel HDMI HDMI/DP,pcm=7 /dev/input/event14: HDA Intel HDMI HDMI/DP,pcm=8 Select the device event number [0-14]: 8 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0 Input device name: "Ideapad extra buttons" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 1 (KEY_ESC) Event code 148 (KEY_PROG1) Event code 149 (KEY_PROG2) Event code 186 (KEY_F16) Event code 192 (KEY_F22) Event code 193 (KEY_F23) Event code 202 (KEY_PROG3) Event code 203 (KEY_PROG4) Event code 212 (KEY_CAMERA) Event code 227 (KEY_SWITCHVIDEOMODE) Event code 238 (KEY_WLAN) Event code 240 (KEY_UNKNOWN) Event code 248 (KEY_MICMUTE) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit) Event: time 1508927031.158643, type 4 (EV_MSC), code 4 (MSC_SCAN), value 0d Event: time 1508927031.158643, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1 Event: time 1508927031.158643, -------------- SYN_REPORT ------------ Event: time 1508927031.158680, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0 Event: time 1508927031.158680, -------------- SYN_REPORT ------------