LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2009, 09:45 PM   #1
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Rep: Reputation: 16
upgrading libdrm


I'm having problems getting my box with a VIA mobo and an ATI r200 video adapter
to use DRI.

Some folks at the ATI forum and the DRM maintainers have had me post this as a
bug.http://bugs.freedesktop.org/show_bug.cgi?id=19698

The latest suggestion regarding debugging this is to:
Quote:
you could try making libdrm and using it instead of the system one
I don't quite understand. I think I am being asked to take my current (SL12.2)
provided libdrm, and upgrade it to the latest.

My Slack 12.2 has a package: libdrm-2.3.0-i485-1 which installs
/usr/lib/libdrm.so.2.3.0

and also a README that simply says:

Code:
By default, this will install into /usr/local.  If you want to install this
libdrm to replace your system copy, say:

./configure --prefix=/usr --exec-prefix=/
The latest libdrm is libdrm 2.4.4 http://lists.freedesktop.org/archive...ry/000746.html

So, I need to do a git download of the latest libdrm, do a make, and install it.
This all sounds daunting, and filled with a chances to really screw it up.


Is there a command to identify which drm modules, which libdrm is currently up and
running on my running system?

lsmod? modinfo? something?

Once I feel confident that I can observe and identify what I have on my system, that will
give me confidence so when I install the newer versions I can run the command and verify
that I have done the libdrm upgrade successfully.

1) how do I confirm what is currently on my system (libdrm, drm).
2) how do I upgrade to the latest libdrm
3) how do I confirm that the latest is properly installed.

Thanks.
 
Old 02-03-2009, 09:48 PM   #2
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Original Poster
Rep: Reputation: 16
Someone wrote:
Quote:
I think I've run into this problem twice before. As I recall, it has something to do with the different DRM implementations (Kernel, X.org and ATi each seem to have one... :/ ). Looking at my own setup, disabling CONFIG_DRM in .config and installing X.org's libdrm lets things work in relative harmony. Sorry if you've tried that already, but I figure it doesn't hurt to share tips anyway.
Are there multiple instances of DRM on a working system. If so, when running startx how do I designate
a specific one. And, with X up and running what command can I run to show which DRM implementation is
being used. (Or, in my case, not being used.)
 
Old 02-03-2009, 09:55 PM   #3
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Original Poster
Rep: Reputation: 16
FWIW,

Here is some of the relevant original DRI error in my Xorg log.

Code:
(II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.29.0
(==) RADEON(0): Page Flipping disabled
(II) RADEON(0): Will try to use DMA for Xv image transfers
(II) RADEON(0): Detected total video RAM=131072K, accessible=131072K (PCI BAR=131072K)
(--) RADEON(0): Mapped VideoRAM: 131072 kByte (128 bit DDR SDRAM)
.......
.......
.......
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -19
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmGetBusid returned ''
(II) [drm] DRM interface version 1.0
(EE) [drm] Could not set DRM device bus ID.
(EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.
init memmap
init common
init crtc1
init pll1
freq: 135000000
best_freq: 135000000
best_feedback_div: 20
best_ref_div: 2
best_post_div: 2
restore memmap
(II) RADEON(0): RADEONRestoreMemMapRegisters() :
(II) RADEON(0):   MC_FB_LOCATION   : 0xc7ffc000 0x1fff0000
(II) RADEON(0):   MC_AGP_LOCATION  : 0xffffffc0
restore common
restore crtc1
restore pll1
finished PLL1
restore dac
(==) RADEON(0): Backing store disabled
(WW) RADEON(0): Direct rendering disabled
 
Old 02-04-2009, 01:32 PM   #4
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Original Poster
Rep: Reputation: 16
There is a DRI wiki. It has a page

1. Building the DRI with X.org and Mesa
1.3. Building libdrm

http://dri.freedesktop.org/wiki/Buil...c082e830832250

So I am going to backup my /usr/lib/libdrm*
and then dive in building a git pull from the source.

I fear I am going to horribly break everything. But, oh well.
 
Old 02-04-2009, 05:47 PM   #5
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
if you are going to upgrade those you can easily modify the slackbuilds included inthe source of 12.2. I have upgraded them to use the opensource driver 3d rendering. Get the latest mesa and see which libdrm it suggests. Build the libdrm first then build the mesa driver. upgradepkg should do the trick. Good luck and I really can't see things really being broken too much(atleast not easily fixed).
 
Old 02-04-2009, 11:40 PM   #6
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
I'd hate to say, but the latest DRI probably won't work right unless you upgrade to Xserver 1.5.
 
Old 02-05-2009, 01:12 AM   #7
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Original Poster
Rep: Reputation: 16
I've been told that the latest libdrm is backwards compatible with the last x server and mesa.
(I'm just the messenger on that bit of info.)

I think I am going to build mesa and libdrm, back up my libs, that swap in libdrm.so.2.4.4.

Will it work, will it fail?

The other option is to teach myself how to make a slackbuild for this source.

I searched slackbuilds for 'dri', 'drm', 'mesa' and nothing.

What, and where is the slackbuild that is used for the official slackware libdrm package?

Is there a repository of Patrick V. official slackware slackbuilds somewhere?
 
Old 02-05-2009, 05:14 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by User0x45 View Post
What, and where is the slackbuild that is used for the official slackware libdrm package?

Is there a repository of Patrick V. official slackware slackbuilds somewhere?
Go here:
http://slackware.com/getslack/
Choose your nearest mirror, and look in the /12.2/source/x/libdrm directory.

Last edited by brianL; 02-05-2009 at 05:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble installing libdrm-dev nemp Linux - Software 5 01-28-2009 02:51 PM
Can't upgrade libdrm to 2.3 SilverZero Linux - Newbie 2 03-20-2007 03:57 PM
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 12:09 PM
Upgrading from 9.2 to 10.0 Xandor Linux - Distributions 3 10-14-2005 10:45 PM
upgrading (or not upgrading) glibc richarde Slackware 9 09-12-2005 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration