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

set-startup has no effect #3

Closed
NerosTie opened this issue Nov 18, 2018 · 7 comments
Closed

set-startup has no effect #3

NerosTie opened this issue Nov 18, 2018 · 7 comments

Comments

@NerosTie
Copy link

NerosTie commented Nov 18, 2018

When I type sudo optimus-manager --set-startup nvidia then restart my laptop, I run on the Intel GPU.

I use SDDM / ArchLinux / KDE.

sudo systemctl status optimus-manager.service          
[sudo] Mot de passe de neros :         
● optimus-manager.service - Optimus Manager
   Loaded: loaded (/etc/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-11-18 02:10:49 CET; 8min ago
 Main PID: 1257 (python)
    Tasks: 1 (limit: 4915)
   Memory: 45.5M
   CGroup: /system.slice/optimus-manager.service
           └─1257 /usr/bin/python -u /usr/bin/optimus-manager-daemon --startup

nov. 18 02:10:49 Neros systemd[1]: Started Optimus Manager.
nov. 18 02:10:50 Neros python[1257]: Optimus Manager (Daemon) version 0.1
nov. 18 02:10:50 Neros python[1257]: Startup mode : nvidia
nov. 18 02:10:50 Neros python[1257]: Switching to Nvidia
nov. 18 02:10:50 Neros python[1257]: Loading Nvidia modules
nov. 18 02:10:51 Neros python[1257]: Configuring Xorg...
nov. 18 02:10:51 Neros python[1257]: Configuring login managers..
nov. 18 02:10:51 Neros python[1257]:         Configuring SDDM
nov. 18 02:10:51 Neros python[1257]:         Configuring LightDM
nov. 18 02:10:51 Neros python[1257]: Awaiting commands
 cat /etc/X11/xorg.conf.d/10-optimus-manager.conf 
Section "Module"
        Load "modesetting"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "02:00:0"
        Option "AllowEmptyInitialConfiguration"
        Option "Coolbits" "28"
        Option "DRI" "3"
EndSection
 cat /etc/sddm.conf.d/10-optimus-manager.conf
[X11]
DisplayCommand=/usr/bin/optimus-manager_Xsetup
@Askannz
Copy link
Owner

Askannz commented Nov 18, 2018

Everything looks fine in those logs, your computer is indeed starting in Nvidia mode.

However, I just found out that there's a problem between SDDM and optimus-manager. I would bet that your problem is the same as this other issue : #2

You can try the workarounds I have proposed in this issue while I investigate the problem.

@NerosTie
Copy link
Author

When I set sudo optimus-manager --set-startup nvidia then reboot, I'm on the Intel GPU but bbswitch tells me the Nvidia is ON.

(If I type sudo optimus-manager --set-startup intel, bbswitch tells me it's OFF, in that case, it's ok)

@Askannz
Copy link
Owner

Askannz commented Nov 18, 2018

You mention bbswitch but from the logs you have given, it seems optimus-manager is not configured to use bbswitch. Is it loaded in your system in some other way ? With a file in /etc/modules-load.d/ for instance ?

If that's the case, you should disable that, it's probably causing some conflict. If you really want power switching to be done via bbswitch, set it in the configuration file.

@NerosTie
Copy link
Author

Hm, the logs was before I switched to bbswitch. When optimus-manager is set to use Nouveau, bbswitch is completely disabled. But I didn't know how to check if the Nvidia card was ON or OFF with Nouveau...

@Askannz
Copy link
Owner

Askannz commented Nov 18, 2018

But I didn't know how to check if the Nvidia card was ON or OFF with Nouveau...

I actually don't know how to check that. But if nouveau is loaded, it supposedly powers down the card unless an external video output is in use.

So, back to your original issue, you said

When I type sudo optimus-manager --set-startup nvidia then restart my laptop, I run on the Intel GPU.

How do you check that you are running on the Intel GPU ?

@Askannz
Copy link
Owner

Askannz commented Nov 22, 2018

Could you please test the new v0.3 release and see if the problem is still there ?

@NerosTie
Copy link
Author

It works! 🎉 I can close this issue. Thanks!

Ann1kaB referenced this issue in Ann1kaB/optimus-manager Feb 15, 2020
mystchonky added a commit to mystchonky/optimus-manager that referenced this issue Aug 17, 2020
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