bbswitch unable to turn discrete graphics off

Bug #1857777 reported by Sahaj
6
This bug affects 1 person
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 Details--------------------------------
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+git20181231-103~bionicppa1

Installation instructions followed:
Mostly from here: https://gist.github.com/whizzzkid/37c0d365f1c7aa555885d102ec61c048

---------------------Exact instructions i followed----------------------
$ bash -c "$(curl -fsSL http://bit.ly/IGFWL-install)"

$ 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_LINUX_DEFAULT='pcie_port_pm=off acpi_backlight=none acpi_osi=Linux acpi_osi=! acpi_osi=\"Windows 2009\"'

$ sudo add-apt-repository ppa:bumblebee/testing

$ sudo apt update

# Installed synaptics package manager and then through it installed bumblebee,bumblebee-nvidia
  and primus(and all others which by default get installed with them like bbswitch)

$ sudo nano /etc/bumblebee/bumblebee.conf

# Changed 'Driver=' to 'Driver=nvidia'
  Bridge=primus
  KernelDriver=nvidia
  PMMethod=bbswitch
  LibraryPath=/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
  XorgModulePath=/usr/lib/x86_64-linux-gnu/xorg,/usr/lib/xorg/modules
  XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

$ sudo nano /etc/modprobe.d/bumblebee.conf

# blacklist nvidia
  blacklist nvidia-current
  blacklist nvidia-current-updates
  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-load.d/modules.conf

# added following:
  i915
  bbswitch

#selected intel as prime profile
#Restarted laptop

----------------------------Results-------------------------------------
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/bumblebeed started
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.PEG0.PEGP
[ 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_off+0xbb/0x230 [bbswitch]
[ 114.697898] bbswitch_proc_write+0xb5/0xcc [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/bumblebee.conf
[ 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/bumblebee.conf
[ 5280.410024] [DEBUG] X display: :8
[ 5280.410027] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[ 5280.410046] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 5280.410048] [DEBUG] pidfile: /var/run/bumblebeed.pid
[ 5280.410049] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[ 5280.410051] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[ 5280.410053] [DEBUG] Xorg binary: /usr/lib/xorg/Xorg
[ 5280.410076] [DEBUG] ModulePath: /usr/lib/x86_64-linux-gnu/xorg,/usr/lib/xorg/modules
[ 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]Configuration test passed.
[ 5280.410114] [ERROR]Daemon already running, pid 8219

--------------------------Attached Files-----------------------------
$ dmesg | grep -C8 bbswitch
Output : Attached ## shows video LNXVIDEO:00: Failed to change power
                     state to D3hot
# syslog
#xorg.0.log
# Information about my laptop

Sahaj (fsaaaaa)
description: updated
Sahaj (fsaaaaa)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.