Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HEADS UP: graphics driver fixes



My one more-or-less ordinary amd64 machine with a radeon X1550 Sapphire.

The VGA output is attached to an HP P1100 CRT which is capable of
2048x1536x60Hz, but no modes above 1024x768 are detected.  This is OK for
text console, but Xorg needs to be higher resolution.

I've been learning enough of 'xrandr' to do the trick.


NetBSD 7.99.5 (SKULD) #1: Sun Mar  1 19:40:14 CST 2015
        sysop%yggdrasil.technoskunk.fur@localhost:/r0/build/current/obj/amd64/sys/arch/amd64/compile/SKULD
[...]
HP Pavilion 061 ER975AA-ABA A1235C (0nx1114RE101ASTER00)
[...]
pchb0 at pci0 dev 0 function 0: ATI Technologies Radeon Xpress 200 (rev. 0x01)
[...]
radeon0 at pci1 dev 0 function 0: ATI Technologies product 7183 (rev. 0x00)
ATI Technologies product 71a3 (miscellaneous display) at pci1 dev 0 function 1 not configured
[...]
drm: initializing kernel modesetting (RV515 0x1002:0x7183 0x174B:0x3000).
drm: register mmio base: 0xfeaf0000
drm: register mmio size: 65536
drm kern info: ATOM BIOS: X1550
drm: Generation 2 PCI interface, using max accessible memory
radeon0: info: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
radeon0: info: GTT: 512M 0x0000000010000000 - 0x000000002FFFFFFF
drm: Detected VRAM RAM=100M, BAR=256M
drm: RAM width 128bits DDR
Zone  kernel: Available graphics memory: 1160246 kiB
drm: radeon: 256M of VRAM memory ready
drm: radeon: 512M of GTT memory ready.
drm: GART: num cpu pages 131072, num gpu pages 131072
drm: radeon: 1 quad pipes, 1 z pipes initialized.
drm: PCIE GART of 512M enabled (table at 0x0000000000040000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x0000000010000000 and cpu addr 0x0xffff80003bbbf000
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
radeon0: interrupting at ioapic0 pin 18 (radeon)
drm: radeon: irq initialized.
drm: Loading R500 Microcode
drm: radeon: ring at 0x0000000010001000
drm: ring test succeeded in 6 usecs
drm: ib test succeeded in 0 usecs
drm: Radeon Display Connectors
drm: Connector 0:
drm:   VGA-1
drm:   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
drm:   Encoders:
drm:     CRT1: INTERNAL_KLDSCP_DAC1
drm: Connector 1:
drm:   SVIDEO-1
drm:   Encoders:
drm:     TV1: INTERNAL_KLDSCP_DAC2
drm: Connector 2:
drm:   DVI-I-1
drm:   HPD2
drm:   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
drm:   Encoders:
drm:     CRT2: INTERNAL_KLDSCP_DAC2
drm:     DFP3: INTERNAL_LVTM1
radeondrmkmsfb0 at radeon0
radeon0: info: registered panic notifier
radeondrmkmsfb0: framebuffer at 0xffff80003bdc0000, size 1024x768, depth 32, stride 4096
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0

$ X & sleep 2 ; xterm -display :0 &

[1024x768 display on HP P1100 CRT]

$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00* 
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
S-video disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)

Additions to "/etc/X11/xdm/Xsetup_0" cribbed from my now legacy
"xorg.conf" file (originally generaed with 'gtf'):

xrandr --newmode 1856x1392  218.57  1856 1992 2192 2528  1392 1393 1396 1441  -HSync +Vsync
xrandr --addmode VGA-0 1856x1392
xrandr --output VGA-0 --mode 1856x1392

The only glitch with this is that 'xdm' has read the size of the display
before executing the "Displaymanager.0.setup" program and positions the
greeter widget according to the old mode (1024x768).

Pressing <ctrl-C> three times will cause it to reset and use the new mode.
I've not yet found a way to trigger this from the setup script.  The new
mode is used correctly when one exits their session.

I experience patches of black screen, usually when switching workspaces
in 'fvwm' while a window in the old workspace is being updated.

Sometimes the scrollbar of a terminal be blacked out, sometimes the terminal
background between words.  Sometimes there will be lines like an offset
shadow of the right edge of my tiled 'urxvt' windows.

'mplayer' (at least as used by wip/electricsheep-svn) seems to work
fairly well.

In my limited testing so far, I have not experienced Xorg hanging on
exit or suddenly consuming 100%+ of CPU.  It seems to exit cleanly.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index