Giter Club home page Giter Club logo

Comments (4)

emersion avatar emersion commented on August 20, 2024

Ideally Cage would support a mode where it completely delegates output configuration to kanshi, instead of making decisions on its own.

from cage.

PWM-Master avatar PWM-Master commented on August 20, 2024

So there are no startup -options or -scripts that can be used now - and kanshi is the way to go for setting a resolution. Thanks for the info/clarification.

from cage.

emersion avatar emersion commented on August 20, 2024

You can use wlr-randr instead of kanshi if you don't need hotplug. However cage will still perform its own modeset before wlr-randr has the chance to change it to something else.

from cage.

embdur avatar embdur commented on August 20, 2024

What I ended up doing was calling wlr-randr before starting my (Java) app. Here is the ExecStart line from my systemd service file:

ExecStart=/usr/bin/cage -- sh -c 'wlr-randr --output HDMI-A-2 --mode 1920x1080@60 && java -jar /home/cage/PiKiosk-linux-arm64-1.0.0.jar'

More on this here: https://github.com/SergeySn/PiKiosk/?tab=readme-ov-file#run-the-sample-compose-app-with-cage -> 8. Optional: Force cage to use a specific resolution

from cage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.