Skip to content
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

Running in raspberry pi using bookworm desktop #382

Open
ashah7 opened this issue Nov 21, 2024 · 2 comments
Open

Running in raspberry pi using bookworm desktop #382

ashah7 opened this issue Nov 21, 2024 · 2 comments

Comments

@ashah7
Copy link

ashah7 commented Nov 21, 2024

I'm trying to get cage using by starting a kiosk browser on boot
I'm just in the first instance trying to get it working
When I run the command

cage -- chromium --kiosk

I'm getting the error
00:00:00.000 [../cage.c:328] Unable to create the wlroots allocator

I've tried using
DISPLAY=wayland
WLR_BACKENDS=headless
WLR_BACKENDS=wayland1
WLR_BACKENDS=xwayland0
WLR_BACKENDS=xwayland1

but nothing works

I have two screen connected
I'm using the latest bookworm (Nov 2024) desktop build (and tried the lite build as well)
This version is using labwc, not sure if that makes a difference. On the labwc github they recommended cage for kiosk setups that how I found this


Screen 0: minimum 16 x 16, current 1504 x 600, maximum 32767 x 32767
XWAYLAND0 connected 1024x600+0+0 (normal left inverted right x axis y axis) 160mm x 80mm
   1024x600      59.85*+
   800x600       59.86
   640x480       59.38
   320x240       59.52
   720x480       59.71
   640x400       59.95
   320x200       58.96
   1024x576      59.90
   864x486       59.92
   720x400       59.55
   640x350       59.77
XWAYLAND1 connected 480x320+1024+0 (normal left inverted right x axis y axis) 73mm x 49mm
   480x320        0.00*+
   320x240        0.00
   320x200        0.00

@joggee-fr
Copy link
Collaborator

If Labwc is running, there is great change for Cage to be able to run.
Are you trying to run Cage as the primary Wayland compositor or as a nested one in Labwc?
Where your Cage binary comes from? Official Debian APT repositories or you compile it youself?

@ashah7
Copy link
Author

ashah7 commented Nov 22, 2024

If Labwc is running, there is great change for Cage to be able to run. Are you trying to run Cage as the primary Wayland compositor or as a nested one in Labwc? Where your Cage binary comes from? Official Debian APT repositories or you compile it youself?

I installed from the repo
sudo apt-get install cage

Not sure about the nested question, whatever bookworm desktop uses I suppose (sorry!)

Just tried using it from sway after installing it on bookworm lite

sudo apt-get -y install sway cage xwayland-protocols

After launching into the sway desktop I run

cage chromium

And I get the same error
Unable to create the wlroots allocator

pi@10000000240297d5:~ $ swaymsg -t get_outputs
Output HDMI-A-1 'Unknown CX070 0x00000001'
  Current mode: 1024x600 @ 59.993 Hz
  Position: 0,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 1
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    1024x600 @ 59.993 Hz
    1920x1080 @ 60.000 Hz
    1920x1080 @ 60.000 Hz
    1920x1080 @ 59.940 Hz
    1920x1080 @ 50.000 Hz
    1680x1050 @ 59.883 Hz
    1600x900 @ 60.000 Hz
    1280x1024 @ 60.020 Hz
    1440x900 @ 59.901 Hz
    1280x960 @ 60.000 Hz
    1360x768 @ 60.015 Hz
    1280x800 @ 59.910 Hz
    1280x720 @ 60.000 Hz
    1280x720 @ 60.000 Hz
    1280x720 @ 59.940 Hz
    1280x720 @ 50.000 Hz
    1280x720 @ 50.000 Hz
    1024x768 @ 60.004 Hz
    800x600 @ 60.317 Hz
    720x480 @ 60.000 Hz
    720x480 @ 59.940 Hz
    640x480 @ 60.000 Hz
    640x480 @ 59.940 Hz
    640x480 @ 59.940 Hz

Output SPI-1 '<Unknown> <Unknown> ' (focused)
  Current mode: 480x320 @ 0.007 Hz
  Position: 1024,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 2
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    480x320 @ 0.007 Hz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants