Bug 97308 - radeon driver does not handle HD 5770 and xrandr does not detect screens , but only a default one
Summary: radeon driver does not handle HD 5770 and xrandr does not detect screens , bu...
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-11 20:40 UTC by diegogullo
Modified: 2016-08-12 13:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (113.79 KB, text/plain)
2016-08-11 21:09 UTC, diegogullo
no flags Details
Dmesg.log (249.01 KB, text/plain)
2016-08-11 21:10 UTC, diegogullo
no flags Details
Dmesg.log (78.24 KB, text/plain)
2016-08-11 21:41 UTC, diegogullo
no flags Details

Description diegogullo 2016-08-11 20:40:26 UTC
after kernel upgrade i moved from fglrx to radeon on my HD 5770 as apparently old proprietary drivers are not supported anymore.

---kernel
$ uname -a
Linux bizmate-i7 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
---


As two screens are currenlty mirrored (instead of extending) and using a non optimal resolution I wanted to configure xorg.conf to force a better set up. It used to work before upgrade

So i start by 

---
$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024
default connected primary 1280x1024+0+0 0mm x 0mm
   1280x1024      0.00* 
   1280x960       0.00  
   1152x864       0.00  
   1024x768       0.00  
   800x600        0.00  
   640x480        0.00  
   720x400        0.00
---

I cannot see the screens here so i assume xrandr has a bug as i was expecting at least two entries.


---
with hwinfo 

sudo hwinfo --monitor
[sudo] password for bizmate: 
67: None 00.0: 10002 LCD Monitor                                
  [Created at monitor.97]
  Unique ID: rdCR.ySEft6x80Y7
  Hardware Class: monitor
  Model: "LG ELECTRONICS W2486"
  Vendor: GSM "LG ELECTRONICS"
  Device: eisa 0x5723 "W2486"
  Resolution: 720x400@70Hz
  Resolution: 640x480@60Hz
  Resolution: 640x480@75Hz
  Resolution: 800x600@56Hz
  Resolution: 800x600@60Hz
  Resolution: 800x600@75Hz
  Resolution: 832x624@75Hz
  Resolution: 1024x768@60Hz
  Resolution: 1024x768@75Hz
  Resolution: 1280x1024@75Hz
  Resolution: 1280x1024@60Hz
  Resolution: 1280x960@60Hz
  Resolution: 1152x864@75Hz
  Resolution: 1920x1080@60Hz
  Size: 531x299 mm
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #0:
     Resolution: 1920x1080
     Horizontal: 1920 2008 2052 2200 (+88 +132 +280) +hsync
       Vertical: 1080 1084 1089 1125 (+4 +9 +45) +vsync
    Frequencies: 148.50 MHz, 67.50 kHz, 60.00 Hz
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #1:
     Resolution: 1920x1080
     Horizontal: 1920 1968 2000 2080 (+48 +80 +160) -hsync
       Vertical: 1080 1083 1088 1111 (+3 +8 +31) +vsync
    Frequencies: 138.50 MHz, 66.59 kHz, 59.93 Hz
  Driver Info #0:
    Max. Resolution: 1920x1080
    Vert. Sync Range: 56-75 Hz
    Hor. Sync Range: 30-83 kHz
    Bandwidth: 148 MHz
  Config Status: cfg=new, avail=yes, need=no, active=unknown

68: None 00.1: 10002 LCD Monitor
  [Created at monitor.97]
  Unique ID: jyhG.ySEft6x80Y7
  Hardware Class: monitor
  Model: "LG ELECTRONICS W2486"
  Vendor: GSM "LG ELECTRONICS"
  Device: eisa 0x5723 "W2486"
  Resolution: 720x400@70Hz
  Resolution: 640x480@60Hz
  Resolution: 640x480@75Hz
  Resolution: 800x600@56Hz
  Resolution: 800x600@60Hz
  Resolution: 800x600@75Hz
  Resolution: 832x624@75Hz
  Resolution: 1024x768@60Hz
  Resolution: 1024x768@75Hz
  Resolution: 1280x1024@75Hz
  Resolution: 1280x1024@60Hz
  Resolution: 1280x960@60Hz
  Resolution: 1152x864@75Hz
  Resolution: 1920x1080@60Hz
  Size: 531x299 mm
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #0:
     Resolution: 1920x1080
     Horizontal: 1920 2008 2052 2200 (+88 +132 +280) +hsync
       Vertical: 1080 1084 1089 1125 (+4 +9 +45) +vsync
    Frequencies: 148.50 MHz, 67.50 kHz, 60.00 Hz
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #1:
     Resolution: 1920x1080
     Horizontal: 1920 1968 2000 2080 (+48 +80 +160) -hsync
       Vertical: 1080 1083 1088 1111 (+3 +8 +31) +vsync
    Frequencies: 138.50 MHz, 66.59 kHz, 59.93 Hz
  Driver Info #0:
    Max. Resolution: 1920x1080
    Vert. Sync Range: 56-75 Hz
    Hor. Sync Range: 30-83 kHz
    Bandwidth: 148 MHz
  Config Status: cfg=new, avail=yes, need=no, active=unknown

69: None 00.2: 10002 LCD Monitor
  [Created at monitor.97]
  Unique ID: aHB6.ySEft6x80Y7
  Hardware Class: monitor
  Model: "LG ELECTRONICS W2486"
  Vendor: GSM "LG ELECTRONICS"
  Device: eisa 0x5723 "W2486"
  Resolution: 720x400@70Hz
  Resolution: 640x480@60Hz
  Resolution: 640x480@75Hz
  Resolution: 800x600@56Hz
  Resolution: 800x600@60Hz
  Resolution: 800x600@75Hz
  Resolution: 832x624@75Hz
  Resolution: 1024x768@60Hz
  Resolution: 1024x768@75Hz
  Resolution: 1280x1024@75Hz
  Resolution: 1280x1024@60Hz
  Resolution: 1280x960@60Hz
  Resolution: 1152x864@75Hz
  Resolution: 1920x1080@60Hz
  Size: 531x299 mm
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #0:
     Resolution: 1920x1080
     Horizontal: 1920 2008 2052 2200 (+88 +132 +280) +hsync
       Vertical: 1080 1084 1089 1125 (+4 +9 +45) +vsync
    Frequencies: 148.50 MHz, 67.50 kHz, 60.00 Hz
  Year of Manufacture: 2010
  Week of Manufacture: 9
  Detailed Timings #1:
     Resolution: 1920x1080
     Horizontal: 1920 1968 2000 2080 (+48 +80 +160) -hsync
       Vertical: 1080 1083 1088 1111 (+3 +8 +31) +vsync
    Frequencies: 138.50 MHz, 66.59 kHz, 59.93 Hz
  Driver Info #0:
    Max. Resolution: 1920x1080
    Vert. Sync Range: 56-75 Hz
    Hor. Sync Range: 30-83 kHz
    Bandwidth: 148 MHz
  Config Status: cfg=new, avail=yes, need=no, active=unknown
---

I assume the current bad experience with the driver is a bug as my gfx is supported in theory by radeon out the box. Also xrandr looks very buggy on my system. 

Any thoughts? Should i add more info?
Comment 1 Alex Deucher 2016-08-11 20:59:11 UTC
Please attach your xorg log and dmesg output.  It looks like are using a generic driver like vesa or fbdev rather than the native radeon driver.  Maybe radeon is still blacklisted from when you had fglrx installed.
Comment 2 diegogullo 2016-08-11 21:09:38 UTC
Created attachment 125719 [details]
Xorg log

I am not 100% sure about analysing this log, but i see radeon modules loaded and ati driver mentioned as 0
Comment 3 diegogullo 2016-08-11 21:10:18 UTC
Created attachment 125720 [details]
Dmesg.log
Comment 4 diegogullo 2016-08-11 21:10:37 UTC
also does this help at all

---
$ sudo lshw -c video
[sudo] password for bizmate: 
  *-display UNCLAIMED     
       description: VGA compatible controller
       product: Juniper XT [Radeon HD 5770]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:e0000000-efffffff memory:fbec0000-fbedffff ioport:be00(size=256) memory:fbe00000-fbe1ffff

---
Comment 5 diegogullo 2016-08-11 21:13:55 UTC
no blacklisting in modprobe

$ pwd
/etc/modprobe.d
/etc/modprobe.d > bizmate@bizmate-i7 [php:5.6.17-phpbrew]
$ grep radeon *
blacklist-framebuffer.conf:blacklist radeonfb
fbdev-blacklist.conf:blacklist radeonfb
grep: fglrx-core.conf_BACKUP_DISABLED: No such file or directory
Comment 6 Alex Deucher 2016-08-11 21:18:15 UTC
The radeon driver isn't loaded.  It looks like radeon is blacklisted from when you had fglrx installed.  Stop X and see if you can manually load radeon (modprobe radeon).
Comment 7 Alex Deucher 2016-08-11 21:20:09 UTC
Also, please attach your dmesg output from a fresh boot.  It doesn't contain any driver messages, just docker spam.
Comment 8 diegogullo 2016-08-11 21:36:53 UTC
sudo modprobe radeon
[74355.098989] [drm:radeon_init [radeon]] *ERROR* no UMS support in radeon module!
modprobe: ERROR coult not insert 'radeon': Invalid argument
Comment 9 Alex Deucher 2016-08-11 21:40:43 UTC
Do you have nomodeset or radeon.modeset=0 set in your grub config?
Comment 10 Alex Deucher 2016-08-11 21:41:11 UTC
Try modprobe radeon modeset=1
Comment 11 diegogullo 2016-08-11 21:41:37 UTC
Created attachment 125721 [details]
Dmesg.log

dmesg after reboot
Comment 12 Alex Deucher 2016-08-11 21:44:25 UTC
There's the problem:
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic root=UUID=315979a7-13a8-49cf-bd7a-616f29ad8c79 ro acpi=force nomodeset
remove "nomodeset" from your grub config.
Comment 13 diegogullo 2016-08-11 22:10:58 UTC
that fixed it, 
also xrandr -q works now and sees the monitors
i wonder why i had this enabled as apparently it is just an option to stop the kernel from loading drivers and such. 
Anyway thanks a lot and i am pretty sure xorg cant do much for this to detect such problems
Comment 14 Alex Deucher 2016-08-12 13:41:30 UTC
It may have been leftover from fglrx.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.