简体   繁体   English

在 Archlinux 上运行 Hyprland 出现黑屏

[英]Running Hyprland on Archlinux got black screen

I've followed some tutorial to setup Hyprland.我已经按照一些教程来设置 Hyprland。 And it seems to be running (If i press multiple time the key to launch a terminal, i can see several launched if i use the top command in TTY2) My problem seems to be mainly graphics.它似乎正在运行(如果我多次按下启动终端的键,如果我在 TTY2 中使用 top 命令,我可以看到几个启动)我的问题似乎主要是图形。 i don't think it has something to do with Hyprland configuration (a package missing maybe?)我认为这与 Hyprland 配置无关(可能缺少 package?)

To sum up:总结:

  • I have a fresh archlinux on a virtual machine (to setup my config)我在虚拟机上有一个全新的 archlinux(用于设置我的配置)
  • I updated archlinux (pacman -Ssy) I installed my graphics driver (AMD), 3D acceleration is enabled,我更新了 archlinux (pacman -Ssy) 我安装了我的图形驱动程序 (AMD),启用了 3D 加速,
  • After that i installed Hyprland with yay之后我用 yay 安装了 Hyprland
  • and i followed the step here: https://github.com/notwidow/hyprland to get some configuration file.我按照这里的步骤操作: https://github.com/notwidow/hyprland来获取一些配置文件。

But when i run the command "Hyprland", I remain with a black screen, i think something must be missing in my config because if i install weston and launch it.但是当我运行命令“Hyprland”时,我仍然黑屏,我认为我的配置中一定缺少某些东西,因为如果我安装 weston 并启动它。 I have a default gui and i can launch a terminal.我有一个默认的图形用户界面,我可以启动一个终端。 And if i launch Hyprland on the weston GUI, it launch itself inside the gui launched by weston.如果我在 weston GUI 上启动 Hyprland,它会在 weston 启动的 gui 中自行启动。 The main difference is that i can see it here.主要区别在于我可以在这里看到它。 But i don't know what difference weston launched or not can do?但是我不知道weston launched 和不launched 有什么区别? (Moreover i'd like to just have Hyprland and not the GUI of weston) (此外,我只想拥有 Hyprland 而不是 weston 的 GUI)

Does someone know what i could miss?有人知道我会错过什么吗? I tried to set the correct monitor name in hyprland.conf but it didn't change anything我试图在 hyprland.conf 中设置正确的监视器名称,但它没有改变任何东西

Run wrappedhl.sh with运行 wrappedhl.sh 与

    #!/bin/env sh
    export WLR_NO_HARDWARE_CURSORS=1
    export WLR_RENDERER_ALLOW_SOFTWARE=1
    exec Hyprland

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM