hardware.rst
changeset 2215 3b163a0580fc
parent 2208 78545cdddf98
child 2222 f0ae5873196a
equal deleted inserted replaced
2214:f7b3d90697ab 2215:3b163a0580fc
     7    :local:
     7    :local:
     8 
     8 
     9 Linux hardware compatibility databases.
     9 Linux hardware compatibility databases.
    10 =======================================
    10 =======================================
    11 
    11 
    12   http://www.linux-drivers.org/
    12 http://www.linux-drivers.org/
    13     Links for various databases.
    13   Links for various databases.
    14   https://h-node.org/
    14 https://h-node.org/
    15     Hardware database of devices that work with a fully free operating system.
    15   Hardware database of devices that work with a fully free operating system.
    16   http://linux-sound.org/hardware.html
    16 http://linux-sound.org/hardware.html
    17     Audio interfaces for Linux.
    17   Audio interfaces for Linux.
    18   http://openbenchmarking.org/
    18 http://openbenchmarking.org/
    19     Public result database from Phoronix Test Suite for Linux.
    19   Public result database from Phoronix Test Suite for Linux.
    20 
    20 
    21 Distros list of supported hardware:
    21 Distros list of supported hardware:
    22 
    22 
    23   https://wiki.debian.org/InstallingDebianOn/
    23 https://wiki.debian.org/InstallingDebianOn/
    24     How to install, configure and use Debian on some specific hardware.
    24   How to install, configure and use Debian on some specific hardware.
    25   https://en.opensuse.org/Hardware
    25 https://en.opensuse.org/Hardware
    26     OpenSuse.
    26   OpenSuse.
    27   https://hardware.redhat.com/
    27 https://hardware.redhat.com/
    28     RedHat.
    28   RedHat.
    29 
    29 
    30 List of supported video / graphics card / chipset card by Xorg:
    30 List of supported video / graphics card / chipset card by Xorg:
    31 
    31 
    32   http://xorg.freedesktop.org/wiki/Projects/Drivers/
    32 http://xorg.freedesktop.org/wiki/Projects/Drivers/
    33     graphics card / chipset
    33   graphics card / chipset
    34 
    34 
    35 List of supported laptops/mobile::
    35 List of supported laptops/mobile::
    36 
    36 
    37   http://www.linux-on-laptops.com/
    37 http://www.linux-on-laptops.com/
    38     Reports on running Linux on notebook or laptop computers.
    38   Reports on running Linux on notebook or laptop computers.
    39   http://tuxmobil.org/
    39 http://tuxmobil.org/
    40     Laptop/mobile support.
    40   Laptop/mobile support.
    41 
    41 
    42 Printers:
    42 Printers:
    43 
    43 
    44   http://www.openprinting.org/printers
    44 http://www.openprinting.org/printers
    45     List of printers.
    45   List of printers.
    46   http://www.openprinting.org/drivers
    46 http://www.openprinting.org/drivers
    47     List of drivers.
    47   List of drivers.
    48 
    48 
    49 LAN:
    49 LAN:
    50 
    50 
    51   http://linux-wless.passys.nl/
    51 http://linux-wless.passys.nl/
    52     Linux wireless LAN support.
    52   Linux wireless LAN support.
    53 
    53 
    54 List hardware under Linux.
    54 List hardware under Linux.
    55 ==========================
    55 ==========================
    56 
    56 
    57 Command line:
    57 Command line:
    58 
    58 
    59   ``dmesg``
    59 ``dmesg``
    60     Messages about detecting new hardware.
    60   Messages about detecting new hardware.
    61   ``lshal -m``
    61 ``lshal -m``
    62     monitor for hardware changes
    62   monitor for hardware changes
    63   ``lspci``
    63 ``lspci``
    64     All PCI devices.
    64   All PCI devices.
    65   ``lspci -vvv``
    65 ``lspci -vvv``
    66     All PCI devices. Very verbose output.
    66   All PCI devices. Very verbose output.
    67   ``sudo lspci -vvvnn``
    67 ``sudo lspci -vvvnn``
    68     All PCI devices. Very verbose output with vendor and device codes as both numbers and names.
    68   All PCI devices. Very verbose output with vendor and device codes as both numbers and names.
    69   ``hwinfo --short``
    69 ``hwinfo --short``
    70     Overview of all hardware, as well as more detailed info.
    70   Overview of all hardware, as well as more detailed info.
    71   ``lshw``
    71 ``lshw``
    72     Another program for listing hardware.
    72   Another program for listing hardware.
    73   ``lshw -html | w3m -T text/html``
    73 ``lshw -html | w3m -T text/html``
    74     Lists hardware with HTML output in the w3m web browser.
    74   Lists hardware with HTML output in the w3m web browser.
    75   ``uptime``
    75 ``uptime``
    76     Current time elapsed since last reboot, users, and load average.
    76   Current time elapsed since last reboot, users, and load average.
    77   ``lsusb``
    77 ``lsusb``
    78     USB buses and attached devices.
    78   USB buses and attached devices.
    79   ``lsusb -vvv``
    79 ``lsusb -vvv``
    80     USB buses and attached devices. Very verbose output.
    80   USB buses and attached devices. Very verbose output.
    81 
    81 
    82 GUI: ``hardinfo``, ``lshw-gtk``.
    82 GUI: ``hardinfo``, ``lshw-gtk``.
    83 
    83 
    84 List hardware under Windows.
    84 List hardware under Windows.
    85 ============================
    85 ============================
    96   In-depth Hardware Information for Windows.
    96   In-depth Hardware Information for Windows.
    97 
    97 
    98 List processors.
    98 List processors.
    99 ================
    99 ================
   100 
   100 
   101   ``cat /proc/cpuinfo``
   101 ``cat /proc/cpuinfo``
   102     All processors, clock speeds, flags, and more.
   102   All processors, clock speeds, flags, and more.
   103   ``watch -d grep MHz /proc/cpuinfo``
   103 ``watch -d grep MHz /proc/cpuinfo``
   104     CPU MHz speed monitor.
   104   CPU MHz speed monitor.
   105   ``cat /proc/loadavg``
   105 ``cat /proc/loadavg``
   106     Processor load average for the last 1, 5, and 15 minutes.
   106   Processor load average for the last 1, 5, and 15 minutes.
   107   ``top``
   107 ``top``
   108     Press C key to sort processes by CPU usage.
   108   Press C key to sort processes by CPU usage.
   109   ``sudo powertop``
   109 ``sudo powertop``
   110     CPU usage by processes, idle/freq/dev stats
   110   CPU usage by processes, idle/freq/dev stats
   111 
   111 
   112 List memory.
   112 List memory.
   113 ============
   113 ============
   114 
   114 
   115   ``free``
   115 ``free``
   116     Total, used, and free memory.
   116   Total, used, and free memory.
   117   ``free -m``
   117 ``free -m``
   118     Total, used, and free memory shown in MB.
   118   Total, used, and free memory shown in MB.
   119   ``cat /proc/meminfo``
   119 ``cat /proc/meminfo``
   120     Amount of RAM and swap, and how much is being used for what.
   120   Amount of RAM and swap, and how much is being used for what.
   121   ``top``
   121 ``top``
   122     Real-time memory consumption. Press M key to sort processes by memory usage.
   122   Real-time memory consumption. Press M key to sort processes by memory usage.
   123 
   123 
   124 ::
   124 ::
   125 
   125 
   126   $ cat /proc/meminfo
   126   $ cat /proc/meminfo
   127   $ sudo lshw -class memory
   127   $ sudo lshw -class memory
   135   $ read-edid
   135   $ read-edid
   136 
   136 
   137 Graphics card/GPU/DRM.
   137 Graphics card/GPU/DRM.
   138 ======================
   138 ======================
   139 
   139 
   140   ``glxinfo``
   140 ``glxinfo``
   141                 Details about OpenGL, the Xserver, and your graphics card.
   141   Details about OpenGL, the Xserver, and your graphics card.
   142   ``glxinfo | grep direct``
   142 ``glxinfo | grep direct``
   143                 Do you have direct 3d rendering?
   143   Do you have direct 3d rendering?
   144   ``glxinfo | grep vendor``
   144 ``glxinfo | grep vendor``
   145                 Graphics card vendor.
   145   Graphics card vendor.
   146   ``lspci | grep VGA``
   146 ``lspci | grep VGA``
   147                 Specific graphics card model.
   147   Specific graphics card model.
   148   ``glxgears``
   148 ``glxgears``
   149                 A simple 3d benchmark, prints frame rate to the terminal.
   149   A simple 3d benchmark, prints frame rate to the terminal.
   150   ``xrandr``
   150 ``xrandr``
   151                 Supported display resolutions.
   151   Supported display resolutions.
   152   ``xdpyinfo``
   152 ``xdpyinfo``
   153     Utility for displaying information about an X server, monitor DPI,
   153   Utility for displaying information about an X server, monitor DPI, resolutions, etc.
   154     resolutions, etc.
   154 ``xvinfo``
   155   ``xvinfo``
   155   Print out X-Video extension adaptor information.
   156     Print out X-Video extension adaptor information.
   156 ``xdriinfo``
   157   ``xdriinfo``
   157   Query configuration information of DRI drivers.
   158     Query configuration information of DRI drivers.
       
   159 
   158 
   160 ``GPU-z`` may be used under Windows.
   159 ``GPU-z`` may be used under Windows.
   161 
   160 
   162 Nvidia cards.
   161 Nvidia cards.
   163 -------------
   162 -------------
   169 
   168 
   170 Memory usage, GPU utilization and temperature for Nvidia cards::
   169 Memory usage, GPU utilization and temperature for Nvidia cards::
   171 
   170 
   172   $ sudo apt-get install nvidia-smi
   171   $ sudo apt-get install nvidia-smi
   173   $ nvidia-smi
   172   $ nvidia-smi
       
   173 
       
   174 https://nouveau.freedesktop.org/wiki/
       
   175   Open source drivers for GeForce cards.
   174 
   176 
   175 Intel cards.
   177 Intel cards.
   176 ------------
   178 ------------
   177 ::
   179 ::
   178 
   180 
   194   $ aticonfig --odgc --odgt
   196   $ aticonfig --odgc --odgt
   195 
   197 
   196 Audio.
   198 Audio.
   197 ======
   199 ======
   198 
   200 
   199   ``lspci | grep Audio``
   201 ``lspci | grep Audio``
   200                 Audio controller.
   202   Audio controller.
   201   ``aplay --list-devices``
   203 ``aplay --list-devices``
   202                 More audio device information.
   204   More audio device information.
   203 
   205 
   204 Software versions.
   206 Software versions.
   205 ==================
   207 ==================
   206 
   208 
   207   ``cat /etc/issue``
   209 ``cat /etc/issue``
   208                 Current distribution and version.
   210   Current distribution and version.
   209   ``apt-cache showpkg packagename``
   211 ``apt-cache showpkg packagename``
   210                 Packagename’s version and dependencies.
   212   Packagename’s version and dependencies.
   211   ``uname -r``
   213 ``uname -r``
   212                 Linux kernel version.
   214   Linux kernel version.
   213   ``uname -a``
   215 ``uname -a``
   214                 All kernel details.
   216   All kernel details.
   215 
   217 
   216 Networking.
   218 Networking.
   217 ===========
   219 ===========
   218 
   220 
   219   ``lspci | grep Ethernet``
   221 ``lspci | grep Ethernet``
   220     Ethernet controllers.
   222   Ethernet controllers.
   221   ``lshw -class network``
   223 ``lshw -class network``
   222     Hardware capabilities of network devices.
   224   Hardware capabilities of network devices.
   223   ``sudo ethtool eth0``
   225 ``sudo ethtool eth0``
   224     Hardware capabilities of network device.
   226   Hardware capabilities of network device.
   225   ``ethtool -i eth0``
   227 ``ethtool -i eth0``
   226     Driver info.
   228   Driver info.
   227   ``ip link show``
   229 ``ip link show``
   228     List of netword devices and MAC addresses.
   230   List of netword devices and MAC addresses.
   229   ``ip addr show``
   231 ``ip addr show``
   230     List of netword devices, assigned IP addresses and MAC addresses.
   232   List of netword devices, assigned IP addresses and MAC addresses.
   231   ``ifconfig``
   233 ``ifconfig``
   232     Networking interfaces, IP addresses, and more.
   234   Networking interfaces, IP addresses, and more.
   233 
   235 
   234 Hard disks.
   236 Hard disks.
   235 ===========
   237 ===========
   236 
   238 
   237   ``df -H``
   239 ``df -H``
   238                 Partitions, as well as their mount-points and usage in GB.
   240   Partitions, as well as their mount-points and usage in GB.
   239   ``sudo fdisk -l``
   241 ``sudo fdisk -l``
   240                 All partitions, their device names, and positions on disk.
   242   All partitions, their device names, and positions on disk.
   241   ``hwinfo --disk`` or  ``lshw -class disk``
   243 ``hwinfo --disk`` or  ``lshw -class disk``
   242                 Disk hardware info.
   244   Disk hardware info.
   243   ``smartctl``
   245 ``smartctl``
   244                 Show S.M.A.R.T. reports about disk heals.
   246   Show S.M.A.R.T. reports about disk heals.
   245 
   247 
   246 Fan/temperature/voltage.
   248 Fan/temperature/voltage.
   247 ========================
   249 ========================
   248 
   250 
   249 Detect available sensors::
   251 Detect available sensors::