You are not logged in.

#1 2015-08-09 01:05:27

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Problem oppening graphical applications after suspend

I don't know why this happens, but after a time I just can't open any graphical application. Yes, I can use the ones that were opened, but I can't start another one.

It seems this happens after I suspend the computer. When I try to open an app through a terminal (like Thunar, for instance) I got the following:

[sculy@localhost ~]$ thunar
No protocol specified
Thunar: Não foi possível abrir a tela: 

(my system language is brazilian portuguese, "Não foi possível abrir a tela" means "Could not open the screen" or something like this)

I read something in this forum about running the following, but didn't worked too:

[sculy@localhost ~]$ xhost + localhost
No protocol specified
xhost:  unable to open display ":0.0"

I searched in this forum for a solution, but the situations were totally different.

I actually read that this happens when an non-authorized user is trying to run a graphical application. I read something about .Xauthority, but I don't know what this file is, and I didn't find out on the web what is it.

In another situation, I had a problem after installing SLiM which forums mention this .Xauthority as a solution or the problem, I don't remember, but I fixed my problem just creating and .xinitrc file with the content "exec $1", so it doesn't seem like this new problem is related to SLiM...

Sorry for any ignorance, it is the first time I'm using Arch.

Information that can help:

Using XFCE desktop environment, SLiM  display manager

Sometimes I just open a terminal and firefox and I pass like a lot of time using just this without suspend, so I don't know if this is happening only after suspend, or after some time. I just realize this was happening two times, both after I suspended the system...

Any information you need, just ask...

Last edited by sculy (2015-08-10 13:50:37)


Sorry for bad english or any ignorance

Offline

#2 2015-08-09 03:35:19

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Problem oppening graphical applications after suspend

sculy wrote:

(my system language is brazilian portuguese, "Não foi possível abrir a tela" means "Could not open the screen" or something like this)

When posting command output to these forums, prepend the command with LC_ALL=C so the output will be in English. e.g.

LC_ALL=C thunar

Does this problem also occur, if you start X from command line with startx, or only when using SLiM?
Have you tried if the same happens when using some other DE/WM or only with xfce?

Offline

#3 2015-08-09 03:50:31

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

Actually when I start the system, it's working fine. What's going on is that this happens when I suspend the computer.

ooo wrote:

Does this problem also occur, if you start X from command line with startx, or only when using SLiM?
Have you tried if the same happens when using some other DE/WM or only with xfce?

I didn't tried use startx, but I will try just after post this.
I still didn't used any other DE/WM, only XFCE.
Before SLiM I used GDM, but I didn't notice this error (maybe because I wasn't suspending the system, or opening new apps after suspend, I used GDM for a short time).

ooo wrote:

When posting command output to these forums, prepend the command with LC_ALL=C so the output will be in English. e.g.

LC_ALL=C thunar

Oh sorry about that, I'll do that from now.


Sorry for bad english or any ignorance

Offline

#4 2015-08-09 04:04:24

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

Ok, I tried to use startx using the command line interface, and I got an error. I couldn't copy and paste here because it was the "text mode", and I couldn't take a picture, so I follow an instruction in this error output that lead me to a log file.

The log file is too long, so I paste it using pastebin, and it is here: log file

I'll check this log to see if I can find out if this new error has any relation with the error that lead me to create this topic, and how can I fix it.

If you need a picture of the error while trying to run startx, I can take it, but now I'm unable to do it, so I'll have to do it later (like maybe in the next 10 - 12 hours)...

Last edited by sculy (2015-08-09 04:10:31)


Sorry for bad english or any ignorance

Offline

#5 2015-08-09 06:17:28

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Problem oppening graphical applications after suspend

from that log file it looks like X started without issues, and then exited because it had nothing to do.
did you set up .xinitrc to start the xfce session?

Offline

#6 2015-08-09 13:46:34

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

ooo wrote:

from that log file it looks like X started without issues, and then exited because it had nothing to do.
did you set up .xinitrc to start the xfce session?

the only thing I wrote inside .xinitrc is "exec $1", because on the web it showed that this was the solution to my previous error with SLiM... should I write what?

I'm searching in Arch Linux Wiki how to setup this file, and I'll see if it works. Thanks!

Last edited by sculy (2015-08-09 13:55:46)


Sorry for bad english or any ignorance

Offline

#7 2015-08-09 17:33:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Problem oppening graphical applications after suspend

That command says to run whatever was passed in on the command line after the startx command.  What DE do you want to run?

for example, you might try:

startx startxfce4


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2015-08-09 17:50:44

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

ewaller wrote:

That command says to run whatever was passed in on the command line after the startx command.  What DE do you want to run?

for example, you might try:

startx startxfce4

I'll try that right now, thanks!


Sorry for bad english or any ignorance

Offline

#9 2015-08-09 17:59:06

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

I tried both startx startxfce4 and startx xfce4, both just opened a little terminal window in the top corner left, nothing else.

Last edited by sculy (2015-08-09 17:59:58)


