You are not logged in.

#1 2012-02-03 22:54:44

ying
Member
From: Austria
Registered: 2010-03-02
Posts: 110

Change frambuffer resolution

Is it possible to switch the framebuffer resolution while running the system?

Last edited by ying (2012-02-03 22:55:22)

Offline

#2 2012-02-03 23:02:19

unikum
Member
From: Russia
Registered: 2010-09-04
Posts: 151
Website

Re: Change frambuffer resolution

Try uvesafb.

Offline

#3 2012-02-03 23:02:57

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

Re: Change frambuffer resolution

If you're using (u)vesafb, there's fbset. If you're using a KMS driver, I'm not aware of anything. Something like xrandr, but for the console, would be nice to have.

Offline

#4 2012-02-03 23:59:30

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Change frambuffer resolution

Xrandr can be used to change the resolution of the X display.   The command 'xrandr' without any arguments will show the supported resolutions.  The resolution can then be changed with 'xrandr -s'.

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      50.0*    51.0  
   1280x960       52.0  
--- edited for brevity ---
   400x300        78.0     79.0     80.0     81.0  
   320x240        82.0     83.0     84.0
$ xrandr -s 1024x768        ## Try a different resolution
$ xrandr -s 1280x1024       ## Back to the original resolution

You can temporarily change the 'apparent' resolution of a console by changing the console font.  The number of rows and columns changes with the size of the font.  Use the command 'setfont': https://wiki.archlinux.org/index.php/Co … sole_fonts.

Offline

#5 2012-02-04 12:10:07

ying
Member
From: Austria
Registered: 2010-03-02
Posts: 110

Re: Change frambuffer resolution

If you're using (u)vesafb, there's fbset. If you're using a KMS driver, I'm not aware of anything. Something like xrandr, but for the console, would be nice to have.

I tried fbset but nothing happened?!

@thisoldman: I am not talking about X.

Offline

#6 2012-02-10 14:34:52

Blµb
Member
Registered: 2008-02-10
Posts: 224

Re: Change frambuffer resolution

If you're using KMS, my current point of knowledge (unreliable source warning) is that there's no API for this. So the drivers cannot expose this feature.
(This is probably why the default resolution is the native screen resolution, which seems to be the best choice anyway.)


You know you're paranoid when you start thinking random letters while typing a password.
A good post about vim
Python has no multithreading.

Offline

#7 2012-02-10 17:33:04

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

Re: Change frambuffer resolution

Why not do it through grub by appending vga=0xsomevalue to the kernel line? You'll have to reboot.. but it'll change for sure. smile

Offline

#8 2012-02-10 19:35:38

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

Re: Change frambuffer resolution

KingX wrote:

Why not do it through grub by appending vga=0xsomevalue to the kernel line?

Because it'll get overridden by the KMS driver.

Offline

#9 2012-02-11 03:28:52

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Change frambuffer resolution

ying,

You'll probably get more useful help if you define the exact problem that you're trying to solve plus letting everyone know about your video hardware.

Last edited by skottish (2012-02-11 03:35:18)

Offline

Board footer

Powered by FluxBB