Giter Site home page Giter Site logo

Comments (9)

fufexan avatar fufexan commented on June 12, 2024

I think this is up to the underlying compositor to configure. So if you use Sway to run ReGreet, you would have to search how to use Sway in clamshell mode. I suggest looking into kanshi for automatic display configuration based on rules you set.

from regreet.

AjiBuster499 avatar AjiBuster499 commented on June 12, 2024

I'm not entirely sure it's the compositor. I was using GTKGreet before switching to ReGreet, and it handled clamshell mode just fine. I have the snippet from Sway's wiki about running clamshell mode in the greeter-sway's config, which was there with GTKGreet too.
Snippet in question:

set $laptop eDP-1
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable

However, when I use ReGreet, if the laptop is closed the greeter does not switch to the external monitor, and in fact as far as I can tell the greeter isn't even responding; if try to log in "blind" following the normal keystrokes needed, the external monitor continues to be grey (indicating a failure to log in), and even if I open the laptop lid (and therefore enable laptop output), ReGreet won't appear on either screen. I have to reboot with the lid open until ReGreet loads in order to actually log in.
Hence why I think it's a ReGreet issue, and not a compositor issue. With GTKGreet the greeter would load on the external monitor when in clamshell mode without issue.

from regreet.

rharish101 avatar rharish101 commented on June 12, 2024

In that case, I'll have to investigate how GTKGreet handles this, since I was under the impression that it's just a simple GTK3 window, similar to ReGreet (which is GTK4).

from regreet.

rharish101 avatar rharish101 commented on June 12, 2024

@AjiBuster499 could you test ReGreet from PR #25? I don't have a proper multi-monitor setup, so I can't fully test this.

from regreet.

AjiBuster499 avatar AjiBuster499 commented on June 12, 2024

Hi, I just tested it. It did not work, the external monitor had the grey "secondary screen" background, and also based on the mouse being limited to just the external monitor, was the only one it recognized. However ReGreet did not show up on either display, and I had to reboot and keep the lid open to log in successfully like without the PR.

However, I think the PR did restrict it to one display like I said, because if I recall correctly, the main branch allows me to move my mouse between both screens, even though ReGreet doesn't appear on either of them.

EDIT: the main branch regreet-git in the AUR, also only recognizes one display when the lid is closed, but recognizes both when the lid is open, however ReGreet won't appear on either. So nothing has particularly changed.

from regreet.

rharish101 avatar rharish101 commented on June 12, 2024

@AjiBuster499 Could you try the newest commit on #25 and upload the logs (when running ReGreet with -l debug)?

from regreet.

AjiBuster499 avatar AjiBuster499 commented on June 12, 2024

Hello, sorry for the delay, it's finals season and I've been focused on other things.

Here is the log, I excluded the lines that weren't from the run with -l debug.

This time, ReGreet appeared on my external monitor after a short delay, although the UI was in light mode.

from regreet.

rharish101 avatar rharish101 commented on June 12, 2024

@AjiBuster499 Try the latest commit to see if everything works as intended.

from regreet.

AjiBuster499 avatar AjiBuster499 commented on June 12, 2024

It is in dark mode now, so I do believe everything is working.

from regreet.

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.