Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd vconsole-setup fail
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
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Tue Feb 07, 2017 8:44 am    Post subject: Systemd vconsole-setup fail Reply with quote

After installing Gentoo with latest systemd (232), I am having some weird records in journalctl:
Code:
Virtual console /dev/tty0 is not in K_XLATE or K_UNICODE

After it, vconsole-setup fails with error.
Also, there are some other records with errors from vconsole-setup:
Code:
KD_FONT_OP_GET while trying to get font metadata: Invalid argument
Fonts will not be copied to remainig consoles

What could the problem possibly be? Maybe, some forgotten kernel parameter?
Thanks!
Back to top
View user's profile Send private message
dr_wulsen
n00b
n00b


Joined: 21 Aug 2013
Posts: 71
Location: Beautiful Austria, Lake area in Upper Austria

PostPosted: Sun Feb 26, 2017 5:08 pm    Post subject: Reply with quote

Hi there,

as a wild guess, could it be that in your kernel config console keyboard translations are not enabled?
K_XLATE is a macro in the kd.h file of the linux kernel. That file is all about keyboard drivers.

So could you do a
Code:
zcat /proc/config.gz | grep -i console
or if that doesn't work (it won't unless config access through /proc is enabled in your kernel), try
Code:
grep -i console /usr/src/linux/.config
The point catching my interest would be having CONFIG_CONSOLE_TRANSLATIONS=y there.

This is a real uneducated and wild guess, as I have checked through the ebuild of systemd-232 and the ebuild itself is not checking for that kernel config to be set.

However, you may also have an elog message that could point you to the right direction.
To get that potential message quick and dirty (without altering portage config and installing elogv which I'd recommend to do anyway but is covered in the wiki already) you can just
Code:
emerge -1 systemd
and watch for messages and infos after the merge has completed.
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Fri Mar 03, 2017 7:41 am    Post subject: Reply with quote

dr_wulsen wrote:
Hi there,

as a wild guess, could it be that in your kernel config console keyboard translations are not enabled?
K_XLATE is a macro in the kd.h file of the linux kernel. That file is all about keyboard drivers.

So could you do a
Code:
zcat /proc/config.gz | grep -i console
or if that doesn't work (it won't unless config access through /proc is enabled in your kernel), try
Code:
grep -i console /usr/src/linux/.config
The point catching my interest would be having CONFIG_CONSOLE_TRANSLATIONS=y there.

This is a real uneducated and wild guess, as I have checked through the ebuild of systemd-232 and the ebuild itself is not checking for that kernel config to be set.

However, you may also have an elog message that could point you to the right direction.
To get that potential message quick and dirty (without altering portage config and installing elogv which I'd recommend to do anyway but is covered in the wiki already) you can just
Code:
emerge -1 systemd
and watch for messages and infos after the merge has completed.

Thanks! But it looks like CONFIG_CONSOLE_TRANSLATIONS was already enabled and it looks like the problem itself is related to systemd bug or something(231 has no such problem, 232 and 233 do have)
Also problems related to this one are discussed here
They even proposed a patch or something... Hope Gentoo will have it fixed too.
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 833

PostPosted: Fri Mar 03, 2017 10:39 am    Post subject: Reply with quote

Not pertinent to the topic of the thread, but I see a variation on the "cat | grep" theme.

Instead of `zcat /proc/configs.gz | grep`, one can use `zgrep` directly.
Back to top
View user's profile Send private message
dr_wulsen
n00b
n00b


Joined: 21 Aug 2013
Posts: 71
Location: Beautiful Austria, Lake area in Upper Austria

PostPosted: Sun Mar 05, 2017 9:16 pm    Post subject: Reply with quote

@cboldt: Thank you for pointing that out, it may not matter much here, but doing that on a bigger file/lot of files it will definitely boost performance (and it just seems much more proper) to use zgrep.
Thanks for pointing that out and reminding me of that!

@unb0rn: what does
Code:
journalctl -xe -p4 -b0
produce?
It's going to show errors of level 4 or lower (0 is nuclear detonation) of the current bootup with explanatory messages. Anything specific about the vconsole-setup?

You can also edit the /etc/sytemd/system.conf to include LogLevel=debug, reboot and execute the command above. Maybe it gives you a hint on what's happening.
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Tue Mar 07, 2017 12:27 pm    Post subject: Reply with quote

dr_wulsen wrote:
@cboldt: Thank you for pointing that out, it may not matter much here, but doing that on a bigger file/lot of files it will definitely boost performance (and it just seems much more proper) to use zgrep.
Thanks for pointing that out and reminding me of that!

@unb0rn: what does
Code:
journalctl -xe -p4 -b0
produce?
It's going to show errors of level 4 or lower (0 is nuclear detonation) of the current bootup with explanatory messages. Anything specific about the vconsole-setup?

You can also edit the /etc/sytemd/system.conf to include LogLevel=debug, reboot and execute the command above. Maybe it gives you a hint on what's happening.


Here are the logs: LINK
They also contain all of my previous problems with bluez which I mentioned in other posts (still unresolved)
I am grateful for any help![/url]
Back to top
View user's profile Send private message
dr_wulsen
n00b
n00b


Joined: 21 Aug 2013
Posts: 71
Location: Beautiful Austria, Lake area in Upper Austria

PostPosted: Tue Mar 07, 2017 7:23 pm    Post subject: Reply with quote

Hey there,

I spot a Yoga3Pro systemd-vconsole-setup[1910]: KD_FONT_OP_GET failed while trying to get the font metadata: Invalid argument

The Ubuntu Forums discuss the issue and got it solved, however as it comes and goes with the different systemd versions, it may not be related to your issue.

Well, what you could also try is to call systemctl restart systemd-vconsole-setup as root in a terminal after it throws the error message at boot.
If it executes fine then, this would indicate that the console (driver) isn't ready yet to have a font set at the boot stage systemd tries to.
Would make sense to disappear with another systemd version.

Any expertise on this topic provided by someone with more insight than I have is still appreciated :)
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Thu Mar 09, 2017 7:45 am    Post subject: Reply with quote

dr_wulsen wrote:
Hey there,

I spot a Yoga3Pro systemd-vconsole-setup[1910]: KD_FONT_OP_GET failed while trying to get the font metadata: Invalid argument

The Ubuntu Forums discuss the issue and got it solved, however as it comes and goes with the different systemd versions, it may not be related to your issue.

Well, what you could also try is to call systemctl restart systemd-vconsole-setup as root in a terminal after it throws the error message at boot.
If it executes fine then, this would indicate that the console (driver) isn't ready yet to have a font set at the boot stage systemd tries to.
Would make sense to disappear with another systemd version.

Any expertise on this topic provided by someone with more insight than I have is still appreciated :)


I can only start vconsole-setup after running kbd_mode -u.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1655
Location: United Kingdom

PostPosted: Thu Mar 09, 2017 10:34 am    Post subject: Reply with quote

Unb0rn,

Have you tried the following?:

spacekitteh wrote:
I just disabled kmscon, restarted, it works now.


https://github.com/NixOS/nixpkgs/issues/22470#issuecomment-283222384
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
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