Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6694917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:09:30+00:00 2026-05-26T06:09:30+00:00

I am trying to find a tool that will extract the module version information

  • 0

I am trying to find a tool that will extract the module version information (a part of the module record) fron an Xserver module. For example, in the Xorg logs I can see the following information for the librecord module in my Xorg.0.log file…

[    39.892] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[    39.905] (II) Module record: vendor="X.Org Foundation"
[    39.905]    compiled for 1.9.0, module version = 1.13.0
[    39.905]    Module class: X.Org Server Extension
[    39.905]    ABI class: X.Org Server Extension, version 4.0

Is there a tools that would allow me to easily extract the aforementioned information. Sometimes you can use modinfo on the module and that will have version information, but that does not always work. The only consistent way I know of now is to parse the xorg log file. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:09:30+00:00Added an answer on May 26, 2026 at 6:09 am

    Yes, there is and you can also try to write a small one.

    http://gitorious.org/xdriverprobe

    The problem is that xdriverprobe won’t compile on newer servers since I didn’t update it to the newest ABIs. Also, xdriverprobe is only used for video drivers, but it can be adapted to be used on other modules. The main source code file (xdriverprobe.c) has less than 500 lines, so you can easily learn by reading it.

    It works in Ubuntu 11.10… ./xdriverprobe -o moduledata gives the information you want.

    Look at its source code. It does:

    • dlopen() the module
    • find a symbol called modulenameModuleData (if your module is called modulename)
    • that symbol is a XF86ModuleData* See /usr/include/xorg/xf86Module.h
    • check its member named vers

    Spend a few hours and you’ll be able to write a very tiny code that does what you want.

    More information: http://www.xfree86.org/current/DESIGN17.html#65 (very old document, but most of what’s written there is still true today). If you’re not happy with that document, you have to read the Xorg source code.

    Happy hacking!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find a graphing tool that runs clients side that will allow
I am trying to find a tool that will manage a bunch of jobs
Trying to find an example that has css rollover using sprites & sliding door
I'm trying to write a tool that will take as input some C code
I'm trying to find a tool that generates HTML documentation for my Javascript source
I'm trying to find a tool for Windows that I can use to preview
I'm trying to find a good tool (open source or commercial) for doing comparisons
I'm trying to find ab - Apache HTTP server benchmarking tool for Ubuntu, I'm
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
I am trying to find a good tool for iphone/objective-C to generate class diagram

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.