Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Applications don't start when connected with wifi, but start when not connected (Read 1667 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Applications don't start when connected with wifi, but start when not connected

Hello,
I have made a fresh artix plasma installation on my laptop from the 2020.01.01 stable .iso. Now, when having booted without problems in the plasma DE, following strange behavior happens:
If I am connected with wifi (I have no ethernet), then no application starts. By this I mean that it shows to be trying to start for a couple of seconds, and then it stops (icon on the taskbar). If I disconnect the wifi, then the applications do start, and stay functional if I reconnect. This is the way I've found to circumvent the problem and be able to post this from artix.

This behavior was present even on the live cd during installation, and in the installation I had done of the weekly 2021.03.08 artix plasma .iso. I had thought that the problem would not exist with the stable image, hence I used this for installing, but I was wrong.

I'm using openrc.

Some more info: when trying to start an application from the already open konsole terminal, which works, I get the following (3 examples):

Code: [Select]
$ konqueror
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

$ konsole
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted
$ kate
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

I post the message now, but have to leave for a couple of hours and then I'l come back.

Re: Applications don't start when connected with wifi, but start when not connected

Reply #1
it looks to me like you have messed up hostname.
Try to put your hostname in /etc/hostname and also to the correct services.... maybe something is getting wrong here...

Re: Applications don't start when connected with wifi, but start when not connected

Reply #2
you can recieve more info, if you use debug of qt5 apps :

Code: [Select]
export QT_DEBUG_PLUGINS=1


Re: Applications don't start when connected with wifi, but start when not connected

Reply #4
I just had this with NetworkManager on my recent mate install, but I was doing something very odd really. I had connected a BT Hub 3 as a wireless extender to a BT Smart Hub 2 connected via a vdsl fiber connection and was trying to connect to the BT hub 3.
https://community.bt.com/t5/Archive-Staging/Using-bt-hub-4-to-extend-wifi/td-p/1780693
On my usual computer I could connect to either but on the new install that had never connected to the Smart Hub 2 it gave all sorts of trouble. I could connect and browse the net using my usual simple scripts for wpa supplicant and dhclient, but connman wouldn't connect properly, although it did give a local connection to the hub html interface. NetworkManager (I installed networkmanager, networkmanager-openrc and network-manager-applet after uninstalling the connman stuff) would stop apps starting when it had connected to the hub 3. Also on rebooting the desktop wouldn't start. Ctrl Alt F* worked, but if I logged in as root (not the usual user) the hostname changed to broadband.bt.com, you could see it on the terminal prompt, and when you did "hostname."
I wondered if it's something to do with my usual computer being in the routing tables of the gateway smart hub 2, or having a pre-existing dhcp lease or something. rm-ing the files in /var/lib/NetworkManager and /etc/NetworkManager/system-connections/ cleared the problem (until I re-entered the passphrase for the BT hub 3) and also creating a static connection like this stopped the weird crashing problems:
system-preferences-internet and network-advanced network configuration
Wi-Fi
mySSID (click on this to highlight it if needed)
* button at page bottom
IPv4 Settings tab
Method: change to Manual
Addresses
Add
Address                 Netmask                 Gateway
192.168.1.20            255.255.255.0           192.168.1.254
Netmask got changed here to 24 after connecting, the 255.255.255.0 was taken from the hub configuration html interface.

Although I could then ping -c1 8.8.8.8 and get a response, in chromium I still couldn't actually connect to anything, getting this error:
DNS_PROBE_FINISHED_BAD_CONFIG
Yet on my usual laptop I installed network manager to compare, and there are no problems at all. In fact it even works if I have both my internal card and other adapter plugged in, and then I get a double connection to the BT Hub 3 and Smart Hub 2 on each adapter respectively. I didn't need to do anything special, enter the passphrase and away it went.

All I was trying to do was avoid entering my wireless key on the other laptop, but test if the wireless was working OK on there, so I wouldn't have to change it later on the usual hub and update the new key on various other devices, but it hasn't been much of a time saving plan really, and I haven't found any overall solution yet.

However this has also revealed something else very interesting - the long running problems with my built in Intel Ultimate N WiFi Link 5300 and iwlwifi driver - it runs at full speed on the BT Hub 3. I can literally just swap between the two hubs, and see the speed go from 8 or 9 Mbps to 1 or 2 Mbps. So there's a specific compatibility problem with the BT Smart Hub 2, which is the largest UK ISP and BT's current model of hub. The Smart Hub 2 is based on Broadcom tech I think. I also switched back to the linux-firmware package firmware and the results are the same. So there is a bug there, not a hardware issue, but you need the right (wrong?!) hub to see it.

Re: Applications don't start when connected with wifi, but start when not connected

Reply #5
OK, I've checked all relevant places (/etc/hostname, /etc/hosts, /etc/conf.d/hostname) and the hostname was OK.
Then I've followed the instructions of the wiki link you kindly provided, and then rebooted. Now the problem is solved. Interface name via
ip -s link
is wlan0, so I used it in the relevant files and commands, and now everything is working as it should.

I wish to thank you for your valuable up to the point advice.

P.S.
Maybe the potential problem regarding the hostname was mentioned because I erased info about username & hostname from the code I copy-pasted here in my previous message. Next time I'll leave it as is or substitute it, but not merely erase it.

Re: Applications don't start when connected with wifi, but start when not connected

Reply #6
I just had this with NetworkManager on my recent mate install, but I was doing something very odd really. I had connected a BT Hub 3 as a wireless extender to a BT Smart Hub 2 connected via a vdsl fiber connection and was trying to connect to the BT hub 3.
...
Thank you for the reply and the time you dedicated to compose your post. I appreciate it. Anyway, my issue was solved by following the indicated wiki link, so I'm just happy right now. I don't know if your issue was akin to mine, I'l try to reread and understand better the info you provide, but my setup is much simpler than yours.

 

Re: Applications don't start when connected with wifi, but start when not connected

Reply #7
Thank you for your simplification! In my case, I had set the hostname to nf110, when I changed it to atom everything worked normally. I changed it back to check, and it stopped working again until I reset it, so it was definitely the issue.
It should have been OK:
"Valid characters for hostnames are ASCII(7) letters from a to z, the digits from 0 to 9, and the hyphen (-). A hostname may not start with a hyphen."
But it wasn't.