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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[hdpi](ubuntu)

Martin Hope
Rodrigo Martins de Oliveira
Asked: 2020-11-30 08:32:13 +0800 CST

VLC 仅播放 H.264 和 VP8 视频的音频,尽管所有必要的编解码器都已正确安装

  • 0

使用 H.264 或 VP8 编解码器(可能还有其他编解码器)编码的视频,无论容器(MKV、MP4、WEBM 等)如何,都只会在 VLC 中播放音频,至少在 Ubuntu 20.04 中是这样。有趣的是,GNOME Video 应用程序可以很好地播放这些文件。

我试过重启电脑,让 VLC 单独运行,没有任何其他用户程序同时运行以避免干扰。我已经安装并重新安装了vlc, ubuntu-restricted-extras, ffmpeg, libdvdnav,libdvdread7和gstreamer1.0-libav其他各种软件包,清除gstreamer了缓存并且没有任何改变。我曾尝试强制 VLC 视频解复用,H264 video demuxer但出现以下错误VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10)),导致我在 Google 搜索中陷入死胡同。

我还能尝试什么?我还没有在网上找到任何其他来源解决了与我类似的案例。

video vlc hdpi h264 gnome-tweaks
  • 1 个回答
  • 849 Views
Martin Hope
Rodrigo Martins de Oliveira
Asked: 2020-10-25 16:03:48 +0800 CST

如何为 4K 显示器扩展 Spotify 的 UI

  • 19

从 snap 商店安装的 Spotify 客户端在 HiDPI 显示器上几乎无法使用,而且似乎没有内置选项来扩展 UI。是否有解决方法来扩展它?

spotify snap hdpi
  • 3 个回答
  • 7227 Views
Martin Hope
soi
Asked: 2020-06-03 14:19:55 +0800 CST

运行 xrandr 更改刷新率会将 Gnome 显示缩放重置为 100%

  • 1

我在配备 AMD Ryzen 3200g APU 的新 HTPC 上使用 Ubuntu 20.04 和 2160p 电视。

要将显示刷新率同步到正在播放的视频,我有mpv 的 xrandr.lua 脚本,它只运行 xrandr,例如:

xrandr --output HDMI-A-0 --mode 3840x2160 --rate 24

这工作得很好,除非每当运行 xrandr 命令时(也当我手动执行它时)它会将 Gnomes 显示缩放设置重置回 100%,这在远处的电视上是次优的,我无法阅读任何文本。

有没有办法强制 Gnome 在默认情况下始终使用 200% 缩放,无论如何?

gnome xrandr hdpi 20.04
  • 2 个回答
  • 2916 Views
Martin Hope
Vincenzo Pii
Asked: 2020-04-24 13:10:57 +0800 CST

Steam 字体在 Ubuntu 20.04 上非常小

  • 13

我的屏幕分辨率是 2560x1440,我使用的是 125% 的小数缩放。

Steam 字体不可读(查看屏幕截图并与 Chrome 图标的大小进行比较)。

在此处输入图像描述

fonts steam hdpi
  • 6 个回答
  • 11963 Views
Martin Hope
Nathaniel
Asked: 2019-10-04 10:39:40 +0800 CST

如何配置 dmenu 以启动带有参数的应用程序?

  • 1

对于某些背景,我只是勉强将我的 wm 切换到 i3 并正在对其进行自定义。我对一切都很陌生,这意味着我有很多东西要学。我一直在努力让 Spotify 更好地适应我笔记本电脑上的 1440p 显示器,这样一切都不会太小。我发现通过使用 --force-device-scale-factor=1.5 标志,它可以解决问题。像这样在终端中调用 spotify 可以解决问题: spotify --force-device-scale-factor=1.5 我找不到配置 DMenu 以使用该标志调用 Spotify 的方法。没有我知道并且在任何地方都找不到的 dmenu 配置文件。这可能是一个超级基本的问题,但是当我输入 Spotify 时,如何配置 dmenu 以使用该标志打开 Spotify?

spotify hdpi i3-wm
  • 2 个回答
  • 12640 Views
Martin Hope
yellow
Asked: 2019-02-14 02:40:17 +0800 CST

拥有 200% 缩放比例的 4k 屏幕与全高清屏幕相比有什么好处吗?

  • 7

据我了解,如果我使用 4k (3840x2160) 屏幕并将其配置为 200% 缩放,则会导致“假”全高清 (1920x1080)。这意味着“全高清”图像的每个像素都显示在实际硬件屏幕上的四个像素 (2x2) 上,所有像素都显示相同的“虚拟像素”。

应用程序有什么办法可以利用额外的像素吗?特别是在字体渲染方面。例如,文本编辑器或 IDE(尤其是 JetBrains IDE)是否可以使用额外的硬件?我可以想象实际的字体渲染发生在渲染过程的后期。例如,如果应用程序说它使用 16pt 字体,它将渲染留给显示管理器,并且显示管理器知道配置了 200% 缩放,因此它将 16pt 字体呈现为 32pt 字体。

