Ubuntu should poweroff video cards not in use

Bug #987401 reported by Nick Andrik
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
xserver-xorg-video-ati (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I have a laptop with two video cards:
> lspci|grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: ATI Technologies Inc NI Whistler [AMD Radeon HD 6600M Series] (rev ff)

I have looked around and I saw there is the vgaswitceroo module which can be used in order to turn on/off unused graphics cards and also switch the enabled one (albeit with X restarting).

I believe Ubuntu should power off the unused card by default.
The default behavior is to use the Integrated GPU (Intel) but still keeping the Discrete GPU (ATI) on.

This can save up to 10W in my laptop, which is at least 50% more battery power previously wasted on keeping an unused GPU on.

Best regards,
Nikos

---

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andrikos 3587 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf7d00000 irq 48'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0269,104d5300,00100004 HDA:80862805,104d5300,00100000'
   Controls : 17
   Simple ctrls : 9
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=2a386f35-058c-4b56-a4ef-086a54f6b10e
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Sony Corporation VPCCB2S1E
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-17-generic root=UUID=30b47f3a-9136-4791-a5c8-f72e6b1c7362 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-17.30-generic 3.0.22
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-17-generic N/A
 linux-backports-modules-3.0.0-17-generic N/A
 linux-firmware 1.60.1
StagingDrivers: mei
Tags: oneiric running-unity staging
Uname: Linux 3.0.0-17-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout kismet lpadmin plugdev sambashare
dmi.bios.date: 04/15/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R1100V2
dmi.board.asset.tag: N/A
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrR1100V2:bd04/15/2011:svnSonyCorporation:pnVPCCB2S1E:pvrC6099RLH:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
dmi.product.name: VPCCB2S1E
dmi.product.version: C6099RLH
dmi.sys.vendor: Sony Corporation

Revision history for this message
Nick Andrik (andrikos) wrote :

In order to get this behavior we can have a solution as described here:
http://ubuntuforums.org/showthread.php?p=11867169#post11867169

description: updated
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 987401

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Nick Andrik (andrikos) wrote : AcpiTables.txt

apport information

tags: added: apport-collected oneiric running-unity staging
description: updated
Revision history for this message
Nick Andrik (andrikos) wrote : AlsaDevices.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : AplayDevices.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : BootDmesg.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : CRDA.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : Card0.Codecs.codec.3.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Nick Andrik (andrikos) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : IwConfig.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : Lspci.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : Lsusb.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : PciMultimedia.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : ProcEnviron.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : ProcModules.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : PulseSinks.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : PulseSources.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : RfKill.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : UdevDb.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : UdevLog.txt

apport information

Revision history for this message
Nick Andrik (andrikos) wrote : WifiSyslog.txt

apport information

description: updated
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
madbiologist (me-again) wrote :

This should be possible in kernel 3.5, when used with xserver 1.13 and the latest libdrm and xserver-xorg-video-ati (xf86-video-ati) git code. See http://www.phoronix.com/scan.php?page=news_item&px=MTEwMjA and http://www.phoronix.com/scan.php?page=news_item&px=MTE3Njg and the links within for more details.

The upcoming Ubuntu 12.10 "Qantal Quetzal" is based on kernel 3.5 and xserver 1.13.

Revision history for this message
madbiologist (me-again) wrote :

Further to comment #26, Ubuntu 12.10 "Quantal Quetzal" currently contains xserver-xorg-video-ati 1:6.99.99~git20120913.8637f772-0ubuntu1
The changelog for this git snapshot says:

* New upstream snapshot. Adds hybrid graphics support, FFe (LP: #1053250)

See bug #1053250 (fixed) for further information.

Nick Andrik (andrikos)
affects: xserver-xorg-video-radeonhd (Ubuntu) → xserver-xorg-video-ati (Ubuntu)
Revision history for this message
Nick Andrik (andrikos) wrote :

I also mark this bug against xserver-xorg-video-ati in order to check the status.

From what I understand, from muxless ati/intel systems there are two cases (selected by vgaswtcheroo):
a) The rendering is done by the Intel card (default case). Intel card is on, ATI card should be off to save power
b) The rendering is done by the ATI card. Both cards are on (ATI for rendering, Intel for display)

What I state is that in the first case, the ATI card should be off in order to save power, which is not what happens now (it remains on doing nothing).
Seeing that this is the default configuration, it means that way too many hybrid systems (mostly laptops) consume around 10W of useless power, with dramatic effects in battery life.

Revision history for this message
madbiologist (me-again) wrote :

Power management for hybrid graphics is coming in the upstream 3.8 kernel. Ubuntu 13.04 "Raring Ringtail" will be based on the 3.8 kernel.

Revision history for this message
madbiologist (me-again) wrote :

Runtime power management support (to be able to dynamically turn on/off secondary GPUs) is coming in the upstream 3.12 kernel.

Revision history for this message
madbiologist (me-again) wrote :

OK - the runtime power management support I mentioned in comment #30 has finally been enabled on ATI/AMD Radeon graphics hardware in the upstream 3.13 kernel - it has support for dynamically powering down discrete GPUs on PowerXpress systems - see http://lists.freedesktop.org/archives/dri-devel/2013-November/048316.html and http://lists.freedesktop.org/archives/dri-devel/2013-September/045650.html for details.

madbiologist (me-again)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Fix Released
Revision history for this message
madbiologist (me-again) wrote :

Ubuntu 14.04 "Trusty Tahr" now has the 3.13.0-1.16 kernel. Can you please test this version and let us know the results?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Nick Andrik (andrikos) wrote :

Good news that the code to enable this has finaly landed in Linux.
Unfortunately, I don't have access to the hardware where this bug was initially reported against, so I cannot test this new functionality

Revision history for this message
madbiologist (me-again) wrote :

OK, I hope you don't mind if I mark this bug as Fix Released.

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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