WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How i change Xorg resolution to 600x600  (Read 13606 times)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
How i change Xorg resolution to 600x600
« on: December 30, 2015, 07:18:49 AM »
Is it possible to change the change Xorg resolution to 600x600. Mean i want to configure custom resolution and refresh rate

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How i change Xorg resolution to 600x600
« Reply #1 on: December 30, 2015, 08: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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #2 on: December 30, 2015, 09:15:35 AM »
Sir.. but i need to create custom resolution like 600x600 is it possible.............

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #3 on: December 30, 2015, 09:47:25 AM »
Please any suggestion

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How i change Xorg resolution to 600x600
« Reply #4 on: December 30, 2015, 09: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?

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #5 on: December 30, 2015, 03: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/

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #6 on: January 13, 2016, 06: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

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #7 on: January 13, 2016, 06: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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #8 on: January 13, 2016, 07:04:16 AM »
i am using persistent home. so how i change this file at startup

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #9 on: January 13, 2016, 07: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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #10 on: January 13, 2016, 07: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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #11 on: January 13, 2016, 07: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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #12 on: January 13, 2016, 07: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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: How i change Xorg resolution to 600x600
« Reply #13 on: January 13, 2016, 08: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

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: How i change Xorg resolution to 600x600
« Reply #14 on: January 13, 2016, 08: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.