注意:我说的是显示设置中的“缩放”选项:

ubuntu 显示设置

display-resolution fonts display hdpi
  • 2 个回答
  • 5605 Views
Martin Hope
proximous
Asked: 2018-12-28 18:44:19 +0800 CST

HiDPI 控制台字体非交互式

  • 3

非交互式更改控制台字体的正确方法是什么?

我有一个 HiDPI 显示器,需要更大的控制台字体。我可以使用以下方式进行交互设置:

$ sudo dpkg-reconfigure console-setup
# Select UTF-8 -> Guess -> Terminus -> 16x32
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130ubuntu3.5) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic

但是,如果我尝试以非交互方式设置它,如下所示:

 $ sudo debconf-set-selections <<EOF 
 console-setup console-setup/charmap47 select UTF-8
 console-setup console-setup/codeset47 select Guess optimal character set
 console-setup console-setup/codesetcode string guess
 console-setup console-setup/fontface47 select Terminus
 console-setup console-setup/fontsize string 16x32
 console-setup console-setup/fontsize-fb47 select 16x32 (framebuffer only)
 console-setup console-setup/fontsize-text47 select 16x32 (framebuffer only)
 EOF

这不起作用。跑步setupcon没有效果。如果我检查/etc/default/console-setup,我会看到字体信息在我运行时更新dpkg-reconfigure,并且dpkg-reconfigure还会触发update-initramfs,所以似乎更多的是dpkg-reconfigure我debconf-set-selections没有触发。我如何找到这些动作并在我之后触发它们debconf-set-selections?

dpkg fonts console hdpi
  • 1 个回答
  • 1899 Views
Martin Hope
trickreich
Asked: 2018-07-25 05:47:27 +0800 CST

Wayland:多 DPI 设置

  • 10

我们正在写 2018 年,它不会再次成为 Linux 年!我从年初开始就在 Wayland 上工作(全职!),但混合/多 dpi 设置并不令人满意。

我真的不需要很多应用程序:

  • PHP风暴
  • 铬合金
  • 终端
  • Docker(对我来说,这实际上是 Linux 的唯一原因!)
  • 邮件客户端

所以我正在使用一个本机应用程序:终端

这是唯一一个在所有显示器上都以例外方式运行!当应用程序从一台显示器切换到具有不同 dpi 的另一台显示器时,它会自动正确缩放!这就是我所期待的。

我还发现了什么:

  • Electron 应用程序无法使用 Wayland 的比例因子
  • Java 应用程序无法使用 Wayland 的比例因子
  • Chrome/Chromium/Firefox 无法使用 Wayland 的比例因子

所以我不确定问题出在哪里?在穆特? 在电子?在摇摆?在铬?在铬?在火狐中?

我希望有人能指出我正确的方向,以找出我需要等待的东西。

gnome multiple-monitors wayland hdpi dpi
  • 2 个回答
  • 11795 Views
Martin Hope
Horacio González
Asked: 2018-05-29 14:53:44 +0800 CST

如何使用命令行更改显示分辨率和缩放比例

  • 2

我有一台带 hidpi 显示器的笔记本电脑,我使用的是 Ubuntu 18.04,分辨率为 3840x2160,比例为 200%。我使用的所有软件看起来都很好,除了一个,所以我想写一个脚本,这样我就可以自动更改,比如说缩放到 100% 和分辨率到 1024x768。

有没有办法做到这一点?

scripts display-resolution scaling hdpi
  • 1 个回答
  • 17227 Views
Martin Hope
Alexis Drakopoulos
Asked: 2018-05-20 08:20:08 +0800 CST

WIN10 上的 VMWARE Workstation player 14 和 4K 显示器上的 Ubuntu 18.04 修复 DPI 缩放

  • 0

我想了解更多关于 linux 的知识,所以我下载了 ubuntu iso,并在 vmware 中启动它。

但是我找不到任何强制 DPI 缩放的方法,除了尝试更改实际分辨率之外,显示设置下没有其他选项。

我尝试了多种修复方法,例如兼容性模式,这些:

xrandr --output eDP1 --scale 1.25x1.25

gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

我在其他 stackexchange 帖子中找到的。

他们都不为我工作。


还有其他解决方案吗?我在戴尔 XPS 15 9560 4K 15.6 英寸笔记本电脑上,如果没有 x2 - x2.5 缩放,ubuntu 将无法使用。


运行 xrandr 的输出:

Screen 0: minimum 1 x 1, current 3840 x 1919, maximum 8192 x 8192
Virtual1 connected primary 3840x1919+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   3840x1919     60.00*+
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
vmware display hdpi
  • 1 个回答
  • 1292 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