You are not logged in.
Hi all,
Recently I configured bumblebee on my Lenovo T420s. Everything works fine except sometime I found my laptop temperature raised by some reason. I finally managed to figure out that it was chromium who turned on the nvidia card.
here's steps how I can reproduce the issue:
cat /proc/acpi/bbswitch
it was: 0000:01:00.0 OFF
after running chromium, the same command returns: 0000:01:00.0 ON
and when I close chromium, it doesn't turn off the card, which makes a big battery consumption.
I followed arch wiki to configure bumblebee: https://wiki.archlinux.org/index.php/Bumblebee
I'm using nvidia driver instead of nouveau.
Is there anyway I can stop chromium from turning on nvidia card? normally I prefer longer battery life to performance.
[update]
I found this issue in chromium bug tracking system:
http://code.google.com/p/chromium/issue … l?id=43138
It's on macbook pro though. I guess chromium does the same thing to my Arch?
[update2]
2 solutions to solve this issue:
1. stop flash HW by editing /etc/adobe/mms.cfg
#Hardware video decoding
EnableLinuxHWVideoDecode=0
2. add a new udev rule
vim /etc/udev/rules.d/99-remove-nvidia-dev.rules
# Prevent the nvidia card from "randomly" turning on
DEVPATH=="/module/nvidia", ACTION=="remove", RUN+="/bin/rm -f /dev/nvidiactl /dev/nvidia0 /dev/nvidia1"
Last edited by flockyrocky (2012-09-22 11:43:39)
Offline
i know that chromium needs HW acceleration on to run properly, so i exclude the idea to disable it (if it's possible) through advanced settings.
my idea is to create a simple script which substitute the chromium launcher, this is my idea, or better a workaround:
launch chromium;
when chromium stops -> echo OFF > /...bla.../...bla.../something
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
thanks for the reply.
Actually I also noticed that it's not chromium who turned on the card. Only when I access some websites cause the nvidia card being turned on. I guess it might be the flash. Not sure, any idea how to confirm that?
And I had the same idea as you mentioned, unfortunately, I can't turn it off this way. This is weird.
Let's say I can turn it ON and OFF with
echo ON/OFF > /proc/acpi/bbswitch
however, if it's switched on by chromium, this way doesn't work.
the only way I found is to run another program with optirun like
optirun glxgears
then when I close the program, the N card is switched off
Offline
so, why not "hack" the chromium .desktop, adding
optirun
before chromium?
in this way launching chromium will launch optirun and when you close chromium optirun will automatically turn off the NV card
Last edited by nTia89 (2012-09-22 09:34:38)
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
hmm, this is one way too. I'll have to do this if there's no other way.
I actually care more about the battery life. with N card off, I get much longer battery life and lower system temperature. otherwise I can feel the laptop burning my legs
And chromium doesn't have to use N card at all. I can turn it off with the optirun way even if it is still running. I guess it's something turned it on, but not using it.
Offline
you can also try to disable HW acceleration of flashplayer in /etc/adobe/mms.cfg if you use "standard" flash player, NOT pepper version
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
I can find only two lines in /etc/adobe/mms.cfg
#Hardware video decoding
#EnableLinuxHWVideoDecode=1
does it mean it's not turned on?
Last edited by flockyrocky (2012-09-22 09:52:27)
Offline
commented lines mean not used, in this way, i think, configuration is done by flashplayer itself at runtime, and because NV cards are in the "whitelist", i think, that flashplayer will use HW acceleration. try it:
#Hardware video decoding
EnableLinuxHWVideoDecode=0
this should force HW acceleration OFF
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
It's still not working.
do I have to restart some service after editing the file?
Offline
It's still not working.
do I have to restart some service after editing the file?
what is not working?
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
I mean, the N card is still turned on.
sorry for my bad English, it's not my mother tongue.
Offline
don't worry, i'm not an englishman too!
but i haven't understood which file you have modified:
mms.cfg OR chromium.desktop ???
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
I modified /etc/adobe/mms.cfg, now it looks like
#Hardware video decoding
EnableLinuxHWVideoDecode=0
but when I start chrome the N card is still on.
Offline
post the output of:
pacman -Qi | grep flash -A 10 -B 10
then restart the system and try it again.
do you have vdpau installed?
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
what I don't understand is, I don't find any auto-switch feature on bumblebee. (although people are talking about it, I don't think it's implemented)
then how does chrome turn on the N card?
to do this, chrome will have to detect that I have a N card but is disabled, I have bumblebee installed, and I'm using bbswitch to switch it on and off, otherwise it makes no sense even if it turns on the N card, because it doesn't know how to use it to render graphics.
Offline
[root@YAOXING pacman.d]# pacman -Ss vdpau
extra/libvdpau 0.5-1 [installed]
I think I have it installed.
and output of pacman -Qi | grep flash -A 10 -B 10
Description : A helper that makes system-config-printer use PolicyKit
Name : curl
Version : 7.27.0-1
URL : http://curl.haxx.se
Licenses : MIT
Groups : None
Provides : None
Depends On : ca-certificates libssh2 openssl zlib
Optional Deps : None
Required By : cmake flashplugin git liboauth libofa libquvi libquvi-scripts libvirt package-query packer pacman qemu-kvm raptor virtualbox
Conflicts With : None
Replaces : None
Installed Size : 1880.00 KiB
Packager : Dave Reisner <dreisner@archlinux.org>
Architecture : x86_64
Build Date : Sat 28 Jul 2012 05:42:01 AM CST
Install Date : Sat 25 Aug 2012 10:04:09 PM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : An URL retrival utility and library
--
Replaces : None
Installed Size : 1980.00 KiB
Packager : Eric Belanger <eric@archlinux.org>
Architecture : x86_64
Build Date : Wed 10 Aug 2011 06:38:37 AM CST
Install Date : Sun 26 Aug 2012 08:19:49 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Free Lossless Audio Codec
Name : flashplugin
Version : 11.2.202.238-1
URL : http://get.adobe.com/flashplayer
Licenses : custom
Groups : None
Provides : flashplayer
Depends On : mozilla-common libxt libxpm gtk2 nss curl hicolor-icon-theme
Optional Deps : libvdpau: GPU acceleration on Nvidia card
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 23224.00 KiB
Packager : Ionut Biru <ibiru@archlinux.org>
Architecture : x86_64
Build Date : Thu 16 Aug 2012 07:01:59 PM CST
Install Date : Wed 05 Sep 2012 12:44:32 AM CST
--
Description : A VNC viewer widget for GTK
Name : gtk2
Version : 2.24.12-1
URL : http://www.gtk.org/
Licenses : LGPL
Groups : None
Provides : None
Depends On : atk pango libxcursor libxinerama libxrandr libxi libxcomposite libxdamage shared-mime-info cairo libcups gtk-update-icon-cache
Optional Deps : None
Required By : at-spi chromium ekiga emerald flashplugin gnome-desktop2 gpointing-device-settings gtk-engine-murrine gtk-engines gtk-sharp-2 gtk2-perl gtkglext gtkmm gtkspell libglade libreoffice-gnome libunique libwnck metacity mx networkmanager-l2tp-git stardict sublime-text systemd-ui-git thunderbird tomboy vte wxgtk xdg-user-dirs-gtk
Conflicts With : None
Replaces : gtk2-docs
Installed Size : 56228.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Architecture : x86_64
Build Date : Thu 13 Sep 2012 01:13:45 AM CST
Install Date : Thu 13 Sep 2012 01:27:58 PM CST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description : GTK+ is a multi-platform toolkit (v2)
--
Description : A commandline utility for sending and receiving email
Name : hicolor-icon-theme
Version : 0.12-2
URL : http://icon-theme.freedesktop.org/wiki/HicolorTheme
Licenses : GPL2
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : aisleriot brasero cheese chromium dasher djvulibre docky ekiga emacs emerald epiphany file-roller filezilla flashplugin gconf-editor gcr gnome-bluetooth gnome-color-manager gnome-disk-utility gnome-games gnome-icon-theme gnome-icon-theme-symbolic gnome-media gnome-nettool gnome-online-accounts gnome-power-manager gnome-session gnome-settings-daemon gparted ibus jre7-openjdk keepass libpeas libreoffice-common orca qt seahorse skype sound-juicer thunderbird tomboy totem tracker yelp
Conflicts With : None
Replaces : None
Installed Size : 1400.00 KiB
Packager : Pierre Schmitz <pierre@archlinux.de>
Architecture : any
Build Date : Thu 09 Feb 2012 04:26:51 AM CST
Install Date : Sun 26 Aug 2012 08:19:28 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Freedesktop.org Hicolor icon theme
--
Description : X11 miscellaneous micro-utility library
Name : libxpm
Version : 3.5.10-1
URL : http://xorg.freedesktop.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libxt libxext
Optional Deps : None
Required By : emacs flashplugin libxaw vlc
Conflicts With : None
Replaces : None
Installed Size : 152.00 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Architecture : x86_64
Build Date : Sat 10 Mar 2012 12:20:34 AM CST
Install Date : Sun 26 Aug 2012 07:00:52 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : X11 pixmap library
--
Description : X11 Screen Saver extension library
Name : libxt
Version : 1.1.3-1
URL : http://xorg.freedesktop.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libsm libx11
Optional Deps : None
Required By : flashplugin ghostscript imagemagick lib32-libxt libwebkit3 libxmu libxpm mesa thunderbird xorg-appres
Conflicts With : None
Replaces : None
Installed Size : 3048.00 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Architecture : x86_64
Build Date : Sat 17 Mar 2012 01:07:46 AM CST
Install Date : Sun 26 Aug 2012 06:47:42 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : X11 toolkit intrinsics library
--
Description : Mouse accessibility enhancements for the GNOME desktop
Name : mozilla-common
Version : 1.4-3
URL : http://www.mozilla.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : flashplugin thunderbird
Conflicts With : None
Replaces : None
Installed Size : 20.00 KiB
Packager : Pierre Schmitz <pierre@archlinux.de>
Architecture : any
Build Date : Sat 10 Sep 2011 08:20:38 PM CST
Install Date : Wed 05 Sep 2012 12:44:31 AM CST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description : Common Initialization Profile for Mozilla.org products
--
Description : Netscape Portable Runtime
Name : nss
Version : 3.13.6-1
URL : http://www.mozilla.org/projects/security/pki/nss/
Licenses : MPL GPL
Groups : None
Provides : None
Depends On : nspr>=4.9.2 sqlite zlib sh
Optional Deps : None
Required By : chromium epiphany evolution-data-server flashplugin gdm gnome-settings-daemon jre7-openjdk-headless libfprint libpurple networkmanager qemu-kvm thunderbird
Conflicts With : None
Replaces : None
Installed Size : 6204.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Architecture : x86_64
Build Date : Mon 20 Aug 2012 12:00:42 AM CST
Install Date : Sun 26 Aug 2012 08:19:28 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Mozilla Network Security Services
Offline
and this is the output after restarting
Description : A helper that makes system-config-printer use PolicyKit
Name : curl
Version : 7.27.0-1
URL : http://curl.haxx.se
Licenses : MIT
Groups : None
Provides : None
Depends On : ca-certificates libssh2 openssl zlib
Optional Deps : None
Required By : cmake flashplugin git liboauth libofa libquvi libquvi-scripts libvirt package-query packer pacman qemu-kvm raptor virtualbox
Conflicts With : None
Replaces : None
Installed Size : 1880.00 KiB
Packager : Dave Reisner <dreisner@archlinux.org>
Architecture : x86_64
Build Date : Sat 28 Jul 2012 05:42:01 AM CST
Install Date : Sat 25 Aug 2012 10:04:09 PM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : An URL retrival utility and library
--
Replaces : None
Installed Size : 1980.00 KiB
Packager : Eric Belanger <eric@archlinux.org>
Architecture : x86_64
Build Date : Wed 10 Aug 2011 06:38:37 AM CST
Install Date : Sun 26 Aug 2012 08:19:49 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Free Lossless Audio Codec
Name : flashplugin
Version : 11.2.202.238-1
URL : http://get.adobe.com/flashplayer
Licenses : custom
Groups : None
Provides : flashplayer
Depends On : mozilla-common libxt libxpm gtk2 nss curl hicolor-icon-theme
Optional Deps : libvdpau: GPU acceleration on Nvidia card
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 23224.00 KiB
Packager : Ionut Biru <ibiru@archlinux.org>
Architecture : x86_64
Build Date : Thu 16 Aug 2012 07:01:59 PM CST
Install Date : Wed 05 Sep 2012 12:44:32 AM CST
--
Description : A VNC viewer widget for GTK
Name : gtk2
Version : 2.24.12-1
URL : http://www.gtk.org/
Licenses : LGPL
Groups : None
Provides : None
Depends On : atk pango libxcursor libxinerama libxrandr libxi libxcomposite libxdamage shared-mime-info cairo libcups gtk-update-icon-cache
Optional Deps : None
Required By : at-spi chromium ekiga emerald flashplugin gnome-desktop2 gpointing-device-settings gtk-engine-murrine gtk-engines gtk-sharp-2 gtk2-perl gtkglext gtkmm gtkspell libglade libreoffice-gnome libunique libwnck metacity mx networkmanager-l2tp-git stardict sublime-text systemd-ui-git thunderbird tomboy vte wxgtk xdg-user-dirs-gtk
Conflicts With : None
Replaces : gtk2-docs
Installed Size : 56228.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Architecture : x86_64
Build Date : Thu 13 Sep 2012 01:13:45 AM CST
Install Date : Thu 13 Sep 2012 01:27:58 PM CST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description : GTK+ is a multi-platform toolkit (v2)
--
Description : A commandline utility for sending and receiving email
Name : hicolor-icon-theme
Version : 0.12-2
URL : http://icon-theme.freedesktop.org/wiki/HicolorTheme
Licenses : GPL2
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : aisleriot brasero cheese chromium dasher djvulibre docky ekiga emacs emerald epiphany file-roller filezilla flashplugin gconf-editor gcr gnome-bluetooth gnome-color-manager gnome-disk-utility gnome-games gnome-icon-theme gnome-icon-theme-symbolic gnome-media gnome-nettool gnome-online-accounts gnome-power-manager gnome-session gnome-settings-daemon gparted ibus jre7-openjdk keepass libpeas libreoffice-common orca qt seahorse skype sound-juicer thunderbird tomboy totem tracker yelp
Conflicts With : None
Replaces : None
Installed Size : 1400.00 KiB
Packager : Pierre Schmitz <pierre@archlinux.de>
Architecture : any
Build Date : Thu 09 Feb 2012 04:26:51 AM CST
Install Date : Sun 26 Aug 2012 08:19:28 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Freedesktop.org Hicolor icon theme
--
Description : X11 miscellaneous micro-utility library
Name : libxpm
Version : 3.5.10-1
URL : http://xorg.freedesktop.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libxt libxext
Optional Deps : None
Required By : emacs flashplugin libxaw vlc
Conflicts With : None
Replaces : None
Installed Size : 152.00 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Architecture : x86_64
Build Date : Sat 10 Mar 2012 12:20:34 AM CST
Install Date : Sun 26 Aug 2012 07:00:52 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : X11 pixmap library
--
Description : X11 Screen Saver extension library
Name : libxt
Version : 1.1.3-1
URL : http://xorg.freedesktop.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libsm libx11
Optional Deps : None
Required By : flashplugin ghostscript imagemagick lib32-libxt libwebkit3 libxmu libxpm mesa thunderbird xorg-appres
Conflicts With : None
Replaces : None
Installed Size : 3048.00 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Architecture : x86_64
Build Date : Sat 17 Mar 2012 01:07:46 AM CST
Install Date : Sun 26 Aug 2012 06:47:42 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : X11 toolkit intrinsics library
--
Description : Mouse accessibility enhancements for the GNOME desktop
Name : mozilla-common
Version : 1.4-3
URL : http://www.mozilla.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : flashplugin thunderbird
Conflicts With : None
Replaces : None
Installed Size : 20.00 KiB
Packager : Pierre Schmitz <pierre@archlinux.de>
Architecture : any
Build Date : Sat 10 Sep 2011 08:20:38 PM CST
Install Date : Wed 05 Sep 2012 12:44:31 AM CST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description : Common Initialization Profile for Mozilla.org products
--
Description : Netscape Portable Runtime
Name : nss
Version : 3.13.6-1
URL : http://www.mozilla.org/projects/security/pki/nss/
Licenses : MPL GPL
Groups : None
Provides : None
Depends On : nspr>=4.9.2 sqlite zlib sh
Optional Deps : None
Required By : chromium epiphany evolution-data-server flashplugin gdm gnome-settings-daemon jre7-openjdk-headless libfprint libpurple networkmanager qemu-kvm thunderbird
Conflicts With : None
Replaces : None
Installed Size : 6204.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Architecture : x86_64
Build Date : Mon 20 Aug 2012 12:00:42 AM CST
Install Date : Sun 26 Aug 2012 08:19:28 AM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Mozilla Network Security Services
Offline
This is a known issue that is queued for a future release. Try the udev rule at https://github.com/Bumblebee-Project/Bu … -dev.rules
Offline
@nTia89
the mms.cfg setting take effect after restarting. N card is not turned on anymore.
Offline
so, in a some way, is the problem solved?
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
yes, and I'm also trying the udev rule way provided by Lekensteyn. will mark the thead as resolved soon.
Offline
And yes, both way works. I'll mark the thread as resolved.
Thanks a lot guys.
Offline
Thanks! That helped me too! :-)
Same problem, same way solved.
domac [ git ]
Offline