页次: 1
之前使用了一段时间 prime,不知道做过什么更改,现在没法用 optimus-manager 切换双显卡,log 好像是说 bbswitch 无法正常载入。
[7] INFO: # Xorg pre-start hook
[7] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[7] INFO: Requested mode is: integrated
[834] INFO: Available modules: ['nouveau', 'bbswitch', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[834] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[841] INFO: Loading module bbswitch
[995] ERROR: Cannot load bbswitch. Continuing anyways. Error is: Error running modprobe for bbswitch: None
[996] INFO: Setting GPU power to OFF via bbswitch
[996] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 296, in _set_bbswitch_state
with open("/proc/acpi/bbswitch", "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/proc/acpi/bbswitch'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/optimus_manager/hooks/pre_xorg_start.py", line 51, in main
setup_kernel_state(config, prev_state, requested_mode)
File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 25, in setup_kernel_state
_nvidia_down(config)
File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 106, in _nvidia_down
nvidia_power_down(config, available_modules)
File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 60, in nvidia_power_down
_set_bbswitch_state("OFF")
File "/usr/lib/python3.9/site-packages/optimus_manager/kernel.py", line 299, in _set_bbswitch_state
raise KernelSetupError("Cannot open /proc/acpi/bbswitch") from e
optimus_manager.kernel.KernelSetupError: Cannot open /proc/acpi/bbswitch
[997] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[997] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20211009T222907', 'requested_mode': 'integrated'}
离线
bbswitch 加载失败。你手动加载(modprobe)试试?
离线
bbswitch 加载失败。你手动加载(modprobe)试试?
modprobe: ERROR: could not insert 'bbswitch': No such device
离线
咦,你的显卡去哪儿了?lspci 看看?
离线
咦,你的显卡去哪儿了?lspci 看看?
[hibanaw@hibanaw-arch ~]$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)
🤒
离线
页次: 1