-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x11 in raspberry pi 4 chromium can not display on weida hi-tech cool touch screen in Yotco project #467
Comments
do I need change some default config for x11 xorg in /etc/X11 ? |
I changed VC4DTBO ?= "vc4-fkms-v3d" to VC4DTBO ?= "vc4-kms-v3d" in conf/machine/raspberrypi4.conf. error is still there. it's similar to #453 [ 297.602249] i2c-bcm2835 fe805000.i2c: i2c transfer timed out [ 323.682272] [drm:drm_atomic_helper_wait_for_dependencies] ERROR [CONNECTOR:44:Composite-1] flip_done timed out |
Don't use |
thanks. |
Not yet. I wasn't able to run even |
Thank your reply so soon. |
In not official as in maintained by the foundation but it is the main upstream one (if not the only). |
Thank you very much for your reply so soon. |
I used the updated master branch to build MACHINE = "raspberrypi3" . but linux-raspberrypi-rt_4.4 works well . I used before. |
For now if you do not override thes are defaults too. |
/etc/X11/Xsession.d# cat 01logo.shbg it can show my copmay's logo at start up, but slow!raspberrypi4:/etc/X11/Xsession.d# cat 01logo.shbg |
my init startup script in /etc/init.d cat fti-touchscreen.sh export DISPLAY=:0 xset s off pushd /home/myuser sleep 7 |
@sakaki- I know you run X on rpi4-64 in gentoo. Have you ever seen |
@gitgonewithwind In order to make you happy I tested X as well. If you build master Here is a demo
Here is a sample log of running
I'm also closing this issue now. X11 is confirmed to work and is accelerated. |
Not that I recall. |
I use you local.conf, but 32bit(my old app code look like 32bit, not me to write it) glxgears not display kmscube -D /dev/dri/card1 works well! I am going to try 64bit. |
@gitgonewithwind Have you started X first? |
@agherzan |
There are many ways - please search online. But for the sake of this test just run |
@agherzan |
@agherzan my nodjs code works well. I can access http://localhost:3300/rpi.html (change localhost to 192.168.33.2 for me)from my host machines. so the error is not from my the other code (nodejs webserver) DISPLAY=:0 sudo -u myuser chromium --gpu-no-context-lost --enable-gpu-rasterization --start-fullscreen --kiosk --no-first-run --incognito http://localhost:3300/rpi.html > /de raspberrypi4:/home/myuser# DISPLAY=:0 sudo -u myuser chromium |
@agherzan |
That makes sense. I'll reopen it. |
Try to run chromium with |
not work with --disable-gpu. thanks I simply run : sudo -u myuser chromium in my old source code in pi3, works well. raspberrypi4:/home/myuser# sudo -u myuser chromium |
strace sudo -u myuser chromium output: |
my chromium version: chromium-x11-76.0.3809.100 (last week I pulled) |
I use following local.conf for pi4 64bit to generate the image. it works well to run sudo -u myuser chromium. I just found that it only display on left half screen. I checked full-screem, it's still half screen. local.conf 1 MACHINE ?= "raspberrypi4-64" |
pi4 64bit core-image-base works well. |
Close for no activity. We can reopen if we refresh on the current master. |
Description
Steps to reproduce the issue:
1.
my local.config: some codes are my application. the local.conf almost are same as the file in raspberry pi3
MACHINE = "raspberrypi4"
DISTRO ?= "nodistro"
PACKAGE_CLASSES ?= "package_rpm"
DL_DIR = "/opt/Downloads"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
display language support
CORE_IMAGE_EXTRA_INSTALL += "
source-han-sans-cn-fonts
source-han-sans-kr-fonts
ttf-arphic-uming
"
rpi
ENABLE_I2C = "1"
KERNEL_MODULE_AUTOLOAD += "i2c-dev"
ENABLE_SPI_BUS = "1"
ENABLE_UART = "1"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
touchscreen
WAVESHARE_1024X600_C_2_1 = "1"
PACKAGECONFIG_pn-xserver-nodm-init = "nocursor"
fti
CORE_IMAGE_EXTRA_INSTALL += "
bg-logo
fti-locator
fti-touchscreen
psplash-fortress
"
INHERIT += "extrausers"
ROOT_PASSWORD = "*****"
EXTRA_USERS_PARAMS = "usermod -P ${ROOT_PASSWORD} root;"
EXTRA_USERS_PARAMS += "useradd -P ${ROOT_PASSWORD} myuser;"
EXTRA_USERS_PARAMS += "usermod -G video myuser;"
#KERNEL_DEVICETREE_append = " overlays/vc4-fkms-v3d.dtbo"
rt
#PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi-rt"
#KERNEL_DEVICETREE_remove = "bcm2708-rpi-0-w.dtb"
base
IMAGE_FEATURES += "ssh-server-openssh package-management hwcodecs splash"
DISTRO_FEATURES_append = " pam"
CORE_IMAGE_EXTRA_INSTALL += "
packagegroup-core-full-cmdline
kernel-modules util-linux
bash bc cpio gawk tree rsync ldd vim nano
diffutils coreutils findutils iputils
trace-cmd i2c-tools e2fsprogs-resize2fs
"
gui/gl
IMAGE_FEATURES += "x11"
LICENSE_FLAGS_WHITELIST = "commercial"
MACHINE_FEATURES_append = " vc4graphics"
DISTRO_FEATURES_append = " opengl x11"
DISTRO_FEATURES_remove = "wayland"
PACKAGECONFIG_append_pn-mesa-gl = " gbm"
RDEPENDS_packagegroup-core-x11-utils_remove_pn-packagegroup-core-x11 = "xinput-calibrator"
CORE_IMAGE_EXTRA_INSTALL += "
packagegroup-core-x11
xf86-video-modesetting
xserver-xorg-extension-glx
xterm xsetroot openbox
fontconfig fontconfig-utils
chromium-x11
"
languages
CORE_IMAGE_EXTRA_INSTALL += "
packagegroup-core-lsb-perl
packagegroup-core-lsb-python
nodejs nodejs-npm
"
WARN_QA_append = " version-going-backwards"
ERROR_QA_remove = "version-going-backwards"
BB_DANGLINGAPPENDS_WARNONLY = "yes"
INHERIT += "rm_work"
INHERIT += "buildhistory"
INHERIT += "image-buildinfo"
#INHERIT += "distrodata"
BUILDHISTORY_COMMIT = "1"
BUILDHISTORY_PUSH_REPO = "origin"
PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES ?= "tools-debug tools-profile"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "
STOPTASKS,${TMPDIR},1G,100K
STOPTASKS,${DL_DIR},1G,100K
STOPTASKS,${SSTATE_DIR},1G,100K
STOPTASKS,/tmp,100M,100K
ABORT,${TMPDIR},100M,1K
ABORT,${DL_DIR},100M,1K
ABORT,${SSTATE_DIR},100M,1K
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
run : bitbake -c clean core-image-full-cmdline
.config I change to preempty. if I keep the old .config. the problem are same.
Describe the results you received:
my app(nodejs ) is running well.
chromium is running well.
but chromium not display on touchscreen
in dmesg, the kernel find the touchscreen
Describe the results you expected:
chromium need display in touchscreen
Additional information you deem important (e.g. issue happens only occasionally):
I change my config.txt to same as the raspberry pi 3. but issue is same.
config.txt
#dtparam=pwr_led_gpio=35
Enable SPI bus
dtparam=spi=on
Enable I2C
dtparam=i2c1=on
dtparam=i2c_arm=on
Enable UART
enable_uart=1
Enable VC4 Graphics
dtoverlay=vc4-kms-v3d,cma-256
Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch screen
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1
Additional details (revisions used, host distro, etc.):
The text was updated successfully, but these errors were encountered: