How to check if the system finds your adapters:
$sudo lspci | grep -i --color 'vga\|3d\|2d'
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
Check if the two video cards work:
$glxspheres
$optirun glxspheres
or in more details
$optirun -vv glxgears -info
To check if nvidia card is on or off?
$cat /proc/acpi/bbswitch
To turn it off
$sudo tee /proc/acpi/bbswitch <<<OFF
If it stays on:
$sudo rmmod nvidia ; sudo rmmod bbswitch
That should lead to
cat /proc/acpi/bbswitch
cat: /proc/acpi/bbswitch: no such file or directory
Then you load the driver:
$sudo modprobe bbswitch
and with
$sudo tee /proc/acpi/bbswitch <<<OFF
Now it should be OFF.
To install glxspheres and glxgears:
$sudo equo install mesa-utils
$__GL_SYNC_TO_VBLANK=0 vblank_mode=0 glxgears
To check if nvidia is running:
$nvidia-smi -a
Also to check the status of bumblebee (https://classicforum.manjaro.org/index.php?topic=2908.0):
$sudo systemctl enable bumblebeed.service
$sudo systemctl start bumblebeed.service
$sudo systemctl status bumblebeed.service
A cool way to use your NVIDIA if it's always on:
DRI_PRIME=1 glxgears
/it worked on my Maple with notable increase in calculation speed/
The file to edit for bumblebee to work properly:
$sudo nano /etc/bumblebee/xorg.conf.nvidia
How to restart nvidia if optirun gives the following error:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Do:
$su
$echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
$echo 1 > /sys/bus/pci/rescan
The directory where intel config resides:
/etc/X11/xorg.conf.d
Example bumblebee.conf can be found here.
For extreme cases, this is how to edit the acpi tables.
A kernel patch which I haven't tested (also another one?).
Also the best Bumblebee wiki is of course the arch one.
Backlight (https://superuser.com/questions/1244145/turn-off-keyboard-backlight-when-shutting-down-linux):
https://superuser.com/questions/1244145/turn-off-keyboard-backlight-when-shutting-down-linux
Setting bumblebeed.service to start after lightdm (here and here)
A useful bbswitch command source.
/etc/modprobe.d/50-bbswitch.conf
$sudo lspci | grep -i --color 'vga\|3d\|2d'
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
Check if the two video cards work:
$glxspheres
$optirun glxspheres
or in more details
$optirun -vv glxgears -info
To check if nvidia card is on or off?
$cat /proc/acpi/bbswitch
To turn it off
$sudo tee /proc/acpi/bbswitch <<<OFF
If it stays on:
$sudo rmmod nvidia ; sudo rmmod bbswitch
That should lead to
cat /proc/acpi/bbswitch
cat: /proc/acpi/bbswitch: no such file or directory
Then you load the driver:
$sudo modprobe bbswitch
and with
$sudo tee /proc/acpi/bbswitch <<<OFF
Now it should be OFF.
To install glxspheres and glxgears:
$sudo equo install mesa-utils
$__GL_SYNC_TO_VBLANK=0 vblank_mode=0 glxgears
To check if nvidia is running:
$nvidia-smi -a
Also to check the status of bumblebee (https://classicforum.manjaro.org/index.php?topic=2908.0):
$sudo systemctl enable bumblebeed.service
$sudo systemctl start bumblebeed.service
$sudo systemctl status bumblebeed.service
A cool way to use your NVIDIA if it's always on:
DRI_PRIME=1 glxgears
/it worked on my Maple with notable increase in calculation speed/
The file to edit for bumblebee to work properly:
$sudo nano /etc/bumblebee/xorg.conf.nvidia
How to restart nvidia if optirun gives the following error:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Do:
$su
$echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
$echo 1 > /sys/bus/pci/rescan
The directory where intel config resides:
/etc/X11/xorg.conf.d
Example bumblebee.conf can be found here.
For extreme cases, this is how to edit the acpi tables.
A kernel patch which I haven't tested (also another one?).
Also the best Bumblebee wiki is of course the arch one.
Backlight (https://superuser.com/questions/1244145/turn-off-keyboard-backlight-when-shutting-down-linux):
https://superuser.com/questions/1244145/turn-off-keyboard-backlight-when-shutting-down-linux
Setting bumblebeed.service to start after lightdm (here and here)
A useful bbswitch command source.
/etc/modprobe.d/50-bbswitch.conf
Code:
options bbswitch load_state=0 unload_state=1