我最近购买了 RX 480 4GB 来搭配我的 Ryzen 2600 版本。我想运行双GPU,对于我来说我可以在正常工作下运行2个显示器,对于我的室友来说他可以玩PC游戏。
几个月前我尝试设置多座位。令我惊讶的是,这个功能似乎很难实现。
我最近购买了 RX 480 4GB 来搭配我的 Ryzen 2600 版本。我想运行双GPU,对于我来说我可以在正常工作下运行2个显示器,对于我的室友来说他可以玩PC游戏。
几个月前我尝试设置多座位。令我惊讶的是,这个功能似乎很难实现。
我对这些结果感到困惑。我该如何解决这些警报?这对于带有 Ubuntu 的家用计算机是否正常?谢谢。
me@ubuntu:~$ systemd-analyze security
UNIT EXPOSURE PREDICATE HAPPY
ModemManager.service 5.6 MEDIUM ?
NetworkManager.service 7.7 EXPOSED ?
accounts-daemon.service 9.6 UNSAFE ?
acpid.service 9.6 UNSAFE ?
alsa-state.service 9.6 UNSAFE ?
anacron.service 9.6 UNSAFE ?
apport.service 9.6 UNSAFE ?
avahi-daemon.service 9.6 UNSAFE ?
bolt.service 5.1 MEDIUM ?
colord.service 8.8 EXPOSED ?
cron.service 9.6 UNSAFE ?
cups-browsed.service 9.6 UNSAFE ?
cups.service 9.6 UNSAFE ?
dbus.service 9.6 UNSAFE ?
dmesg.service 9.6 UNSAFE ?
emergency.service 9.5 UNSAFE ?
gdm.service 9.7 UNSAFE ?
[email protected] 9.6 UNSAFE ?
glances.service 9.6 UNSAFE ?
grub-common.service 9.6 UNSAFE ?
hddtemp.service 9.6 UNSAFE ?
irqbalance.service 6.0 MEDIUM ?
kerneloops.service 9.1 UNSAFE ?
networkd-dispatcher.service 9.6 UNSAFE ?
nvidia-persistenced.service 9.6 UNSAFE ?
ondemand.service 9.6 UNSAFE ?
packagekit.service 9.6 UNSAFE ?
plymouth-start.service 9.5 UNSAFE ?
polkit.service 9.6 UNSAFE ?
rc-local.service 9.6 UNSAFE ?
rescue.service 9.5 UNSAFE ?
rsync.service 9.6 UNSAFE ?
rsyslog.service 9.6 UNSAFE ?
rtkit-daemon.service 7.0 MEDIUM ?
snapd.service 9.6 UNSAFE ?
spice-vdagentd.service 9.2 UNSAFE ?
strongswan.service 9.6 UNSAFE ?
switcheroo-control.service 9.6 UNSAFE ?
systemd-ask-password-console.service 9.3 UNSAFE ?
systemd-ask-password-plymouth.service 9.5 UNSAFE ?
systemd-ask-password-wall.service 9.4 UNSAFE ?
systemd-fsckd.service 9.5 UNSAFE ?
systemd-initctl.service 9.3 UNSAFE ?
systemd-journald.service 4.2 OK ?
systemd-logind.service 2.8 OK ?
systemd-networkd.service 2.8 OK ?
systemd-resolved.service 2.1 OK ?
systemd-rfkill.service 9.3 UNSAFE ?
systemd-timesyncd.service 2.0 OK ?
systemd-udevd.service 8.1 EXPOSED ?
thermald.service 9.6 UNSAFE ?
udisks2.service 9.6 UNSAFE ?
unattended-upgrades.service 9.6 UNSAFE ?
upower.service 2.0 OK ?
[email protected] 9.3 UNSAFE ?
[email protected] 9.3 UNSAFE ?
uuidd.service 4.3 OK ?
vboxweb.service 9.6 UNSAFE ?
virtualbox-guest-utils.service 9.6 UNSAFE ?
virtualbox.service 9.6 UNSAFE ?
whoopsie.service 9.6 UNSAFE ?
wpa_supplicant.service 9.6 UNSAFE ?
我有几个别名要澄清。他们在工作。我怎样才能使它成为许多其他别名的选项。awk 还是 grep?和指针很有帮助。谢谢。
# IP addresses
alias myip="echo '# myip curl https://ipecho.net/plain; echo #'; curl -sS https://ipecho.net/plain; echo"
alias hazip="echo '# hazip curl https://ipv4.icanhazip.com #'; curl -sS https://ipv4.icanhazip.com"
alias ips='myip && hazip'
~ ips
# myip curl https://ipecho.net/plain; echo #
1.2.3.4
# hazip curl https://ipv4.icanhazip.com #
1.2.3.4
我已经接近找到Bash-itbash
真正好的功能了。
我希望能够(或者我认为)键ls file
,并且在按下Tab ↹时,我使用 bash-it 自动完成以及其他插件和别名得到一个点文件列表或匹配的单个文件,如下所示。
~ ls Tab ↹
Apps/ Music/
bin/ notes
conky-grapes-master/ Pictures/
cpu_power.sh* Projects/
cpu_temp.sh* Public/
Desktop/ snap/
disk_pct_used.sh* src/
Documents/ Downloads/
vmpk.sh*
我正在粘贴我在 SuperUser/Unix & Linux Stack 帮助中学到的命令。这是一个常见的报告吗?我确实发现内存是响应式且可用的,但 conky 报告仅在引导和加载终端后读取了大约 9%。现在在同一点,几分钟后,conky 说 98%。
我正在使用 Firefox,添加了我在 Chrome 上使用的扩展程序,很快我就注意到了变化。现在,即使在启动 Firefox 或 Chrome 之前,内存计量器也会达到 100%。另外我很好奇Chrome浏览器的巨大储备,这是否正常。谢谢你。
$ smem --realmem=16G --system --percent
Area Used Cache Noncache
firmware/hardware 2.11% 0.00% 2.11%
kernel image 0.00% 0.00% 0.00%
kernel dynamic memory 85.85% 83.77% 2.08%
userspace memory 6.94% 1.76% 5.18%
free memory 5.10% 5.10% 0.00%
更新:“匿名”的好奇输出
$ smem -wkmr | head -n 10
Map PIDs AVGPSS PSS <anonymous> 94 13.0M 1.2G [heap] 66 4.3M 282.8M /opt/google/chrome/chrome 27 5.2M 140.1M /dev/nvidiactl 3 14.6M 43.9M /usr/lib/x86_64-linux-gnu/libwebkit2gtk- 7 2.0M 14.0M /usr/lib/x86_64-linux-gnu/libnvidia-glco 3 4.1M 12.3M /home/jess/.config/google-chrome/Default 1 8.9M 8.9M /SYSV00000000 6 1.5M 8.8M /home/jess/.config/google-chrome/PepperF 23 371.0K 8.3M
$ ps auxf | awk '{print $6/1024 " MB\t\t" $11}' | sort -n
0 MB \_
### ... 143 identical lines omitted ... ###
0 MB COMMAND
0 MB [kthreadd]
0.105469 MB /usr/lib/epson-backend/ecbd
0.3125 MB \_
0.316406 MB \_
0.777344 MB /usr/sbin/acpid
0.855469 MB \_
1.37891 MB \_
1.47266 MB /usr/bin/nvidia-persistenced
1.57031 MB /sbin/lvmetad
1.97266 MB /usr/sbin/atd
2.29297 MB /usr/sbin/kerneloops
2.38672 MB /usr/sbin/cpufreqd
2.40234 MB /usr/sbin/kerneloops
2.59375 MB /usr/sbin/cron
2.67969 MB /usr/lib/rtkit/rtkit-daemon
2.95703 MB \_
### ... skipping 90 lines ... ###
10.8828 MB /usr/sbin/cups-browsed
11.0391 MB /usr/bin/whoopsie
11.9883 MB /usr/lib/udisks2/udisksd
12.375 MB /usr/sbin/nmbd
14.1445 MB /usr/lib/x86_64-linux-gnu/colord
14.3398 MB \_
15.2109 MB |
15.2969 MB /usr/sbin/NetworkManager
15.4727 MB \_
15.7344 MB /usr/lib/ibus/ibus-x11
16.2031 MB |
16.4297 MB |
16.6094 MB |
16.8789 MB /usr/bin/python3
17.2031 MB \_
17.4102 MB |
17.4375 MB /usr/lib/ibus/ibus-x11
17.543 MB \_
18.1094 MB \_
18.1133 MB |
18.1367 MB /usr/bin/python3
18.457 MB |
18.668 MB /usr/lib/fwupd/fwupd
18.8164 MB \_
19.043 MB \_
19.5352 MB \_
20.3633 MB \_
20.8047 MB /usr/sbin/smbd
20.8086 MB |
22.3086 MB /usr/lib/snapd/snapd
22.3828 MB \_
25.9102 MB \_
26.0078 MB /lib/systemd/systemd-journald
37.0781 MB /usr/lib/packagekit/packagekitd
37.8789 MB \_
39.6094 MB \_
40.3398 MB \_
40.5273 MB |
42.332 MB \_
43.9883 MB \_
48.4648 MB \_
50.5547 MB \_
51.5938 MB \_
62.5781 MB \_
66.8633 MB |
107.23 MB \_
204.27 MB |
231.957 MB \_
我一直无法让它工作,只是第二个指针出现并闪烁。请注意,我有双显示器、单 GPU 布局。我不确定问题是否与 XOrg 配置(如图所示)无关。任何和所有的帮助和鼓励表示赞赏。谢谢你。
这是xinput
插入无线USB设备的情况。
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=10 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=11 [slave pointer (2)]
⎜ ↳ PixArt USB Optical Mouse id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Microsoft Microsoft® Nano Transceiver v2.0 id=9 [slave keyboard (3)]
↳ CHICONY USB Keyboard id=13 [slave keyboard (3)]
↳ CHICONY USB Keyboard id=14 [slave keyboard (3)]
↳ Microsoft Microsoft® Nano Transceiver v2.0 id=15 [slave keyboard (3)]
然后我输入以下命令,并查看结果xinput
,我看到屏幕上的另一个指针,无论是光标还是标准指针,它正在闪烁,并且当我在第一个有线 USB 键盘上键入时它会抖动,但是无线设备的触摸板或键盘均未按预期工作。这是一款 Microsoft 一体式媒体键盘。我正在使用 Ubuntu 18.04.1(我觉得我应该注意我从一开始就选择了“最小安装”。)可能还需要注意的是,我正在使用来自 1 个 16 通道 GPU 的两台显示器。感谢您提供的任何帮助。
$ xinput create-master wireless
$ xinput reattach 10 16
$ xinput reattach 11 16
$ xinput reattach 9 17
$ xinput reattach 15 17
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PixArt USB Optical Mouse id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ CHICONY USB Keyboard id=13 [slave keyboard (3)]
↳ CHICONY USB Keyboard id=14 [slave keyboard (3)]
⎡ wireless pointer id=16 [master pointer (17)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=10 [slave pointer (16)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=11 [slave pointer (16)]
⎜ ↳ wireless XTEST pointer id=18 [slave pointer (16)]
⎣ wireless keyboard id=17 [master keyboard (16)]
↳ Microsoft Microsoft® Nano Transceiver v2.0 id=9 [slave keyboard (17)]
↳ Microsoft Microsoft® Nano Transceiver v2.0 id=15 [slave keyboard (17)]
↳ wireless XTEST keyboard id=19 [slave keyboard (17)]
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 396.54 (buildd@lgw01-amd64-044) Tue Aug 21 18:18:46 UTC 2018
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 396.54 (buildmeister@swio-display-x64-rhel04-14) Wed Aug 15 00:22:27 PDT 2018
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Acer AL2223W"
HorizSync 31.0 - 82.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1070"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
Option "Coolbits" "31"
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "HDMI-0: nvidia-auto-select +1440+0, DVI-D-0: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection