Why does âAirplane Modeâ keep toggling on my HP laptop in Ubuntu 18.04?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
6
down vote
favorite
I have an HP Spectre x360 convertible laptop and I'm running Ubuntu 18.04. Every time I turn the screen sideways or in tablet mode and back, 'Airplane Mode' is activated. In fact, when I boot up and login, I have to manually turn off 'Airplane Mode' and turn wifi back on. I don't want to disable the gnome rfkill plugin like so: 'gsettings set org.gnome.settings-daemon.plugins.rfkill active false' because then I can no longer use bluetooth. Also, for some godforsaken reason, even when I DO disable the plugin, the gnome shell turns on 'Airplane Mode' anyway, which means that I have to go turn wifi back on EVERY time I log in. This is so annoying, I really liked where 18.04 was going but this is seriously breaking the whole gnome shell experience.
18.04 bluetooth hp gnome-shell airplane-mode
add a comment |Â
up vote
6
down vote
favorite
I have an HP Spectre x360 convertible laptop and I'm running Ubuntu 18.04. Every time I turn the screen sideways or in tablet mode and back, 'Airplane Mode' is activated. In fact, when I boot up and login, I have to manually turn off 'Airplane Mode' and turn wifi back on. I don't want to disable the gnome rfkill plugin like so: 'gsettings set org.gnome.settings-daemon.plugins.rfkill active false' because then I can no longer use bluetooth. Also, for some godforsaken reason, even when I DO disable the plugin, the gnome shell turns on 'Airplane Mode' anyway, which means that I have to go turn wifi back on EVERY time I log in. This is so annoying, I really liked where 18.04 was going but this is seriously breaking the whole gnome shell experience.
18.04 bluetooth hp gnome-shell airplane-mode
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I have an HP Spectre x360 convertible laptop and I'm running Ubuntu 18.04. Every time I turn the screen sideways or in tablet mode and back, 'Airplane Mode' is activated. In fact, when I boot up and login, I have to manually turn off 'Airplane Mode' and turn wifi back on. I don't want to disable the gnome rfkill plugin like so: 'gsettings set org.gnome.settings-daemon.plugins.rfkill active false' because then I can no longer use bluetooth. Also, for some godforsaken reason, even when I DO disable the plugin, the gnome shell turns on 'Airplane Mode' anyway, which means that I have to go turn wifi back on EVERY time I log in. This is so annoying, I really liked where 18.04 was going but this is seriously breaking the whole gnome shell experience.
18.04 bluetooth hp gnome-shell airplane-mode
I have an HP Spectre x360 convertible laptop and I'm running Ubuntu 18.04. Every time I turn the screen sideways or in tablet mode and back, 'Airplane Mode' is activated. In fact, when I boot up and login, I have to manually turn off 'Airplane Mode' and turn wifi back on. I don't want to disable the gnome rfkill plugin like so: 'gsettings set org.gnome.settings-daemon.plugins.rfkill active false' because then I can no longer use bluetooth. Also, for some godforsaken reason, even when I DO disable the plugin, the gnome shell turns on 'Airplane Mode' anyway, which means that I have to go turn wifi back on EVERY time I log in. This is so annoying, I really liked where 18.04 was going but this is seriously breaking the whole gnome shell experience.
18.04 bluetooth hp gnome-shell airplane-mode
18.04 bluetooth hp gnome-shell airplane-mode
edited Jun 23 at 1:25
asked Oct 17 '17 at 1:36
![](https://lh6.googleusercontent.com/-XfDrh3AAbzA/AAAAAAAAAAI/AAAAAAAAAD0/o5juuZ575_Q/photo.jpg?sz=32)
![](https://lh6.googleusercontent.com/-XfDrh3AAbzA/AAAAAAAAAAI/AAAAAAAAAD0/o5juuZ575_Q/photo.jpg?sz=32)
Nicholas Stommel
516418
516418
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56
add a comment |Â
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
7
down vote
accepted
In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.
First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.
Old SysV method:
$ sudo sh -c 'printf "#!/bin/shn/usr/bin/setkeycodes e057 240 e058 240n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot
New Recommended Systemd Method:
$ sudo nano /etc/systemd/system/hp-keycodes.service
Paste the following lines or type them into the file:
[Unit]
Description=HP setkeycodes fix
[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240
[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target
Save and confirm the filename with ctrl-x, y.
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot
And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
add a comment |Â
up vote
1
down vote
I face the very same problem with 17.10 on my HP Spectre x360.
In fact, I face both Nicholas and Pierre-Antoine problems:
- Airplane mode activated every time I login or flip to tablet mode;
- Fn+F12 (Toggle Airplane Mode key) is no longer working.
To quickly toggle the wifi, I made a small script:
## Content of ~/scripts/wifi_toggle : ##
#!/bin/bash
str=`export LANGUAGE=en_GB ; nmcli r wifi`
[ "$str" == "enabled" ] && nmcli r wifi off
[ "$str" == "disabled" ] && nmcli r wifi on
I rarely use bluetooth, so it only handles wifi, but you can modify it easily to handle both bluetooth and wifi.
All this is a clear regression from 17.04 where everything worked flawlessly. I tried the 18.04 beta but it's the same situation than with 17.10.
Nicholas, Pierre-Antoine, I fill like filling two bug reports on these issues (on report per issue). Do you think you could had a comment in these reports whenever I'm done reporting? This would help confirming the bug status (more than one user affected).
Cheers
To mark a bug report as affecting someone, they should click on theDoes this bug affect you?
link just below the bug title.
â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.
First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.
Old SysV method:
$ sudo sh -c 'printf "#!/bin/shn/usr/bin/setkeycodes e057 240 e058 240n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot
New Recommended Systemd Method:
$ sudo nano /etc/systemd/system/hp-keycodes.service
Paste the following lines or type them into the file:
[Unit]
Description=HP setkeycodes fix
[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240
[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target
Save and confirm the filename with ctrl-x, y.
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot
And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
add a comment |Â
up vote
7
down vote
accepted
In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.
First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.
Old SysV method:
$ sudo sh -c 'printf "#!/bin/shn/usr/bin/setkeycodes e057 240 e058 240n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot
New Recommended Systemd Method:
$ sudo nano /etc/systemd/system/hp-keycodes.service
Paste the following lines or type them into the file:
[Unit]
Description=HP setkeycodes fix
[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240
[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target
Save and confirm the filename with ctrl-x, y.
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot
And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
add a comment |Â
up vote
7
down vote
accepted
up vote
7
down vote
accepted
In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.
First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.
Old SysV method:
$ sudo sh -c 'printf "#!/bin/shn/usr/bin/setkeycodes e057 240 e058 240n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot
New Recommended Systemd Method:
$ sudo nano /etc/systemd/system/hp-keycodes.service
Paste the following lines or type them into the file:
[Unit]
Description=HP setkeycodes fix
[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240
[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target
Save and confirm the filename with ctrl-x, y.
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot
And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!
In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.
First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.
Old SysV method:
$ sudo sh -c 'printf "#!/bin/shn/usr/bin/setkeycodes e057 240 e058 240n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot
New Recommended Systemd Method:
$ sudo nano /etc/systemd/system/hp-keycodes.service
Paste the following lines or type them into the file:
[Unit]
Description=HP setkeycodes fix
[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240
[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target
Save and confirm the filename with ctrl-x, y.
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot
And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!
edited Jun 23 at 2:07
answered Oct 17 '17 at 1:36
![](https://lh6.googleusercontent.com/-XfDrh3AAbzA/AAAAAAAAAAI/AAAAAAAAAD0/o5juuZ575_Q/photo.jpg?sz=32)
![](https://lh6.googleusercontent.com/-XfDrh3AAbzA/AAAAAAAAAAI/AAAAAAAAAD0/o5juuZ575_Q/photo.jpg?sz=32)
Nicholas Stommel
516418
516418
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
add a comment |Â
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
This worked for my HP Notebook 15-ac14ne
â Tooniis
Jan 19 at 9:17
1
1
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
this didn't work on ubuntu 17.10
â nikhilweee
Feb 12 at 16:29
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
THANK YOU. This worked on my Spectre x360 when many other solutions did not.
â Matt West
Sep 24 at 4:21
add a comment |Â
up vote
1
down vote
I face the very same problem with 17.10 on my HP Spectre x360.
In fact, I face both Nicholas and Pierre-Antoine problems:
- Airplane mode activated every time I login or flip to tablet mode;
- Fn+F12 (Toggle Airplane Mode key) is no longer working.
To quickly toggle the wifi, I made a small script:
## Content of ~/scripts/wifi_toggle : ##
#!/bin/bash
str=`export LANGUAGE=en_GB ; nmcli r wifi`
[ "$str" == "enabled" ] && nmcli r wifi off
[ "$str" == "disabled" ] && nmcli r wifi on
I rarely use bluetooth, so it only handles wifi, but you can modify it easily to handle both bluetooth and wifi.
All this is a clear regression from 17.04 where everything worked flawlessly. I tried the 18.04 beta but it's the same situation than with 17.10.
Nicholas, Pierre-Antoine, I fill like filling two bug reports on these issues (on report per issue). Do you think you could had a comment in these reports whenever I'm done reporting? This would help confirming the bug status (more than one user affected).
Cheers
To mark a bug report as affecting someone, they should click on theDoes this bug affect you?
link just below the bug title.
â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
add a comment |Â
up vote
1
down vote
I face the very same problem with 17.10 on my HP Spectre x360.
In fact, I face both Nicholas and Pierre-Antoine problems:
- Airplane mode activated every time I login or flip to tablet mode;
- Fn+F12 (Toggle Airplane Mode key) is no longer working.
To quickly toggle the wifi, I made a small script:
## Content of ~/scripts/wifi_toggle : ##
#!/bin/bash
str=`export LANGUAGE=en_GB ; nmcli r wifi`
[ "$str" == "enabled" ] && nmcli r wifi off
[ "$str" == "disabled" ] && nmcli r wifi on
I rarely use bluetooth, so it only handles wifi, but you can modify it easily to handle both bluetooth and wifi.
All this is a clear regression from 17.04 where everything worked flawlessly. I tried the 18.04 beta but it's the same situation than with 17.10.
Nicholas, Pierre-Antoine, I fill like filling two bug reports on these issues (on report per issue). Do you think you could had a comment in these reports whenever I'm done reporting? This would help confirming the bug status (more than one user affected).
Cheers
To mark a bug report as affecting someone, they should click on theDoes this bug affect you?
link just below the bug title.
â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I face the very same problem with 17.10 on my HP Spectre x360.
In fact, I face both Nicholas and Pierre-Antoine problems:
- Airplane mode activated every time I login or flip to tablet mode;
- Fn+F12 (Toggle Airplane Mode key) is no longer working.
To quickly toggle the wifi, I made a small script:
## Content of ~/scripts/wifi_toggle : ##
#!/bin/bash
str=`export LANGUAGE=en_GB ; nmcli r wifi`
[ "$str" == "enabled" ] && nmcli r wifi off
[ "$str" == "disabled" ] && nmcli r wifi on
I rarely use bluetooth, so it only handles wifi, but you can modify it easily to handle both bluetooth and wifi.
All this is a clear regression from 17.04 where everything worked flawlessly. I tried the 18.04 beta but it's the same situation than with 17.10.
Nicholas, Pierre-Antoine, I fill like filling two bug reports on these issues (on report per issue). Do you think you could had a comment in these reports whenever I'm done reporting? This would help confirming the bug status (more than one user affected).
Cheers
I face the very same problem with 17.10 on my HP Spectre x360.
In fact, I face both Nicholas and Pierre-Antoine problems:
- Airplane mode activated every time I login or flip to tablet mode;
- Fn+F12 (Toggle Airplane Mode key) is no longer working.
To quickly toggle the wifi, I made a small script:
## Content of ~/scripts/wifi_toggle : ##
#!/bin/bash
str=`export LANGUAGE=en_GB ; nmcli r wifi`
[ "$str" == "enabled" ] && nmcli r wifi off
[ "$str" == "disabled" ] && nmcli r wifi on
I rarely use bluetooth, so it only handles wifi, but you can modify it easily to handle both bluetooth and wifi.
All this is a clear regression from 17.04 where everything worked flawlessly. I tried the 18.04 beta but it's the same situation than with 17.10.
Nicholas, Pierre-Antoine, I fill like filling two bug reports on these issues (on report per issue). Do you think you could had a comment in these reports whenever I'm done reporting? This would help confirming the bug status (more than one user affected).
Cheers
answered Mar 17 at 13:05
Antoine
311
311
To mark a bug report as affecting someone, they should click on theDoes this bug affect you?
link just below the bug title.
â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
add a comment |Â
To mark a bug report as affecting someone, they should click on theDoes this bug affect you?
link just below the bug title.
â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
To mark a bug report as affecting someone, they should click on the
Does this bug affect you?
link just below the bug title.â Chai T. Rex
Mar 17 at 15:23
To mark a bug report as affecting someone, they should click on the
Does this bug affect you?
link just below the bug title.â Chai T. Rex
Mar 17 at 15:23
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
If you filed a bug please can you post a link here so that others who have this problem (including myself) can subscribe to it?
â ec2011
Apr 17 at 12:43
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
Unfortunately, as far as I am aware, this is really an HP convertible notebook hardware thing that may not be present at all on most machines, so adding a special clause or init script in the official package repo may not be much of a solution at all. This appears to be a kernel and gnome-shell problem sorta mushed into one. I could attempt to file a bug report against the gnome-shell but they just switched over to that gitlab nightmare a short while back. The airplane mode key is fixed with the revised answer (systemd init script).
â Nicholas Stommel
Jun 23 at 2:15
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f965595%2fwhy-does-airplane-mode-keep-toggling-on-my-hp-laptop-in-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Did the problem appear with 17.10? I have the same laptop, and I had the same problem with Ubuntu 17.04. What makes it worse in 17.10 is that the "airplane mode/F12" key does not work anymore, so I have to go to the top-right menu to enable it again. Do you have the same problem?
â Pierre-Antoine
Oct 25 '17 at 16:32
As far as I can tell, setting the keycodes correctly on startup also fixes the problem with the airplane mode f12 key not working. I am currently toggling the airplane mode key with joy because it finally works. It only became apparent to me after I first started actually using the gnome shell in 17.10, as I never used the Gnome spin.
â Nicholas Stommel
Jun 23 at 1:56