Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: malikawan on December 30, 2015, 04:18:49 AM

Title: How i change Xorg resolution to 600x600
Post by: malikawan on December 30, 2015, 04:18:49 AM
Is it possible to change the change Xorg resolution to 600x600. Mean i want to configure custom resolution and refresh rate
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on December 30, 2015, 05:02:06 AM
If you look in /var/log/Xorg.0.log it usually lists the available resolutions for your display - if 800x600 is one of them, then you can make an xorg.conf to set it - google to see how.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on December 30, 2015, 06:15:35 AM
Sir.. but i need to create custom resolution like 600x600 is it possible.............
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on December 30, 2015, 06:47:25 AM
Please any suggestion
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on December 30, 2015, 06:51:25 AM
I'm not sure if you will be able to change the resolution in xorg unless it is one supported by your display - did you look in the xorg log?
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on December 30, 2015, 12:18:30 PM
Is it possible to change the change Xorg resolution to 600x600. Mean i want to configure custom resolution and refresh rate
Best guess would be not possible.

Why not 800 x 600? If using a CRT monitor, attempting to force an unsupported aspect ratio may even damage hardware.

In my experience Xorg aspect ratios are usually 4:3 or 16:9, never 1:1. Desktop applications are designed for this.

These links might be helpful to learn more and configure Xorg:
https://wiki.archlinux.org/index.php/Xorg
https://www.mythtv.org/wiki/Aspect_ratio#Display_Aspect
https://en.wikipedia.org/wiki/Display_resolution#Computer_monitors
http://renomath.org/video/linux/aspect/
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 03:06:46 AM
I am using PXI-8102 controller Board which have maximum resolution of 2048x1536 at 75 Hz . I want to change it to 800x600 which is also supported but i need to change refresh rate 60 to 75 on this resolution. I mean i want to use 800x600 at 75 Hz not 60 Hz. I am using Xorg in tiny core 4.7.7
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 03:57:11 AM
Could set up an /etc/xorg.conf file, specify desired resolution and refresh rate. For example:
Option         "metamodes" "1152x864_75 +0+0"

Example xorg.conf that you would need to customize for your hardware and needs:
Code: [Select]
Section "Monitor"
Identifier   "Monitor0"
#VendorName   "Monitor Vendor"
#ModelName    "Monitor Model"
HorizSync       28.0 - 96.0
  VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"            # [<bool>]
        #Option     "DRI"                # [<bool>]
        #Option     "NoDDC"              # [<bool>]
        #Option     "ShowCache"          # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "PageFlip"            # [<bool>]
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82810 DC-100 (CGC) Chipset Graphics Controller"
BusID       "PCI:0:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth    16
#Option         "metamodes" "1152x864_75 +0+0"
SubSection "Display"
Depth 16
#Modes "1024x768"
Modes "1152x864"
EndSubSection
EndSection

There are other ways too, such as a snippet in xorg.conf.d. Maybe even xset or xrandr, no idea. You will likely have good success just researching Xorg setup, just ensure any configuration file(s) you set up are saved in .filetool.lst and backed up for persistence.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 04:04:16 AM
i am using persistent home. so how i change this file at startup
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 04:30:09 AM
Sorry slight correction, xorg.conf resides in /etc/X11/xorg.conf. You need to manually create this X11 directory if not present then place your desired xorg.conf file. Having persistent /home is not helpful as the file save is specified in /opt/.filetool.lst and after back up is stored in /tce/mydata.tgz. Add xorg.conf to backup via Control Panel -> Backup -> Included for Backup or manually add this line to /opt/.filetool.lst:
etc/X11/xorg.conf

Either run  exittc  and backup or in terminal run  backup  command to backup your settings, then reboot. With a proper xorg.conf file you will get the desired resolution and refresh rate. If not you may not be able to boot into graphics so best to learn how to use vi in terminal or install Nano. So then from text mode manually edit the xorg.conf file to try other configuration settings, then run  backup  and  sudo reboot  to try again. As mentioned, the xorg.conf file above is just an example, it can take some tinkering to get running properly. Also note it has commented out lines (#) that i am not using. You need to modify for your needs. It also specifies intel graphic driver, not sure what you need.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 04:35:25 AM
Ok if i create same config file in tc folder and after startup i copy this file to /etc/X11 with script place at .X.D folder. Is it work or not because i am using persistent home.
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 04:41:01 AM
No that won't work, /home/tc/.X.d is for starting graphic programs after Xorg loads, it's too late in the boot process.

Please try the detailed instructions provided.
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 04:58:41 AM
Always trying to learn. If you're still there, have you tried xrandr? If it works, less hassle than an xorg.conf file. Running this command manually in a terminal will change to 800x600 with a refresh rate of 75:
Code: [Select]
tc@box:~$ xrandr -s 800x600 -r 75

If it works then your hardware supports the mode. If Tiny Core doesn't have  xrandr  by default then install it onboot. Then create a non-executable plain text file in /home/tc/.X.d named 10_resolution and enter this into the file:
xrandr -s 800x600 -r 75

Reboot and test, your screen may flicker or change resolution during boot.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 05:02:55 AM
I try the same command xrandr -s 800x600 -r 75 but it says 75 is not available in this resolution if i increase resolution i.e 800x600 than it change to 75. But 800x600 is not available
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 05:09:28 AM
Simply running  xrandr  will give you default available resolutions. If your desired resolution/refresh rate are not available then the xrandr command in /home/tc/.X.d won't be very useful. Maybe you need to be flexible with your resolution and/or refresh rate.

On my system an xorg.conf file is able to provide monitor resolutions not present in xrandr output, maybe it depends on the hardware. So if xrandr does not work then try using an xorg.conf file using instructions provided above. Good luck.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 05:16:04 AM
Thanks alot nitram. if you dont mind please give me xorg.conf file which change the resolution to 800x600 and refresh  rate 75. so i will copy this file to core.gz by extract it. Just need xorg file which change the resolution for my requirement. I have tried to change but its not work if you do for me i shall be very thankful to you.
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 13, 2016, 05:33:23 AM
Tried to explain, xorg.conf file can be hit or miss, requires tinkering. You may want to test with method described above before creating new *.gz. This is what i would try first, change intel to what you're using. If you want 24 bit colour, change 16 to 24.
Code: [Select]
Section "Monitor"
Identifier   "Monitor0"
HorizSync       28.0 - 96.0
VertRefresh     50.0 - 75.0
EndSection

Section "Device"
Identifier  "Card0"
Driver      "intel"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Depth 16
Modes   "800x600_75"
EndSubSection
EndSection
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 05:39:15 AM
Thanks alot
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 06:09:05 AM
tc@box:~$ xrandr -s 800x600 -r 75
Rate 75.0 Hz not available for this size
tc@box:~$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 800 x 600, maximum 1024 x 768
default connected 800x600+0+0 0mm x 0mm
   1024x768       61.0 
   800x600        61.0*
   640x480        60.0

but my hardware support 75 Hz. i read the manual
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 06:47:49 AM
What is the Maximum Screen Resolution for the PXI Controllers?
Hardware: PXI/CompactPCI>>Controllers>>PXI-8106
Problem:
I want to connect a high resolution monitor to my PXI controller, what is the maximum resolution the controller can display?
Solution:
The following controllers can display a maximum of 2048x1536 pixels at 75 Hz on both analog and digital displays.
    PXI-8101
    PXI-8102
    PXI-8104
    PXI-8105
    PXI-8106
    PXI-8108
    PXI-8110
    PXI-8133
I am using PXI-8102
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 10:18:51 PM
I am using PXI-8102 using
The Mobile Intel GM45 Express Chipset
(Graphics and Memory Controller Hub) connects to the CPU, DDR2 SDRAM, and DVI-I video
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 13, 2016, 10:47:52 PM
I read from Xorg-log-0 and find that no intel module found so it load vesa module. please any idea
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on January 13, 2016, 11:15:18 PM
load xf86-video-intel
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on January 14, 2016, 12:22:05 AM
What do you get when you issue the xrandr command without arguments?

For example:
Code: [Select]
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm
   1366x768       60.0*+   40.0 
   1280x720       60.0 
   1024x768       60.0 
   1024x576       60.0 
   960x540        60.0 
   800x600        60.3     56.2 
   864x486        60.0 
   640x480        59.9 
   720x405        60.0 
   680x384        60.0 
   640x360        60.0 
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Once the intel video driver is loaded and you look at Xorg.o.log, do you see something like this:
Code: [Select]
[  3020.100] (II) intel(0): switch to mode 1366x768@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[  3020.100] (II) intel(0): Setting screen physical size to 361 x 203

I'm not sure, but if you have a monitor connected rather than an lcd, I believe Xorg will query it to see what video modes are supported - if your monitor and xrandr do not show 600x600@75Hz, I believe you will be out of luck.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 14, 2016, 12:43:32 AM
After load xf86-video-intel
Xrander output:--
Screen 0: minimum 320 x 200, current 800 x 600, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
   1024x768       60.0 +
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0 
   800x600        60.3*    56.2 
   848x480        60.0 
   640x480        59.9 
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 14, 2016, 11:38:04 PM
Any idea please
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on January 15, 2016, 12:20:46 AM
From the xrandr output above and the Xorg log you attached:
Code: [Select]
[     4.569] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
[     4.569] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
[     4.569] (II) intel(0): Printing probed modes for output LVDS1
[     4.569] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
[     4.569] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
[     4.569] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
[     4.569] (II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
[     4.599] (II) intel(0): EDID for output VGA1
[     4.599] (II) intel(0): Printing probed modes for output VGA1
[     4.599] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
[     4.599] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
[     4.599] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
[     4.599] (II) intel(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz)
[     4.599] (II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 489 492 525 -hsync -vsync (31.5 kHz)

..Xorg does not believe your graphics hardware or your monitor support 600x600 - therefore, I do not think you will be able to get it using Xorg.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 15, 2016, 12:44:29 AM
Sorry i just need to increase refresh rate using 800x600. i know that my hardware support 75 Hz So i just need 800x600 with refresh rate 75 Hz
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on January 15, 2016, 12:52:11 AM
Did you try the xorg.conf suggested by nitram above?
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 15, 2016, 01:19:10 AM
Yes i have extract core.gz and copy same conf file to /etc/X11 with name xorg.conf.vesa and pack core.gz but still no result........
Title: Re: How i change Xorg resolution to 600x600
Post by: nitram on January 15, 2016, 01:26:09 AM
Maybe you know something i don't, it's not  xorg.conf.vesa,
it is simply  xorg.conf.

As indicated ensure the  xorg.conf  file indicates the driver you are using (think you indicated intel),
and ensure the driver is loaded at boot.
Title: Re: How i change Xorg resolution to 600x600
Post by: malikawan on January 15, 2016, 01:53:08 AM
Yes intel driver loaded after load xf86-video-intel..
Title: Re: How i change Xorg resolution to 600x600
Post by: Juanito on January 15, 2016, 02:47:17 AM
That's not what was meant by the comment.

You need to create a file named /etc/X11/xorg.conf and edit it to suit your hardware and what you require.

I believe you are using tc-4.x - if I remember correctly, this means you will need to create a full xorg..conf rather than just a "snippet" containing details of what you want to change.

Essentially, your xorg.conf needs to contain something like this (as well as the other standard sections):
Code: [Select]
Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel GM45"
    Monitor        "Whatever"
    DefaultDepth    16
    SubSection "Display"
        Depth        16
        Modes      "800x600_75.00"
    EndSubSection
EndSection

You will no doubt need to proceed on a trial and error basis - modify xorg.conf, exit to the prompt, startx, check Xorg.0.log and repeat...