lshw -c video
, and look for the line with 'configuration'. The loaded driver is prefixed with 'driver='. Example output:modinfo
. Output of modinfo i915
:modinfo
works on filenames and aliases, not on module names. The majority of the modules will have the same name for the module name and filename, but there are exceptions. One of them is nvidia
.lsmod
will show the nvidia
module as loaded. modinfo nvidia
will error out. Why? Because there is no module named 'nvidia', it's just an alias. To resolve the alias you can use modprobe --resolve-alias nvidia
. Or to get the whole modinfo in one command:lspci -nnk | grep -i vga -A3
lspci -nnk | grep -i vga -A3 | grep 'Kernel modules'
:sisfb
kernel module is not the loaded driver, because lsmod | grep sisfb
has no output (sisfb
is blacklisted). In this case also sudo lshw -c video | grep Konfiguration
does not work. The output is:optirun
before the command.nouveau
wiki. It can also help with non-nvidia cards:https://nouveau.freedesktop.org/wiki/Optimus/xrandr --listproviders
and sudo cat /sys/kernel/debug/vgaswitcheroo/switch
. A lot of other useful info how to control power, outputs and offloading, etc.