Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel UHD 620 Graphics and Ghostty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 531
Location: Wales, UK

PostPosted: Thu Jul 03, 2025 5:47 am    Post subject: Intel UHD 620 Graphics and Ghostty Reply with quote

I have a Lenovo X390 with Gen 8 intel graphics. I decided to try out ghostty, but get this error:
Code:
error(gtk_surface): surface failed to realize: error.SystemOutdated

which I understand indicates that the graphics hardware is not available for ghostty to use. I have been through the wiki instructions for intel graphics, and have tweaked everything as I understand I should, but have still not achieved a successful result.

Since this process takes quite a lot of time per iteration (tweaking graphics settings normally means qtwebengine recompiles!), I though I would just ask: am I trying to do something which isn't possible? Are any of you successfully using ghostty with Intel UHD 620 graphics? If so, are there any tips I need to be aware of?

Thanks in advance!
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4833
Location: Germany

PostPosted: Thu Jul 03, 2025 6:50 pm    Post subject: Reply with quote

I think on bare metal the Intel UHD 620 Graphics is fine, and ghostty should work with this.
But, in a vm, im not sure – see https://github.com/ghostty-org/ghostty/discussions/4795
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4096

PostPosted: Thu Jul 03, 2025 7:53 pm    Post subject: Reply with quote

Inserting
Code:
diff ghostty-1.1.3.ebuild ghostty-1.1.3-r1.ebuild
97a98,102
>
>    shopt -s globstar
>    sed -i 's/^const xev = @import("xev");$/const xev = @import("xev").Epoll;/' **/*.zig
>    shopt -u globstar
>
at the start of ebuild section named;
Code:
src_configure()
did fix here.

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
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 531
Location: Wales, UK

PostPosted: Fri Jul 04, 2025 2:09 am    Post subject: Reply with quote

Thank you @CaptainBlood - that did indeed solve the problem.

Is that a bug which needs correcting in the repository? If so, I will look to make a patch and upload it. It's interesting that I had no issues on my two other machines, both with AMD graphics.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4096

PostPosted: Sat Jul 05, 2025 2:13 am    Post subject: Reply with quote

Here is
Code:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)


GPU discrimination doesn't seem 2 belong to upstream package configuration.

Also seems like ebuild USE policy is mostly to only implement upstream package configuration settings. (my 2cents).

As a result, I'd rather turn 2 package upstream to better decide how it should be handle. (my 2cents).

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
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 531
Location: Wales, UK

PostPosted: Sat Jul 05, 2025 5:28 am    Post subject: Reply with quote

CaptainBlood wrote:
GPU discrimination doesn't seem 2 belong to upstream package configuration.
As a result, I'd rather turn 2 package upstream to better decide how it should be handle. (my 2cents).


I have reopened my discussion on the upstream github repository - let's see what they say about fixing the code there! I don't know zig, so I don't know if the change you made will impact systems with other graphics cards, and since I am travelling at the moment, I can't test it on my own AMD based systems.

I think I need to learn some zig... :)
Back to top
View user's profile Send private message
mark4
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2011
Posts: 130

PostPosted: Sat Jul 05, 2025 5:44 pm    Post subject: Reply with quote

Just as a test I installed this on my Raptor Lake i9 and it just did not work right. Anything I typed would be echoed to the console in spurts or just stop echoing half way there until I hit enter and when I ran my uCurses (my own curses library) demo code (like my utf8 ray cast thingie) it stopped responding to all key presses outright.

Still a long way to go before that terminal is actually usable.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 531
Location: Wales, UK

PostPosted: Sun Jul 06, 2025 6:40 am    Post subject: Reply with quote

mark4 wrote:
Just as a test I installed this on my Raptor Lake i9 and it just did not work right. Anything I typed would be echoed to the console in spurts or just stop echoing half way there until I hit enter and when I ran my uCurses (my own curses library) demo code (like my utf8 ray cast thingie) it stopped responding to all key presses outright.

Still a long way to go before that terminal is actually usable.


Apparently there are issues with the kernel version 6.15.4 which are being worked on - the changes shown above get round it on this laptop. I have tried ghostty on this system (which is the one I struggled to get it working on), on an AMD based laptop and on an AMD based desktop - it works properly on all of them, without issues. Not sure why you are getting issues, but if you want to follow up the developers on the ghostty GitHub are helpful - they may have users with an installation similar to yours and can offer some advice.
Back to top
View user's profile Send private message
mark4
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2011
Posts: 130

PostPosted: Sun Jul 06, 2025 1:01 pm    Post subject: Reply with quote

paulj wrote:
mark4 wrote:
Just as a test I installed this on my Raptor Lake i9 and it just did not work right. Anything I typed would be echoed to the console in spurts or just stop echoing half way there until I hit enter and when I ran my uCurses (my own curses library) demo code (like my utf8 ray cast thingie) it stopped responding to all key presses outright.

Still a long way to go before that terminal is actually usable.


Apparently there are issues with the kernel version 6.15.4 which are being worked on - the changes shown above get round it on this laptop. I have tried ghostty on this system (which is the one I struggled to get it working on), on an AMD based laptop and on an AMD based desktop - it works properly on all of them, without issues. Not sure why you are getting issues, but if you want to follow up the developers on the ghostty GitHub are helpful - they may have users with an installation similar to yours and can offer some advice.


There ARE also some bugs in my uCurses library where *IT* does not play nice in certain terminals and I have yet to discover why so I cant put ALL the blame on Ghostty :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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