You are not logged in.
I am trying to use bbswitch for optimus-manager power managment, /etc/optimus-manager/optimus-manager.conf is as it is written in power managment guide
[optimus]
switching=bbswitch
pci_power_control=no
pci_remove=no
pci_reset=noafter this config adding and restarting optimus-manager service I get this
sudo systemctl status optimus-manager
[sudo] password for ararat:
● optimus-manager.service - Optimus Manager Commands Daemon
Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-03-09 10:42:33 +04; 1h 35min ago
Process: 11954 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/SUCCESS)
Process: 11955 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=1/FAILURE)
Main PID: 11963 (python3)
Tasks: 1 (limit: 19010)
Memory: 6.3M
CGroup: /system.slice/optimus-manager.service
└─11963 /usr/bin/python3 -u -m optimus_manager.daemon
Mar 09 10:42:33 arch python3[11955]: _set_bbswitch_state("OFF")
Mar 09 10:42:33 arch python3[11955]: File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 299, in _set_bbswitch_state
Mar 09 10:42:33 arch python3[11955]: raise KernelSetupError("Cannot open /proc/acpi/bbswitch") from e
Mar 09 10:42:33 arch python3[11955]: optimus_manager.kernel.KernelSetupError: Cannot open /proc/acpi/bbswitch
Mar 09 10:42:33 arch python3[11955]: [31] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
Mar 09 10:42:33 arch python3[11955]: [31] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20210309T104233', 'requested_mode': 'integrated'}
Mar 09 10:42:33 arch systemd[1]: Started Optimus Manager Commands Daemon.
Mar 09 10:42:33 arch python3[11963]: [1] INFO: # Commands daemon
Mar 09 10:42:33 arch python3[11963]: [1] INFO: Opening UNIX socket
Mar 09 10:42:33 arch python3[11963]: [1] INFO: Awaiting commandspay attention on seventh line's "code=exited,status=1/failure", So I can't use optimus-manager at all
optimus-manager --print-mode
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20210309T104233.log
Cannot execute command because of previous errors.in logfile the first error is
ERROR: Cannot load bbswitch. Continuing anyways. Error is: module bbswitch is not available for current kernel. Is the corresponding package installed ?so I tried to install and use bbswitch-dkms, but no result. Thanks for your help.
Offline
And which kernel are you on? bbswitch-dkms will only do anything if you also have the appropriate -headers package for your kernel installed.
Offline
And which kernel are you on? bbswitch-dkms will only do anything if you also have the appropriate -headers package for your kernel installed.
uname -r
5.10.16-arch1-1yes I've installed "linux-headers" before bbswitch-dkms
Offline
And the kernel-headers version? If you just did that today then you are doing partial upgrades and should make sure your system is up to date and reboot into the new kernel instead.
Last edited by V1del (2021-03-09 10:16:42)
Offline
And the kernel-headers version? If you just did that today then you are doing partial upgrades and should make sure your system is up to date and reboot into the new kernel instead.
I rebooted and my arch is stuck on kernel loading. I think that's because I forgot to get rid of yet useless bbswitch in optimus-manager.conf, so now linux don't know what graphics card to use. Am I right?
Offline
No. optimus-manager is a userspace tool, it will not inhibit the kernel.
Of course your diagnosis of the problem might be off. Can you boot the multi-user.target/nomodeset?
(2nd link in my signature…)
Offline
@callmer
I use optimus-switch and I suggest you use it as well. Because, just a few days ago I tried to ditch optimus-switch and use optimus-manager. I did not have bbswitch problems, it works, I can confirm
uname -a 16:12:29
Linux mb2 5.11.4-xanmod1-1 #1 SMP PREEMPT Mon, 08 Mar 2021 10:15:11 +0000 x86_64 GNU/Linux
I had other problems which just made me give up and go back to optimus-switch.
So as far as BBSWITCH not working, it worked for me. As far as getting optimus-manager working, keep in mind it is finicky. Optimus-switch is easier and it works like a charm.

Make sure bbswitch module is loaded, modprobe bbswitch (make sure you installed bbswitch-dkms from AUR).
But really man.. Give up with optimus-manager!!! LUL!
Last edited by u666sa (2021-03-09 13:19:42)
Offline
No. optimus-manager is a userspace tool, it will not inhibit the kernel.
Of course your diagnosis of the problem might be off. Can you boot the multi-user.target/nomodeset?
(2nd link in my signature…)
If I understood this wiki right, no, because I can't change something, even tty isn't loaded, it prints two lines and stucks, even consile blinking doesn't exist
Offline
@callmer
I use optimus-switch and I suggest you use it as well. Because, just a few days ago I tried to ditch optimus-switch and use optimus-manager. I did not have bbswitch problems, it works, I can confirm
uname -a 16:12:29
Linux mb2 5.11.4-xanmod1-1 #1 SMP PREEMPT Mon, 08 Mar 2021 10:15:11 +0000 x86_64 GNU/LinuxI had other problems which just made me give up and go back to optimus-switch.
So as far as BBSWITCH not working, it worked for me. As far as getting optimus-manager working, keep in mind it is finicky. Optimus-switch is easier and it works like a charm.
https://i.imgur.com/euTE5Rs.png
Make sure bbswitch module is loaded, modprobe bbswitch (make sure you installed bbswitch-dkms from AUR).
But really man.. Give up with optimus-manager!!! LUL!
Ok tnx dude, I'll use it after I recover my os
Offline
I don't know whether you understood it right because you didn't say what you did.
But if you really cannot boot the multi-user.target and/or nomodeset, you'll have to fix the installation offline (eg. from the install iso) because most likely something™ went wrong with the kernel/initramfs installation.
Offline
seth wrote:No. optimus-manager is a userspace tool, it will not inhibit the kernel.
Of course your diagnosis of the problem might be off. Can you boot the multi-user.target/nomodeset?
(2nd link in my signature…)If I understood this wiki right, no, because I can't change something, even tty isn't loaded, it prints two lines and stucks, even consile blinking doesn't exist
You're supposed to change the settings from your bootloader menu, so before linux gets started.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I don't know whether you understood it right because you didn't say what you did.
But if you really cannot boot the multi-user.target and/or nomodeset, you'll have to fix the installation offline (eg. from the install iso) because most likely something™ went wrong with the kernel/initramfs installation.
Ok now I can use nomodeset, what's then?
Offline
Fix your setup.
The only thing "broken" is your graphical.target, so undo the changes that you or optmus-manager made to the xorg configuration, blacklisted modules etc…
Offline