Re: [Kernel-packages] [Bug 1509135] Re: Discrete Radeon graphics unit won't stay *off*

2015-11-02 Thread foobar
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/: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 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
>  I

Re: [Kernel-packages] [Bug 1509135] Re: Discrete Radeon graphics unit won't stay *off*

2015-10-28 Thread foobar
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'
>  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