bbswitch fails to turn off optimus card

Bug #984494 reported by Steven Howell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Bug Reporter
New
Undecided
Unassigned

Bug Description

I recently installed bumblebee to my ASUS K42Jc which has the NVIDIA Geforce 310M Optimus card. I have tested bumblebee and I am able to use optirun fine. My problem is bbswitch fails to turn off the card and I still only get projected 80mins of battery life (but really more like 40 mins). I tried what is suggested on https://github.com/Bumblebee-Project/bbswitch but get when I run
# tee /proc/acpi/bbswitch <<<OFF
using sudo, I get
$ dmesg |tail -1
bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF
so the driver is still loaded and I have not been able to figure out how to unload the driver. I have added bbswitch load_state=0 to /etc/modules and rebooted several times but the driver is still loaded.

Thank you for your help. Any more battery life would be amazing!

steve-K42Jc: tmp.YzAFoy0HvZ/>dmesg | grep -C 10 bbswitch:
1203-[ 14.889029] ACPI Warning: _BQC returned an invalid level (20110112/video-473)
1204-[ 14.889426] acpi device:4f: registered as cooling_device5
1205-[ 14.889785] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:02/input/input8
1206-[ 14.889871] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
1207-[ 14.890156] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
1208-[ 14.924307] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (13d3:5130)
1209-[ 14.931489] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input9
1210-[ 14.931572] usbcore: registered new interface driver uvcvideo
1211-[ 14.931574] USB Video Class driver (v1.0.0)
1212-[ 14.967101] lp: driver loaded but no devices found
1213:[ 15.271166] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
1214:[ 15.271179] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG1.GFX0
1215:[ 15.271330] bbswitch: detected an Optimus _DSM function
1216:[ 15.271338] bbswitch: disabling discrete graphics
1217:[ 15.271460] bbswitch: Result of Optimus _DSM call: 01000058
1218-[ 15.290715] pci 0000:01:00.0: Refused to change power state, currently in D0
1219-[ 15.414535] cfg80211: World regulatory domain updated:
1220-[ 15.414538] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
1221-[ 15.414540] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1222-[ 15.414542] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
1223-[ 15.414544] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
1224-[ 15.414545] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1225-[ 15.414547] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1226-[ 15.600591] pci 0000:01:00.0: power state changed by ACPI to D3
1227:[ 15.600599] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
1228-[ 15.691549] ath9k 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
1229-[ 15.691560] ath9k 0000:03:00.0: setting latency timer to 64
1230-[ 15.742600] ath: EEPROM regdomain: 0x60
1231-[ 15.742604] ath: EEPROM indicates we should expect a direct regpair map
1232-[ 15.742607] ath: Country alpha2 being used: 00
1233-[ 15.742608] ath: Regpair used: 0x60
1234-[ 15.742612] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
1235-[ 15.742614] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (N/A mBi, 2000 mBm)
1236-[ 15.742616] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory rule:
1237-[ 15.742617] cfg80211: 2402000 KHz - 2472000 KHz @ KHz), (N/A mBi, 2000 mBm)
--
1549-[10161.805690] cfg80211: Disabling freq 2472 MHz
1550-[10161.805693] cfg80211: Disabling freq 2484 MHz
1551-[10161.805702] cfg80211: Regulatory domain changed to country: US
1552-[10161.805705] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
1553-[10161.805709] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
1554-[10161.805713] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
1555-[10161.805717] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1556-[10161.805721] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1557-[10161.805725] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
1558-[10161.805729] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
1559:[10215.316936] bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF
1560:[10240.842782] bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF

Kernel
[51] steve-K42Jc: tmp.YzAFoy0HvZ/>uname -a
Linux steve-K42Jc 2.6.38-020638rc8-generic #201103081151 SMP Tue Mar 8 11:57:03 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Distro: Ubuntu 11.04

[53] steve-K42Jc: tmp.YzAFoy0HvZ/>apt-cache policy xorg
xorg:
  Installed: 1:7.6+4ubuntu3.2

Revision history for this message
Steven Howell (steven-c-howell) wrote :
Revision history for this message
Peter Wu (lekensteyn) wrote :

The error is pretty obvious, the nvidia driver is loaded. If you do not intend to use the nvidia card, uninstall nvidia-current.

Revision history for this message
Steven Howell (steven-c-howell) wrote : Re: [Bug 984494] Re: bbswitch fails to turn off optimus card
Download full text (6.0 KiB)

I realize the nvidia driver is loaded. Uninstalling the driver makes it so
I can no longer use optirun. How to I unload the driver, so bbswitch can
turn it off without uninstalling the nvidia driver?

On Fri, May 11, 2012 at 6:44 PM, Lekensteyn <email address hidden>wrote:

> The error is pretty obvious, the nvidia driver is loaded. If you do not
> intend to use the nvidia card, uninstall nvidia-current.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/984494
>
> Title:
> bbswitch fails to turn off optimus card
>
> Status in A Bug reporter module for your hosted Launchpad project.:
> New
>
> Bug description:
> I recently installed bumblebee to my ASUS K42Jc which has the NVIDIA
> Geforce 310M Optimus card. I have tested bumblebee and I am able to use
> optirun fine. My problem is bbswitch fails to turn off the card and I
> still only get projected 80mins of battery life (but really more like 40
> mins). I tried what is suggested on
> https://github.com/Bumblebee-Project/bbswitch but get when I run
> # tee /proc/acpi/bbswitch <<<OFF
> using sudo, I get
> $ dmesg |tail -1
> bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF
> so the driver is still loaded and I have not been able to figure out how
> to unload the driver. I have added bbswitch load_state=0 to /etc/modules
> and rebooted several times but the driver is still loaded.
>
> Thank you for your help. Any more battery life would be amazing!
>
>
> steve-K42Jc: tmp.YzAFoy0HvZ/>dmesg | grep -C 10 bbswitch:
> 1203-[ 14.889029] ACPI Warning: _BQC returned an invalid level
> (20110112/video-473)
> 1204-[ 14.889426] acpi device:4f: registered as cooling_device5
> 1205-[ 14.889785] input: Video Bus as
> /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:02/input/input8
> 1206-[ 14.889871] ACPI: Video Device [GFX0] (multi-head: yes rom: no
> post: no)
> 1207-[ 14.890156] [drm] Initialized i915 1.6.0 20080730 for
> 0000:00:02.0 on minor 0
> 1208-[ 14.924307] uvcvideo: Found UVC 1.00 device USB 2.0 Camera
> (13d3:5130)
> 1209-[ 14.931489] input: USB 2.0 Camera as
> /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input9
> 1210-[ 14.931572] usbcore: registered new interface driver uvcvideo
> 1211-[ 14.931574] USB Video Class driver (v1.0.0)
> 1212-[ 14.967101] lp: driver loaded but no devices found
> 1213:[ 15.271166] bbswitch: Found integrated VGA device 0000:00:02.0:
> \_SB_.PCI0.GFX0
> 1214:[ 15.271179] bbswitch: Found discrete VGA device 0000:01:00.0:
> \_SB_.PCI0.PEG1.GFX0
> 1215:[ 15.271330] bbswitch: detected an Optimus _DSM function
> 1216:[ 15.271338] bbswitch: disabling discrete graphics
> 1217:[ 15.271460] bbswitch: Result of Optimus _DSM call: 01000058
> 1218-[ 15.290715] pci 0000:01:00.0: Refused to change power state,
> currently in D0
> 1219-[ 15.414535] cfg80211: World regulatory domain updated:
> 1220-[ 15.414538] cfg80211: (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp)
> 1221-[ 15.414540] cfg80211: (2402000 KHz - 2472000 KHz @ 40000
> KHz), (300 mBi, 2000 mBm)
...

Read more...

Revision history for this message
jijijaco (jijijaco) wrote :

To unload a module you can do : sudo modprobe -r nvidia
It should do the trick.

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.