Linux check which driver is used

Determine which graphics driver Xorg uses

On a fresh Arch Linux installation, I had difficulties with the graphics drivers. In the process, I have installed a lot of different drivers to somehow get the display working. Now I need to determine which driver X is using. How to do that? The installed packages include xf86-video-intel , xf86-video-nouveau , nvidia , xorg-drivers . To solve a strange issue to launch any graphical desktop manager i had to replace nividia-libgl with mesa-libgl . Graphics: Intel HD Graphics 4000 / Nvidia GT 750M The content of Xorg.0.log is: http://pastebin.com/YwiMZmG6

4 Answers 4

You can check the Xorg startup log file, usually /var/log/Xorg.0.log and look at which modules it is loading. By default Xorg can try to autodetect but you can manually force a driver by putting a Device stanza in an Xorg conf file. Here is what the Xorg startup log will look like for an nvidia card and the nvidia proprietary driver.

[ 3702.470] (II) xfree86: Adding drm device (/dev/dri/card0) [ 3702.472] (--) PCI:*(0:3:0:0) 10de:1184:3842:3774 rev 161, Mem @ 0xfa000000/16777216, 0xd8000000/134217728, 0xd6000000/33554432, I/O @ 0x0000cc00/128, BIOS @ 0x. /524288 [ 3702.472] (II) LoadModule: "glx" [ 3702.473] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so [ 3702.476] (II) Module glx: vendor="NVIDIA Corporation" [ 3702.476] compiled for 4.0.2, module version = 1.0.0 [ 3702.476] Module class: X.Org Server Extension [ 3702.476] (II) NVIDIA GLX Module 355.11 Wed Aug 26 16:02:11 PDT 2015 [ 3702.476] (II) LoadModule: "nvidia" [ 3702.476] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so [ 3702.476] (II) Module nvidia: vendor="NVIDIA Corporation" [ 3702.476] compiled for 4.0.2, module version = 1.0.0 [ 3702.476] Module class: X.Org Video Driver [ 3702.476] (II) NVIDIA dlloader X Driver 355.11 Wed Aug 26 15:38:55 PDT 2015 [ 3702.476] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 3702.476] (++) using VT number 7 

Источник

Читайте также:  Hp smart storage administrator linux

How do I find out which driver a piece of hardware is using?

Today I’m trying to figure out which driver is best for my USB wireless dongle. Everywhere I look I just see Ralink STA but this isn’t telling me which module this actually is. I’m sure there’s a way of looking it up but the computer should be able to tell me, shouldn’t it? Meta: This question is open to any piece of hardware, not just my wireless card. It would be helpful if we had a thread of useful diagnostic procedures so that other people can find out what’s going on with their hardware.

2 Answers 2

lshw

lshw is a very useful tool for finding details about all your hardware. It it should be able to tell you all sorts of nonsense — some useful, some not. In my case here’s what sudo lshw -c network gave me about my wired card:

 *-network description: Ethernet interface product: RTL8111/8168B PCI Express Gigabit Ethernet controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:09:00.0 logical name: eth1 version: 03 serial: xx:xx:xx:xx:xx:xx size: 10Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s resources: . 

The driver is buried in the configuration: section near the end.

If you just want a quick list of the modules in use, you could use this:

sudo lshw | grep -Eo 'driver=[^ ]+' | sort -u | cut -d\= -f2 

Источник

Читайте также:  Games linux vs windows performance

Linux kernel — check currently used drivers

Is it possible to check what drivers from linux kernel source are used for currently working devices in the system? I know that usually device drivers are written as kernel modules, but some of them have cryptic names and I would want to see if there is some listing that would say: deviceA : moduleA (or inform me that driver was built to the kernel during compilation) I need to modify some source code of current hardware drivers and I was wondering what is the easiest way to pinpoint exactly which drivers my hardware is using. To be exact I wanted to know what drivers are used by my keyboard, mouse, hard drive and network card. I am using Ubuntu 12.04 distribution.

1 Answer 1

You can list all currently running modules by running using lsmod . To retrieve information about a module and assosiated devices, etc, simply run modinfo

To see which driver is loaded for each particular device, the easiest is to run hwinfo . The command gives a lot of information, also not driver related info. For a overview you should run it as hwinfo —short

You must log in to answer this question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Читайте также:  Astra linux загруженность процессора

Источник

Оцените статью
Adblock
detector