You are not logged in.

#1 2010-05-07 00:45:11

Deatzo Seol
Member
Registered: 2010-03-11
Posts: 4

KMS & manual tty modesetting

So I have installed KMS on my ATI card. Switching from ttys to X is smooth as predicted and all. However, my ttys have a way too large resolution for my well being. So, I'd like to get them back to 80x25 lines if possible. Without KMS I could use nomodeset or vga= to force that, but I don't know how to manually override the native resolution of the ttys when using KMS.

Can anyone help?

Thank you.

Offline

#2 2010-05-07 01:44:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: KMS & manual tty modesetting

Seems that the problem is small fontsize, right? Did you try changing it?

Offline

#3 2010-05-07 15:15:45

Deatzo Seol
Member
Registered: 2010-03-11
Posts: 4

Re: KMS & manual tty modesetting

Unfortunately, chaging the console font only changes the pixels per glyph, not the resolution of the tty...

Offline

#4 2010-05-07 15:28:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: KMS & manual tty modesetting

> However, my ttys have a way too large resolution for my well being.
What exactly do you mean?

Offline

#5 2010-05-07 16:11:59

Deatzo Seol
Member
Registered: 2010-03-11
Posts: 4

Re: KMS & manual tty modesetting

My native screen resolution is 1920x1080px. Now, on X, this is no problem as I can manually set the resolution to a more sane default. On the ttys, however, it remains. This means about 200 columns on 100 lines (I'm just guessing...) while I'm used to 80x25.
Having 200x100 means all fonts look incredibly small for my bad eyes (yes, I can have a lot of output on a single screen, but I can't read it). Since setting the font size in ttys is not possible (there truly is no justice in this world) I can only use a somewhat larger font... which is not large enough...

What I want to do is manually override the framebuffer resolution of the console (the old vga=-option)...

I hope that's clear enough :-)

Offline

#6 2010-05-07 16:39:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: KMS & manual tty modesetting

> I hope that's clear enough :-)
Not quite. Now I'm sure I know what you want, but I have no idea why can't you do it the way I do.

> Since setting the font size in ttys is not possible (there truly is no justice in    this world)
From my /etc/rc.conf

#CONSOLEFONT="ter-v16b"
#CONSOLEFONT="ter-v12n"
CONSOLEFONT="ter-v32n.psfu.gz"

16 is big enough for me ... most of the time. 32 is twice a big as 16, so If I fancy a big font (or my eyes are killing me), I change the settings. 12 is small but still readable on a good day.

> Now, on X, this is no problem as I can manually set the resolution to a more sane default.
Is it LCD screen? I don't think you should change its resolution, you should change the fontsettings.

> about 200 columns on 100 lines (I'm just guessing...)

echo $COLUMNS x $LINES

Edit: On my 19" 1440x900 pixels LCD fontsize 32 gives me 90x28 characters screen (both in X and in the console - I use the same fonts), so you won't really get good ol' 80x25 but rather 120x33. Try it and see if it's good enough.

Last edited by karol (2010-05-07 16:49:31)

Offline

#7 2010-05-07 19:15:17

Deatzo Seol
Member
Registered: 2010-03-11
Posts: 4

Re: KMS & manual tty modesetting

Ah well... (and I'm pretty ashamed to admit it) I think I must've forgotten about terminal-font (all the other fonts are too small) :-( it's indeed quite legible in size 32 ...

I searched the web a little more and as I suspected combining both KMS and framebuffer-modesetting looks indeed impossible :-( I will repeat my earlier statement about there not being any justice to this world :-(

Thanks very much :-) and sorry for all the trouble :-) I should've thought about using terminal before :-)

Last edited by Deatzo Seol (2010-05-07 19:18:16)

Offline

#8 2010-05-07 19:27:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: KMS & manual tty modesetting

> Thanks very much :-) and sorry for all the trouble :-) I should've thought about using terminal before :-)
That's OK, glad I could help :-)

Offline

#9 2010-05-07 19:56:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: KMS & manual tty modesetting

It's possible to set the framebuffer resolution from the kernel commandline. For example

video=VGA-1:1024x768@60

Check in /sys/class/drm for the appropriate output name and put that in place of VGA-1

I don't know if it's possible to change the resolution at runtime. Something like xrandr, but for the console, would be nice to have.

Offline

#10 2010-05-07 20:00:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: KMS & manual tty modesetting

@Gusar
Are you sure it can be done w/ KMS enabled?

Offline

#11 2011-05-11 00:09:47

vadmium
Member
Registered: 2010-11-02
Posts: 63

Re: KMS & manual tty modesetting

Karol, yes I think so; see KMS wiki section on Forcing modes

Offline

Board footer

Powered by FluxBB