Discrete Radeon graphics unit won't stay *off*

Bug #1509135 reported by foobar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

After upgrading from Ubuntu 15.04 to 15.10, the AMD discrete card keeps coming on.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ubuntu-release-upgrader-core 1:15.10.14
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Thu Oct 22 16:30:42 2015
InstallationDate: Installed on 2015-07-25 (89 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to wily on 2015-10-22 (0 days ago)
VarLogDistupgradeTermlog:
---
.tmp.unity.support.test.0:

ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
BootLog:

CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
DistUpgraded: 2015-10-22 15:54:58,273 DEBUG enabling apt cron job
DistroCodename: wily
DistroRelease: Ubuntu 15.10
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712] (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company Device [103c:1641]
 Advanced Micro Devices, Inc. [AMD/ATI] Robson CE [Radeon HD 6370M/7370M] [1002:68e4] (rev ff) (prog-if ff)
InstallationDate: Installed on 2015-07-25 (94 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
Package: xorg 1:7.7+7ubuntu4
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_US
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-16-generic root=UUID=08f5c22a-157d-4ff4-886f-b5e3e42acd66 ro quiet splash radeon.dpm=0 vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Tags: wily ubuntu compiz-0.9
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 4.2.0-16-generic x86_64
UpgradeStatus: Upgraded to wily on 2015-10-22 (4 days ago)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 02/25/2013
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.29
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 1641
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 67.33
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.29:bd02/25/2013:svnHewlett-Packard:pnHPPaviliondv7NotebookPC:pvr0583120000242B20000620100:rvnHewlett-Packard:rn1641:rvr67.33:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv7 Notebook PC
dmi.product.version: 0583120000242B20000620100
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz 1:0.9.12.2+15.10.20151015-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.64-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.0.2-1ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.0.2-1ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.17.2-1ubuntu9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.2-1ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.5.0+git20150819-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20150808-0ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.11-1ubuntu3
xserver.bootTime: Tue Oct 27 11:19:09 2015
xserver.configfile: default
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.17.2-1ubuntu9
xserver.video_driver: radeon

Revision history for this message
foobar (hbaker1) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → xorg (Ubuntu)
Revision history for this message
penalvch (penalvch) wrote :

foobar, thank you for reporting this and helping make Ubuntu better.

To advise, this report is only scoped to how the discrete radeon graphics won't stay off.

Regarding display glitches, that is already scoped in another one of your reports > https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1467274

Regarding overheat, as you noted in https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1467274/comments/7 it also overheated in Windows, so this is not a software bug at all, but a hardware design flaw.

Despite this, could you please advise how precisely you were turning off the discrete card when it did work?

Changed in xorg (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
description: updated
Revision history for this message
penalvch (penalvch) wrote :

foobar, also, could you please run the following command from a terminal as it will automatically gather and attach updated debug information to this report:
apport-collect -p xorg 1509135

Please ensure you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information.

When reporting xorg related bugs in the future, please do so via the above method. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
foobar (hbaker1) wrote : CurrentDmesg.txt

apport information

tags: added: apport-collected compiz-0.9 ubuntu
description: updated
Revision history for this message
foobar (hbaker1) wrote : Dependencies.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : DpkgLog.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : GconfCompiz.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : JournalErrors.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : LightdmDisplayLog.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : LightdmGreeterLog.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : LightdmGreeterLogOld.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : LightdmLog.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : Lspci.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : Lsusb.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : MonitorsUser.xml.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : ProcInterrupts.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : ProcModules.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : UdevDb.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : UnitySupportTest.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : XorgLog.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : XorgLogOld.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : Xrandr.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : xdpyinfo.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : xserver.devices.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : xserver.errors.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : xserver.outputs.txt

apport information

Revision history for this message
foobar (hbaker1) wrote : Re: [Bug 1509135] Re: Discrete Radeon graphics unit won't stay *off*

Hi Christopher:

I ran apport-collect for you, as described in your message below.

I've tried a number of things to turn the discrete Radeon unit off.

I'm currently trying to use "radeon.dpm=0" in the kernel, followed by

echo profile > /sys/class/drm/card0/device/power_method
echo profile > /sys/class/drm/card1/device/power_method

echo low > /sys/class/drm/card0/device/power_profile
echo low > /sys/class/drm/card1/device/power_profile

echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

Previously, I've tried "radeon.dpm=1" in the kernel, followed by

echo battery > /sys/class/drm/card0/device/power_dpm_state
echo battery > /sys/class/drm/card1/device/power_dpm_state

I'm willing to try other combinations if can suggest some.

Thanks for your help.

Henry Baker
Santa Barbara, CA

At 03:14 PM 10/25/2015, Christopher M. Penalver wrote:
>foobar, also, could you please run the following command from a terminal as it will automatically gather and attach updated debug information to this report:
>apport-collect -p xorg 1509135
>
>Please ensure you have the package xdiagnose installed, and that you
>click the Yes button for attaching additional debugging information.
>
>When reporting xorg related bugs in the future, please do so via the
>above method. You can learn more about this functionality at
>https://wiki.ubuntu.com/ReportingBugs.
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1509135
>
>Title:
> Discrete Radeon graphics unit won't stay *off*
>
>Status in xorg package in Ubuntu:
> Incomplete
>
>Bug description:
> After upgrading from Ubuntu 15.04 to 15.10, the AMD discrete card
> keeps coming on.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.10
> Package: ubuntu-release-upgrader-core 1:15.10.14
> ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
> Uname: Linux 4.2.0-16-generic x86_64
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: amd64
> CrashDB: ubuntu
> CurrentDesktop: Unity
> Date: Thu Oct 22 16:30:42 2015
> InstallationDate: Installed on 2015-07-25 (89 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> PackageArchitecture: all
> SourcePackage: ubuntu-release-upgrader
> Symptom: release-upgrade
> UpgradeStatus: Upgraded to wily on 2015-10-22 (0 days ago)
> VarLogDistupgradeTermlog:
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1509135/+subscriptions

Revision history for this message
foobar (hbaker1) wrote :
Download full text (4.6 KiB)

"HP Pavilion dv7-4272us entertainment PC" I think this gets printed out somewhere -- perhaps in the BIOS of this laptop.

At 05:27 PM 10/27/2015, Christopher M. Penalver wrote:
>foobar, could you please provide the full computer model as noted on the
>sticker of the computer itself (not from the Bug Description)?
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1509135
>
>Title:
> Discrete Radeon graphics unit won't stay *off*
>
>Status in xorg package in Ubuntu:
> Incomplete
>
>Bug description:
> After upgrading from Ubuntu 15.04 to 15.10, the AMD discrete card
> keeps coming on.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.10
> Package: ubuntu-release-upgrader-core 1:15.10.14
> ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
> Uname: Linux 4.2.0-16-generic x86_64
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: amd64
> CrashDB: ubuntu
> CurrentDesktop: Unity
> Date: Thu Oct 22 16:30:42 2015
> InstallationDate: Installed on 2015-07-25 (89 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> PackageArchitecture: all
> SourcePackage: ubuntu-release-upgrader
> Symptom: release-upgrade
> UpgradeStatus: Upgraded to wily on 2015-10-22 (0 days ago)
> VarLogDistupgradeTermlog:
> ---
> .tmp.unity.support.test.0:
>
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: amd64
> BootLog:
>
> CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
> CompositorRunning: compiz
> CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
> CompositorUnredirectFSW: true
> DistUpgraded: 2015-10-22 15:54:58,273 DEBUG enabling apt cron job
> DistroCodename: wily
> DistroRelease: Ubuntu 15.10
> DistroVariant: ubuntu
> ExtraDebuggingInterest: Yes
> GraphicsCard:
> Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712] (prog-if 00 [VGA controller])
> Subsystem: Hewlett-Packard Company Device [103c:1641]
> Advanced Micro Devices, Inc. [AMD/ATI] Robson CE [Radeon HD 6370M/7370M] [1002:68e4] (rev ff) (prog-if ff)
> InstallationDate: Installed on 2015-07-25 (94 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
> Package: xorg 1:7.7+7ubuntu4
> PackageArchitecture: amd64
> ProcEnviron:
> LANGUAGE=en_US
> TERM=xterm-256color
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-16-generic root=UUID=08f5c22a-157d-4ff4-886f-b5e3e42acd66 ro quiet splash radeon.dpm=0 vt.handoff=7
> ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
> Tags: wily ubuntu compiz-0.9
> UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
> Uname: Linux 4.2.0-16-generic x86_64
> UpgradeStatus: Upgraded to wily on 2015-10-22 (4 days ago)
> UserGroups:
>
> _MarkForUpload: True
> dmi.bios.date: 02/25/2013
> dmi.bios.vendor: Hewlett-Packard
> dmi.bios.version: F.29
> dmi.board.asset.tag: Base Board Asset Tag
> dmi.board.name: 1641
> dmi.board.vendor: Hewlett-Packa...

Read more...

Revision history for this message
penalvch (penalvch) wrote :

foobar, could you please test the latest upstream kernel available from the very top line at the top of the page from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for testing, and please do not test the daily folder)? Install instructions are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This will allow additional upstream developers to examine the issue.

If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-X.Y-rcZ

Where X, Y, and Z are numbers corresponding to the kernel version.

If the mainline kernel does not fix the issue, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-X.Y-rcZ

Please note, an error to install the kernel does not fit the criteria of kernel-bug-exists-upstream.

Once testing of the latest upstream kernel is complete, please mark this report's Status as Confirmed. Please let us know your results.

Thank you for your understanding.

tags: added: latest-bios-f.29
tags: added: regression-release
affects: xorg (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Low → Medium
Revision history for this message
foobar (hbaker1) wrote :
Download full text (6.2 KiB)

Will do, but not for a few more days. I'm working on something with a deadline.

Thx for helping with this; there's no reason why radeon.dpm=0 and radeon.dpm=1
shouldn't *both* work, although somewhat differently.

At 04:07 AM 10/28/2015, you wrote:
>foobar, could you please test the latest upstream kernel available from
>the very top line at the top of the page from http://kernel.ubuntu.com
>/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for
>testing, and please do not test the daily folder)? Install instructions
>are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This
>will allow additional upstream developers to examine the issue.
>
>If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
>kernel-fixed-upstream
>kernel-fixed-upstream-X.Y-rcZ
>
>Where X, Y, and Z are numbers corresponding to the kernel version.
>
>If the mainline kernel does not fix the issue, please add the following tags:
>kernel-bug-exists-upstream
>kernel-bug-exists-upstream-X.Y-rcZ
>
>Please note, an error to install the kernel does not fit the criteria of
>kernel-bug-exists-upstream.
>
>Once testing of the latest upstream kernel is complete, please mark this
>report's Status as Confirmed. Please let us know your results.
>
>Thank you for your understanding.
>
>** Tags added: latest-bios-f.29
>
>** Tags added: regression-release
>
>** Package changed: xorg (Ubuntu) => linux (Ubuntu)
>
>** Changed in: linux (Ubuntu)
> Importance: Low => Medium
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1509135
>
>Title:
> Discrete Radeon graphics unit won't stay *off*
>
>Status in linux package in Ubuntu:
> Incomplete
>
>Bug description:
> After upgrading from Ubuntu 15.04 to 15.10, the AMD discrete card
> keeps coming on.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.10
> Package: ubuntu-release-upgrader-core 1:15.10.14
> ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
> Uname: Linux 4.2.0-16-generic x86_64
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: amd64
> CrashDB: ubuntu
> CurrentDesktop: Unity
> Date: Thu Oct 22 16:30:42 2015
> InstallationDate: Installed on 2015-07-25 (89 days ago)
> InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
> PackageArchitecture: all
> SourcePackage: ubuntu-release-upgrader
> Symptom: release-upgrade
> UpgradeStatus: Upgraded to wily on 2015-10-22 (0 days ago)
> VarLogDistupgradeTermlog:
> ---
> .tmp.unity.support.test.0:
>
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: amd64
> BootLog:
>
> CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
> Composit...

Read more...

Revision history for this message
foobar (hbaker1) wrote :
Download full text (8.2 KiB)

Hi Christopher:

OK, I have some additional information.

1. I finally figured out a way to kill the Radeon HDMI audio:

echo 1 > /sys/bus/pci/devices/0000:02:00.1/remove

If I do this after I log into Ubuntu, the Radeon HDMI option is gone,
and won't return until I reboot.

The other audio devices -- e.g., the analog headphone jack -- continues
to work just fine.

However, I have not been able to figure out how to kill this HDMI audio
device early in the boot sequence, so that the HDMI audio is *never*
enabled.

Unfortunately, trying to do the same thing with PCI 02:00.0 device --
i.e., the Radeon "DIS" discrete graphics card -- doesn't work; I have
to reboot the entire system.

2. The latest (vmlinuz-4.3.0-040300) works the same as the 15.10 kernel;
no better, no worse -- at least as far as the Radeon graphics is concerned.

Symptoms: the Radeon discrete graphics unit (DIS) unit keeps turning off
and on every 5 seconds or so. I used to think that it was the HDMI audio
that was somehow triggering this, but now that I learned how to turn the
HDMI audio off (see above), I can see that this is not the case.

3. There may be some interaction with the VLC video player. Even though
I've told VLC to not use any hardware (i.e., GPU) acceleration, VLC may
still be trying to turn on the DIS discrete graphics unit. I haven't
been able to find any documentation about how to keep VLC from trying to
turn on the DIS graphics unit.

I'm open to other suggestions about how to keep the DIS unit turned off.

BTW, for some reason, the older (non-DPM) mode for this Radeon graphics
unit no longer works correctly.

The following command:

cat /sys/kernel/debug/vgaswitcheroo/switch

tells me that the power state of DIS is "DynOff", even when I boot the
machine with radeon.dpm=0. It shouldn't say "DynOff"; it should simply
say "Off".

4. I did notice one small change from the previous kernel. I have
"xsensors" installed, which reports the temperature of the Radeo
graphics unit. In the latest 4.3.0-040300 kernel, when the DIS is
"DynOff", the temperature is reported as "0 degrees C". It now
reports the temperature only when DIS is on -- e.g., "DynPwr".

Henry Baker
Santa Barbara, CA

At 03:07 AM 10/28/2015, Christopher M. Penalver wrote:
>foobar, could you please test the latest upstream kernel available from
>the very top line at the top of the page from http://kernel.ubuntu.com
>/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for
>testing, and please do not test the daily folder)? Install instructions
>are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This
>will allow additional upstream developers to examine the issue.
>
>If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at ...

Read more...

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.