Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[wayland] wayfire and other compositors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Wed Jul 07, 2021 9:47 pm    Post subject: Reply with quote

I'm gonna risk jinxing it but I think downgrading firmware actually worked, I did it properly this time.
I mean, I'm compiling kernel for a long time with no modules, everything is built into the kernel, I forgot to rebuild the kernel after downgrading linux-firmware, can't really think of everything :D
Anyway I moved to Sway and for 15 hours in it there was no crash, and I tried to do everything possible to crash it.
Before this linux-firmware downgrade it lasted for maybe 5-6 hours tops, before amdgpu would start crashing.

Code:
$ uptime
up 15 hours, 34 minutes


Interesting bug, who would have thought the issue could be in linux-firmware version, glad I found that issue on github and luckily that guy posted the solution, otherwise I don't know, I guess I would be back to X11
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22853

PostPosted: Wed Jul 07, 2021 10:07 pm    Post subject: Reply with quote

Modern hardware has a disgustingly large amount of code running on embedded processors, disguised under the euphemism of "firmware." As such, a firmware upgrade or downgrade should be viewed much like a driver upgrade/downgrade. It can make a big difference, in either direction. Since most firmware is proprietary and unreadable, we must rely entirely on the vendor's release notes to evaluate the suitability of a change.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Wed Jul 07, 2021 10:15 pm    Post subject: Reply with quote

Sure, the problem here is that this happens on Wayland only.
I mean, that's interesting.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Wed Jul 07, 2021 10:48 pm    Post subject: Reply with quote

Glad it's working.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Wed Jul 07, 2021 11:05 pm    Post subject: Reply with quote

Me too, I guess there's some connection between Wayland, mesa , kernel drivers and firmware.
I've explored and tried each option and lastly I tried firmware.
I'll try to monitor this and see where exactly the fix will come.
Meanwhile, I have linux-firmware masked.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3774
Location: Rasi, Finland

PostPosted: Thu Jul 15, 2021 10:16 am    Post subject: Ditching Alacritty Reply with quote

I've had GPU hang problems with wayfire. I have intel GPU.
Just yesterday the logs revealed the important thing. The culprit seems to be my terminal emulator, Alacritty.

Anyone of you having the same problems? Iremember having problems with Alacritty with some tmux sessions and in this case I managed to trigger the gpu hang right after I attached to a (remote) tmux session.

I'm now using st instead, and things work without gpu hangs. I guess I'll finally take a closer look at foot. I'm just not very intimidated of its copy&paste method. I remember it does not support mouse selecting at all?

I've tried kitty shortly, but it's just too bloated of features.

So for a wayland native terminal emulator... I think foot is only one left. Right?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Thu Jul 15, 2021 10:31 am    Post subject: Reply with quote

I use alacritty and no problems here with amdgpu.
It uses gpu for rendering so I guess the problem is there, with Intel.

st supports mouse copy on select

btw I had no gpu hangs since linux-firmware downgrade (20210315), so that's definitely that I guess.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sat Jul 17, 2021 2:55 pm    Post subject: Reply with quote

I've encountered the first app not working right on Wayland, android studio.
It runs, doesn't crash or anything, but UI is practically not visible, sometimes you get the first screen showing but anything after that becomes not visible, for example when creating a new project.
Window is there but with empty canvas.
When you move the cursor over some parts it changes the cursor type like there's a button, but there's nothing drawn, no text no anything.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3774
Location: Rasi, Finland

PostPosted: Sun Jul 18, 2021 4:21 pm    Post subject: Reply with quote

I'd try to force Androidstudio to use xwayland and see if it works.

As for my GPU hang problem - yes it's most like inter driver or firmware related problem.
For now I haven't had any hangups since I started to use st...
st is a wonderful terminal emulator, sad it's not wayland native.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Sun Jul 18, 2021 4:45 pm    Post subject: Reply with quote

kajzer wrote:
I've encountered the first app not working right on Wayland, android studio.
It runs, doesn't crash or anything, but UI is practically not visible, sometimes you get the first screen showing but anything after that becomes not visible, for example when creating a new project.
Window is there but with empty canvas.
When you move the cursor over some parts it changes the cursor type like there's a button, but there's nothing drawn, no text no anything.


Which version of Android and which version of java?

Edit to add: and how are you starting the wayland session?
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland


Last edited by Anon-E-moose on Sun Jul 18, 2021 4:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Sun Jul 18, 2021 4:49 pm    Post subject: Re: Ditching Alacritty Reply with quote

Zucca wrote:
I've had GPU hang problems with wayfire. I have intel GPU.
Just yesterday the logs revealed the important thing. The culprit seems to be my terminal emulator, Alacritty.

Anyone of you having the same problems? Iremember having problems with Alacritty with some tmux sessions and in this case I managed to trigger the gpu hang right after I attached to a (remote) tmux session.

I'm now using st instead, and things work without gpu hangs. I guess I'll finally take a closer look at foot. I'm just not very intimidated of its copy&paste method. I remember it does not support mouse selecting at all?

I've tried kitty shortly, but it's just too bloated of features.

So for a wayland native terminal emulator... I think foot is only one left. Right?


Not had any problems lately with wayfire.
Note: I do use the 9999 versions, along with latest wlroots, so I can keep up with latest changes/developments.

What problems with foot?

Foot is under constant development, so things can change fairly rapidly.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sun Jul 18, 2021 5:12 pm    Post subject: Reply with quote

Anon-E-moose wrote:

Which version of Android and which version of java?

Edit to add: and how are you starting the wayland session?


Android studio I tried stable and latest (4.1.3) , also flatpak version (4.2.2.0)
For Java I use stable openjdk-bin, which is v8, I tried unmasking v11 and it installs but the system doesn't recognize it, says I need to enable gentoo-vm use flag but it just doesn't register that flag when I enable it.
eselect java-vm lists only v8

Also btw, I don't think I tried this under X, so it's possible the same thing would happen there as well, not in the mood to install X again over this.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Sun Jul 18, 2021 5:44 pm    Post subject: Reply with quote

It seems there were some problems with older sway(1.5) and android studio(4.0) but I don't know if that's still true with the latest.
https://github.com/swaywm/sway/issues/5414

It seems that java 11 works but you need to set STUDIO_JDK, and possibly other env vars
https://www.reddit.com/r/swaywm/comments/jxevkc/has_anyone_resolved_the_popup_issues_for_the/
https://www.reddit.com/r/swaywm/comments/hm8ys9/android_studio_meus_disappear/
https://www.reddit.com/r/swaywm/comments/iel4ic/android_studio_and_swaywm/
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sun Jul 18, 2021 5:49 pm    Post subject: Reply with quote

I'm on Sway 1.6.1 so I guess there are still some issues.
Thanks for sharing that info, I'll investigate all links thoroughly.
I didn't thought Sway could be a problem, I'll most likely try Wayfire later and see if something is different maybe.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sun Jul 18, 2021 8:52 pm    Post subject: Reply with quote

Java version doesn't matter, I tried it with openjdk-11 , it even crashes with it.

What worked was this
Code:
export _JAVA_AWT_WM_NONREPARENTING=1


found that in one of the links from above, many thanks @Anon-E-moose !
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3774
Location: Rasi, Finland

PostPosted: Thu Jul 22, 2021 7:56 pm    Post subject: Reply with quote

I now using st (as backup) and foot. Time to unmerge alacritty.
Alacritty is a fine terminal, but I hate the yml syntax in config files. Yuk!
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sat Jul 24, 2021 5:42 pm    Post subject: Reply with quote

Alacritty is really nice, can't really complain about it, I've unmerged it as well.
Was browsing some wayland terminals and finally landed on foot, I like server and client feature, reminds me of rxvt :D
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Sat Jul 24, 2021 6:09 pm    Post subject: Reply with quote

The Main Man wrote:
Was browsing some wayland terminals and finally landed on foot.

I ended up with kitty: This was the only terminal which could be configured in the way I had configured xterm (for instance, long scrollback-buffer wich occurs with Shift-PgUp, non-blinking bright green cursor, and some tiny things I am used to.)
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Sun Jul 25, 2021 4:50 pm    Post subject: Re: Ditching Alacritty Reply with quote

Zucca wrote:
II'm just not very intimidated of its copy&paste method. I remember it does not support mouse selecting at all?


For me it works normal out of the box, there was one thing which bothered me and that is to copy with mouse selection and then paste that with keyboard.
But if you change in foot.ini selection-target=primary to selection-target=clipboard then that works.
Otherwise by default it's copy with mouse and paste with mouse (middle mouse click), same with keyboard (copy with keyboard paste with keyboard)
I'm not sure if you meant exactly that but in case you did :D
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Sun Jul 25, 2021 5:21 pm    Post subject: Reply with quote

