Re: Stretch, Radeon 4850, and backlight

2016-06-24 Thread James Lay
On Fri, 2016-06-24 at 16:23 +0200, Sven Arvidsson wrote:
> On Thu, 2016-06-23 at 15:49 -0600, James Lay wrote:
> > 
> > And after hooking up a second monitor it indeeds defaults to that
> > second monitor after running:
> > modprobe radeon modeset=1
> > Now..I do I tell the driver which monitor to use?  Thank you.
> Great! There's probably a bug somewhere, or that particular hardware
> should have some sort of quirk to enable the primary monitor, but I'm
> not sure what component the bug should be filed against.
> 
> 
> I haven't tried this myself, but it looks like you should be able to
> force the primary display on (and the secondary off) during
> modesetting:
> https://wiki.archlinux.org/index.php/kernel_mode_setting#Forcing_mode
> s_and_EDID
> 
> You can also do something similar in the Xorg configuration.
> 
Thanks...looks like this is kernel+hardware issue.  I get the same
results with Ubuntu 16.04, but not Ubuntu 14.04, which was a 3.x
kernel.
James

Re: Stretch, Radeon 4850, and backlight

2016-06-24 Thread Sven Arvidsson
On Thu, 2016-06-23 at 15:49 -0600, James Lay wrote:
> And after hooking up a second monitor it indeeds defaults to that
> second monitor after running:
> modprobe radeon modeset=1
> Now..I do I tell the driver which monitor to use?  Thank you.

Great! There's probably a bug somewhere, or that particular hardware
should have some sort of quirk to enable the primary monitor, but I'm
not sure what component the bug should be filed against.


I haven't tried this myself, but it looks like you should be able to
force the primary display on (and the secondary off) during
modesetting:
https://wiki.archlinux.org/index.php/kernel_mode_setting#Forcing_modes_and_EDID

You can also do something similar in the Xorg configuration.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se



signature.asc
Description: This is a digitally signed message part


Re: Stretch, Radeon 4850, and backlight

2016-06-23 Thread James Lay
On Thu, 2016-06-23 at 15:32 -0600, James Lay wrote:
> On Thu, 2016-06-23 at 20:36 +0200, Sven Arvidsson wrote:
> > On Thu, 2016-06-23 at 10:42 -0600, James Lay wrote:
> > > 
> > > Hey all,
> > > 
> > > soI have an oldish iMac 24 inch.  It comes with a Radeon
> > > Mobility
> > > HD 4850.  After install of Stretch testing, this worked fine,
> > > save
> > > for
> > > one small issue of the backlight not going out.  As I run this as
> > > kind
> > > of a server with no need to see the screen most of the time, I'd
> > > like
> > > to get the backlight to go out.  So I installed firmware-linux-
> > > nonfree. 
> > >  This actually causes me to get a blank screen...just the
> > > backlight
> > > on.
> > >  I can ssh into the machine, but I get no screen at all (http://a
> > > skub
> > > un
> > > tu.com/questions/688388/14-04-gets-black-screen-unless-radeon-
> > > modeset-0
> > > ).  I DO however see the backlight go out.  Right now I'm using
> > > radeon.modeset=0 to get an active screen again.  My question is
> > > there
> > > any way I can troubleshoot getting the backlight to go out?  I've
> > > got
> > > to:
> > I found some old reports about video output being redirected to the
> > external display, that might be something to investigate?
> > 
> > You don't run X at all? If so I'm not quite sure of to check for
> > which
> > display is active or how to control backlight.
> > 
> Thanks for the quick response.  This currently is running X, but only
> with radeon.modeset=0 for kernel args.  Otherwise, the machine boots,
> just black screen.
> 
> 
> 
And after hooking up a second monitor it indeeds defaults to that
second monitor after running:
modprobe radeon modeset=1
Now..I do I tell the driver which monitor to use?  Thank you.

Re: Stretch, Radeon 4850, and backlight

