WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to change display resolution in Xfbdev?  (Read 420 times)

Offline euless

  • Newbie
  • *
  • Posts: 27
How to change display resolution in Xfbdev?
« on: November 13, 2024, 09:00:54 AM »
Hi

I can see my 64bit Tinycore is using Xfbdev.
The resolution is definitely set too low (probably 1360x768).  I cannot figure out how to set the resolution to my Thinkpad's 1600x900 display.  Any ideas? Thanks.
« Last Edit: November 13, 2024, 09:02:36 AM by euless »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: How to change display resolution in Xfbdev?
« Reply #1 on: November 13, 2024, 09:08:14 AM »
Xfbdev uses the framebuffer's resolution. How to set that depends on what framebuffer are you using (vesa, efi, or kms).
The only barriers that can stop you are the ones you create yourself.

Offline euless

  • Newbie
  • *
  • Posts: 27
Re: How to change display resolution in Xfbdev?
« Reply #2 on: November 13, 2024, 12:45:40 PM »
Xfbdev uses the framebuffer's resolution. How to set that depends on what framebuffer are you using (vesa, efi, or kms).

After I installed the graphics-6.6.8-tinycore64.tcz and rebooted, the display resolution automatically become 1600x900.  Everything looks good now.

My laptop have Intel graphics and a 4th gen i5 CPU.

Btw, is there software  to dim the backlight on my LCD panel?

Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: How to change display resolution in Xfbdev?
« Reply #3 on: November 13, 2024, 02:10:42 PM »
Hi euless
You could try this:
Code: [Select]
tce-load -wi Xorg-7.7-bin
Then see if this sets the brightness to 75 percent:
Code: [Select]
xbacklight -set 75
Otherwise, see if  /sys/class/backlight/  contains any directories or files.

Offline euless

  • Newbie
  • *
  • Posts: 27
Re: How to change display resolution in Xfbdev?
« Reply #4 on: November 13, 2024, 09:43:11 PM »
Hi euless
You could try this:
Code: [Select]
tce-load -wi Xorg-7.7-bin
Then see if this sets the brightness to 75 percent:
Code: [Select]
xbacklight -set 75
Otherwise, see if  /sys/class/backlight/  contains any directories or files.

Yeah, changing the values in /sys/class/backlight/brightness works.   

Is /opt/bootlocal.sh the proper place to set the backlight brightness at boot time?

I.e.
Code: [Select]
echo 2000 > /sys/class/backlight/brightness

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: How to change display resolution in Xfbdev?
« Reply #5 on: November 13, 2024, 09:59:47 PM »
Hi euless
... Is /opt/bootlocal.sh the proper place to set the backlight brightness at boot time? ...
I don't know if  /sys/class/backlight/brightness  exists before the GUI starts.

A safer alternative is create a file in ~/.X.d/ , dimLCD for example. The exact
name does not matter. Place the following line in that file:
Code: [Select]
echo 2000 | sudo tee /sys/class/backlight/brightness
To test it:
Click the Exit icon.
Select Exit to Prompt.
Click OK.
Then enter startx and your screen should dim as the GUI starts.