The officially official Devuan Forum!

You are not logged in.

#1 2020-08-21 06:40:50

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

E233: cannot open display

# gvim /usr/share/X11/xorg.conf.d/10-backlight.conf
E233: cannot open display
Press ENTER or type command to continue

vi will be open instead of gvim.

lxterminal, Beowulf.

It has appeared after ASCII --> Beowulf upgrade.

Anyone know please how to fix it ?

Offline

#2 2020-08-21 07:19:05

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,526  
Website

Re: E233: cannot open display

It's always best to enter the error message into a search engine:

https://www.linuxquestions.org/question … ll-751248/

EDIT: better approach:

SUDO_EDITOR=gvim sudoedit /usr/share/X11/xorg.conf.d/10-backlight.conf

^ Run that as your normal user (after installing the sudo package and enabling sudo for your user).

EDIT2: add this to ~/.xsessionrc (or /etc/environment) to set $SUDO_EDITOR permanently:

export SUDO_EDITOR=gvim

Then just use sudoedit to edit system files as your normal user.

Last edited by Head_on_a_Stick (2020-08-21 07:26:27)


Black Lives Matter

Offline

#3 2020-10-23 08:44:15

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

Head_on_a_Stick wrote:

It's always best to enter the error message into a search engine:

why do you think I didn't do that ?

Offline

#4 2020-10-23 14:54:36

golinux
Administrator
Registered: 2016-11-25
Posts: 2,171  

Re: E233: cannot open display

boycottsystemd wrote:
Head_on_a_Stick wrote:

It's always best to enter the error message into a search engine:

why do you think I didn't do that ?

Obviously, because you didn't say you did.  A proper answer requires a question containing all relevant information.  IOW, you get what you ask for.

Offline

#5 2020-11-28 15:06:10

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

I've read 10 previous threads here (in "Desktop and Multimedia"). There is no mention about using search engine before posting a question and no complaint about it from other users.

So why such criticism in this thread ?

Offline

#6 2020-11-28 15:16:07

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,526  
Website

Re: E233: cannot open display

It was intended as genuine advice rather than a criticism.


Black Lives Matter

Offline

#7 2020-11-28 16:07:37

Altoid
Member
Registered: 2017-05-07
Posts: 670  

Re: E233: cannot open display

Hello:

boycottsystemd wrote:

... no mention about using search engine before posting a question ...

Hmm ...
There is no mention of it because it is basic common sense to do so before posting a question here and in every other forum on the net.
The same way it is basic common sense to then do a search on the site/forum to see if anyone else has come across that problem before you did.
And maybe found (or not) a solution which may have worked for them but not for you.

............................................................................................................................................................................................
Whatever data you find before posting and then share with the forum when you post constitutes relevant information.
............................................................................................................................................................................................

No need to take it as a criticism, HoaS always gives genuinely good advice.

Lighten up ...
There's a deadly pandemic raging outside.

Cheers,

A.

Last edited by Altoid (2020-11-28 16:08:27)

Offline

#8 2020-12-09 09:23:53

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

Altoid wrote:

Hello:

boycottsystemd wrote:

... no mention about using search engine before posting a question ...

Hmm ...
There is no mention of it because it is basic common sense to do so before posting a question here and in every other forum on the net.
The same way it is basic common sense to then do a search on the site/forum to see if anyone else has come across that problem before you did.
And maybe found (or not) a solution which may have worked for them but not for you.

............................................................................................................................................................................................
Whatever data you find before posting and then share with the forum when you post constitutes relevant information.
............................................................................................................................................................................................

No need to take it as a criticism, HoaS always gives genuinely good advice.

Lighten up ...
There's a deadly pandemic raging outside.

Cheers,

A.

I've read 10 previous threads here (in "Desktop and Multimedia"). I was the only one (out of these 10 threads) who was told about making search before posting question. Do you have please explanation for it ?

Offline

#9 2020-12-09 10:21:07

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 542  

Re: E233: cannot open display

Yeah, I've read many threads here and still haven't worked out any regular formula for when "advice to search" is administered.

There obviosuly should be a constent rule for it as otherwise any poster might feel left out or fingered; especially those that do search first and don't get any credit for that, as well as those who don't search first and thus suffer an amount of face loss.

