Giter VIP home page Giter VIP logo

Comments (10)

Askannz avatar Askannz commented on May 20, 2024 3

It's merged. Going to add a few more fixes and features and then publish a new version.

from optimus-manager.

Askannz avatar Askannz commented on May 20, 2024 1

@kuba1909 Could you please test this branch ? https://github.com/Askannz/optimus-manager/tree/pre_post_exec

I made you a PKGBUILD : https://pastebin.com/XqtL7445

This fix works on my end and is a much much much better approach.

EDIT : Sorry, I created the branch but forgot to push to it 🤦‍♂️ It's good now.

from optimus-manager.

kuba1909 avatar kuba1909 commented on May 20, 2024 1

I built the package with your PKGBUILD, it works perfectly now. 😄

from optimus-manager.

NerosTie avatar NerosTie commented on May 20, 2024

Same bug: #3

from optimus-manager.

kuba1909 avatar kuba1909 commented on May 20, 2024

Same bug: #3

Actually it isn't. If you take a closer look at the systemd log, you can see that the script doesn't even recognize my lightdm setup. In contrast to #3.

from optimus-manager.

Askannz avatar Askannz commented on May 20, 2024

you can see that the script doesn't even recognize my lightdm setup.

What do you mean ? The log does mention
Nov 20 17:36:26 arch python[567]: Configuring LightDM

If you are referring to
Nov 20 17:35:59 arch python[567]: Error : Cannot find /usr/share/sddm/scripts/Xsetup
it's a bug that slipped in the latest release. Should not affect your problem.

Could you post the full log (with journalctl -u optimus-manager -b0) instead of the unit status ? There could be something happening early. In fact, it may be related to a similar bug I'm investigating on my setup.

Thank you for your patience ; I can't dedicate too much time to the project this week but I'm definitely working on it.

from optimus-manager.

Askannz avatar Askannz commented on May 20, 2024

Good news : I'm 90% sure to have found the source of the problem. And the problem is that I am an idiot.

I configured the optimus-manager systemd service to start before the login manager, so it can configure Xorg and kernel modules in advance. What I didn't realize is that it gives no guarantee that the daemon will have finished its job before the X has started.

So this leads to this weird race condition where sometimes the X server will use the autogenerated config, sometimes not. It may depend on your hardware and that's why I couldn't reproduce it. I can reproduce it now by adding an artificial delay to the daemon.

I have a fix in mind for that but it will have to wait for a bit.

from optimus-manager.

kuba1909 avatar kuba1909 commented on May 20, 2024

you can see that the script doesn't even recognize my lightdm setup.

What do you mean ? The log does mention
Nov 20 17:36:26 arch python[567]: Configuring LightDM

The log starting from Nov 20 17:36:26 is not related to --set-startup nvidia but --switch nvidia. Thanks for your support. I will try 812f3b9 soon. Btw, journalctl -u optimus-manager -b0 gives me the same log.

from optimus-manager.

Askannz avatar Askannz commented on May 20, 2024

The commit 812f3b9 was an attempt at fixing the problem, but it's not really functional yet (hence why it's in a separate branch). I got a better idea that's more in line with the philosophy of systemd, I'll try to implement it asap.

from optimus-manager.

Askannz avatar Askannz commented on May 20, 2024

Great ! Gonna merge it then.

from optimus-manager.

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.