Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Sway On RaspberryPi5 Help

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
Johnson_YHX
n00b
n00b
Posts: 2
Joined: Mon Apr 01, 2024 1:41 am
Location: China
Contact:
Contact Johnson_YHX
Website

Sway On RaspberryPi5 Help

  • Quote

Post by Johnson_YHX » Mon Apr 01, 2024 1:56 am

I installed gentoo on my raspberypi5 followed this guide https://wiki.gentoo.org/wiki/How_to_ins ... berry_Pi_5, and everything look like nice, but I found that I couldn't launch swaywm(wayland).
When I use

Code: Select all

dbus-run-session sway
on tty1, I got the error message

Code: Select all

Failed to open any DRM device
and

Code: Select all

unable to create backend
.
By the way, my x11-environment looks like good, and I can launch dwm with `startx`, So, please help me see how to solve it, thank you very much!

here is my /boot/config.txt

Code: Select all

# have a properly sized image
disable_overscan=1

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Run as fast as firmware / board allows
arm_boost = 1

# LED
dtparam=eth_led0=4
dtparam=eth_led1=4
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# I2C
# dtparam=i2c_arm=on

# SPI
# dtparam=spi=on

[all]
disable_splash=1
and my /boot/cmdline.txt

Code: Select all

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 rootwait
and I have edited the config file `/etc/X11/xorg.conf.d/99-vc4.conf`
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Apr 01, 2024 4:35 pm

Johnson_YHX,

Welcome to Gentoo.

I have

Code: Select all

# Enable DRM VC4 V3D driver -pi5 for the Pi5
dtoverlay=vc4-kms-v3d-pi5
Notice the -pi5 on the end. Hopefully the automatics get that right anyway.

Disable

Code: Select all

arm_boost = 1 
until it works.
That's overclocking which brings its own problems.

Wayland does no use Xorg, so /etc/X11/xorg.conf.d/99-vc4.conf will not be consulted. Rather, wayland is an alternative to Xorg.

Post the command and complete output of

Code: Select all

dbus-run-session sway
See the Wayland wiki page too.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Johnson_YHX
n00b
n00b
Posts: 2
Joined: Mon Apr 01, 2024 1:41 am
Location: China
Contact:
Contact Johnson_YHX
Website

  • Quote

Post by Johnson_YHX » Tue Apr 02, 2024 7:30 am

Finally I solved this problem, I reinstalled the package `wlroots` with USE `drm`

Code: Select all

gui-libs/wlroots-0.17.2::gentoo was built with the following:
USE="X drm libinput session vulkan -liftoff -tinywl -x11-backend -xcb-errors"
then swaywm worked on my pi. Thanks for your reply!
Top
carfentanyl
n00b
n00b
Posts: 8
Joined: Thu Dec 28, 2023 1:26 pm

wlroots drm

  • Quote

Post by carfentanyl » Tue Apr 09, 2024 8:20 am

That worked for me too!
Top
JungerBoyo
n00b
n00b
Posts: 5
Joined: Wed May 01, 2024 7:02 pm

  • Quote

Post by JungerBoyo » Wed May 01, 2024 8:01 pm

Hello, I think your issue can be related to my issue.
UTC+2
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed May 01, 2024 9:24 pm

JungerBoyo wrote:Hello, I think your issue can be related to my issue.
Are you saying that the solution posted here worked for you or that it does not work for you?
Top
JungerBoyo
n00b
n00b
Posts: 5
Joined: Wed May 01, 2024 7:02 pm

  • Quote

Post by JungerBoyo » Fri May 03, 2024 3:36 pm

Hello @Hu It does work for me :). I just linked it as a potential cause of the issue.
UTC+2
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic