#Need halp with making Hyprland usable

1 messages Β· Page 1 of 1 (latest)

summer imp
#

I have a bunch of issues with hyprland which I haven't managed to figure out.

  1. When my cpu usage is high, the whole WM lags, especially the cursor. This usually happens when I'm emerging and my cpu sits at 100%, but it may also happen when running other cpu intensive tasks. This makes the wm unusable.
    This has not happened on xorg before, and I do not want to set the portage niceness just because of that. Mouse and keyboard input should have the highest priority anyway. I tried spawning hyprland with a lowe nice value, but if I do that, most windows launched in hyperland inherit it's nice value, so I'll need another solution.

  2. ~~Sometimes my cursor disappears and it doesn't appear after moving. I have to switch focus to another workspace and back to make it reappear. If this is a setting, I'd like this behaviour to stop entirely. ~~

  3. Sometimes GUI windows become unclickable. The border color indicates that they are focuesd, but clicking them does nothing. Clicking on another window and then back on it makes it clickable again. This usually triggers in firefox when rightclicking to open menus or when browsing for files to upload onto a site (the window that pops and allows me to select files is also unclickable until I click on some other window). Does not happen on xorg.

  4. firefox doesn't let me start multiple instances. "Firefox is already running, but not responding...". It's build with dbus and wayland support...

  5. dragging a file into firefox makes it crash sometimes

  6. the xdg-desktop-portal-hyprland process (yes, I've updated to 1.2.1, which should have fixed this) multiplies itself until it can no longer multiply and other programs give errors such as "Too many open files"

Absolute nightmare

#
  1. was probably fixed by the following settings
input { follow_mouse = 2 )
misc { vrr = 2 }
west ridge
#
  1. Are you using software rendering/ llvmpipe? Wayland is all OpenGL, you want to make sure that's running hardware accelerated
west ridge
#

glxinfo | grep "OpenGL renderer"

#

glxinfo comes from mesa-progs

summer imp
#
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
    GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: AMD Radeon RX 590 Series (polaris10, LLVM 16.0.6, DRM 3.52, 6.4.10-zen2)
west ridge
#

Seems pretty conclusive that it's hardware accelerated!

#

Sorry, I don't hyprland just generalising my KDE Plasma Wayland experience. It can chug a bit at 100% utilisation otherwise - like 32t of chromium.

#

Good luck!

summer imp
#

"a bit" is an understatement. the mouse barely moves... I think mouse and kb input should be prioritized over everything

ember barn
#

xdph should get another hotfix tomorrow

#

a lot of the issues you are experiencing are very unique, so this is interesting

#

the firefox thing is 100% a misconfiguration or xdg thing

summer imp
#

I unmerged xdph just so I can use hyprland

#

also, how many of these should there be >???

ember barn
#

Iβ€˜d definitely wait for the hotfiy

#

this is a known issue

#

I believe you

ember barn
summer imp
#

even with xdph unmerged, I get a lot of regular xdp and xdp gtk

#

openrc

#

i don't even know at this point

ember barn
#

what script do you use to launch these, the one from the wiki?

summer imp
#

I commented the script from my execs

#

I am not launching them myself

#

for all I know, hyprland may be calling for them unasked

#

or something else

#

i'll upload my whole configuration

ember barn
#

on openrc I think you want a launch script that starts them from your hyprland conf

#

systemd is just much easier with xdg portals it handles them for you

summer imp
#

this was the script

ember barn
#

if you don't have xdph you might also want to use wlr

#

for the time being

summer imp
#

but it was commented

#

it's only used for screenshare and recording, right ?

#

do I need it otherwise ?

ember barn
#

I'd recomend it once it gets the fix

summer imp
#

whoops. firefox crashed again

#

amazing

ember barn
#

I had this error using flatpaks on X11

#

and I forgot how I fixed it

#

but it's not rly a wayland or hypr thing

summer imp
#

dragging files into firefox is hit or miss. sometimes crashes, sometimes doesn't

#

works on xorg tho simd

ember barn
#

does it call xdg-open the same way tho

summer imp
#

xdg-open doesn't work at all with links

#

firefox is already running but not responding blah blah yada yada

ember barn
#

I don't think it handles things the same way

#

on xorg

summer imp
#

perhaps

ember barn
#

but with flatpaks

#

it does

#

or should

summer imp
#

chromium flatpak works no issue on wl

#

dunno about xdg-open

ember barn
#

I wonder if not updating the dbus session address has anything to do with it like with this

exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DBUS_SESSION_BUS_ADDRESS 
#

and yes you can set --sytemd on openrc

#

also does it actually set your env variables properly it used to have issues with that

#

can you give me the output of env

summer imp
#

lmao nvm chromium doesn't take keyboard input πŸ’€πŸ’€πŸ’€πŸ’€πŸ’€πŸ’€πŸ’€

#

sometimes

#

if i drag a file into chromium, it stops taking keyboard input

ember barn
#

can you give me the output of env

#

and also why aren't you updating the dbus session bus

summer imp
ember barn
#

πŸ‘

#

I know it had issues actually setting those

#

from within the conf

#

in the past

#

so I wanna see

#

I am pretty sure launching these with & and dbus

#

is unnecessary

#

entirely

#

like you can just exec-once = waybar

summer imp
#

does dbus-update-activation thingy do anything ?

ember barn
#

dbus-update-activation-environment updates the list of environment variables used by dbus-daemon --session when it activates session services without using systemd.

#

also to answer your earlier question

#

you only need one of each

summer imp
#

well, I get a whole bunch

#

env

#

restarted the pc bcause htop was full of xdg portals

#

wth

#

fresh start, still got a few

winged cliff
#

This is related to #2, are you running an Nvidia GPU?

summer imp
#

amdgpu

#

polaris

winged cliff
#

Ah

summer imp
#

I have the same setup on my nvidia laptop AND IT WORKS

#

that's what bothers me

winged cliff
#

Someone on github said cursors dissapearing was related to $WLR_NO_HARDWARE_CURSORS

summer imp
#

yes, but they said it's a nvidia thingt

#

thingy

ember barn
#

still worth an attempt

summer imp
#

I think it disappears on my laptop too, but never cared

winged cliff
#

I'm running Hyprland and have none of your described issues

summer imp
#

I have different use cases for them

ember barn
#

Yes we know his issues are very unique

#

it seems like it actually sets envs properly now, which is good, except for the firefox remote one because you made a typo

#

in your conf

summer imp
#

what's the typo on the remote one

ember barn
#

, 1

summer imp
#

was it moz_bus_remote ?

ember barn
#

instead of =1

summer imp
#

oh

#

yea

#

my bad

#

, 1

#

I'll reset and see if that's the issue

ember barn
#

did you re-enable the xdg-portal script

#

I wonder if some of these are launched prematurely

winged cliff
#

Are you running multiple monitors?

summer imp
#

I did not reenable the xdg script

#

yes, 2 monitors

ember barn
#

Lemme see if that cleans up how many processes you have

winged cliff
#

Try setting no_cursor_warps = true in the general section of your config

ember barn
#

altho xdph won't be usable until next update for you

#

I sent you the git issue earlier today

winged cliff
#

I haven't read your config yet, maybe you have that enabled already

winged cliff
#

Stops hyprland from moving your cursor when you open a window

summer imp
#

oh, that's good

#

i wanted that

#

tnx

winged cliff
#

I have it enabled to have bspwm behavior

summer imp
#

I came from bspwm aswell

#

where do i put it

ember barn
#

General

#
winged cliff
#

^

summer imp
ember barn
#

warps

#

not wraps

summer imp
#

damn i need new glasses

ember barn
summer imp
#

why 288

ember barn
#

refresh rate * 2

summer imp
#

I've never heard of a 288hz monitore

#

ok ?

#

hmm

#

I'll do that too, but one of my monitors is 144, the other one is 75

#

60* cause of hdmi limitation

ember barn
#

not something you have to set

#

I only have a single monitor rn so I never bothered with configuring that stuff

winged cliff
#

If you want windows spawning on the right instead of left like bspwm, set force_split = 2 in the dwindle section

ember barn
#

idk what bspwm is like

#

I just configured a custom layout

winged cliff
#

I meant for @summer imp

ember barn
#

I am well aware of that

#

I am talking about my experience

#

and that is something you can also do on hyprland

winged cliff
ember barn
#

I only do it as a workaround for obs streaming on nvidia with >=xdph-1.1.0

#

otherwise it doesn't work

#

but yes you can

summer imp
#

r u on nvidia "?

ember barn
#

yes?

#

I've never owned an amd gpu

#

actually

summer imp
#

I switched to amd specifically for linux

ember barn
#

I need to brb

#

but

#

do you need help

#

converting these into a patch

#

that should fix xdph for you

#

I'll also add them to the GURU ebuild

summer imp
#

if xdph doesn't fix any of my issues, I'll keep it unmerged until the patch is live on guru

ember barn
#

Well Iβ€˜m kinda curious if it actually fixed them

summer imp
#

yes, can you help with the patch then ?

ember barn
#

ok but I need to brb a few mins

summer imp
#

np

#

cursor disappearing is halfway wezterm's feature, but it used to reappear as soon as I moved my mouse. I think it's probably fixed with the no_cursor_warps = true option

#

I'll need a way to set niceness for the wm so I can use my system while emerging.
On bspwm, I'm able to watch yt videos and be in a discord vc while emerging with 100% cpu useage. /usr/bin/X 's niceness seems to be set at -1

winged cliff
#

How many threads do you have?

summer imp
#

8

winged cliff
#

I would say use 7 threads for portage, but that would probably effect your build speeds too much

#

I have 12, so using 11 doesn't do much harm for me

ember barn
#

7 -> 8 is rly

#

not that much of a difference

winged cliff
#

But whenever my CPU is maxed out I have stuttering on Firefox in X and hyprland

summer imp
#

that is not that big of a deal, the issue is my mouse barely moving

#

as I said before, input should be prioritized

#

I don't care firefox stutters

#

on bspwm, the wm works fine with 100% cpu. I understand that hyprland is a bit more resource intensive due to all the animations, but I need to be able to move my mouse.

ember barn
summer imp
#

this can also happen in a game, what if the game has the same priority as the mouse ?

ember barn
#

here's your patch

#

can you try this on xdph

#

if it works I'm pushing this to guru

summer imp
#

yes, I'll try it

#

but i need help, as I'm bad with ebuilds

ember barn
#

you dont need to alter any ebuilds

#
mkdir -p /etc/portage/patches/gui-libs/xdg-desktop-portal-hyprland
mv cpu_patch.patch /etc/portage/patches/gui-libs/xdg-desktop-portal-hyprland/
emerge -1 xdg-desktop-portal-hyprland
#

lemme see if it applies

#

yes it does

summer imp
#

damn, the slowness while emerging is killing me

#

even with stuff that compiles quickly

ember barn
#

you are tempting me

summer imp
#

wym

ember barn
#

tempting me to post the build server's neofetch

summer imp
#

oh no

#

do it

ember barn
#

yea compiling is so slow

#

I hate it

summer imp
#

christ

#

brb restarting hyprland

ember barn
#

aite

#

should try with the launcher script as well to see if that kills superfluous processes

summer imp
#

there are 16 of them

#

fresh start

ember barn
#

can you try it with the script

summer imp
#

which script

ember barn
#

the wrapper script

#

that kills previously spawned ones

#

and starts them anew

#

openrc is weird.

summer imp
#

but i have it in my execs

#

shouldn it have started by itself

ember barn
#

you said it was commented out earlier?

summer imp
#

i put it back

ember barn
#

that kinda confused me..

summer imp
#

after emerged

#
#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
logger 'killed all xdg-desktop'
sleep 1
/usr/libexec/xdg-desktop-portal-hyprland &
logger 'xdg-desktop-portal-hyprland started'
sleep 2
/usr/libexec/xdg-desktop-portal &
logger 'xdg-desktop-portal started'
#

to be clear

ember barn
#

those are child processes...

#

I hate htop

summer imp
#

this is the script we're talking about

#

damn

ember barn
#

I just checked my htop instead of btop

#

those aren't separate instances

summer imp
#

))))))))))))))))

ember barn
#

those are child processes

#

that's normal

summer imp
#

I guess I am pretty stupid aswell

#

I should have known that

#

fuck it, i'll switch to btop, htop is kinda annoying to use

ember barn
#

also

#

you don't have a DBUS_SESSION_BUS_ADDRESS

#

in your env

summer imp
#

I'll need to steal a config tho, stock btop looks atrocious

#

I didn't dbus-launch Hyprland, is that why ?

ember barn
#

can you grab the dbus-update-activation-environment

#

that I posted earlier

ember barn
#

you're on openrc

summer imp
#

exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DBUS_SESSION_BUS_ADDRESS ?

ember barn
#

yes

summer imp
#

it's in my exec

ember barn
#

also you should launch it with dbus-run-session

#

on openrc

ember barn
#

also did you remove those unnecessary lines from your exec

summer imp
#

i put it after you told me to

ember barn
#

like dbus-launch waybar

summer imp
#

i did

ember barn
#

because you want to launch

#

Hyprland

#

with dbus

#

and the rest will be a child

#

alright let's see if launching Hyprland with dbus does anything for you

summer imp
#

idk why i didn't, I do it with dbus on my laprop...

ember barn
#

example

#

for stuff that happens without a dbus session

#

it can cause runtime issues

summer imp
#

I ran it with dbus-run-session Hyprland

#

is that ok ?

ember barn
#

yes

summer imp
#

firefox still drunk

#

xdg-open-ing links does try to start firefox, but firefox itself errors

ember barn
summer imp
#

dbus is started, idk what to check anymore

ember barn
#

do the permissions on /tmp/dbus-8OhtBSZ7Rj look right

#

ls -l /tmp

summer imp
ember barn
#

really all that's saying is that firefox can't access its config

#

and profile

#

god I hate openrc more and more

summer imp
#

if I can remember correctly, I think it worked with runit on artix

#

but I ran hyprland just for a brief period without even configuring it

#

then I got rid of it because pacman was driving me nuts

ember barn
#

running Hyprland with dbus-run-session should have been the fix

#

because that would fix it for everyone else

#

firefox still can't access its profile through your dbus session

#

have you tried turning it off and back on again

summer imp
#

does it not close with hyprland ?

#

i mean i had to start it after I ran hyprland so yea, it was a fresh start

#

I tried launching firefox with dbus-launch twice. fresh start, then second one errors

ember barn
#

dont use dbus-launch..

#

just start hyprland with dbus-run-session

#

and that should be it

summer imp
#

ik, I tried dbus-launch just in case

summer imp
#

gaming works

#

GAMING

summer imp
#

sharing my screen with xdg-desktop-portal-hyprland doesn't seem to work

ember barn
#

on discord?

#

get xwaylandvideobridge

summer imp
#

yea

#

what's that

ember barn
#

the package you need to make that work

#

xwayland applications literally can not access

#

other wayland apps

#

your screensharing probably works in firefox or obs

summer imp
#

it asks me what i want to share

#

the portal

#

shows me 3 tabs

#

screen, window and region

ember barn
#

you need xwaylandvideobridge pls

summer imp
#

it works on laptop

#

oh

ember barn
#

for discord you need that

ember barn
#

sometimes you need to click multiple times

#

but it works

#

assuming you set the screencast use flag

summer imp
#

on my laptop it works without it

ember barn
#

and your stuff is actually configured properly

summer imp
ember barn
#

on everything

#

that uses it

ember barn
#

if you use discord as an app

#

flatpak or from portage

#

unless you choose another xwayland app

summer imp
#

i use discord-screenaudio

#

as a flatpak

ember barn
#

well that's kind of

#

important to mention

#

isn't it

#

that it's not stock discord

summer imp
#

it's basically the discord website in a qtwebengine thingy

#

hold on, I'll try updating the flatpak

#

I'm also trying with obs, can't get it to work either

ember barn
#

everything misconfigured or possibly bugged

summer imp
#

xdg-desktop-portal-wlr doesn't do it either

#

I'm guessing it's something misconfigured

sharp cloak
#

holy shit is hyprland seriously that broken

ember barn
#

and he previously didn't even launch it with dbus

#

at all

#

which is what I suspect is causing the firefox issues

summer imp
#

the cursor issues are pretty much fixed-ish, xdph is fixed, the only issues remaining are firefox and the fact that I have to renice -n -2 Hyprland so my mouse doesn't stutter like crazy when doing cpu intensive tasks

summer imp
#

nevermind xdph being solved, lmao

ember barn
#

something is very weird with how these are started

#

I do not think I have ever seen that

summer imp
#

i unmerged it

ember barn
#

yes I told u that much

summer imp
#

it's xdg-desktop-portal and xdg-permissions-store

#

everything xdg related seems fucked

ember barn
#

I assume you're still having dbus issues too

summer imp
#

I think so

#

firefox still has the issue

#

everything is driving me insane

ember barn
#

what happens when you run

#

dbus-test-tool black-hole

summer imp
ember barn
#

okay so it does connect

summer imp
#
qlist -I | grep xdg
gui-libs/xdg-desktop-portal-lxqt
gui-libs/xdg-desktop-portal-wlr
sys-apps/xdg-dbus-proxy
sys-apps/xdg-desktop-portal
sys-apps/xdg-desktop-portal-gtk
x11-misc/xdg-utils

am i missing something or do i have something extra

#
qlist -I | grep dbus
dev-cpp/sdbus-c++
dev-libs/dbus-glib
dev-libs/libdbusmenu
dev-libs/libdbusmenu-qt
dev-python/dbus-python
dev-qt/qtdbus
dev-util/gdbus-codegen
kde-frameworks/kdbusaddons
sys-apps/dbus
sys-apps/xdg-dbus-proxy
ember barn
#

user-dirs and user-dirs-gtk

#

are two packages you dont have

#

that I do

#

[mia🌸Fuchskaute ~]β™₯ equery d x11-misc/xdg-user-dirs-gtk

#

this one

summer imp
#

is there anything that I have and you don't ?

ember barn
#

besides the KDE one

#

no

summer imp
#

I'll check what the kde one is for and get rid of it in case it's not necessary

ember barn
#

curious what happens

#

if you install user dirs

#

and run xdg-user-dirs-update

summer imp
#

i just did, hold on till i get rid of kde stuff

#

it's probably from kdenlive

#

yea, it is

#

I wouldn't want to get rid of that

#

got user dirs and user-dirs-gtk

ember barn
#

also like I guess for completions sake

#

send me the output of id

#

and make sure you have all services enabled that you need

summer imp
#
~ % id
uid=1000(bern) gid=1000(bern) groups=1000(bern),2(daemon),5(tty),10(wheel),14(uucp),18(audio),20(dialout),27(video),28(render),48(docker),77(qemu),78(kvm),79(libvirt),97(input),174(android),2
ember barn
#

also do you use pipewire

summer imp
#

yes

ember barn
ember barn
summer imp
#

dbus is on default

ember barn
#

looks fine too

summer imp
#

since hyprland has ni -n -2, everything else starts with -2

ember barn
#

I mean that amount is like

#

fine

#

of peocesses

summer imp
#

for now

#

cause I just killed all with -9

#

my discord audio was clipping and terminal complained about "Too many open files"

ember barn
#

interesting

summer imp
#

htop was full of xdg stuff

ember barn
#

I rly wanna figure out what it is that makes your firefox kill itself

#

btw

#

because for everyone else itβ€˜s as simple as dbus-run-session

#

env | grep XDG maybe

summer imp
#

more portals just spawned

#

and permission-store

#

I'll restart hyprland

#

something spawns xdg-dbus-proxy which then spawns a whole other set of portals

#

and stuff

ember barn
#

okay um

#

can you downgrade xdg-desktop-portal

#

the main one

summer imp
#

i have 1.18.0-r1, do you have the same version ?

ember barn
#

I'm on 1.16 to fix nvidia issues

#

I wanna see if 1.16 fixes some of your issues

#

because 1.18 seems to be buggy

summer imp
#

what issues

#

is it also patched ?

ember barn
#

nvidia stuff not working, portals crashing

summer imp
#

oh

ember barn
#
[mia🌸Fuchskaute ~]β™₯ cat /etc/portage/package.mask/xdg 
>sys-apps/xdg-desktop-portal-1.16.0-r1
#

worth a shot at this point

#

you have like

summer imp
ember barn
#

the weirdest bugs

summer imp
#

yea lmao

#

I'll update you after emerging and restarting hyprland

#

i literally just started hyprland

#

😭

ember barn
#

this on the downgraded version?

summer imp
#
sys-apps/xdg-desktop-portal-1.16.0-r1::gentoo was built with the following:
USE="-geolocation -screencast -systemd" ABI_X86="(64)"
#

my laptop seems to be full of them aswell

summer imp
#

I am a r

#

whoops

#

that word is probably not allowed here

#

anyway i am stupid

#

firefox is fixed

#

I was dbus-launching wofi........

#

in my keybinds

#

you may proceed to roast me, I deserve it

#
hypr % grep -RiE "dbus|xdg"
env.conf:env = XDG_CURRENT_DESKTOP, Hyprland
env.conf:env = XDG_SESSION_TYPE, wayland
env.conf:env = XDG_SESSION_DESKTOP, Hyprland
env.conf:env = XDG_RUNTIME_DIR=/run/user/1000
env.conf:env = MOZ_DBUS_REMOTE, 1
env.conf:exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DBUS_SESSION_BUS_ADDRESS
env.conf:exec-once = ~/.config/hypr/xdg-portal-hyprland
xdg-portal-hyprland:killall xdg-desktop-portal-hyprland
xdg-portal-hyprland:killall xdg-desktop-portal-gnome
xdg-portal-hyprland:killall xdg-desktop-portal-wlr
xdg-portal-hyprland:killall xdg-desktop-portal
xdg-portal-hyprland:logger 'killed all xdg-desktop'
xdg-portal-hyprland:/usr/libexec/xdg-desktop-portal-hyprland &
xdg-portal-hyprland:logger 'xdg-desktop-portal-hyprland started'
xdg-portal-hyprland:/usr/libexec/xdg-desktop-portal &
xdg-portal-hyprland:logger 'xdg-desktop-portal started'
execs.conf:exec-once = dbus-update-activation-environment --all
execs.conf:exec-once = sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

the rest of dbus-xdg related settings, there may be some other stupid stuff in there

#

xdg-stuff are not the only ones spawning, there's also

#

curious

ember barn
summer imp
#

I don't understand the stuff running with --use-gnome-session

ember barn
#

As I said in a recent task, those are indeed launched as a result of running GTK3 apps, but if you have NO_AT_BRIDGE=1 set in your environment then it should prevent them for being started.

#

in a forum post

summer imp
#

Bumping this as I still need help.
XDPH seems to be running, but not working. It just pops a window asking me which screen I or window I want to share, I pick a screen, but it doesn't work.
It works on my laptop tho simd
I have tried it in obs and discord-screenaudio.
I've also tried xdg-desktop-portal-wlr instead of xdph, still not working

summer imp
#

damn

#

now it doesn't on my laptop either πŸ’€

#

this thread is a shitshow

summer imp
#

seems to be an issue with hyprland-9999 which I'm using for allow-tearing. it works on 0.30.0

west ridge
#

If it works in 0.30 but not in 9999 I'd try bisecting the commits between them until you know what broke it and report it upstream.

#

Alternative take: find a "good" commit and take a snapshot there.

summer imp
#

nevermind that...screensharing and obs with hyprland-0.30.0 only work on my laptop. I still need to fix it on my pc somehow...