question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--set-startup won't work

See original GitHub issue

The command sudo optimus-manager --set-startup nvidia does not work for me. Switching manually with optimus-manager --switch nvidia works, though. I am using Arch Linux with kernel 4.19.2-arch1-1, nvidia-410.73-3, lightdm-1:1.28.0-1, xfce4 4.12.1-8 and optimus-manager-0.2-2.

$ cat /etc/X11/xorg.conf.d/10-optimus-manager.conf 
Section "Module"
	Load "modesetting"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "01:00:0"
	Option "AllowEmptyInitialConfiguration"
	Option "Coolbits" "28"
	Option "DRI" "3"
EndSection
$ cat /etc/lightdm/lightdm.conf.d/10-optimus-manager.conf 
[Seat:*]
display-setup-script=/usr/bin/optimus-manager_Xsetup
$ systemctl status optimus-manager.service
● optimus-manager.service - Optimus Manager
   Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-11-20 17:35:58 CET; 14min ago
 Main PID: 567 (python)
    Tasks: 1 (limit: 4915)
   Memory: 30.5M
   CGroup: /system.slice/optimus-manager.service
           └─567 /usr/bin/python -u /usr/bin/optimus-manager-daemon --startup

Nov 20 17:35:59 arch python[567]: Error : Cannot find /usr/share/sddm/scripts/Xsetup
Nov 20 17:35:59 arch python[567]: Awaiting commands
Nov 20 17:36:26 arch python[567]: Received command : nvidia
Nov 20 17:36:26 arch python[567]: Stopping login manager
Nov 20 17:36:26 arch python[567]: Switching to Nvidia
Nov 20 17:36:26 arch python[567]: Loading Nvidia modules
Nov 20 17:36:26 arch python[567]: Configuring Xorg...
Nov 20 17:36:26 arch python[567]: Configuring login managers..
Nov 20 17:36:26 arch python[567]:         Configuring LightDM
Nov 20 17:36:26 arch python[567]: Restarting login manager

As you can see, I switched the mode manually which shows up in the systemd status report. I also tried creating the configuration /etc/optimus-manager.conf with this content:

[optimus]
login_manager=lightdm

I thought the script couldn’t find out I am using lightdm, but this also didn’t work. X11 config’s are cleaned up, bumblebeed.service is disabled and the bbswitch module isn’t loaded.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Askannzcommented, Nov 22, 2018

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

1reaction
kuba1909commented, Nov 22, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Windows 10 Programs When They Fail to Launch ...
1. Check the Windows Startup List · Right-click the Start button and select Task Manager. · Open the Startup tab. · Check the...
Read more >
Windows 10 Startup Folder Not Working? 8 Troubleshooting ...
Check The Startup Manager In Task Manager · Press Ctrl + Shift + Esc to quickly open Task Manager. · Click on the...
Read more >
Program in Startup folder not starting on startup in Windows ...
2] Add the Program to Startup Folder · Open Run prompt (Win + R) · Type shell:common startup and press the Enter key...
Read more >
Windows 10 Startup programs not launching
Open the Task manager. Here's a tip: Press CTRL+Shift+ESC. · Click File > Run New Task · Make sure you have a check...
Read more >
FIX: Startup folder not working in Windows 10/11
What can I do when programs from Startup folder won't start? · 1: Check the Startup manager · 2: Reinstall the program ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found