Code:
selection-target
    Clipboard target to automatically copy selected text to. One of none, primary, clipboard or both. Default: primary.

_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3774
Location: Rasi, Finland

PostPosted: Thu Jul 29, 2021 8:52 am    Post subject: foot server Reply with quote

Anyone here using foot server? Is it working smoothly?
I have:
Code:
$ qlist -vI foot
gui-apps/foot-1.8.2
gui-apps/foot-terminfo-1.8.1

_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1172
Location: /run/user/1000

PostPosted: Thu Jul 29, 2021 11:14 am    Post subject: Reply with quote

I'm using it, don't have foot-terminfo though, will try that later today, but xterm-256color works fine.
It didn't crash or something, it's supposed to be slower but I don't notice it.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6175
Location: Dallas area

PostPosted: Thu Jul 29, 2021 11:42 am    Post subject: Reply with quote

I use foot, but not the server option, never cared for the server/client stuff.
But I've not had any problems with foot and I use it all the time.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Thu Jul 29, 2021 11:51 am    Post subject: Re: foot server Reply with quote

Zucca wrote:
Anyone here using foot server? Is it working smoothly?
I have:
Code:
$ qlist -vI foot
gui-apps/foot-1.8.2
gui-apps/foot-terminfo-1.8.1
Both Installed here too...
Not yet integrated for server mode, as in 'man foot' snippet:
Code:
        -s,--server[=PATH]
           Run as a server. In this mode, a single foot instance hosts mul‐
           tiple terminals (windows). Use footclient(1) to launch new termi‐
           nals.

           This saves some memory since for example fonts and glyph caches
           can be shared between the terminals.

           It also saves upstart time since the config has already been
           loaded and parsed, and most importantly, fonts have already been
           loaded (and their glyph caches are likely to already have been
           populated).

           Each terminal will have its own rendering threads, but all Way‐
           land communication, as well as input/output to the shell, is mul‐
           tiplexed in the main thread. Thus, this mode might result in
           slightly worse performance when multiple terminals are under
           heavy load.

           Also be aware that should one terminal crash, it will take all
           the others with it.

           The default path is $XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock.

           If $XDG_RUNTIME_DIR is not set, the default path is instead
           /tmp/foot.sock.

           If $XDG_RUNTIME_DIR is set, but $WAYLAND_DISPLAY is not, the de‐
           fault path is $XDG_RUNTIME_DIR/foot.sock.

           Note that if you change the default, you will also need to use
           the --server-socket option in footclient(1) and point it to your
           custom socket path.
Unsure what package gui-apps/foot-terminfo brings in...
Edit: Here v1.8.1 provides desktop files for standalone & server, none for footclient.
Here's
Code:
cat ~/.local/share/applications/foot-client.desktop
[Desktop Entry]
Type=Application
Exec=footclient
Icon=foot
Terminal=false
Categories=System;TerminalEmulator;
Keywords=shell;prompt;command;commandline;

Name=FootClient
GenericName=Terminal
Comment=A wayland native terminal emulator

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 567
Location: münchen.de

PostPosted: Wed Aug 04, 2021 2:41 pm    Post subject: Re: foot server Reply with quote

CaptainBlood wrote:
Unsure what package gui-apps/foot-terminfo brings in...


As far as I know a terminfo defines the capabilities of your terminal and basicaly shows ncurses which characters and colors can be used. For old terminals this terminfo is included in ncurses. But newer terminals support more features, colors and and enhanced character sets. Somewhere on the internet I read, that the ncurses developers don't like this direction and rejected some of the terminfo contributions.

You will see the results if you ssh into a server using a terminal without the appropriate terminfo installed on the target machine.


The Main Man wrote:
Java version doesn't matter, I tried it with openjdk-11 , it even crashes with it.

What worked was this
Code:
export _JAVA_AWT_WM_NONREPARENTING=1


found that in one of the links from above, many thanks @Anon-E-moose !


Do you have the custom-jdk USE flag enabled? Only then Android Studio uses your system JVM. Also when using the system JVM you get multiple warnings about possible graphic errors etc. On my machine it always crashed with custom-jdk, no problems after switching to bundled JVM.
_________________
# cd /pub/
# more beer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 3 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum