bbswitch unable to turn discrete graphics off
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad Bug Reporter |
New
|
Undecided
|
Unassigned |
Bug Description
Problem : Unable to turn discrete graphics off after running sudo tee /proc/acpi/bbswitch <<<OFF
when i run -
--> sudo tee /proc/acpi/bbswitch <<<OFF
Output: OFF
--> cat /proc/acpi/bbswitch
Output : 0000:01:00.0 ON
-------
Laptop: Acer Predator PH315-52
OS : UBUNTU 18.04.2 LTS
Nvidia Driver : 418.87
Kernel : 5.0.0-37-generic
Processors : Intel UHD 630 and Nvidia 1660 Ti
bbswitch version: 0.8-4ubuntu1
bumblebee version: 3.2.1+git201812
Installation instructions followed:
Mostly from here: https:/
-------
$ bash -c "$(curl -fsSL http://
$ sudo apt update
# Installed Cuda 10.1 .deb package from nvidia website and driver 418.87 was automatically
installed with the package(also prime-select was also installed with it)
$ sudo nano /etc/default/grub
# changed - GRUB_CMDLINE_
$ sudo add-apt-repository ppa:bumblebee/
$ sudo apt update
# Installed synaptics package manager and then through it installed bumblebee,
and primus(and all others which by default get installed with them like bbswitch)
$ sudo nano /etc/bumblebee/
# Changed 'Driver=' to 'Driver=nvidia'
Bridge=primus
KernelDriver=
PMMethod=bbswitch
LibraryPath=
XorgModulePat
XorgConfFile=
$ sudo nano /etc/modprobe.
# blacklist nvidia
blacklist nvidia-current
blacklist nvidia-
blacklist nvidia_drm
blacklist nvidia_uvm
blacklist nvidia_modeset
blacklist nvidiafb
blacklist i2c-nvidia-gpu
blacklist i2c-nvidia-gpu
blacklist nouveau
blacklist nvidia-current
$ sudo nano /etc/modules-
# added following:
i915
bbswitch
#selected intel as prime profile
#Restarted laptop
-------
Afer fresh restart:
$ grep bumblebeed /var/log/syslog
Output:
Predator bumblebeed[3353]: Received Terminated signal.
Predator bumblebeed[3353]: Unable to disable discrete card.
Predator bumblebeed[7981]: /usr/sbin/
Predator bumblebeed[7981]: Unable to disable discrete card.
$ lsmod | grep -i nouveau
Output: (Blank output) ## showing nouveau is not loaded
$ lsmod | grep nvidia
Output:
i2c_nvidia_gpu ## Handled it via "$ modprobe -r i2c_nvidia_gpu" but the problem still remains
## and the outputs of all too remains the same
## Blank output of "lsmod | grep nvidia" after unloading it using ablove command
$ cat /proc/acpi/bbswitch
Ouput:0000:01:00.0 ON
$ sudo tee /proc/acpi/bbswitch <<<OFF
Output:OFF
$ dmesg | grep bbswitch
[ 6.659422] bbswitch: loading out-of-tree module taints kernel.
[ 6.660407] bbswitch: module verification failed: signature and/or required key missing - tainting kernel
[ 6.661578] bbswitch: version 0.8
[ 6.662580] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 6.663575] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.
[ 6.665690] bbswitch: detected an Optimus _DSM function
[ 6.667873] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 18.818552] bbswitch: disabling discrete graphics
[ 114.697607] bbswitch: disabling discrete graphics
[ 114.697852] acpi_thermal_rel intel_pch_thermal wmi_bmof acer_wmi acer_wireless intel_lpss mac_hid soundcore sparse_keymap acpi_pad sch_fq_codel parport_pc ppdev lp parport bbswitch(OE) ip_tables x_tables autofs4 hid_generic usbhid i915 kvmgt vfio_mdev mdev vfio_iommu_type1 vfio kvm irqbypass i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm alx ahci mdio i2c_hid libahci i2c_nvidia_gpu hid wmi video pinctrl_cannonlake pinctrl_intel
[ 114.697897] bbswitch_
[ 114.697898] bbswitch_
[ 446.444365] bbswitch: disabling discrete graphics
$ cat /proc/acpi/bbswitch
Ouput:0000:01:00.0 ON #############This is the problem,it should display OFF
$ optirun --status
Output: Bumblebee status: Ready (). X inactive. Discrete video card is on.
$ sudo bumblebeed --debug
[ 5280.409506] [DEBUG]Found card: 01:00.0 (discrete)
[ 5280.409517] [DEBUG]Found card: 00:02.0 (integrated)
[ 5280.409822] [DEBUG]Reading file: /etc/bumblebee/
[ 5280.409966] [INFO]Configured driver: nvidia
[ 5280.409972] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[ 5280.410011] [DEBUG]bbswitch has been detected.
[ 5280.410016] [INFO]Switching method 'bbswitch' is available and will be used.
[ 5280.410019] [DEBUG]Active configuration:
[ 5280.410022] [DEBUG] bumblebeed config file: /etc/bumblebee/
[ 5280.410024] [DEBUG] X display: :8
[ 5280.410027] [DEBUG] LD_LIBRARY_PATH: /usr/lib/
[ 5280.410046] [DEBUG] Socket path: /var/run/
[ 5280.410048] [DEBUG] pidfile: /var/run/
[ 5280.410049] [DEBUG] xorg.conf file: /etc/bumblebee/
[ 5280.410051] [DEBUG] xorg.conf.d dir: /etc/bumblebee/
[ 5280.410053] [DEBUG] Xorg binary: /usr/lib/xorg/Xorg
[ 5280.410076] [DEBUG] ModulePath: /usr/lib/
[ 5280.410078] [DEBUG] GID name: bumblebee
[ 5280.410081] [DEBUG] Power method: bbswitch
[ 5280.410084] [DEBUG] Stop X on exit: 1
[ 5280.410088] [DEBUG] Driver: nvidia
[ 5280.410091] [DEBUG] Driver module: nvidia
[ 5280.410094] [DEBUG] Card shutdown state: 0
[ 5280.410099] [DEBUG]
[ 5280.410114] [ERROR]Daemon already running, pid 8219
-------
$ dmesg | grep -C8 bbswitch
Output : Attached ## shows video LNXVIDEO:00: Failed to change power
# syslog
#xorg.0.log
# Information about my laptop