This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: Can't open display

Part Number: AM3358

Hi,

I am working with a Beaglebone Black with Debian Jessie.

I am trying to interface with an LG 19M38H - B LCD display through its HDMI port.

1) When I am running the command

sudo apt-get install read-edid xserver-xorg-video-fbdev xserver-xorg-video-modesetting x11-xserver-utils

I am getting the following message

root@localhost:~# sudo apt-get install read-edid xserver-xorg-video-fbdev xserver-xorg-video-modesetting x11-xserver-utils
Reading package lists... Done
Building dependency tree        
Reading state information... Done
read-edid is already the newest version.
x11-xserver-utils is already the newest version.
xserver-xorg-video-fbdev is already the newest version.
xserver-xorg-video-modesetting is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 204 not upgraded.

2) Then I tried xrandr. It is giving the following message

root@localhost:~# xrandr
Can't open display

3) I did the following to solve the issue, after exploring in forums

a)defining environment variable DISPLAY

root@localhost:~# export DISPLAY=:0.0
root@localhost:~# xrandr
Can't open display :0.0
root@localhost:~#

b)defining environment variable XAUTHORITY

root@localhost:~# export XAUTHORITY=/root/.Xauthority
root@localhost:~# xrandr
No protocol specified
Can't open display :0.0
root@localhost:~#

c) used the command xhost local:root

root@localhost:~# xhost local:root
No protocol specified
xhost:  unable to open display ":0.0"
root@localhost:~# xrandr
Can't open display :0.0

d) used the command xhost +

root@localhost:~# xhost +
xhost:  unable to open display ":0.0"
root@localhost:~# xrandr
No protocol specified
Can't open display :0.0

e) Also  I changed the host name from beaglebone black to localhost to solve the issue.

But nothing is working. Thanks in advance for the help.

Thanks and Regards,

Sajeevan.K