2016-06-23 Thread James Lay
On Thu, 2016-06-23 at 20:36 +0200, Sven Arvidsson wrote:
> On Thu, 2016-06-23 at 10:42 -0600, James Lay wrote:
> > 
> > Hey all,
> > 
> > soI have an oldish iMac 24 inch.  It comes with a Radeon
> > Mobility
> > HD 4850.  After install of Stretch testing, this worked fine, save
> > for
> > one small issue of the backlight not going out.  As I run this as
> > kind
> > of a server with no need to see the screen most of the time, I'd
> > like
> > to get the backlight to go out.  So I installed firmware-linux-
> > nonfree. 
> >  This actually causes me to get a blank screen...just the backlight
> > on.
> >  I can ssh into the machine, but I get no screen at all (http://ask
> > ub
> > un
> > tu.com/questions/688388/14-04-gets-black-screen-unless-radeon-
> > modeset-0
> > ).  I DO however see the backlight go out.  Right now I'm using
> > radeon.modeset=0 to get an active screen again.  My question is
> > there
> > any way I can troubleshoot getting the backlight to go out?  I've
> > got
> > to:
> I found some old reports about video output being redirected to the
> external display, that might be something to investigate?
> 
> You don't run X at all? If so I'm not quite sure of to check for
> which
> display is active or how to control backlight.
> 
Thanks for the quick response.  This currently is running X, but only
with radeon.modeset=0 for kernel args.  Otherwise, the machine boots,
just black screen.


Re: Stretch, Radeon 4850, and backlight

2016-06-23 Thread Sven Arvidsson
On Thu, 2016-06-23 at 10:42 -0600, James Lay wrote:
> Hey all,
> 
> soI have an oldish iMac 24 inch.  It comes with a Radeon Mobility
> HD 4850.  After install of Stretch testing, this worked fine, save
> for
> one small issue of the backlight not going out.  As I run this as
> kind
> of a server with no need to see the screen most of the time, I'd like
> to get the backlight to go out.  So I installed firmware-linux-
> nonfree. 
>  This actually causes me to get a blank screen...just the backlight
> on.
>  I can ssh into the machine, but I get no screen at all (http://askub
> un
> tu.com/questions/688388/14-04-gets-black-screen-unless-radeon-
> modeset-0
> ).  I DO however see the backlight go out.  Right now I'm using
> radeon.modeset=0 to get an active screen again.  My question is there
> any way I can troubleshoot getting the backlight to go out?  I've got
> to:

I found some old reports about video output being redirected to the
external display, that might be something to investigate?

You don't run X at all? If so I'm not quite sure of to check for which
display is active or how to control backlight.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se



signature.asc
Description: This is a digitally signed message part


Stretch, Radeon 4850, and backlight

2016-06-23 Thread James Lay
Hey all,

soI have an oldish iMac 24 inch.  It comes with a Radeon Mobility
HD 4850.  After install of Stretch testing, this worked fine, save for
one small issue of the backlight not going out.  As I run this as kind
of a server with no need to see the screen most of the time, I'd like
to get the backlight to go out.  So I installed firmware-linux-nonfree. 
 This actually causes me to get a blank screen...just the backlight on.
 I can ssh into the machine, but I get no screen at all (http://askubun
tu.com/questions/688388/14-04-gets-black-screen-unless-radeon-modeset-0
).  I DO however see the backlight go out.  Right now I'm using
radeon.modeset=0 to get an active screen again.  My question is there
any way I can troubleshoot getting the backlight to go out?  I've got
to:

https://wiki.debian.org/ATIProprietary
https://wiki.archlinux.org/index.php/ATI

But I'm just not having much success.  Thanks for any assistance you
can giveinfo below.  lspci and dmesg:##SELECTION_END##

02:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] RV770/M98L [Mobility Radeon HD 4850]
[   10.356922] [drm:radeon_init [radeon]] *ERROR* No UMS support in
radeon module!


dmesg without the modeset:
[   10.914802] radeon :02:00.0: VRAM: 512M 0x -
0x1FFF (512M used)
[   10.914804] radeon :02:00.0: GTT: 1024M 0x2000 -
0x5FFF
[   10.914806] [drm] Detected VRAM RAM=512M, BAR=256M
[   10.914807] [drm] RAM width 256bits DDR
[   10.914869] [TTM] Zone  kernel: Available graphics memory: 4088066
kiB
[   10.914870] [TTM] Zone   dma32: Available graphics memory: 2097152
kiB
[   10.914871] [TTM] Initializing pool allocator
[   10.914876] [TTM] Initializing DMA pool allocator
[   10.914895] [drm] radeon: 512M of VRAM memory ready
[   10.914896] [drm] radeon: 1024M of GTT memory ready.
[   10.914908] [drm] Loading RV770 Microcode
[   10.985259] radeon :02:00.0: firmware: direct-loading firmware
radeon/RV770_pfp.bin
[   11.015010] radeon :02:00.0: firmware: direct-loading firmware
radeon/RV770_me.bin
[   11.283904] radeon :02:00.0: firmware: direct-loading firmware
radeon/R700_rlc.bin
[   11.285010] radeon :02:00.0: firmware: direct-loading firmware
radeon/RV770_smc.bin
[   11.285019] [drm] External GPIO thermal controller with fan control
[   11.285034] [drm] radeon: power management initialized
[   11.437289] radeon :02:00.0: firmware: direct-loading firmware
radeon/RV770_uvd.bin
[   11.437338] [drm] GART: num cpu pages 262144, num gpu pages 262144
[   11.438616] [drm] enabling PCIE gen 2 link speeds, disable with
radeon.pcie_gen2=0
[   11.441386] [drm] PCIE GART of 1024M enabled (table at
0x00258000).
[   11.441422] radeon :02:00.0: WB enabled
[   11.441425] radeon :02:00.0: fence driver on ring 0 use gpu addr
0x2c00 and cpu addr 0x8800bdd54c00
[   11.441427] radeon :02:00.0: fence driver on ring 3 use gpu addr
0x2c0c and cpu addr 0x8800bdd54c0c
[   11.441903] radeon :02:00.0: fence driver on ring 5 use gpu addr
0x00056230 and cpu addr 0xc90001416230
[   11.441905] [drm] Supports vblank timestamp caching Rev 2
(21.10.2013).
[   11.441906] [drm] Driver supports precise vblank timestamp query.
[   11.441908] radeon :02:00.0: radeon: MSI limited to 32-bit
[   11.441938] radeon :02:00.0: radeon: using MSI.
[   11.441963] [drm] radeon: irq initialized.
[   11.488229] [drm] ring test on 0 succeeded in 1 usecs
[   11.488235] [drm] ring test on 3 succeeded in 2 usecs
[   11.662883] [drm] ring test on 5 succeeded in 1 usecs
[   11.662890] [drm] UVD initialized successfully.
[   11.663277] [drm] ib test on ring 0 succeeded in 0 usecs
[   11.663292] [drm] ib test on ring 3 succeeded in 0 usecs
[   12.312126] [drm] ib test on ring 5 succeeded
[   12.312699] [drm] radeon atom DIG backlight initialized
[   12.312702] [drm] Radeon Display Connectors
[   12.312703] [drm] Connector 0:
[   12.312704] [drm]   DP-1
[   12.312705] [drm]   HPD2
[   12.312706] [drm]   DDC: 0x7e60 0x7e60 0x7e64 0x7e64 0x7e68 0x7e68
0x7e6c 0x7e6c
[   12.312707] [drm]   Encoders:
[   12.312708] [drm] DFP1: INTERNAL_UNIPHY
[   12.312709] [drm] Connector 1:
[   12.312710] [drm]   DP-2
[   12.312711] [drm]   HPD3
[   12.312712] [drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28
0x7e2c 0x7e2c
[   12.312713] [drm]   Encoders:
[   12.312714] [drm] DFP2: INTERNAL_UNIPHY
[   12.312715] [drm] Connector 2:
[   12.312716] [drm]   LVDS-1
[   12.312717] [drm]   Encoders:
[   12.312718] [drm] LCD1: INTERNAL_KLDSCP_LVTMA
[   12.312719] [drm] Connector 3:
[   12.312719] [drm]   VGA-1
[   12.312721] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48
0x7e4c 0x7e4c
[   12.312722] [drm]   Encoders:
[   12.312723] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[   13.005463] [drm] fb mappable at 0xC0459000
[   13.005465] [drm] vram apper at 0xC000
[   13.005466] [drm] size 5947392
[   13.005467] [drm] fb