On Tue, 2010-12-07 at 11:11 +0000, [email protected] wrote: > this process list in my chroot:
I would encourage you again to look at this tutorial: http://wiki.meego.com/SDK/Docs/1.1/MeeGo_SDK_with_Xephyr In particular, this section explains how to set the DISPLAY variable for an application you are running from the chroot: http://wiki.meego.com/SDK/Docs/1.1/MeeGo_SDK_with_Xephyr#Application_development And this section explains how to set the DISPLAY variable if you are running an application from Qt Creator and want it to display in Xephyr: http://wiki.meego.com/SDK/Docs/1.1/MeeGo_SDK_with_Xephyr#Developing_with_Qt_Creator_from_the_chroot I feel pretty sure that setting the DISPLAY incorrectly is the root cause of your issue. Can I also just check that a Xephyr window is visible for you? Even if your application is not running inside it, you should see some kind of empty window with a white background. If not, Xephyr is not running correctly. Yours, Elliot > > r...@meego-handset-sdk:~# ps -u > Warning: bad syntax, perhaps a bogus '-'? > See /usr/share/doc/procps-3.2.8/FAQ > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME > COMMAND > root 1370 0.0 0.0 1960 388 tty2 Ss+ 15:55 > 0:00 /sbin/mingetty /dev/tty2 > root 1372 0.0 0.0 1960 388 tty3 Ss+ 15:55 > 0:00 /sbin/mingetty /dev/tty3 > root 1374 0.0 0.0 1960 388 tty4 Ss+ 15:55 > 0:00 /sbin/mingetty /dev/tty4 > root 1378 0.0 0.0 1960 388 tty5 Ss+ 15:55 > 0:00 /sbin/mingetty /dev/tty5 > root 1380 0.0 0.0 1960 388 tty6 Ss+ 15:55 > 0:00 /sbin/mingetty /dev/tty6 > root 1450 0.8 2.2 59016 22936 tty1 Ss+ 15:55 > 1:36 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gd > root 2919 0.0 0.2 7176 2100 pts/0 S 16:11 0:00 su > root 2934 0.0 0.1 5244 1552 pts/0 S 16:11 0:00 bash > root 3553 0.0 0.1 5052 1152 pts/0 S 16:13 > 0:00 /bin/sh ./meego-sdk-chroot chroot/ > root 3572 0.0 0.1 5344 1296 pts/0 S+ 16:13 > 0:00 /bin/bash -i > root 3587 0.0 0.0 5180 900 pts/0 S 16:14 > 0:00 /bin/sh /usr/bin/startmeego > root 3588 0.0 0.0 5180 936 pts/0 S 16:14 > 0:00 /bin/sh /usr/bin/startmeego-debug-handset > root 3590 0.2 2.6 39516 27312 pts/0 S 16:14 0:24 > Xephyr :2 -screen 864x480 -host-cursor -ac -notfp //Xephyr2 default > DISPLAY=:2 > root 3603 0.0 0.9 86700 9172 pts/0 Sl 16:14 0:03 > mcompositor > root 3608 0.0 0.1 48164 1344 pts/0 S 16:14 > 0:00 /usr/bin/applauncherd.bin > root 3613 0.0 0.1 17816 1376 pts/0 S 16:14 0:00 > corewatcher-applet > root 3618 0.0 1.1 113312 11864 pts/0 Sl 16:14 > 0:00 /usr/bin/mdecorator -remote-theme > root 3623 0.0 0.6 90404 6612 pts/0 Sl 16:14 > 0:00 /usr/bin/meego-im-uiserver -remote-theme > root 3628 0.0 0.2 23372 2292 pts/0 S 16:14 > 0:00 /usr/bin/meegofeedbackd > root 3633 0.0 1.3 170824 13952 pts/0 Sl 16:14 > 0:04 /usr/bin/duihome --desktop -remote-theme > root 3638 0.0 1.2 297160 12284 pts/0 Sl 16:14 > 0:00 /usr/bin/sysuid -remote-theme > root 3643 0.0 0.1 42284 1996 pts/0 Sl 16:14 > 0:00 /usr/bin/messageserver > root 3648 0.0 0.1 28512 2020 pts/0 Sl 16:14 > 0:00 /usr/bin/msyncd > root 3653 0.0 0.9 66436 9740 pts/0 S 16:14 > 0:00 /usr/bin/mthemedaemon > root 3673 0.0 0.2 59564 2084 pts/0 S 16:14 0:00 > phonesim -p 12345 /usr/share/phonesim/default.xml > root 3676 0.0 0.2 43324 2536 pts/0 SNl 16:14 > 0:00 /usr/libexec/tracker-miner-fs > root 3837 0.0 0.0 0 0 pts/0 Z 16:14 0:00 > [messageserver] <defunct> > root 6533 0.0 0.2 7176 2492 pts/8 S 17:18 0:00 su > root 6539 0.0 0.1 5244 1788 pts/8 S+ 17:18 0:00 bash > root 6616 0.0 0.1 5240 1692 pts/6 Ss+ 17:19 0:00 -bash > root 6888 0.0 0.1 5240 1724 pts/9 Ss 17:30 0:00 -bash > root 8298 0.0 0.1 3160 1540 pts/7 Ss 19:06 0:00 -bash > root 8339 2.9 2.5 103680 26032 pts/7 Sl+ 19:06 > 0:00 /usr/local/bin/untitled2 //this may test app > root 8347 0.0 0.1 4820 1032 pts/9 R+ 19:06 0:00 ps -u > > > > but app "untitled2" only show in host desktop. > > > > > > > /*******************************************************/ > Email: [email protected] http://www.byd.com > /*******************************************************/ > ----- Original Message ----- > From: Chen, Zhang Z > To: [email protected] ; [email protected] ; > [email protected] > Sent: Tuesday, December 07, 2010 5:31 PM > Subject: RE: [MeeGo-dev] New idea about Meego SDK with Xephyr > > > Next version of meego-sdk-qt-creator can fix this problem by > not hard coding DISPLAY. The current workaround should be > that you set the DISPLAY env variable to DISPLAY=:2.0 in your > application … Would you please try it to see if it works? > > > > > > > > From: [email protected] [mailto:[email protected]] > Sent: Tuesday, December 07, 2010 5:08 PM > To: Chen, Zhang Z; [email protected]; [email protected] > Subject: Re: [MeeGo-dev] New idea about Meego SDK with Xephyr > > > > > Xephyr’s DISPLAY=:0 is ok, but In Xephyr's runing MeeGo OS > windows default DISPLAY=:2.0 ,cannot change. > > > > > > /*******************************************************/ > Email: [email protected] http://www.byd.com > /*******************************************************/ > > > ----- Original Message ----- > > > From: Chen, Zhang Z > > > To: [email protected] ; [email protected] ; > [email protected] > > > Sent: Tuesday, December 07, 2010 4:32 PM > > > Subject: RE: [MeeGo-dev] New idea about Meego SDK with > Xephyr > > > > > > No. QtCreator sets DISPLAY=:0 in its code. So the > application will always been displayed in the host, > unless you change the DISPLAY of the host desktop and > make Xephyr’s DISPLAY:=0 > > > > From: [email protected] > [mailto:[email protected]] > Sent: Tuesday, December 07, 2010 3:11 PM > To: Chen, Zhang Z; [email protected]; > [email protected] > Subject: Re: [MeeGo-dev] New idea about Meego SDK with > Xephyr > > > > > > > > yes, QtCreator sets DISPLAY=:2.0 > > > > > > chroot env as Xephyr use DISPLAY=:2.0 too. > > > > > > > > > /*******************************************************/ > Email: [email protected] http://www.byd.com > /*******************************************************/ > > > ----- Original Message ----- > > > From: Chen, Zhang Z > > > To: [email protected] ; > [email protected] ; [email protected] > > > Sent: Tuesday, December 07, 2010 3:00 PM > > > Subject: RE: [MeeGo-dev] New idea about Meego > SDK with Xephyr > > > > > > QtCreator sets DISPLAY=:0 before executing the > application. That might be the reason why it > displays in the chroot env as Xephyr use > display :2 ? > > > > From: [email protected] > [mailto:[email protected]] > Sent: Tuesday, December 07, 2010 2:42 PM > To: Chen, Zhang Z; [email protected]; > [email protected] > Subject: Re: [MeeGo-dev] New idea about Meego > SDK with Xephyr > > > > > [...@localhost mnt]$ sudo /etc/init.d/sshd > stop (important) command already stop host > sshd. > > > > > > Now ,QtCreator can connection Xephyr,but > application UI can't show Xephyr, it's show in > host desktop, > > > > > > i try kill host's sshd ,mybey happens > something. > > > > > > > > > > > > > /*******************************************************/ > Email: [email protected] http://www.byd.com > > /*******************************************************/ > > > ----- Original Message ----- > > > From: Chen, Zhang Z > > > To: [email protected] ; > [email protected] ; > [email protected] ; > [email protected] > > > Sent: Tuesday, December 07, 2010 2:22 > PM > > > Subject: RE: [MeeGo-dev] New idea > about Meego SDK with Xephyr > > > > > > It’s an interesting idea. But your > QtCreator configuration just connect > to the host machine, not the chroot > environment. If you kill sshd in your > host and start it in the chroot > environment, the application UI may > come up in Xephyr. > > > > > > From: [email protected] > [mailto:[email protected]] > On Behalf Of [email protected] > Sent: Tuesday, December 07, 2010 1:14 > PM > To: [email protected]; > [email protected]; > [email protected] > Subject: [MeeGo-dev] New idea about > Meego SDK with Xephyr > > > > > Because performance of MeeGo OS in > QEMU is slow,Animation and screen > changes is slow , need VT . and There > are not many devices runs MeeGo OS. > > > > > > so, for easy, i hava a new idea is > mixed QT-Creator and > Xephyr. Qt-Creator and Xephyr both are > independence running on linux > host,Xehpyr is seen as what > QEMU,Detailed steps,see the following: > > > > > > 1,installing Meego-sdk for linux > > > quote: > > > > http://wiki.meego.com/MeeGo_SDK_with_ > > > 2,Xephyr > > > [...@localhost mnt]$ sudo mount -o > loop,offset=512 > /usr/lib/madde/linux-i686/runtimes/meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime/ > /mnt/chroot/ > > > [...@localhost mnt]$ > sudo /etc/init.d/ssd stop (important) > > > [...@localhost mnt]$ > sudo ./meego-sdk-chroot chroot/ > > > > r...@meego-handset-sdk:/# /etc/init.d/sshd > start > > > > > > 2,setup QT-creator > > > > > > see,attach:Screenshot-Options.png > > > > > > and click test button,it's ok. > > > > > > 3,debuging with Qt Creator > > > > > > quote: > > > > > http://wiki.meego.com/SDK/Docs/1.1/Debugging_with_Qt_Creator > > > 4,show interface in MeeGo > > > > > > :> Now there is a problem, can't > show interface in MeeGo ,only show on > host desktop. > > > > > > > > > > > > hope someone can help me!! > > > > > > > > > > /*******************************************************/ > Email: [email protected] > http://www.byd.com > > /*******************************************************/ > > > > > Powered by BYD Security Gateway. > > > Powered by BYD Security Gateway. > > > Powered by BYD Security Gateway. > > Powered by BYD Security Gateway. -- Elliot Smith Intel Open Source Technology Centre --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