Online

#10 2020-12-09 11:24:29

Altoid
Member
Registered: 2017-05-07
Posts: 670  

Re: E233: cannot open display

boycottsystemd wrote:

Do you have please explanation for it ?

Hmm ...
Let's see.
Ah yes, found one you may like:

HoaS, golinux, our boss r.r and I are all members of a secret systemd cabal infiltrated here at Dev1 and, having nothing better to do, decided to gang up on you.
Nothing personal, just for business.
ie: fun and spite.

Altoid wrote:

Lighten up ...
There's a deadly pandemic raging outside.

Cheers,

A.

Last edited by Altoid (2020-12-09 11:25:49)

Offline

#11 2020-12-09 15:37:39

golinux
Administrator
Registered: 2016-11-25
Posts: 2,171  

Re: E233: cannot open display

It all comes down to chemistry/attitude and action/reaction. These elements cannot be quantified but are an organic part of human interaction. As I said a few posts up, you get what you ask for (even though you didn't think you asked for it).  Perhaps there might be a lesson there if it can be heard . . .

Offline

#12 2020-12-09 16:13:15

dice
Member
Registered: 2020-11-22
Posts: 346  
Website

Re: E233: cannot open display

I tried to use gvim as root to open /usr/share/X11/xorg.conf.d/10-backlight.conf i got the same error message. My guess is it is a limitation for running a gui application as root user, a safeguard built into gvim.

I could use gvim as sudo for the same command though.


Do good things.  Share.  Be helpful.  Be decent.  Live large.

Offline

#13 2020-12-09 22:47:46

bbatten
Member
Registered: 2017-07-02
Posts: 54  

Re: E233: cannot open display

@boycottsystemd: Assuming you're trying to use gvim while using X.org or equivalent, and are not running from a virtual console, you may have been bitten by the change in 'su -u' in beowulf. It no longer transfers your DISPLAY and XAUTHORITY environment variables to root.

You might try something like this alias:

alias tosu='su - -w DISPLAY,XAUTHORITY'

Then try gvim and see what happens.

Last edited by bbatten (2020-12-09 22:49:14)

Offline

#14 2021-01-22 07:49:57

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

bbatten wrote:

@boycottsystemd: Assuming you're trying to use gvim while using X.org or equivalent, and are not running from a virtual console, you may have been bitten by the change in 'su -u' in beowulf. It no longer transfers your DISPLAY and XAUTHORITY environment variables to root.

You might try something like this alias:

alias tosu='su - -w DISPLAY,XAUTHORITY'

Then try gvim and see what happens.

Thank you, it works so problem is solved. (X.org, LXTerminal)

Offline

#15 2021-01-22 08:14:20

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

golinux wrote:

It all comes down to chemistry/attitude and action/reaction. These elements cannot be quantified but are an organic part of human interaction.

I agree.


golinux wrote:

As I said a few posts up, you get what you ask for (even though you didn't think you asked for it).  Perhaps there might be a lesson there if it can be heard . . .

So lesson is

golinux wrote:

A proper answer requires a question containing all relevant information.

"This only apply to me. Less strict rule apply to the rest. "

?

Offline

#16 2021-01-22 08:19:51

boycottsystemd
Member
Registered: 2017-09-25
Posts: 101  

Re: E233: cannot open display

Head_on_a_Stick wrote:

It was intended as genuine advice rather than a criticism.

can you please tell why you did not give your genuine advice to other users ? (https://dev1galaxy.org/viewtopic.php?pid=25993#p25993)

Offline

#17 2021-01-22 10:48:16

F_Sauce
Member
From: Noreg
Registered: 2017-07-07
Posts: 68  

Re: E233: cannot open display

Please «boycottsystemd», be reasonable; I don't think there were any ill will in this case.
Good that you found a solution to you're problem, though.

Olav

Offline

#18 2021-01-22 19:06:07

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,526  
Website

Re: E233: cannot open display

boycottsystemd wrote:

can you please tell why you did not give your genuine advice to other users ?

Because I like you best :-X


Black Lives Matter

Offline

Board footer