Linux check drivers in use

Linux Mint Forums

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

How to check what NVIDIA driver is in use

Post by notcosi » Sat Apr 30, 2011 4:02 pm

I have new Dell XPS L701 and installed Mint have enabled the nvidia current driver but from what I am reading, there would seem like there is no point? I am trying to get my head around what the forums are saying, but bit confused. Can someone help clarify for me, that although this all looks like it is working, it is in fact not working? The only way to have it working is to use Windows? The Nvidia geforce 445.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: think this may sound stupid but

Post by proxima_centauri » Sat Apr 30, 2011 4:19 pm

If you open a terminal and type the following, you will be able to see for certain what driver is in use

Re: How to check what NVIDIA driver is in use

Post by notcosi » Sat Apr 30, 2011 5:32 pm

Thanks . so this is the result:
Graphics: Card-1 Intel Core Processor Integrated Graphics Controller Card-2 nVidia Device 0dd3 X.Org 1.9.0 Res: 1600×900@60.1hz
GLX Renderer N/A GLX Version N/A Direct Rendering N/A
I don’t know what this means in terms of graphics quality? Such a noob

Читайте также:  Linux mint запуск run файлов

Re: How to check what NVIDIA driver is in use

Post by proxima_centauri » Sat Apr 30, 2011 5:48 pm

Okay, this must be one of those laptops with switchable graphics card.

When you open up Hardware Drivers from the menu in Administration, do you have the opportunity to activate the latest NVIDIA drivers?

Re: How to check what NVIDIA driver is in use

Post by notcosi » Sat Apr 30, 2011 6:08 pm

It says NVIDIA accelerated graphice driver (current) is activated and in use but when I go to NVIDIA X server settings it says You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server. Last time I did that I was unable to logon I got no screens detected. Not sure about all this at all!

Re: How to check what NVIDIA driver is in use

Post by proxima_centauri » Sat Apr 30, 2011 6:23 pm

The release notes for the latest NVIDIA drivers lists newly added support for your card -> http://www.nvidia.com/object/linux-disp . river.html

Unfortunately, the drivers are not available in the default repo’s but we can fix this. First uninstall the driver listed in Hardware Drivers.
Add the Ubuntu-X team PPA

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
apt-update && apt install nvidia-graphics-drivers

Re: How to check what NVIDIA driver is in use

Post by notcosi » Sat Apr 30, 2011 6:37 pm

Thansk for you r help with this
removed driver and then copied and pasted your commands got this:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
[sudo] password for ruth:
Executing: gpg —ignore-time-conflict —no-options —no-default-keyring —secret-keyring /etc/apt/secring.gpg —trustdb-name /etc/apt/trustdb.gpg —keyring /etc/apt/trusted.gpg —primary-keyring /etc/apt/trusted.gpg —keyserver keyserver.ubuntu.com —recv 643DC6BD56580CEB1AB4A9F63B22AB97AF1CDFA9
gpg: requesting key AF1CDFA9 from hkp server keyserver.ubuntu.com
gpg: key AF1CDFA9: «Launchpad PPA for Ubuntu-X» not changed
gpg: Total number processed: 1
gpg: unchanged: 1
ruth@ruth-XPS-L701X ~ $ apt-update && apt install nvidia-graphics-drivers
No command ‘apt-update’ found, did you mean:
Command ‘gpt-update’ from package ‘grid-packaging-tools’ (universe)
apt-update: command not found

Re: How to check what NVIDIA driver is in use

Post by bender1077 » Sat Apr 30, 2011 7:23 pm

notcosi wrote: ruth@ruth-XPS-L701X ~ $ apt-update && apt install nvidia-graphics-drivers
No command ‘apt-update’ found, did you mean:
Command ‘gpt-update’ from package ‘grid-packaging-tools’ (universe)
apt-update: command not found

sudo apt-get update && sudo apt-get install nvidia-graphics-drivers

I’m sorry, guys. I never meant to hurt you. Just to destroy everything you ever believed in.

