LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-17-2014, 12:03 AM   #1
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
So... I got fbset working, can change resolution at run-time.


I had to do a lot of hacking on the Makefile and patches, but I did get this working. I can now set the KMS-framebuffer console resolution after boot, even if there was an initial GRUB framebuffer module. This is really useful with VMWare and being able to step down from full screen. I can even adjust the virtual frame buffer size. But, some of the functions keel over, timings mainly. That wouldn't effect VMWare, but would affect a laptop.

Code:
root [ ~ ]# fbset -xres 800 -yres 600 -match
root [ ~ ]# fbset

mode "800x600"
    geometry 800 600 2048 600 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

root [ ~ ]# fbset -xres 1024 -yres 768 -match
root [ ~ ]# fbset

mode "1024x768"
    geometry 1024 768 2048 768 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

root [ ~ ]# fbset -xres 1920 -yres 1080 -match
root [ ~ ]# fbset

mode "1920x1080"
    geometry 1920 1080 2048 1080 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

root [ ~ ]# fbset -xres 1152 -yres 864 -match
root [ ~ ]# fbset

mode "1152x864"
    geometry 1152 864 2048 864 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

root [ ~ ]#
The ultimate goal here is to setup two FBCons on the same framebuffer and have a split screen with two shells, not using a GUI. Tmux and Byobu will probably help out there. But, I'm just extatic that I don't have to reboot to change the screen now.

EDIT: Scratch that, the purpose to to be able to switch in VMWare from a 1024x768 window with 1 console to full screen 1080P with two consoles.

Last edited by Luridis; 04-17-2014 at 12:31 AM. Reason: Spelled Tmux wrong.
 
Old 07-14-2018, 09:40 AM   #2
magiblot
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Please excuse me for reviving this old thread.

Quote:
Originally Posted by Luridis View Post
I had to do a lot of hacking on the Makefile and patches, but I did get this working. I can now set the KMS-framebuffer console resolution after boot, even if there was an initial GRUB framebuffer module.
I'm very interested in this. Could you please share your fix for fbset?

Lots of thanks.
 
Old 07-16-2018, 01:05 PM   #3
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
I haven't used this for a while, but you can look at the ArchLinux package build and see if it works for you.

https://git.archlinux.org/svntogit/c...packages/fbset
 
Old 07-16-2018, 05:33 PM   #4
magiblot
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Hi Luridis! Thanks for the reply.

I already tried the Arch Linux release, since it's the distribution I use, but it didn't work for me. With the -g or -xres -yres options, the active part of the framebuffer appears confined to the top-left corner instead of becoming fullscreen. Modelines from fb.modes are not accepted. My framebuffer driver is inteldrmfb.

The Ubuntu and Debian packages seem to come with additional patches, but they don't work either.

Cheers.
 
  


Reply

Tags
console, dri, framebuffer, kms



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change High Resolution Time Source taylor_ma Linux - Hardware 5 05-21-2012 08:46 AM
FBSET not working pupillo Linux - General 1 09-04-2009 07:46 AM
fbset -xres 1024 -yres 768 doesn't change my console screen resolution bucovaina78 Linux - Software 1 10-19-2008 10:46 PM
fbset doesnt change anything and breaks console tommytomthms5 Linux - Newbie 2 07-12-2008 12:15 AM
change cron.daily run time jimmyjiang Red Hat 4 03-02-2007 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration