Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: euless on November 13, 2024, 09:00:54 AM

Title: How to change display resolution in Xfbdev?
Post by: euless 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.
Title: Re: How to change display resolution in Xfbdev?
Post by: curaga 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).
Title: Re: How to change display resolution in Xfbdev?
Post by: euless 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!
Title: Re: How to change display resolution in Xfbdev?
Post by: Rich 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.
Title: Re: How to change display resolution in Xfbdev?
Post by: euless 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
Title: Re: How to change display resolution in Xfbdev?
Post by: Rich 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.