Читайте также:  Подключение расшаренного принтера alt linux

Re: How to check what NVIDIA driver is in use

Post by proxima_centauri » Sat Apr 30, 2011 7:29 pm

apt update && apt install nvidia-graphics-drivers

bender1077’s command will work too, I just prefer the shorthand. (apt = sudo apt-get in Linux Mint in this case).

Re: How to check what NVIDIA driver is in use

Post by bender1077 » Sat Apr 30, 2011 7:35 pm

$ sudo apt-get install nvidia-graphics-drivers Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package nvidia-graphics-drivers 

Image

The package is noted in the repository, but not located. Any ideas?

EDIT*** Searched repositories for «nvidia» and nvidia-graphics-drivers do not show

Источник

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.12.43529

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

Источник

Linux: How to find the device driver used for a device?

If my target has one device connected and many drivers for that device loaded, how can I understand what device is using which driver?

Читайте также:  Linux server share files

8 Answers 8

Example. I want to find the driver for my Ethernet card:

$ sudo lspci . 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) $ find /sys | grep drivers.*02:00 /sys/bus/pci/drivers/r8169/0000:02:00.0 

First I need to find coordinates of the device using lspci ; then I find driver that is used for the devices with these coordinates.

I know the OP asked for «drivers being used», but what if the driver is not installed nor being used? How to find out just by the vendorID:productID ? Also, what if it is not a PCI device, and you only see it in lsusb for example?

@DrBeco: But if driver is not installed, what do you want to find? You should just google in this case

#!/bin/bash for f in /sys/class/net/*; do dev=$(basename $f) driver=$(readlink $f/device/driver/module) if [ $driver ]; then driver=$(basename $driver) fi addr=$(cat $f/address) operstate=$(cat $f/operstate) printf "%10s [%s]: %10s (%s)\n" "$dev" "$addr" "$driver" "$operstate" done 
$ ~/what_eth_drivers.sh eth0 [52:54:00:aa:bb:cc]: virtio_net (up) eth1 [52:54:00:dd:ee:ff]: virtio_net (up) eth2 [52:54:00:99:88:77]: virtio_net (up) lo [00:00:00:00:00:00]: (unknown) 

I’d like to find solution which would find also veth and other virtual drivers. IMHO the only solution is to use ethtool or lshw .

sudo lspci -v will show it. like this:

$ sudo lspci -v 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. . Kernel driver in use: radeon Kernel modules: radeon 

You can also combine it with grep like this:

$ sudo lspci -v | grep -A 20 VGA 

For USB based devices you can see the driver name by using the lsusb command:

And/or you use lshw which enumerates the devices on all buses including USB, PCI, etc so you can see which driver it uses:

FTR: the driver is shown at line titled configuration , for example: configuration: driver=btusb maxpower=100mA speed=12Mbit/s

If you just want to plainly use sysfs and doesn’t want to deal with all these commands which eventually looks inside sysfs anyways, here’s how:

say, what is the module/driver for eth6? «sfc» it is

# ls -l /sys/class/net/eth6/device/driver lrwxrwxrwx 1 root root 0 Jan 22 12:30 /sys/class/net/eth6/device/driver -> ../../../../bus/pci/drivers/sfc 

or better yet.. let readlink resolve the path for you.

# readlink -f /sys/class/net/eth6/device/driver /sys/bus/pci/drivers/sfc 

so. to figure out what are the drivers for all of your network interfaces:

# ls -1 /sys/class/net/ | grep -v lo | xargs -n1 -I<> bash -c 'echo -n <> :" " ; basename `readlink -f /sys/class/net/<>/device/driver`' eth0 : tg3 eth1 : tg3 eth10 : mlx4_core eth11 : mlx4_core eth2 : tg3 eth3 : tg3 eth4 : mlx4_core eth5 : mlx4_core eth6 : sfc eth7 : sfc eth8 : sfc eth9 : sfc 

Источник

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