AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-180266

Csaba Toth's questions

Martin Hope
Csaba Toth
Asked: 2019-12-21 22:51:16 +0800 CST

ufw-init 错误,参数错误 DROP

  • 2

不幸的是,我不知道它何时停止工作,因为我将它用作火灾而忘记了解决方案。不久前,我检查了一下,gufw惊讶地发现我的机器是裸露的。

root@asus:/etc/ufw# dpkg -l | grep ufw
ii  gufw   19.10.0-2
ii  ufw    0.36-1


root@asus:/etc/ufw# dpkg -l | grep tables
ii  iptables               1.8.4-11
ii  iptables-dev:amd64     1.8.3-2
ii  libnftables1:amd64     0.9.3-2
ii  libnftnl11:amd64       1.1.5-1
ii  libxtables-dev:amd64   1.8.4-1
ii  libxtables12:amd64     1.8.4-1
ii  nftables               0.9.3-2

我正在使用5.3.0-3-amd64内核运行。

实际错误:

root@asus:/# ufw enable
ERROR: problem running ufw-init
Bad argument `DROP'
Error occurred at line: 4
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 4
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore: line 2 failed
Bad argument `-'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.4 (nf_tables): Chain 'ufw-user-input' does not exist
Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Bad argument `DROP'
Error occurred at line: 4
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 4
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
ip6tables-restore: line 2 failed
Bad argument `-'
Error occurred at line: 3
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Bad argument `-'
Error occurred at line: 3
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
ip6tables-restore v1.8.4 (nf_tables): Chain 'ufw6-user-input' does not exist
Error occurred at line: 2
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.

Problem running '/etc/ufw/user.rules'
Problem running '/etc/ufw/user6.rules'

我还没有发现任何关于这个的明显命中(很多 ufw 问题,但不是这种类型)。我想知道这是否与内核的iptables支持有关,nftables包以某种方式进入已安装的包或其他东西的事实?如果我删除before*.rules或因此我after*.rules得到/etc/ufw一个错误,脚本会查找这些文件。

我想知道是否有人对ufw enable. 现在我ufw的是不活动的。

root@asus:/etc/ufw# lsmod | grep tables
ip6_tables             36864  0
ip_tables              32768  0
x_tables               49152  17 xt_conntrack,nft_compat,xt_LOG,xt_multiport,xt_tcpudp,xt_hashlimit,xt_addrtype,xt_recent,ip6t_rt,xt_comment,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,xt_MASQUERADE,ip6t_REJECT
nf_tables             163840  46 nft_compat,nft_counter,nft_chain_nat,nft_limit
nfnetlink              16384  4 nft_compat,nf_conntrack_netlink,nf_tables
iptables ufw gufw nftables
  • 1 个回答
  • 2214 Views
Martin Hope
Csaba Toth
Asked: 2019-12-04 15:32:39 +0800 CST

为什么 MySQL Workbench 8.x 出现 SSL 连接错误,请选择客户端版本不支持的协议

  • 11

我有一个运行 MySQL 服务器 5.7.27 的本地开发人员环境。我使用 MySQL Workbench 6.3.10(这是 8.0 之前的最新版本 AFAIK)没有任何问题。但是,当我升级到 MySQL Workbench 8.0.18 并尝试连接到完全相同的本地服务器时,出现错误:

Failed to Connect to MySQL at 127.0.0.1:3306 with user root
SSL connection error: error:1425F102:SSL
routines:ssl_choose_client_version:unsupported protocol

这不是 root 访问的问题,因为我可以连接到完全相同的服务器,而无需使用 6.3.10 工作台进行任何配置更改。出于同样的原因,我相信 127.0.0.1 也不是问题。

也许这与 OpenSSL 有关?但我在日志中看不到足够的信息。我得到的最多[Note] Bad handshake的是/var/log/mysql/error/log. 因此,如果我关闭 SSL 连接(强制未加密连接),Workbench 可以连接。所以很明显 Server 5.7.2x 和 8.x Workbench 之间有些不匹配,但是为什么呢?

我安装了 Workbench 8.0.18 的 18.04 LTS 版本,假设我的 Ubuntu 也是这样(它是一个衍生产品)。

ssl mysql openssl mysql-workbench
  • 3 个回答
  • 17836 Views
Martin Hope
Csaba Toth
Asked: 2019-03-03 23:15:26 +0800 CST

如何让 UPower 和电源子系统识别电源已插入?

  • 3

我正在使用 Xfce4,它具有xfce4-power-manager视觉提示和upower核心支持包之一(我看到一个/usr/lib/upower/upowerd正在运行的ps aux输出)。除此之外,还pm-utils安装了,在日志中我看到它处于活动状态。我不确定这是否会搅动任何水,为了完整起见,我肯定会在此处列出。

该机器是 Acer Predator Helios 500 PH517-61-R0GX (AMD Ryzen)。完全相同的安装(字面意思是相同的 SSD 棒)在华硕 ROG Strix GL702ZC(也是 AMD Ryzen 笔记本电脑,但使用 Ryzen 1700 而不是 Ryzen 2700)中。华硕没有这种问题。

# upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sat 02 Mar 2019 10:08:52 PM PST (2442 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               PANASONIC
  model:                AP17C5P
  serial:               1409
  power supply:         yes
  updated:              Sat 02 Mar 2019 10:49:28 PM PST (6 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              73.1346 Wh
    energy-empty:        0 Wh
    energy-full:         74.074 Wh
    energy-full-design:  74.074 Wh
    energy-rate:         0 W
    voltage:             17.374 V
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion

Daemon:
  daemon-version:  0.9.23
  can-suspend:     yes
  can-hibernate:   no
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       yes

注意上面的电源online: no和电池state: discharge,尽管在我写这篇文章时情况正好相反:交流适配器已插入并且电池应该充满电。这也是惯例,因为如果电池真的在放电,我会在大约 1.5 小时内没电。

现在UPower可以从子系统中获取它的信息。我看到这个:

# cat /sys/class/power_supply/ACAD/online 
0
# cat /sys/class/power_supply/BAT1/status 
Discharging

即使我尝试将 CPU 频率调节器强制为performance,CPU 也会被抑制:

# cat /proc/cpuinfo | grep MHz
cpu MHz     : 548.695
cpu MHz     : 548.572
cpu MHz     : 548.638
cpu MHz     : 548.658
cpu MHz     : 548.226
cpu MHz     : 548.899
cpu MHz     : 548.528
cpu MHz     : 548.477
cpu MHz     : 548.819
cpu MHz     : 548.440
cpu MHz     : 548.905
cpu MHz     : 548.263
cpu MHz     : 548.956
cpu MHz     : 548.645
cpu MHz     : 548.938
cpu MHz     : 548.666

实际上这甚至可能是不可能的,因为我认为最低是 1.5 GHz,但系统有时确实很慢。

我尝试使用acpi_osi=Linux内核引导参数,但这似乎并没有改变这种情况。

非常有趣的是,在dmesg我看到一件有趣的事情时,在早期启动期间,ACPI 子系统检测到交流适配器确实已插入:

[    0.882383] ACPI: AC Adapter [ACAD] (on-line)
[    0.882416] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    0.882420] ACPI: Power Button [PWRB]
[    0.882446] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
[    0.882449] ACPI: Sleep Button [SLPB]
[    0.882468] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
[    0.882472] ACPI: Lid Switch [LID]
[    0.882491] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[    0.882500] ACPI: Power Button [PWRF]
[    0.882552] ACPI: Video Device [DGPU] (multi-head: yes  rom: no  post: no)
[    0.882745] acpi device:2a: registered as cooling_device0

(完整的 dmesg:https ://pastebin.com/x4QRbSCR )

不知道什么时候转机?是什么导致启动时正确的在线检测搞砸了?

# uname -a
Linux asus 4.20.13 #2 SMP Sat Mar 2 17:03:50 PST 2019 x86_64 GNU/Linux

我安装了 acpid ( apt install acpid)。这对一般情况没有帮助,但我可以跑步acpi_listen,当我断开交流适配器时,我看到一堆消息。当我重新连接时,它是沉默的。上面的/sys/class/power_supply/*读数保持不变。

power-management battery pm-utils amd-ryzen
  • 3 个回答
  • 1948 Views
Martin Hope
Csaba Toth
Asked: 2019-03-02 16:12:55 +0800 CST

如何确定是什么限制了我的 Ryzen 7 2700 系统?

  • 0

我正在运行带有 Ryzen 7 1700 CPU 的 4.18 内核,然后我升级到另一台运行 Ryzen 7 2700 的机器。我在 SSD 驱动器上进行了整个安装,据我回忆,它对几天。但后来我注意到当我开始使用我的开发工具(IDE、数据库和缓存服务器,所以文章在浏览器的 25 个选项卡中打开,...)时,系统非常缓慢。它运行良好,但在负载下具有很高的延迟 1-2 秒响应时间。

由于 Ryzen 7 1700 系统通常很热(70C-72C),我试过了thermald。这次我卸载thermald了(它留下了它的init.d脚本,但thermald现在没有守护程序正在运行)并安装cpufreq-tools以尝试一些可能强制执行不同性能调节器的东西。

现在,当我为所有 16 个内核设置调控器时cpufreq-info,CPU 处于当前状态。然而,说实话,我认为当内核以550 MHz运行时(不开玩笑,温度为 40C,风扇运行在最低可能不足为奇,我听不到它们)。当我启动我的任何 IDE 时,我希望 CPU 加速并且我想听到风扇旋转的声音。现在一切都只是呆滞。3.2 GHzperformance/proc/cpuinfo

我目前无法弄清楚是什么阻碍了 CPU。在某些时候,我还安装了https://wiki.archlinux.org/index.php/Laptop_Mode_Tools,但意识到我不想让事情变得更复杂,它被卸载了。

我也怀疑 AMD GPU 驱动程序,但我的 HDMI 连接器有连接问题。所以我认为很可能是 CPU 导致了 550 MHz 的迟缓。

我还注意到,如果我将机器单独放置一两分钟,LCD 就会变暗一点。我不知道哪个软件会调光,但它可能是罪魁祸首,因为极低的 1 分钟阈值指向某些守护程序试图强制执行的极端省电模式。

power-management fan cpu amd-ryzen
  • 1 个回答
  • 758 Views
Martin Hope
Csaba Toth
Asked: 2018-03-12 21:58:40 +0800 CST

尽管--enable-libx264,当ffmpeg未知解码器'libx264'时如何将视频重新编码为H.264

  • 5

我正在尝试将视频重新编码为 H.264 ffmpeg。我正在使用 Ubuntu Studio 17.10。我也安装了libavcodec-extra,libav-tools已经安装了,我安装了ubuntu-restricted-extras。ffmpeg编译时libx264启用:

$ ffmpeg -c:v libx264 -preset slow -crf 22 -c:a copy -i tmpoHcVBN.mp4 output.mp4
ffmpeg version 3.3.3-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
  configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Unknown decoder 'libx264'

这是提供的包ffmpeg,我没有自己编译过,因为貌似这个也是编译过的--enable-libx264。我被困住了。

ffmpeg video-conversion h264
  • 1 个回答
  • 5889 Views
Martin Hope
Csaba Toth
Asked: 2016-12-21 09:16:59 +0800 CST

cron.daily 挂起我的系统?

  • 2

它大约每周发生一次,系统完全冻结。对 Ctrl+Alt+F1、Ctrl+Alt+Delete 没有反应,我需要硬重置它。尽管它发生在一天中的不同时间,但每次我检查最后一条消息都来自 CRON:

Dec 20 08:17:01 titan CRON[4106]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

/etc/cron.hourly是空的,里面只有一个.placeholder。我手动执行了每个任务/etc/cron.daily,但当时它们都没有导致崩溃。

我该如何进一步调试呢?我没有看到任何关于 cron 的详细日志。我应该将日志写入放在 cron 作业中吗?/etc/cron.hourly除了and之外,还有其他地方可以获取每日或每小时的 cron 作业/etc/cron.daily吗?

我正在使用 Xfce 运行 16.04 Ubuntu Studio。我之前在使用 wifi 时遇到了问题(Getting Killer Wireless-AC 1535 working for install Ubuntu 16.04),即使安装到基于 btrfs 的 RAID 0 NVMe 设置,我也不怀疑这些。

16.04
  • 1 个回答
  • 1942 Views
Martin Hope
Csaba Toth
Asked: 2016-07-05 08:44:46 +0800 CST

如何在安装期间确定 NMVe SSD 的设备名称

  • 5

我正在开始安装 16.04 Ubuntu 风格的装备。我将在 RAID0 配置中使用两个 NMVe SSD。我已将所有命令排成一列,但我只是错过了一个关键点:SSD 的实际设备名称。安装 DVD 挂载为 /dev/sda1,但除了 /dev 中的 a 之外,我没有看到任何其他 /dev/sd* 设备。

我是一个老派的 Linux 人,我知道 /dev 文件系统多年来已经改变了多次。如何找出设备名称?

关于我的机器的一个额外信息是它有一个 SLI GPU 配置,它占用了船组 AFAIK 的 PCIe 线路(这就是为什么普通 GT80 没有 NMVe M.2s AFAIK),所以很可能 MSI 可能在 GT80S Titan 系列中使用了额外的芯片组来提供 PCIe 线路(?)。我不确定这是否会影响设备名称,NMVe 驱动器肯定不在 SATAIII 控制器上。

RAID 卷在 BIOS 中配置和组装。我可以在 20 分钟内成功安装 Win10,因此它们运行良好。在 Ubuntu 安装期间,我关闭了安全模式并使用 CSM 设置 UEFI。


sda 这里是一个拇指驱动器:

root@ubuntu-studio:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    1  1.9G  0 disk 
└─sda1   8:1    1  1.9G  0 part /media/ubuntu-studio/D43E-C473
sr0     11:0    1  2.6G  0 rom  /cdrom
loop0    7:0    0  2.5G  1 loop /rofs

RAID 控制器在那里。它被列为 有问题AHCI吗?

root@ubuntu-studio:~# lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Sky Lake Host Bridge/DRAM Registers [8086:1910] (rev 07)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Skylake Host Bridge/DRAM Registers [1462:1171]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:01.1 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x8) [8086:1905] (rev 07)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:08.0 System peripheral [0880]: Intel Corporation Sky Lake Gaussian Mixture Model [8086:1911]
    Subsystem: Micro-Star International Co., Ltd. [MSI] Skylake Gaussian Mixture Model [1462:1171]
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H USB 3.0 xHCI Controller [1462:1171]
    Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H Thermal subsystem [1462:1171]
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H CSME HECI [1462:1171]
    Kernel driver in use: mei_me
    Kernel modules: mei_me
00:17.0 RAID bus controller [0104]: Intel Corporation SATA Controller [RAID mode] [8086:2822] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] SATA Controller [RAID mode] [1462:1171]
    Kernel driver in use: ahci
    Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #1 [8086:a110] (rev f1)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.1 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #2 [8086:a111] (rev f1)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.2 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #3 [8086:a112] (rev f1)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.3 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #4 [8086:a113] (rev f1)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.4 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #5 [8086:a114] (rev f1)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a150] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H LPC Controller [1462:1171]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H PMC [1462:1171]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H HD Audio [1462:1171]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H SMBus [1462:1171]
    Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:13d8] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] GM204M [GeForce GTX 970M] [1462:1171]
    Kernel modules: nvidiafb, nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] GM204 High Definition Audio Controller [1462:1171]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
02:00.0 3D controller [0302]: NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:13d8] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] GM204M [GeForce GTX 970M] [1462:1171]
    Kernel modules: nvidiafb, nouveau
04:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
    Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]
    Kernel driver in use: ath10k_pci
    Kernel modules: ath10k_pci
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader [10ec:5249] (rev 01)
    Subsystem: Micro-Star International Co., Ltd. [MSI] RTS5249 PCI Express Card Reader [1462:1171]
    Kernel driver in use: rtsx_pci
    Kernel modules: rtsx_pci
06:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller [1969:e0a1] (rev 10)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Killer E2400 Gigabit Ethernet Controller [1462:1171]
    Kernel driver in use: alx
    Kernel modules: alx

我也试过 dmraid:

~# dmraid -r *
no block devices found
16.04
  • 1 个回答
  • 11082 Views
Martin Hope
Csaba Toth
Asked: 2016-07-03 23:53:36 +0800 CST

让 Killer Wireless-AC 1535 用于安装 Ubuntu 16.04

  • 4

我的无线设备是168c:003e:1a56:1353rev 32。安装程序包含一个4.4.0-21-lowlatency内核,我在/lib/firmware/ath10k/QCA6174/hw3.0 There is a board.binand中看到固件文件firmware-4.bin。这些是库存文件。在dmesg我看到初始化失败,这是真的,我什至在ifconfig. 在初始化期间,它正在寻找firmware-5.bin不存在的 。

首先,我尝试在此处添加固件-5.bin:https ://github.com/kvalo/ath10k-firmware/pull/4/files

那没有帮助,文件中的魔法不匹配。我猜它是为 4.2 或其他东西煮熟的。然后我尝试使用official回购https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0中的所有文件(由http://www.killernetworking.com/support推荐/knowledge-base/17-linux/20-killer-wireless-ac-in-linux-ubuntu-debian)。魔术不匹配。

由于我处于安装的开始阶段,重新启动对我来说不是一个选项,这是一个 22 的问题。相反,我编写了一个小脚本,其中modprobe -rs ath10k_pci、ath10k_core、和. 另一个脚本以相反的顺序排列这些。athmac80211cfg80211insmod

我还通过https://github.com/kvalo/ath10k-firmware/pull/3尝试了 board-2.bin 。魔术不匹配。


更多信息。/lib/firmware/ath10k/QCA6174/hw3.0安装程序固件目录的初始/原始状态:

-rw-r--r-- 1 root root   8124 Mar 21 12:27 board.bin
-rw-r--r-- 1 root root 733784 Mar 21 12:27 firmware-4.bin

cb37c63d9ca28f53fea1ff09ad7c7a82  board.bin
a5dfbc03c9a7a73f7aa8d0a94a6d9426  firmware-4.bin

这导致:

[  118.170694] ath10k_pci 0000:04:00.0: enabling device (0000 -> 0002)
[  118.171818] ath10k_pci 0000:04:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[  118.658737] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/cal-pci-0000:04:00.0.bin failed with error -2
[  118.658754] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[  118.658770] ath10k_pci 0000:04:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
...
[  128.810919] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/board-2.bin failed with error -2
[  131.928674] ath10k_pci 0000:04:00.0: qca6174 hw3.2 (0x05030000, 0x00340aff sub 1a56:1535) fw WLAN.RM.2.0-00180-QCARMSWPZ-1 fwapi 4 bdapi 1 htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features wowlan,ignore-otp,no-4addr-pad
[  131.928676] ath10k_pci 0000:04:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[  134.928910] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  134.982552] ath: EEPROM regdomain: 0x6c
[  134.982553] ath: EEPROM indicates we should expect a direct regpair map
[  134.982554] ath: Country alpha2 being used: 00
[  134.982555] ath: Regpair used: 0x6c
[  136.139717] ath10k_pci 0000:04:00.0 wlp4s0: renamed from wlan0
[  147.251066] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[  152.475059] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  158.475164] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  158.532546] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
[  158.533313] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
[  167.547281] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  173.547366] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  178.826678] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  184.826637] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  202.258851] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  208.258910] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  213.537200] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  219.537070] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  235.258295] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  241.258474] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  246.537511] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  252.537681] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  268.259942] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  274.259976] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  279.538073] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  285.538232] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  301.260390] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  307.260552] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  312.538796] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  318.539935] ath10k_pci 0000:04:00.0: could not suspend target (-11)
...
[  340.262113] ath10k_pci 0000:04:00.0: could not suspend target (-11)
[  345.540330] ath10k_pci 0000:04:00.0: failed to enable dynamic BW: -11
[  351.540341] ath10k_pci 0000:04:00.0: could not suspend target (-11)

我的一项尝试在没有固件崩溃的情况下被 dmesg 看起来很有希望,但无法初始化核心:

-rw-r--r-- 1 root root  42110 Jul  3 09:56 board-2.bin
-rw-r--r-- 1 root root   8124 Jul  3 09:56 board.bin
-rw-r--r-- 1 root root 733784 Mar 21 12:27 firmware-4.bin
-rw-r--r-- 1 root root 572324 Jul  3 09:57 firmware-5.bin

5e47d7cbe6255e4ac3ef71f6e2210f95  board-2.bin
1d07f60b4f6e3dc06028f4f31d1eec60  board.bin
a5dfbc03c9a7a73f7aa8d0a94a6d9426  firmware-4.bin
2c5629dc360ee3606c12088ee5e2de98  firmware-5.bin 

[ 2798.276194] ath10k_pci 0000:04:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 2798.477454] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/cal-pci-0000:04:00.0.bin failed with error -2
[ 2798.539215] ath10k_pci 0000:04:00.0: found invalid board magic
[ 2798.622537] ath10k_pci 0000:04:00.0: otp calibration failed: 3
[ 2798.622538] ath10k_pci 0000:04:00.0: failed to run otp: -22
[ 2798.622539] ath10k_pci 0000:04:00.0: could not init core (-22)
[ 2798.622550] ath10k_pci 0000:04:00.0: could not probe fw (-22)
[ 3318.953548] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
[ 3318.954150] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready 

大多数情况下,我在 dmesg 中遇到固件崩溃。我会deb尽快试试这个包。


注意:每次启动时检查 BIOS 是否没有从 UEFI-CSM 模式恢复到 UEFI 非常重要。显然,这被证明对安装至关重要,没有 CSM,安装只会静默停止。还要检查 BIOS 是否没有恢复到安全启动模式。多么令人头疼!

将 v1.157 固件包升级到 1.158 有帮助(我不需要从 1.158 deb 中换出任何文件)。细节:

  1. 首先我停止了网络:

    sudo su
    /etc/init.d/Network-Manager stop
    /etc/init.d/Networking stop
    
  2. 卸载内核模块:

    modprobe -r ath10k_pci
    modprobe -r ath10k_core
    modprobe -r ath
    modprobe -r mac80211
    modprobe -r cfg80211 
    
  3. 升级固件包

    dpkg -i linux-firmware_1.158_all.deb
    

之后固件目录的内容:

-rw-r--r-- 1 root root 271412 May  6 12:42 board-2.bin
-rw-r--r-- 1 root root   8124 Apr 25 12:59 board.bin
-rw-r--r-- 1 root root 733784 Apr 25 12:59 firmware-4.bin

ac5184615090503870442da5f703de25  /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
cb37c63d9ca28f53fea1ff09ad7c7a82  /lib/firmware/ath10k/QCA6174/hw3.0/board.bin
a5dfbc03c9a7a73f7aa8d0a94a6d9426  /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin 

dmesg:

[ 1084.393020] ath10k_pci 0000:04:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 1084.594123] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/cal-pci-0000:04:00.0.bin failed with error -2
[ 1084.594143] ath10k_pci 0000:04:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[ 1084.594149] ath10k_pci 0000:04:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[ 1086.774542] ath10k_pci 0000:04:00.0: qca6174 hw3.2 (0x05030000, 0x00340aff sub 1a56:1535) fw WLAN.RM.2.0-00180-QCARMSWPZ-1 fwapi 4 bdapi 2 htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features wowlan,ignore-otp,no-4addr-pad
[ 1086.774545] ath10k_pci 0000:04:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 1086.828603] ath: EEPROM regdomain: 0x6c
[ 1086.828605] ath: EEPROM indicates we should expect a direct regpair map
[ 1086.828606] ath: Country alpha2 being used: 00
[ 1086.828607] ath: Regpair used: 0x6c
[ 1086.830651] ath10k_pci 0000:04:00.0 wlp4s0: renamed from wlan0 

所以我们终于有了wlan0(重命名为wlp4s0)

  1. 加载内核模块

    cd /lib/modules/4.4.0-21-lowlatency/kernel/
    insmod net/wireless/cfg80211.ko
    insmod net/mac80211/mac80211.ko
    insmod drivers/net/wireless/ath/ath.ko
    insmod drivers/net/wireless/ath/ath10k/ath10k_core.ko
    insmod drivers/net/wireless/ath/ath10k/ath10k_pci.ko 
    
  2. 开始联网

    /etc/init.d/Networking start
    /etc/init.d/Network-Manager start
    
  3. 需要重启nm-applet:

    kilall nm-applet
    nohup nm-applet &
    

现在我可以安装mdadm. 如果我完成下一个任务目标,我终于可以安装 Linux:如何在安装期间确定 NMVe SSD 的设备名称


仅供参考,Ubuntu 17.04 的当前状态是(错误,错误,错误......):

[    2.772902] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:05:00.0.bin failed with error -2
[    2.772909] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/cal-pci-0000:05:00.0.bin failed with error -2
[    2.773036] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    2.773038] ath10k_pci 0000:05:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    2.773892] ath10k_pci 0000:05:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    2.773893] ath10k_pci 0000:05:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[    2.774309] ath10k_pci 0000:05:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5

linux-firmware包 v 1.164.1

https://giphy.com/gifs/justin-monkey-i-am-disappointed-l3vRhaxVcQ1i0CZlC

wireless
  • 1 个回答
  • 15744 Views
Martin Hope
Csaba Toth
Asked: 2015-03-17 16:12:50 +0800 CST

带 Ubuntu 14.04 和 nVidia GPU 的 DisplayLink USB 显示器

  • 4

我什至在阅读http://plugable.com/2014/03/06/displaylink-usb-2-0-graphics-adapters-on-linux-2014-edition之前就认为 DisplayLink 不适用于专有的 nVidia 驱动程序。我还看到 USB 监视器(和 AOC)在机器启动时被激活。一旦专有驱动程序启动,它就会消失。

如果我启用 nouveau 驱动程序并重新启动机器,只有 USB 显示器显示图形显示,而我的笔记本显示器仍然空白。当我查看 Unity 的标准“显示”设置时,只检测到 AOC 显示器。(当我运行专有的 nVidia 驱动程序时,仅检测到内置显示器)。虽然颜色深度非常低,但作为辅助显示器我不介意太多。我知道这不适用于游戏或视频。

有人可以帮忙吗?我正在运行 64 位 ubuntu 的最新库存内核:uname -a: Linux erebus 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

如果需要,我可以提供任何其他日志,但我不想提前不必要地扰乱这篇文章。我希望其他人已经可以使用此组合:Ubuntu 14.04 64 位、nVidia GPU 和 DisplayLink 显示器。

14.04
  • 3 个回答
  • 3972 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve