You are not logged in.
Pages: 1
Is it possible to switch the framebuffer resolution while running the system?
Last edited by ying (2012-02-03 22:55:22)
Offline
Offline
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
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
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
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
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.
Offline
Why not do it through grub by appending vga=0xsomevalue to the kernel line?
Because it'll get overridden by the KMS driver.
Offline
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
Pages: 1