Sorry for bad english or any ignorance

Offline

#10 2015-08-10 12:35:32

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

Ok people, I don't know how, but it's not happening anymore. What I did:

I did the following, replacing the .xinitrc file I had:

$ cp /etc/X11/xinit/xinitrc ~/.xinitrc

Then, I commented some lines (because they were calling a file that doesn't exist) and the last line I replaced it with "exec $1". I also noticed that the .xinitrc file I had I couldn't edit because I created it with root, so I made one with my current user.

My file is like that now:

#!/bin/sh

#userresources=$HOME/.Xresources
#usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

#if [ -f "$userresources" ]; then
    #xrdb -merge "$userresources"
#fi

#if [ -f "$usermodmap" ]; then
    #xmodmap "$usermodmap"
#fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xscreensaver &
xsetroot -cursor_name left_ptr &
exec $1

After that I copy-paste this xinitrc file and placed it in /root (as root user). That's all I made, and now my problem is solved..

If someone is passing through a similar problem, this wiki article about the xinitrc can be helpful: Xinitrc at Arch Wiki

Thanks!

EDIT

Ok, didn't solved, it happens again after suspend, but this time didn't happens ALL the time... I'll do some more tests using this and forcing it to see the circumstances...

EDIT 2

I think I did something to this situation not happen in that session, because now I have rebooted the system and it is happening...

Last edited by sculy (2015-08-10 13:58:08)


Sorry for bad english or any ignorance

Offline

#11 2015-09-04 13:38:42

newke
Member
Registered: 2015-09-04
Posts: 1

Re: Problem oppening graphical applications after suspend

I am experiencing same problem. I figured out, that after logging out and logging in, i can open applications. Even if there was a suspend.

Last edited by newke (2015-09-04 13:44:20)

Offline

#12 2015-09-04 16:19:44

loqs
Member
Registered: 2014-03-06
Posts: 17,386

Re: Problem oppening graphical applications after suspend

[sculy@localhost ~]$

Did you forget to set a valid hostname?

Offline

#13 2015-09-05 11:27:41

stef312
Member
From: Linu'x Land
Registered: 2015-09-05
Posts: 6

Re: Problem oppening graphical applications after suspend

Same here with plasma 5. I do have a valid hostname. Very embarrassing.

Offline

#14 2015-09-05 14:24:22

stef312
Member
From: Linu'x Land
Registered: 2015-09-05
Posts: 6

Re: Problem oppening graphical applications after suspend

sculy, newke, do you have intel graphics ? I have another PC which have nvidia and the exact same sofware configuration where there is no problem..

Offline

#15 2015-09-05 21:58:03

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

loqs wrote:
[sculy@localhost ~]$

Did you forget to set a valid hostname?

I thought it wouldn't be a problem to just leave localhost tongue

stef312 wrote:

sculy, newke, do you have intel graphics ? I have another PC which have nvidia and the exact same sofware configuration where there is no problem..

Yep, intel graphics... using the mesa drivers


Sorry for bad english or any ignorance

Offline

#16 2015-09-05 21:59:48

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

The window manager makes no difference, this happens using XFCE, KDE 5 Plasma, and Gnome Shell...

Last edited by sculy (2015-09-06 17:48:33)


Sorry for bad english or any ignorance

Offline

#17 2015-09-06 19:05:00

stef312
Member
From: Linu'x Land
Registered: 2015-09-05
Posts: 6

Re: Problem oppening graphical applications after suspend

Downgrading xf86-video-intel does not fix the problem. I'll try downgrading linux-lts.

Offline

#18 2015-09-07 17:22:00

stef312
Member
From: Linu'x Land
Registered: 2015-09-05
Posts: 6

Re: Problem oppening graphical applications after suspend

OK, downgrading these packages apparently fixes the issue :
mesa 10.6.4-1
mesa-libgl 10.6.4-1
xf86-video-intel 1:2.99.917+364+gb24e758-1
linux-lts 3.14.49-1

Offline

#19 2015-09-07 18:19:56

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

stef312 wrote:

OK, downgrading these packages apparently fixes the issue :
mesa 10.6.4-1
mesa-libgl 10.6.4-1
xf86-video-intel 1:2.99.917+364+gb24e758-1
linux-lts 3.14.49-1

Downgrade them all fix it? I'll try it, then I'll tell you later if works for me, thanks a lot tongue


Sorry for bad english or any ignorance

Offline

#20 2015-09-07 18:48:30

sculy
Member
From: Brazil
Registered: 2015-08-03
Posts: 15
Website

Re: Problem oppening graphical applications after suspend

I have updated some packages in my system and WOW it's not happening anymore.... just # pacman -Syu and I can suspend my notebook and continue using it after the suspension.... maybe someone saw this topic, or they where already working on it, and updated because of this.... who knows tongue

Two of those packages were mesa and mesa-libgl.... I don't know if linux-lts was there, but xf86-video-intel wasn't...


Sorry for bad english or any ignorance

Offline

Board footer

Powered by FluxBB