Comments (10)
It's merged. Going to add a few more fixes and features and then publish a new version.
from optimus-manager.
@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.
I built the package with your PKGBUILD, it works perfectly now. 😄
from optimus-manager.
Same bug: #3
from optimus-manager.
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.
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.
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.
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.
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.
Great ! Gonna merge it then.
from optimus-manager.
Related Issues (20)
- Not Switching HOT 2
- Failed to Switch, Won't Switch on Reboot, and Optimus Manager Qt Displaying Wrong Mode
- I can no longer log into my site. It is stuck on the loading page after I hit log in. HOT 1
- Can't run --cleanup unknown section [General]
- [Question] Is it possible to choose modes based on certain conditions?
- Wrong BusID assigned to the devices HOT 3
- Feature Request: Enable VRR for AMD based systems
- optimus-manager cannot be loaded HOT 17
- gdm-prime outdated HOT 2
- [Discussion] The state of optimus-manager HOT 11
- xorg files prevents the desktop environment from starting, for some reason. HOT 1
- Optimus manager not wroking properly HOT 9
- Cannot start optimus-manager-qt HOT 1
- laptop display stays black after switching to nvidia mode HOT 1
- black screen when switching to integrated HOT 1
- script before switching to new mode
- SDDM scaling no longer works
- When I switch to Nvidia, the built-in screen of the laptop stays black but I can still input my password or use monitors plugged to a video output HOT 2
- Hyprland
- Default Startup GPUs don't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optimus-manager.