IRC logs for #automotive for Wednesday, 2020-11-25

*** Newami has joined #automotive01:16
*** Newami has quit IRC01:22
*** Newami has joined #automotive03:08
*** adriano has joined #automotive05:32
*** leon-anavi has joined #automotive07:13
*** Net147 has quit IRC07:24
*** Net147 has joined #automotive07:26
*** Net147 has quit IRC07:30
*** Net147 has joined #automotive07:32
leon-anavihi07:44
*** Indra has quit IRC07:50
*** Net147 has quit IRC07:51
*** Net147 has joined #automotive07:52
cengiz_iohello07:55
*** Net147 has quit IRC08:00
*** Net147 has joined #automotive08:02
cengiz_iohow can I set the default tty of weston@display service to tty1? I've overridden some variables in my machine config, edited udev rules so that `display` user can access to `/dev/tty1` but agl-compositor still fails to set keyboard to K_OFF08:09
mvladcengiz_io: sed -ie 's/tty=7/tty=1/' /lib/systemd/system/weston@.service.d/weston-init.conf && systemctl daemon-reload. Assuming that SMACK rules allow you use tty1.08:12
cengiz_iomvlad thanks will look there. how can I check SMACK rules?08:13
cengiz_ioand by SMACK rules you mean udev?08:13
cengiz_iomvlad weston-init.conf already has tty108:14
*** vrubiolo has joined #automotive08:15
cengiz_iomvlad can it be due to getty is running on /dev/tty1?08:19
cengiz_iomaybe it's blocking it08:19
mvladby SMACK rules I mean SMACK labels/policy. No you should probably see in journalctl or /run/platform/display/compositor.log, something about permission denied.08:21
cengiz_iomvlad disabling getty@tty1.service did the trick08:25
cengiz_iomvlad yes I was seeing permission denied08:26
*** vrubiolo1 has joined #automotive08:37
*** vrubiolo has quit IRC08:37
*** vrubiolo1 is now known as vrubiolo08:37
*** jacobo has joined #automotive08:41
*** kooltux_ has joined #automotive08:47
adrianojust curious, weston is also working on raspberry pi, with hdmi display?08:53
cengiz_ioadriano well currently not displaying anything on imx6 solo09:06
cengiz_ioit is running but no image09:06
*** Net147 has quit IRC09:09
*** Net147 has joined #automotive09:10
*** Net147 has joined #automotive09:12
*** adriano has quit IRC09:23
mvladcengiz_io: guess you need some udev rules to keep the display permission on tty1, as those will change on reboot. But I assume you loose the ability to log in over it.09:41
mvladout of curiosity why on tty1?09:41
mvladcengiz_io: not displaying anything could mean quite a few reasons. Is the compositor running? Why does it say the compositor log?09:44
mvladcengiz_io: w/o a client shell running, like starting just the compositor you'll only get a black screen. Even so, the compositor is running and wait for a client shell to connect and then will start presenting.09:44
*** leon-anavi has quit IRC10:05
*** leon-anavi has joined #automotive10:05
cengiz_iomvlad first of all thank you for paying attention10:51
cengiz_iomuch appreciated10:51
cengiz_io1) I'm using serial console over ttymxcX which does not use any of the ttyX s10:52
cengiz_io2) my display (afaik) is on tty1 (don't know why)10:52
cengiz_io3) mvlad if you have time to look at it, this is my compositor log AFTER I manually chown /dev/tty1 (don't know why zz-tty udev rule is applied.) https://gist.github.com/cengizIO/0d70011bb8ce7138ecc7c2f605c5c50210:54
cengiz_io4) since it seems to start (after my manual intervention on tty1 permissions) I try to run glmark2-es2-wayland tool. tool starts but the display is blank. there are no errors from tool.10:56
*** maze-BUG has joined #automotive10:56
*** maze-BUG has left #automotive10:57
cengiz_io5) stopping the weston@display.service and running `weston-start` instead enables me to run glmark2-es2-wayland tool properly.10:59
cengiz_io6) mvlad  also my weston.ini background color does get printed on screen with `weston-start` but not with `weston@display.service`.10:59
cengiz_iomvlad I need to point out that I run the script with root user.11:04
cengiz_iomaybe I should just change my display to tty7 (if possible)11:05
dl9pfhttps://www.irccloud.com/pastebin/3gW8aCha/11:33
dl9pfso the demo platform needs 1080x1920 (aka rotated full hd) to work11:34
dl9pfnot sure the 800x480 will display something11:34
dl9pfthis seems to me like the EDID data is invalid11:35
dl9pfif the monitor does support 1920x1080 try a different cable11:36
mvladcengiz_io: a bit of context, my assumption, as I haven't check your links, is that weston-start would indeed start weston. While weston@display.service will start a weston-based compositor. We call it, agl-compositor. It uses libWeston, just like weston is also a user of libWeston. Difference is that plays a bit a better with the AGL requirements. weston by default will start desktop-shell,11:42
mvladwhile with agl-compositor we make use AFM (application framework) to do that for us. Analoguous to desktop-shell from weston, is homescreen application. The compositor will hold up presenting anything on the screen until homescreen tells it it is ready to start displaying. So, my assumption is the compositor starts but homescreen does not. Though it should (be restarted by AFM).11:42
mvladcengiz_io: Any other applications that is started, manually using afm, or by using the launcher application, should immediately start displaying.11:43
cengiz_iohm11:43
mvladcengiz_io: assuming that homescreen is also started.11:43
cengiz_iomvlad I won't be using homescreen. I will just start a qt application11:44
cengiz_ioand I didn't include agl-homescreen in my image. that explains why.11:45
mvladcengiz_io: right, so I'd suggest investigation/reading a bit of homescreen code to see how to tell the compositor that you're ready to start presenting. Another bit of context: in AGL, we customizing the compositor behaviour by using some private extensions. homescreen underneath has some bit of wayland code to handle that.11:46
cengiz_iothank you dl9pf for suggestion but my display is parallel rgb (no edid). it's a dummy tft and works fine with modetest.11:46
mvladmight worth reading https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/agl-compositor.git;a=blob_plain;f=doc/README.md;hb=refs/heads/master11:47
mvladalso, the bit of code in homescreen that will tell the compositor it is ready to start displaying: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps/homescreen.git;a=blob;f=homescreen/src/main.cpp;h=8c7bb22e1662a2c7134c525fc9006f5ca9d339fe;hb=refs/heads/master#l13811:50
cengiz_iothere's a protocol between them besides wayland packages huh?11:50
mvladnote that these are direct calls, w/o any library or wrapper on top.11:50
mvladthe compositor implements the server side, while homescrene does the client one. deskop-shell from weston is not any different just that it is started automatically by the compositor.11:52
cengiz_iogot it11:52
mvladfyi, https://gitlab.freedesktop.org/wayland/weston/-/blob/master/protocol/weston-desktop-shell.xml11:53
mvladfor AGL, it is https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/agl-compositor.git;a=blob_plain;f=protocol/agl-shell.xml;hb=refs/heads/master11:54
mvladcengiz_io: one more thing, wrt dl9pf amend, it would be more helpful for you to create your own (client) shell, as both homescreen and the applications are made for 1080p panels/displays.12:27
cengiz_iomvlad I have a qt app that acts as a wayland client12:58
cengiz_iowill now ask ui guys to adapt it13:01
smurraycengiz_io: you're using icefish, though, right?  That release does not have agl-compositor, it was introduced in jellyfish13:05
cengiz_ionope switched to jellyfish 10.0.013:06
smurraycengiz_io: okay.  I'd probably advise looking at the homescreen app as a starting point as mvlad suggested.13:09
cengiz_ioI'm currently reading its source13:09
cengiz_ioparticularly finding screen and notifying compositor parts13:09
cengiz_iosmurray I also read somewhere about creating a qt app with built in compositor13:10
cengiz_iowhich is beyond my skills13:10
smurraycengiz_io: there's an example in the cluster demo, that's what the qtcompositor stuff is13:10
cengiz_iosmurray can I ask one more thing?13:13
cengiz_iothere's an udev rule zz-tty.rules.13:13
cengiz_ioSUBSYSTEM=="tty", KERNEL=="tty7", OWNER="display", SECLABEL{smack}="*", TAG+="systemd", ENV{SYSTEMD_WANTS}="weston@display.service"13:13
cengiz_ioas far as my udev know-how goes, this is supposed to change owner of /dev/tty7 to display13:13
smurrayyep13:13
cengiz_iocrw--w----. 1 root root      4,  7 Jun 29 03:10 /dev/tty713:14
cengiz_iosomehow it doesn't13:14
cengiz_ioenabled debug logging of udev, will look into it13:14
cengiz_iosystemd-udevd[200]: tty7: Setting permissions /dev/tty7, uid=200, gid=5, mode=0620 (200 is the id of `display`) so udev rule is correct.13:21
cengiz_iogod, I might be cursed today :D13:21
smurrayI've no idea what that'd be happening, tbh.13:21
smurrayerr, why13:21
smurraydoes "systemctl status weston@display" show anything interesting?13:25
cengiz_iosmurray apart from the obvious /dev/tty7 permission error (which I resolve on runtime by chown), it's like this: https://gist.github.com/cengizIO/0d70011bb8ce7138ecc7c2f605c5c50213:27
cengiz_iotoo long to paste, sorry13:27
cengiz_iosmurray I think everything is fine except that my client app does not notify agl-compositor like homescreen13:28
smurraycengiz_io: okay13:28
cengiz_ioso it can't get any displays13:29
mvladcengiz_io: the compositor is prettty verbose when pending surfaces have been created. It appears no client is connecting at all. Might want to still add homescreen in your image, change the udev rules while you are at it. You can stop homescreen manually using afm-util and then start your own (client) shell, and other apps.13:37
*** jacobo has quit IRC13:56
*** vrubiolo has quit IRC16:18
*** Newami has joined #automotive16:55
*** AlisonChaiken has quit IRC16:55
*** Newami has quit IRC16:57
*** kooltux_ has quit IRC18:40
*** anjumkaiser has joined #automotive19:09
*** AlisonChaiken has joined #automotive20:15
*** vrubiolo has joined #automotive20:43
*** eduardas has joined #automotive22:04
*** leon-anavi has quit IRC22:17
*** anjumkaiser has quit IRC22:53

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!