View previous topic :: View next topic |
Author |
Message |
Johnson_YHX n00b
Joined: 01 Apr 2024 Posts: 2 Location: China
|
Posted: Mon Apr 01, 2024 1:56 am Post subject: Sway On RaspberryPi5 Help |
|
|
I installed gentoo on my raspberypi5 followed this guide https://wiki.gentoo.org/wiki/How_to_install_Gentoo_on_Raspberry_Pi_5, and everything look like nice, but I found that I couldn't launch swaywm(wayland).
When I use Code: | dbus-run-session sway | on tty1, I got the error message Code: | Failed to open any DRM device | and Code: | 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: | # 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: |
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` |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54649 Location: 56N 3W
|
Posted: Mon Apr 01, 2024 4:35 pm Post subject: |
|
|
Johnson_YHX,
Welcome to Gentoo.
I have Code: | # 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 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: | 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. |
|
Back to top |
|
|
Johnson_YHX n00b
Joined: 01 Apr 2024 Posts: 2 Location: China
|
Posted: Tue Apr 02, 2024 7:30 am Post subject: |
|
|
Finally I solved this problem, I reinstalled the package `wlroots` with USE `drm`
Code: |
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! |
|
Back to top |
|
|
carfentanyl n00b
Joined: 28 Dec 2023 Posts: 8
|
Posted: Tue Apr 09, 2024 8:20 am Post subject: wlroots drm |
|
|
That worked for me too! |
|
Back to top |
|
|
JungerBoyo n00b
Joined: 01 May 2024 Posts: 5
|
Posted: Wed May 01, 2024 8:01 pm Post subject: |
|
|
Hello, I think your issue can be related to my issue. _________________ UTC+2 |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22892
|
Posted: Wed May 01, 2024 9:24 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
JungerBoyo n00b
Joined: 01 May 2024 Posts: 5
|
Posted: Fri May 03, 2024 3:36 pm Post subject: |
|
|
Hello @Hu It does work for me . I just linked it as a potential cause of the issue. _________________ UTC+2 |
|
Back to top |
|
|
|