Keyboard Shortcuts
Likes
Search
Gtk-WARNING: cannot open display (./sbitx)
|
Anthony Good
toggle quoted message
Show quoted text
|
Anthony Good
开云体育I see a problem. ?The directory and all the files in it are owned by root. ?You are user pi.This should fix that: cd ~? chown pi:pi ./sbitx cd ./sbitx chown -R pi:pi ./*? ( I’m always hesitant to do a recursive action like the one on that last line, but it should stay within the ~/sbitx directory and not hop out of there…. )
|
Anthony Good
toggle quoted message
Show quoted text
|
Yes, I did another build. Same error.
as to the other question no, I am not trying VPN. I use the cmd line to show the error. Invoking sBitx by clicking on the GUI icon similarly starts the process but the hangs. See photos. The leftward green icon is used to start sBitx and the rightward free icon shows the process which no longer proceeds. And yes, invoking sbitx as ./sbitx from the sbitx folder through ssh has worked in the past…exactly as doing the same from a terminal on the sBitx screen. I use ssh because it’s easier to read on my larger Windows screen. |
Anthony Good
开云体育Could you do:ps aux|grep X ps aux|grep lx (That second line is grep lima x-ray….) I’m curious to see what the command line is for the Xorg process, and is user pi owns the various lx* processes...
|
Anthony Good
开云体育sbitx outputs a few messages on stdout, but nothing of real significance (yet). ?The error you’re seeing is (obviously) from the Gtk library and it’s having problems with Xwindows. ?I’m just not sure what. ?It’s acting like it can’t connect to the Xwindows server. ?That can happen when one launches an X11 app in another tty, but you’re clearly launching within a terminal session within Xwindows. ?I’m stumped at the moment.
|
The odd thing is that it worked a week ago. Figuring it is a software problem I burned a new image to a new se card and did a new build so that sbitx is now v1.1 but the problem persists. Could it be a hardware issue? ?I’ve rechecked the 40 pin connector. It’s fine. Also the connection to the display board would seem to be good because the screen displays the GUI perfectly. I know very little about Gtk, so adding code to generate debugging messages isn’t very practical.?
|
Anthony Good
开云体育It’s not an sbitx hardware issue. ?It’s strictly within the Pi.The IT guy in me wants to tell you to deinstall Xwindows and reinstall, though that may be like throwing a hand grenade. If you run sbitx like this: cd ~/sbitx sudo ./sbitx …do you still get the error?
|
Hi John,
Your prior email stated, "on your Windows machine."? ? Is that a Windows10 or 11 OS?? If so, there has been a security update recently, and your Xwindow server on your PC may have been broken.? Try connecting to another Raspberry Pi if you have one. If it is a flavor of Linux or UNIX, ignore this email. 73 Evan AC9TU |
Anthony Good
开云体育Oh, I see the problem. ?Evan’s message made me go back and look at the pictures in the email thread again. ?You’re attempting to launch sbitx in an ssh session, correct? ?If so, that will not work unless you set an environmental variable to tell the app where to connect to the Xserver.You need to set a variable in your environment. ?I think it’s DISPLAY, but I can’t seem to get it to work here. ?I’m still trying…. ?Rest assured, this is the problem.
|
Anthony Good
开云体育I figured it out. ?(This applies if you’re attempting to launch sbitx via an SSH session):DISPLAY=:0.0 export DISPLAY cd ~/sbitx ./sbitx
|
开云体育John - it's difficult to troubleshoot your setup since it appears you are trying to do some unique things. It's odd that all the files in your sbitx directory were owned by root. There are other files in your home (pi) directory that will cause problems if they are given root ownership. Were you using git as root when you pulled the files from github?Are you able to start ANY programs from the command line that open a graphic window on the sbitx display, such as fldigi or xlogo? Something that may be useful to try is to enter the command xhost + on the command line, then try to run sbitx or another program such as fldigi or xlogo. You normally should not have to do that, but it seems that there's a permission issue with x programs getting access to the display. 73, Steve, N3SB? -------- Original message -------- From: "John Terrell, N6LN" <N6LN@...> Date: 9/30/22 3:32 PM (GMT-05:00) Subject: Re: [BITX20] Gtk-WARNING: cannot open display (./sbitx) |
开云体育John - I've been doing some additional research and reading through your previous posts. Do you have an x server running on your windows system? X based programs you run remotely via ssh need an x server to connect to, or you will get the error you are seeing.If your desktop PC was running linux, you could ssh into the sbitx radio with the command ssh -Y pi@... , and then your desktop running linux would be the x server. You can then start x programs like xlogo, geany, and sbitx, and a window would open on your desktop to allow you to use the program. Hey - I learned a cool trick while researching this issue! The -Y option with ssh is a really powerful and easy way to remotely control the sbitx. 73, Steve, N3SB? -------- Original message -------- From: Steve Beckman <n3sb@...> Date: 9/30/22 5:08 PM (GMT-05:00) Subject: Re: [BITX20] Gtk-WARNING: cannot open display (./sbitx) Are you able to start ANY programs from the command line that open a graphic window on the sbitx display, such as fldigi or xlogo? Something that may be useful to try is to enter the command xhost + on the command line, then try to run sbitx or another program such as fldigi or xlogo. You normally should not have to do that, but it seems that there's a permission issue with x programs getting access to the display. 73, Steve, N3SB? -------- Original message -------- From: "John Terrell, N6LN" <N6LN@...> Date: 9/30/22 3:32 PM (GMT-05:00) Subject: Re: [BITX20] Gtk-WARNING: cannot open display (./sbitx) |