element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MaaXBoard Hardware Design maaxboard mickledore branch chromium(chromium-ozone-wayland) service can NOT auto startup on wayland
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 323 subscribers
  • Views 290 views
  • Users 0 members are here
  • chromium
  • maaxboard
Related

maaxboard mickledore branch chromium(chromium-ozone-wayland) service can NOT auto startup on wayland

peterzhanggonewithwind
peterzhanggonewithwind 9 months ago

hi all,
maaxboard mickledore branch chromium(chromium-ozone-wayland) service can NOT auto startup on wayland!
I used zeus branch before, zeus branch worked. before, for zeus branch I posted the solution here
https://community.nxp.com/t5/i-MX-Processors/how-to-write-a-system-service-to-auto-startup-chromium-on/m-p/1275666
https://community.nxp.com/t5/i-MX-Processors/can-not-auto-startup-chromium-chromium-ozone-wayland/td-p/1241104

but I am using the same chromium.service file as below in mickledore branch , but not work
I login with ssh or serial debugging port with root user directly to run chromium --no-sandbox. it works! and I put the command chromium --no-sandbox in /etc/profile and login it works. but I put the command line in /etc/rc.local not work
anyway I need to auto startup, any solutions are OK for me, but not found

[Unit]
Description=launch chromium

[Service]
User=root
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR="/run/user/0"
Type=oneshot
ExecStart=/bin/sleep 9
ExecStart=/home/myuser/mouse.out &
ExecStart=/usr/bin/chromium --no-sandbox --disable-infobars --user-data-dir=/tmp/chromium --gpu-no-context-lost --enable-gpu-rasterization --start-fullscreen --kiosk --no-first-run --incognito http://localhost:3300/iframe.html &

[Install]
WantedBy=multi-user.target

I ran systemctl status chromium, the error oputput is
chromium.service - launch chromium
Loaded: loaded (/etc/systemd/system/chromium.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-11-21 23:01:07 UTC; 1min 11s ago
Process: 287 ExecStart=/bin/sleep 9 (code=exited, status=0/SUCCESS)
Process: 653 ExecStart=/home/myuser/mouse.out & (code=exited, status=0/SUCCESS)
Process: 719 ExecStart=/usr/bin/chromium --no-sandbox --disable-infobars --user-data-dir=/tmp/chromium --gpu-no-context-lost --enable-gpu-rasterization --start-fullscreen --kiosk --no-first-run --in)
Main PID: 719 (code=exited, status=1/FAILURE)

Nov 21 23:00:51 maaxboard systemd[1]: Starting launch chromium...
Nov 21 23:01:07 maaxboard chromium[723]: [719:719:1121/230107.465704:ERROR:wayland_connection.cc(209)] Failed to connect to Wayland display
Nov 21 23:01:07 maaxboard chromium[723]: [719:719:1121/230107.465925:ERROR:ozone_platform_wayland.cc(226)] Failed to initialize Wayland platform
Nov 21 23:01:07 maaxboard chromium[723]: [719:719:1121/230107.465963:ERROR:env.cc(225)] The platform failed to initialize. Exiting.
Nov 21 23:01:07 maaxboard systemd[1]: chromium.service: Main process exited, code=exited, status=1/FAILURE
Nov 21 23:01:07 maaxboard systemd[1]: chromium.service: Failed with result 'exit-code'.
Nov 21 23:01:07 maaxboard systemd[1]: Failed to start launch chromium.

any help?
Thank you very much.
I also posted issue here:
https://community.nxp.com/t5/i-MX-Processors/maaxboard-mickledore-branch-chromium-chromium-ozone-wayland/m-p/2000243#M231125

  • Sign in to reply
  • Cancel
  • peterzhanggonewithwind
    0 peterzhanggonewithwind 9 months ago

    I did before for zeus branch . it worked, but now mickledore NOT work, any help?

    here before posted: community.element14.com/.../can-not-auto-startup-chromium-chromium-ozone-wayland

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube