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
    • 最新
    • 标签
主页 / computer / 问题 / 1501069
Accepted
Eric F
Eric F
Asked: 2019-11-12 06:18:25 +0800 CST2019-11-12 06:18:25 +0800 CST 2019-11-12 06:18:25 +0800 CST

Raspberry Pi - 解决问题

  • 772

问题背景

我目前有一个 Raspberry Pi 连接到一个运行FullPageOS的触摸屏 LCD 面板,它基本上是 Debian,它以全屏模式启动 Chromium 到所需的网页。我有两个问题:

  1. 网页不会完全扩展:

在此处输入图像描述

这个问题延伸到控制台(不仅仅是铬):

在此处输入图像描述

如果我在控制台中输入的内容比全屏更远,那么我就是在屏幕外输入。

  1. 触摸屏已关闭

在此处输入图像描述

我触摸的点不是鼠标所在的位置。离我所在的屏幕左上角越远,这个错误就越严重。例如,如果我触摸左上角,鼠标几乎匹配。

问题总结

这使我相信分辨率已关闭,因为屏幕上的内容不正确。根据我购买它的网站的原始分辨率是,1366x768但似乎我的 Raspberry Pi 正在运行1280x800。

我试过的

我已经尝试了几个月来解决这个问题。

  • 我已经完全重新安装了产生相同结果的操作系统。
  • 我试图更改控制台中的分辨率:
  • DISPLAY=:0.0 randr列出屏幕HDMI-1如下:

在此处输入图像描述

  • 因为它只列出了一个可供选择的分辨率,所以我也尝试手动添加一个新的分辨率,但得到了错误Configure crtc 0 failed。见下文:

在此处输入图像描述

问题

所以我不知道我能尝试什么。我的问题的解决方案是否像我想象的那样?如果是这样,由于我尝试过的方法无效,我该如何解决?

配置文件

 # For more options and information see
 # http://rpf.io/configtxt
 # Some settings may impact device functionality. See link above for details

 # uncomment if you get no picture on HDMI for a default "safe" mode
 #hdmi_safe=1

 # uncomment this if your display has a black border of unused pixels visible
 # and your display can output without overscan
 #disable_overscan=1

 # uncomment the following to adjust overscan. Use positive numbers if console
 # goes off screen, and negative if there is too much border
 #overscan_left=16
 #overscan_right=16
 #overscan_top=16
 #overscan_bottom=16

 # uncomment to force a console size. By default it will be display's size minus
 # overscan.
 #framebuffer_width=1366
 #framebuffer_height=768

 # uncomment if hdmi display is not detected and composite is being output
 #hdmi_force_hotplug=1

 # uncomment to force a specific HDMI mode (this will force VGA)
 hdmi_group=2
 hdmi_mode=81
 hdmi_cvt=1366 768 60 3

 # uncomment to force a HDMI mode rather than DVI. This can make audio work in
 # DMT (computer monitor) modes
 #hdmi_drive=2

 # uncomment to increase signal to HDMI, if you have interference, blanking, or
 # no display
 #config_hdmi_boost=4

 # uncomment for composite PAL
 #sdtv_mode=2

 #uncomment to overclock the arm. 700 MHz is the default.
 #arm_freq=800

  # Uncomment some or all of these to enable the optional hardware interfaces
  #dtparam=i2c_arm=on
  #dtparam=i2s=on
  #dtparam=spi=on

 # Uncomment this to enable the lirc-rpi module
 #dtoverlay=lirc-rpi

 # Additional overlays and parameters are documented /boot/overlays/README

 # Enable audio (loads snd_bcm2835)
 dtparam=audio=on
 # enable raspicam
 start_x=1
 #gpu_mem=128
 dtoverlay=vc4-kms-v3d
debian resolution
  • 2 2 个回答
  • 1755 Views

2 个回答

  • Voted
  1. StarCat
    2019-11-12T08:13:40+08:002019-11-12T08:13:40+08:00

    您可以尝试通过编辑 /boot/config.txt 来强制 Raspberry Pi 以预设分辨率启动

    见https://elinux.org/RPiconfig#Video

    在您的情况下,您可以尝试添加以下行:

    hdmi_group=2
    hdmi_mode=81
    

    并重新启动。

    hdmi_mode = 81 选择 1366 x 768 x 60Hz。

    在链接页面上,您可以找到一些替代方案,例如 hdmi_mode = 86 选择 1366 x 768 并减少消隐, hdmi_mode = 39 选择 1360 x 768。

    如果您有任何问题,请确保您有办法恢复原始 /boot/config.txt。

    • 0
  2. Best Answer
    Eric F
    2019-11-21T18:24:30+08:002019-11-21T18:24:30+08:00

    因此,在我的屏幕上,无论我尝试将其配置为不同的触摸屏,都很难将其设置为 1366 x 768。这就是为什么触摸的位置与鼠标移动的位置不匹配的原因。

    我的解决方案是放弃 FullPageOS 并安装最新版本的 Raspbian。我看到我的分辨率不在 GUI 的下拉列表中(Preferences > Raspberry Pi Configuration > Set Resolution),所以我编辑/boot/config.txt添加了以下行:

    hdmi_group=2
    hdmi_mode=81
    

    我重新启动,我的分辨率和触摸屏问题消失了!

    这一定意味着 FullPageOS 中的某些东西阻止了我对 config.txt 的更改。我希望这个解决方案在未来能帮助其他人,即使它不是公认的答案。

    • 0

相关问题

  • Debian 9 服务器上的 Node-RED 无法连接到 MQTT 代理

  • 使用 docker 获取 http://deb.debian.org/debian/dists/jessie-updates/InRelease 的问题

  • 根分区变成2个分区

  • Pixelbook 安装 r-base 依赖项时出现 held broken packages 错误

  • 重启 Debian 服务器后目录丢失

Sidebar

Stats

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

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve