hwinfo 替换为...什么?

use*_*404 16 hardware framebuffer detect

新的,希望更清楚的问题

这不是关于某些系统信息程序的问题

我需要知道我可以在 grub 配置中添加哪些帧缓冲模式,而无需开始计算内容和测试 1000 个命令行(因此 1000 次重启),据我所知 hwinfo实际上可以检测到这些模式

所以,我真正需要的是(从下面的 hwinfo --framebuffer 示例命令中删除),正如您所看到的,是一种模式,后跟一个分辨率,这就是该显卡支持的所有分辨率

 Mode 0x033c: 1920x1440 (+1920), 8 bits
  Mode 0x034d: 1920x1440 (+3840), 16 bits
  Mode 0x033a: 1600x1200 (+1600), 8 bits
  Mode 0x034b: 1600x1200 (+3200), 16 bits
  Mode 0x035a: 1600x1200 (+6400), 24 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x031a: 1280x1024 (+2560), 16 bits
  Mode 0x031b: 1280x1024 (+5120), 24 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0317: 1024x768 (+2048), 16 bits
  Mode 0x0318: 1024x768 (+4096), 24 bits
  Mode 0x0312: 640x480 (+2560), 24 bits
  Mode 0x0314: 800x600 (+1600), 16 bits
  Mode 0x0315: 800x600 (+3200), 24 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+800), 8 bits
  Mode 0x0311: 640x480 (+1280), 16 bits
Run Code Online (Sandbox Code Playgroud)

然后我可以选择任何我喜欢的分辨率,将它添加到内核中并确保它可以在没有其他测试的情况下工作

后来编辑:

请在发布前“挖掘”您自己的答案

这两个命令都没有返回结果

lshw | grep -i frame
lshw | grep -i buffer
Run Code Online (Sandbox Code Playgroud)

lshw 对帧缓冲区一无所知

同样地:

unset DISPLAY
hardinfo 2>&1 | grep -i frame
Run Code Online (Sandbox Code Playgroud)

同样是lspci

结论:这里似乎没有人真正理解我的命令实际上做了什么......讨厌,重新提出问题(检查顶部)

开始原始问题:

hwinfo
No command 'hwinfo' found, did you mean:
 Command 'hinfo' from package 'ganeti-htools' (universe)
hwinfo: command not found
Run Code Online (Sandbox Code Playgroud)

apt-get 安装 hwinfo

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package hwinfo is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'hwinfo' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

更确切地说,我需要以下命令的结果:(这是来自 hwinfo 仍在运行的旧系统)

hwinfo --framebuffer
> hal.1: read hal dataprocess 25433: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 282.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.464]
  Unique ID: rdCR.CkkMzksiCyE
  Hardware Class: framebuffer
  Model: "Intel(r)865G Graphics Controller"
  Vendor: "Intel Corporation"
  Device: "Intel(r)865G Graphics Controller"
  SubVendor: "Intel(r)865G Graphics Chip Accelerated VGA BIOS"
  SubDevice: 
  Revision: "Hardware Version 0.0"
  Memory Size: 7 MB + 832 kB
  Memory Range: 0xf0000000-0xf07cffff (rw)
  Mode 0x033c: 1920x1440 (+1920), 8 bits
  Mode 0x034d: 1920x1440 (+3840), 16 bits
  Mode 0x033a: 1600x1200 (+1600), 8 bits
  Mode 0x034b: 1600x1200 (+3200), 16 bits
  Mode 0x035a: 1600x1200 (+6400), 24 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x031a: 1280x1024 (+2560), 16 bits
  Mode 0x031b: 1280x1024 (+5120), 24 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0317: 1024x768 (+2048), 16 bits
  Mode 0x0318: 1024x768 (+4096), 24 bits
  Mode 0x0312: 640x480 (+2560), 24 bits
  Mode 0x0314: 800x600 (+1600), 16 bits
  Mode 0x0315: 800x600 (+3200), 24 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+800), 8 bits
  Mode 0x0311: 640x480 (+1280), 16 bits
  Config Status: cfg=new, avail=yes, need=no, active=unknown
Run Code Online (Sandbox Code Playgroud)

kar*_*rel 10

Ubuntu 12.04 中的 hwinfo 在 Ubuntu 14.04 中已停止使用,但后来在 Ubuntu 15.10、Ubuntu 16.04 及更高版本中重新使用。在 Ubuntu 14.04 中可以如下安装 hwinfo:

  1. Debian Package: libhd21 (21.6-1)下载与您的操作系统架构相匹配的hwinfo 的 libhd21依赖包。

  2. http://ftp.debian.org/debian/pool/main/h/hwinfo/下载与您的操作系统架构包匹配的 hwinfo_21.6-1

  3. 双击您下载的 libhd21 软件包,将其打开以在 Ubuntu 软件中心进行安装。

  4. 现在依赖包已经安装好了,双击下载的hwinfo包,在Ubuntu软件中心打开安装。

  5. hwinfo 现在可以从终端运行,包括可以使用以下命令运行的 framebuffer 选项:hwinfo --framebuffer有关其他 hwinfo 选项的信息,请运行:man hwinfo

这些步骤在 Ubuntu 14.04 上进行了测试。


A.B*_*.B. 6

  • fbset - 显示和修改帧缓冲设备设置

    sudo apt-get install fbset
    
    Run Code Online (Sandbox Code Playgroud)

    示例输出 sudo fbset -i

    mode "1920x1200-77"
        # D: 230.415 MHz, H: 94.743 kHz, V: 77.404 Hz
        geometry 1920 1200 1920 1200 32
        timings 4340 240 32 16 4 240 4
        rgba 8/16,8/8,8/0,8/24
    endmode
    
    Frame buffer device information:
        Name        : VESA VGA
        Address     : 0xf9000000
        Size        : 9240576
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 0
        YPanStep    : 0
        YWrapStep   : 0
        LineLength  : 7680
        Accelerator : No
    
    Run Code Online (Sandbox Code Playgroud)
  • xrandr – RandR 扩展的原始命令行界面

    示例输出 xrandr

    Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 8192 x 8192
    DVI-I-0 disconnected (normal left inverted right x axis y axis)
    DVI-I-1 disconnected (normal left inverted right x axis y axis)
    TV-0 disconnected (normal left inverted right x axis y axis)
    DVI-I-2 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
       1920x1200      60.0*+
       1920x1080      60.0  
       1680x1050      60.0  
       1600x1200      60.0  
       1440x900       59.9  
       1280x1024      60.0  
       1280x960       60.0  
       1280x720       60.0  
       1024x768       60.0  
       800x600        60.3  
       640x480        59.9
    
    Run Code Online (Sandbox Code Playgroud)
  • lspci - 列出所有 PCI 设备

    示例输出 lspci | awk '/VGA/ {system("lspci -v -s " $1)}'

    01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce 9800 GTX / 9800 GTX+] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: NVIDIA Corporation Device 0000
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at f8000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at df00 [size=128]
        [virtual] Expansion ROM at fb000000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
    
    Run Code Online (Sandbox Code Playgroud)
  • lshw

    示例输出 sudo lshw -class display

    *-display               
         description: VGA compatible controller
         product: G92 [GeForce 9800 GTX / 9800 GTX+]
         vendor: NVIDIA Corporation
         physical id: 0
         bus info: pci@0000:01:00.0
         version: a2
         width: 64 bits
         clock: 33MHz
         capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
         configuration: driver=nvidia latency=0
         resources: irq:27 memory:fa000000-faffffff memory:d0000000-dfffffff memory:f8000000-f9ffffff ioport:df00(size=128) memory:fb000000-fb01ffff
    
    Run Code Online (Sandbox Code Playgroud)

另一个图形用户界面是 hardinfo

sudo apt-get install hardinfo
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明


小智 5

hwinfo 是必不可少的实用程序。可惜 ubuntu 团队在没有完全理解其含义的情况下不小心删除了它。

参考 karel 的帖子,我设法在 14.04 上安装了它:

# apt-get 安装 libx86emu1
# wget http://ftp.debian.org/debian/pool/main/h/hwinfo/libhd21_21.21-2_amd64.deb
# wget http://ftp.debian.org/debian/pool/main/h/hwinfo/hwinfo_21.21-2_amd64.deb
# dpkg -i libhd21_21.21-2_amd64.deb
# dpkg -i hwinfo_21.21-2_amd64.deb

如果您在依赖项上遇到错误,也许您需要从此 repo 安装 hal:https : //launchpad.net/~mjblenner/+archive/ubuntu/ppa-hal

# 添加-apt-repository ppa:mjblenner/ppa-hal
# apt-get install hal hal-info