Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: ayvind on 19 February 2021, 21:14:40

Title: No programs open due some display issue
Post by: ayvind on 19 February 2021, 21:14:40
So I'm working on setting up my new system: and now disaster hits home big time.
Code: [Select]
(gimp:4506): Gtk-WARNING **: 22:11:54.884: Locale not supported by C library.
        Using the fallback 'C' locale.
No protocol specified
Cannot open display:

What has gone wrong here, because no programs wants to open..?!
Title: Re: No programs open due some display issue
Post by: ayvind on 19 February 2021, 21:43:31
Code: [Select]
inkscape 

(process:6264): Gtk-WARNING **: 22:41:54.002: Locale not supported by C library.
        Using the fallback 'C' locale.
No protocol specified
Unable to init server: Could not connect: Connection refused
ConcreteInkscapeApplication<T>::create_window: Should not be called!

Nothing in X starts. Can execute terminal apps tho. But not x-apps from the terminal.
Title: Re: No programs open due some display issue
Post by: ayvind on 19 February 2021, 22:38:31
turns out that I have to log off wireless to open applications. :o  Then they open (!)
Title: Re: No programs open due some display issue
Post by: Roberto on 20 February 2021, 09:09:22
I have exactly the same problem  :o

After the last system update, no program can be started.
The problem exists on both a KDE machine and an xfce machine.
The KDE machine at least still starts up to the desktop, the xfce machine only has a blinking cursor.

Does anyone have your idea which update can be the culprit?

Thanks in advance.

Greetings
Roberto
Title: Re: No programs open due some display issue
Post by: linuxer on 20 February 2021, 10:01:55
Hi,

On my XFCE desktop, with WiFi on, everything is ok

(https://imgur.com/GVfPwQu.png)

However, as it seems, based on your terminal output, you have to set the proper locales on your system

Code: [Select]
(process:6264): Gtk-WARNING **: 22:41:54.002: Locale not supported by C library.
        Using the fallback 'C' locale.
Title: Re: No programs open due some display issue
Post by: Gladdle on 20 February 2021, 10:10:28
Please post the output from
Code: [Select]
locale

IF there is the issue, maybe this can help you:
https://wiki.artixlinux.org/Main/Installation#Localization
Read the Section "Localization"
Title: Re: No programs open due some display issue
Post by: Roberto on 20 February 2021, 10:31:47
I have just found out who the culprit is.

I use networkmanager and there was an update of this package.
After downgrade from version 1.30.0-1 to the previous version 1.28.1dev+16+gdaad4e2fee-1 everything works fine again.

I hope this information helps others.

greets
Roberto
Title: Re: No programs open due some display issue
Post by: linuxer on 20 February 2021, 17:55:18
I have just found out who the culprit is.

I use networkmanager and there was an update of this package.
After downgrade from version 1.30.0-1 to the previous version 1.28.1dev+16+gdaad4e2fee-1 everything works fine again.

I hope this information helps others.

greets
Roberto
I also use NetworkManager 1.30.0-1, w/o such issues.

Btw, keeping old releases, is not a good practice.

In any case, fix your locales, because this may breaks other things in the future.

So edit your /etc/locale.gen and uncomment your locales, and after saving the file, execute
Code: [Select]
sudo locale-gen
Title: Re: No programs open due some display issue
Post by: Roberto on 20 February 2021, 22:39:38
I followed the steps on one machine and edited /etc/locale.gen.
Code: [Select]
X220:[roberto]:~$ sudo nano /etc/locale.gen
[sudo] Passwort für roberto:
.
.
.
.

# Locales enabled by Calamares
en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8

Then I ran sudo locale-gen
Code: [Select]
X220:[roberto]:~$ sudo locale-gen
Generating locales...
  en_US.UTF-8... done
  de_DE.UTF-8... done
Generation complete.
After that I removed the entry networkmanager from the line IgnorePKG in /etc/pacman.conf and I installed the version 1.30.0-1.

Unfortunately, after a reboot, the programs still do not start.
Title: Re: No programs open due some display issue
Post by: Roberto on 20 February 2021, 22:44:08
Here is my locale
Code: [Select]
X220:[roberto]:~$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
Title: Re: No programs open due some display issue
Post by: linuxer on 20 February 2021, 23:26:22
Unfortunately, after a reboot, the programs still do not start.

It is rather strange. Can you use another $HOME for a test?
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 00:00:08
I found out something else.

When I connect my computer with the LAN cable and then boot, I can start the programs.
However, when I open the terminal, it doesn't just show my user, as it usually has been, but also a combination of numbers and letters.
Code: [Select]
2a0a-a543-ebb4-0-2c14-9838-9259-88e6:[roberto]:~$

After unplugging the cable, I have the issue again.
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 08:25:01
It is rather strange. Can you use another $HOME for a test?
What do you mean?
Creating another user?
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 08:39:22
With
I found out something else.

When I connect my computer with the LAN cable and then boot, I can start the programs.
However, when I open the terminal, it doesn't just show my user, as it usually has been, but also a combination of numbers and letters.
Code: [Select]
2a0a-a543-ebb4-0-2c14-9838-9259-88e6:[roberto]:~$

After unplugging the cable, I have the issue again.
With the previous version there is the hostname:
Code: [Select]
X220:[roberto]:~$
Title: Re: No programs open due some display issue
Post by: alium on 21 February 2021, 09:41:19
Roberto,
Did you properly set hostname?
For me after update to me version of nm has nothing changed

Put here please "cat /etc/hosts"
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 09:47:50
Hi alium,

I have properly set the hostname during the installation.
Code: [Select]
sudo nano /etc/hosts
# Host addresses
127.0.0.1  localhost
127.0.1.1  X220

Greetings
Roberto
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 09:54:21
Code: [Select]
sudo nano /etc/hostname
X220
Title: Re: No programs open due some display issue
Post by: alium on 21 February 2021, 10:20:25
127.0.1.1  X220 is not properly set up hostname
Read it again and set it properly
https://wiki.artixlinux.org/Main/Installation#Network_configuration
https://wiki.archlinux.org/index.php/Network_configuration#Local_hostname_resolution
Because you not properly sset  hostname, did it networkmanager, because he have this feature.

" 127.0.1.1        X220.localdomain   X220"
Should be right setting
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 11:31:41
Since I have the same problem on my T450S, I applied the settings to this machine.

This is what the files look like now:

Code: [Select]
sudo nano /etc/hostname
'T450S'
I have set the entry both with the quotation marks and without.

Code: [Select]
sudo nano /etc/hosts
# Host addresses
127.0.0.1     localhost
::1           localhost
127.0.1.1     T540S.localdomain   T450S

Code: [Select]
getent hosts
127.0.0.1       localhost
127.0.0.1       localhost
127.0.1.1       T450S.localdomain T450S

Unfortunately without success  :(
Title: Re: No programs open due some display issue
Post by: alium on 21 February 2021, 12:07:29
Code: [Select]
sudo nano /etc/hosts
# Host addresses
127.0.0.1     localhost
::1           localhost
127.0.1.1     T540S.localdomain   T450S

Unfortunately without success  :(

my settings:
Code: [Select]
[picasso alois]# cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost
::1             localhost.localdomain   localhost
127.0.1.1       picasso.localdomain picasso
# End of file

have you file /etc/conf.d/hostname ? here can you give your hostname too (maybe OpenRC specific setting):
Code: [Select]
[picasso conf.d]# cat /etc/conf.d/hostname 
# Set to the hostname of this machine
hostname='picasso'

Code: [Select]
[picasso etc]# cat /etc/hostname 
picasso
Title: Re: No programs open due some display issue
Post by: Roberto on 21 February 2021, 12:35:52
Hi alium,

after I changed the entry in /etc/conf.d/hostname from "lcoalhost" to "T450S", the programs are now starting again :)
Code: [Select]
T450S:[roberto]:~$ cat /etc/conf.d/hostname
# Set to the hostname of this machine
hostname="T450S"

Unbelievable  :o  ???

Thanks a lot for your patience and your help  :D

Greetings
Roberto
Title: Re: No programs open due some display issue
Post by: Bodge99 on 22 February 2021, 17:53:13
Hi,

I can confirm that the hostname setting (as shown in Roberto' s  post above) has fixed the problems that I've been having for the last couple of days with two Artix installations on my main laptop.

This  laptop has hybrid graphics and I'm having significant problems getting the Nvidia drivers to work properly in Artix. I run other distros and these "mostly" work.. most are defaulting to the Intel GPU even if the Nvidia driver is installed.
 
My test Artix install started playing up with identical problems as described in the earlier posts above. I initially thought that I had "just borked" the installation again... I then ran my main Artix installation, updated it, and hit exactly the same problem.

Several full reinstalls (from various ISOs) later I found this thread.. Many thanks!.. I thought that I was going bonkers!

A good way to learn.. ho hum!

Bodge99
Title: Re: No programs open due some display issue
Post by: alium on 22 February 2021, 18:05:12
which inits you used/installed? I'm thinking of adding the third file with hostname to the wiki (just in case)
Title: Re: No programs open due some display issue
Post by: Bodge99 on 22 February 2021, 18:13:17
Hi,

If it helps.. I use OpenRC.

Bodge99
Title: Re: No programs open due some display issue
Post by: alium on 22 February 2021, 19:03:31
Hi,

If it helps.. I use OpenRC.

Bodge99
but that helped  ;) https://forum.artixlinux.org/index.php/topic,2300.msg15439.html#msg15439