You are not logged in.

#1 2017-01-07 22:21:20

digitalone
Member
Registered: 2011-08-19
Posts: 296

[SOLVED] Cannot start Plasma session after upgrading harfbuzz

Hello everyone.
A few hours ago I left my laptop in locked session, then I went to relog in, inserted my password and saw an X error, so I could not log in.
Switched off the laptop (manually from the keybord), turned it on and the system is able to start sddm display manager. But when a give my password, Plasma session can't start and an X error is shown.

When I switch to the console, the startkde command returns me "$DISPLAY is not set or cannot connect to the X server".

I only remember that I was configuring mpv and changed the frequency of the monitor from auto to 60Hz (by Plasma system settings), but this is completely safe bacause 60Hz is the default frequency.

I don't know what to do know and where to look to find the solution. I could provide you any log if you ask me where to look.

Thanks.

Last edited by digitalone (2017-01-08 14:37:58)

Offline

#2 2017-01-07 22:24:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,364
Website

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Paste the Xorg log.



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-01-07 22:32:30

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Sorry, forget to mention, the X error when I try to get into Plasma session is
Could not start kdeinit5. Check your installation.

I'll provide the Xorg log, just the time to switch to Windows,  I can't from sddm or console.

Offline

#4 2017-01-07 22:40:24

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Xorg log. Seems to be no errors.
http://pastebin.com/URLxLNMU

Offline

#5 2017-01-07 22:46:53

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

It seems more a Plasma issue. Where can I see a log of Plasma session? I can't find one.

Last edited by digitalone (2017-01-07 22:48:43)

Offline

#6 2017-01-07 23:30:45

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Downgraded harfbuzz and harfbuzz-icu and Plasma is working now.

Offline

#7 2017-01-07 23:43:26

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Offline

#8 2017-01-08 00:32:17

Salkay
Member
Registered: 2014-05-22
Posts: 532

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

@digitalone In case you haven't worked it out, it's likely related to infinality being not updated. Basically, remove freetype2-infinality-ultimate and install freetype2 (+ dependencies), then the latest harfbuzz works again.

Offline

#9 2017-01-08 00:41:53

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Salkay wrote:

@digitalone In case you haven't worked it out, it's likely related to infinality being not updated. Basically, remove freetype2-infinality-ultimate and install freetype2 (+ dependencies), then the latest harfbuzz works again.

I know but don't want to remove freetype2-infinality, font rendering is much better than the repo version. 
I'll stay with harfbuzz downgraded for now.

Last edited by digitalone (2017-01-08 00:42:41)

Offline

#10 2017-01-08 00:43:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,584

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

That's a really horrible decision. The infinality package is unlikely to be updated (if you're using the 3rd party repo), so more and more things are just going to break. Learn how to configure freetype/fontconfig yourself.

Last edited by Scimmia (2017-01-08 00:49:28)

Offline

#11 2017-01-08 00:50:08

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Scimmia wrote:

That's a really horrible decision. The infinality package is unlikely to be updated, so more and more things are just going to break. Learn how to configure freetype/fontconfig yourself.

I already tried to configure freetype, but it can never reach the same better rendering of infinality.
I hope infinality maintainers can patch the package to work with new updates.
If something will break, I'll go with freetype2, but I don't have issues for now.

Offline

#12 2017-01-08 01:11:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,364
Website

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Infinality is redundant now that upstream have integrated all of the features. Bohoomil's font packages can still be used if desired, but the bundle itself is pointless, which is probably why he no longer updates it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2017-01-08 01:20:23

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

jasonwryan wrote:

Infinality is redundant now that upstream have integrated all of the features. Bohoomil's font packages can still be used if desired, but the bundle itself is pointless, which is probably why he no longer updates it.

Pointless what? Can I get the same rendering of infinality with repo version?
Font rendering with freetype2 is crappy in gtk applications. With infinality is awesome.

Offline

#14 2017-01-08 01:22:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,364
Website

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Sure, the wiki has details on configuring it, you just have to set it up.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2017-01-08 01:52:14

toz
Member
Registered: 2011-10-28
Posts: 451

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

This might be helpful: From the freetype homepage:

In case you are already using subpixel hinting (for example, by using the ‘Infinality patches’ as provided by some GNU/Linux or BSD distributions, or directly from bohoomil.com), be noted that the new mode might provide subtle differences; the code was simplified to make it much faster. If you are used to the old full-pixel hinting, you will see many rendering changes. If you really dislike them, you can disable them at compile time or using the new FREETYPE_PROPERTIES environment variable.

The freetype2 package provides an /etc/profile.d/freetype2.sh file with the following content:

# Subpixel hinting mode can be chosen by setting the right TrueType interpreter
# version. The available settings are:
#
#     truetype:interpreter-version=35  # Classic mode (default in 2.6)
#     truetype:interpreter-version=38  # Infinality mode
#     truetype:interpreter-version=40  # Minimal mode (default in 2.7)
#
# There are more properties that can be set, separated by whitespace. Please
# refer to the FreeType documentation for details.

# Uncomment and configure below
#export FREETYPE_PROPERTIES="truetype:interpreter-version=40"

Uncommenting the last line and setting the value to 38, is supposed to reset the subpixel hinting to infinality-like. Not sure if these old eyes can tell the difference, but it may be worth giving it a try.

Offline

#16 2017-01-08 14:29:44

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

I backup infinality config, then installed freetype2, harfbuzz and repleaced infinality config.
Fonts look great.
Thanks. Cheers.

Offline

#17 2017-01-08 14:53:28

simona70
Banned
Registered: 2017-01-08
Posts: 41

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Someone more expert can describe with more details what to do? It is a secure procedure?

Offline

#18 2017-01-08 15:19:00

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

simona70 wrote:

Someone more expert can describe with more details what to do? It is a secure procedure?

Font configuration is stored in /etc/fonts/conf.d
This directory contains symlink to other files in other directories.

With infinality, these directories are
/etc/fonts/conf.avail
/etc/fonts/conf.avail.infinality
/usr/share/fontconfig/conf.avail.infinality

Backup these directories changing their names, then do a backup of /etc/fonts/conf.d directory also.

Install upstream packages freetype2, fontconfig, cairo.
Fill /etc/fonts/conf.avail with content of /etc/fonts/conf.avail backup.
Fill /etc/fonts/conf.avail.infinality with content of /etc/fonts/conf.avail.infinality backup.
Fill /usr/share/fontconfig/conf.avail.infinality with content of /usr/share/fontconfig/conf.avail.infinality backup.
Fill /etc/fonts/conf.d with content of /etc/fonts/conf.d backup.

It works good to me. If it will not work to you, delete above directories (not the backups) and reinstall upstream packages.

Last edited by digitalone (2017-01-08 15:22:23)

Offline

#19 2017-01-08 15:58:47

ZeroLinux
Member
Registered: 2011-10-07
Posts: 156

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

I can confirm. It works well.

Offline

#20 2017-01-08 15:59:19

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,074

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#21 2017-01-08 16:01:17

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,143

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

I'll try tomorrow, but i found this:
https://github.com/archfan/infinality_bundle/
Seems to be a fork with infinality patches applied to 2.7 (?)

Ops, just saw that infinality patched aur package already uses that.
I suppose the problem comes with freetype 2.7.1 then.

Last edited by kokoko3k (2017-01-08 16:20:33)


Help me to improve ssh-rdp !

Offline

#22 2017-01-08 18:25:25

BurhanDanger
Member
From: Sylhet, Bangladesh.
Registered: 2016-09-13
Posts: 29

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

digitalone Can you maybe upload these files somewhere . I removed infinality completely with all config files.

Offline

#23 2017-01-08 18:32:13

digitalone
Member
Registered: 2011-08-19
Posts: 296

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

BurhanDanger wrote:

digitalone Can you maybe upload these files somewhere . I removed infinality completely with all config files.

I can't now. Anyway you can downgrade harfbuzz and harfbuzz-icu and install infinality packages from AUR, save the configuration and reinstall upstream packages.

Offline

#24 2017-01-08 18:51:50

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,074

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

Or use tar to extract the contents of the *.pkg.tar.xz files ...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#25 2017-01-08 20:44:08

simona70
Banned
Registered: 2017-01-08
Posts: 41

Re: [SOLVED] Cannot start Plasma session after upgrading harfbuzz

To remove infinality it is ok to use command:
sudo pacman -S --asdeep lib32-freetype2 lib32-cairo lib32-fontconfig freetype2 cairo fontconfig noto-fonts ttf-dejavu cantarell-fonts gsfonts

and remove:
otf-cantarell-ib t1-urw-fonts-ib ttf-dejavu-ib ttf-noto-fonts-ib
cairo-infinality-ultimate fontconfig-infinality-ultimate freetype2-infinality-ultimate
lib32-cairo-infinality-ultimate lib32-fontconfig-infinality-ultimate lib32-freetype2-infinality-ultimate

??

Last edited by simona70 (2017-01-08 20:44:27)

Offline

Board footer

Powered by FluxBB