Hi Przemek, Now I am getting the response for xrandr command.
What I need to do is call the command xrandr, after my simpleQt program, but before the calling of X window manager. So the contents in the .xinitrc should be as follows. #!/bin/bash oclock -geometry +1450+920 -bg ivory -fg blue & ./simpleQt & xrandr xrandr --output HDMI-0 --mode 800x600 --rate 60 exec /etc/alternatives/x-window-manager I think earlier I was calling xrandr before simpleQt. I don't remember correctly. Anyway it is coming now. The following comments in your earlier post helped me. "How are you running your qt program? Run xrandr in exactly the same way; it should work. " Thank You. Now I am facing another problem. I am using a video capture program and instead of simpleQt, now I am placing video capture program in .xinitrc as shown below. #!/bin/bash oclock -geometry +1450+920 -bg ivory -fg blue & ./video_capture & xrandr xrandr --output HDMI-0 --mode 800x600 --rate 60 exec /etc/alternatives/x-window-manager Video is displayed nicely. But there is one issue. A bottle with orange cap is appeared as one with blue cap. That means color displayed is not correct. This is true for Image capture also. An image which is displayed with original color in debian image viewer is displayed with wrong color, when I am displaying in this way. I don't think it is because of the programs that we used here. A frame which is captured with a program is showing correct color with debian image viewer, but with different color, when I am displaying with startx in BBB. Please provide some hints, where should I work on this issue? Thanks in advance for the help. Thanks & Regards, Sajeevan.K On Friday, February 24, 2017 at 4:14:55 PM UTC+5:30, Przemek Klosowski wrote: > > On Fri, Feb 24, 2017 at 2:49 AM, sajeevan k <saje...@laxven.com > <javascript:>> wrote: > > > > After I enter startx in the command prompt of my desktop (ie > > root@beaglebone:~#) the following messages appearing in the display of > my > > desktop. > > > > > > root@beaglebone:~# startx > > > > > > X.Org X Server 1.16.4 > .... > > (==) Using system config directory "/usr/share/X11/xorg.conf.d" > > xrandr: Failed to get size of gamma for output default > > Screen 0: minimum 1280 x 720, current 1280 x 720, maximum 1280 x 720 > > default connected 1280x720+0+0 0mm x 0mm > > 1280x720 0.00 > > So here you're running the xrandr command and getting output from it, > right? > > > > > Here the important point is that, now in my desktop terminal, I cannot > enter > > the xrandr command, because there is no command prompt ( ie # ) in the > > terminal. > > OK, so the terminal program is not set up right. I see that you're > using openbox, which is a window manager. > I am not familiar with it, so I don't know what do you do in openbox > to start programs, but you need to start a terminal emulator and > arrange for a shell to be run within that emulator. This is normally > done automatically, but clearly in your case something is choking up. > I don't know what terminal emulators are available on your system, but > you need something like xterm, gtkterm or lxterm. Perhaps > https://bbs.archlinux.org/viewtopic.php?id=155127 has some advice that > you could use. > > > Now as Przemek suggested, I included the command 'xrandr' in ~/.xinitrc, > > before ./simpleQt (name of my simple Qt application). > > > > But the execution of this command is observed in either desktop display > or > > display connected to BBB. > > See above---the execution of your xrandr outputs the information about > your screen. > > > > > > I am also giving the contents of .xinitrc file > > > > #!/bin/bash > > xrandr > > oclock -geometry +1450+920 -bg ivory -fg blue & > > ./q_msg_linux & > > exec openbox > > > > Please suggest a method, how I can run xrandr command in this situation. > > > > > > Thanks & Regards, > > Sajeevan.K > > > > > > On Sunday, February 19, 2017 at 6:39:08 AM UTC+5:30, Przemek Klosowski > > wrote: > >> > >> On Fri, Feb 17, 2017 at 6:45 AM, sajeevan k <saje...@laxven.com> > wrote: > >> > >> > Now I am able to open a window as per a small qt progam in the LCD > >> > display. > >> > > >> > But still xrandr is not showing the outputs. It is showing no > protocol > >> > specified. > >> > >> How are you running your qt program? Run xrandr in exactly the same > >> way; it should work. If it doesn't, describe how you set up your > >> console, show exactly the commands you're typing and their output > > > > -- > > For more options, visit http://beagleboard.org/discuss > > --- > > You received this message because you are subscribed to the Google > Groups > > "BeagleBoard" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to beagleboard...@googlegroups.com <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/beagleboard/755415f5-a880-499a-8da1-1792b164a827%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c9f9db45-e456-430d-84d1-6386c843290c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.