lkml.org 
[lkml]   [2014]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectconsole font
On 25.06.2014 20:49, poma wrote:
> On 25.06.2014 20:10, Felix Miata wrote:
>> On 2014-06-25 10:05 (GMT-0700) Adam Williamson composed:
>>
>>> So...these are three different machines?
>>
>> 3 out of 14 on which Rawhide is currently installed (test machines total 20+)
>> here, among which are represented various flavors of MGA (400 & 550), SiS
>> (Z7/Z9 XG20 core), Intel (810, 815, 845, 865, 915, 945, 965, 3100, 4100), ATI
>> (rv200, rv250, rv370, rv380, rv516) & NVidia for video.
>>
>>> I'm curious: why are you passing video= parameters on each one? Do
>>> any/all of them work if you don't pass that parameter?
>>
>> Most of my test machines get used most of the time with a '21"' CRT with
>> preferred mode 1600x1200 reported as preferred mode 1280x1024 used at
>> approximately 175% of normal viewing distance. Avoiding eyestrain requires
>> 1152x864 or lower on the vttys unless I want to monkey with terminal font
>> reconfiguration from default.
>>
>> My second most used test machine display is a 19" LCD TV with native mode
>> 1440x900 that reports preferred 1280x1024 but supports 4:3 modes up to
>> 1792x1344. It is used at similar distance, so also needs 1024x768 on the
>> vttys for the same reason as the CRT.
>>
>> I also have 2 15" 1024x768, 17" & 19" 1280x1024 and 20" 1600x1200 LCD puter
>> displays, 2 31.5" TVs, and an abundance of other CRTs to use as test
>> conditions require, in addition to the LCDs used for my 24/7 systems that can
>> be briefly pressed into test service when necessary.
>>
>
> # yum install terminus-fonts-console
>
> - permanent system wide
> /etc/vconsole.conf
> FONT=<Big mama font>
>
> e.g. 'latarcyrheb-sun32' or 'ter-v32b'
>
> - runtime local
> $ setfont latarcyrheb-sun32
> $ setfont ter-v32b


systemd-214-5.fc21.x86_64
kernel-3.16.0-0.rc3.git0.1.fc21.x86_64

It seems this kernel? bug is still present[2].

"rd.vconsole.font=ter-v32b" also fails to subsist due to
"fb: switching to nouveaufb from VESA VGA".

- journal systemd-vconsole-setup
systemd[1]: Starting Setup Virtual Console...
systemd-vconsole-setup[347]: putfont: KDFONTOP: Invalid argument
systemd-vconsole-setup[347]: /usr/bin/setfont failed with error code 71.
systemd[1]: Started Setup Virtual Console.

I've found so far that this can only be overcome with these two almost identical solutions;
When I thought of 'actual-vconsole-setup-start' I did not know that Yegor already done it.
Saṃsāra.


Yegor's solution[1]:
# cp /usr/lib/systemd/system/systemd-vconsole-setup.service /etc/systemd/system/
# diff /etc/systemd/system/systemd-vconsole-setup.service \
> /usr/lib/systemd/system/systemd-vconsole-setup.service
13,14c13,14
< After=sysinit.target
< Before=shutdown.target
---
> After=systemd-readahead-collect.service systemd-readahead-replay.service
> Before=sysinit.target shutdown.target

or even simpler - leave 'systemd-vconsole-setup.service' as is,
and make this one
/etc/systemd/system/actual-vconsole-setup-start.service:
# Actual Virtual Console Setup Start

[Unit]
Description=Actual Virtual Console Setup Start

[Service]
Type=forking
ExecStart=/usr/lib/systemd/systemd-vconsole-setup

[Install]
WantedBy=rescue.target multi-user.target

# systemctl enable actual-vconsole-setup-start.service

and now you have appropriate font size for 1920x1080,
no need to lower resolution via "video=<xres>x<yres>".
Perhaps '32' is too large, so choose <= '28', e.g. ter-v28b or ter-v24b.
/usr/share/doc/terminus-fonts-console/README[.fedora]


poma


[1] systemd-vconsole-setup: /usr/bin/setfont failed with error code 71
http://lists.freedesktop.org/archives/systemd-devel/2011-June/002562.html

[2] Can not change console font via /etc/vconsole.conf
https://bugzilla.redhat.com/show_bug.cgi?id=1074113

The keyboard layout for the virtual console cannot be changed using
“localectl set-keymap <map>; dracut -f; reboot;”
https://bugzilla.redhat.com/show_bug.cgi?id=1033250

font settings are lost when kernel fb drivers are changed
https://bugzilla.redhat.com/show_bug.cgi?id=892340

Kernel drivers lose console font settings
https://bugzilla.redhat.com/show_bug.cgi?id=1074624

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-06-30 22:21    [W:0.045 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site