Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

is it possible to set resolution using xinit?[SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

is it possible to set resolution using xinit?[SOLVED]

  • Quote

Post by truc » Sun Jul 16, 2006 9:51 pm

is it possible to launch another X with a special resolution, I mean using something like xinit -- :1 -resolution 1280x960

I would need that to launch some apps (mainly games..) on an other X.

for the moment I'm doing this:

Code: Select all

xinit /path/to/a/usefull/program -- :1 -nolisten tcp -br
But I'd like to know, if it's possible to choose one specific resolution for the X server.


I looked in:

Code: Select all

Unrecognized option: -truc
use: X [:<display>] [option]
-a #                   mouse acceleration (pixels)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
bc                     enable bug compatibility
-br                    create root window with black background
+bs                    enable any backing store support
-bs                    disable any backing store support
-c                     turns off key-click
c #                    key-click volume (0-100)
-cc int                default color visual class
-co file               color database file
-core                  generate core dump on fatal error
-dpi int               screen resolution in dots per inch
dpms                   enables VESA DPMS monitor control
-dpms                  disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f #                   bell base (0-100)
-fc string             cursor font
-fn string             default font name
-fp string             default font path
-help                  prints message with these options
-I                     ignore all remaining arguments
-ld int                limit data space to N Kb
-lf int                limit number of open files to N
-ls int                limit stack space to N Kb
-nolock                disable the locking mechanism
-logo                  enable logo in screen saver
nologo                 disable logo in screen saver
-nolisten string       don't listen on protocol
-noreset               don't reset after last client exists
-reset                 reset after last client exists
-p #                   screen-saver pattern duration (minutes)
-pn                    accept failure to listen on all ports
-nopn                  reject failure to listen on all ports
-r                     turns off auto-repeat
r                      turns on auto-repeat 
-render [default|mono|gray|color] set render color alloc policy
-s #                   screen-saver timeout (minutes)
-sp file               security policy file
-su                    disable any save under support
-t #                   mouse threshold (pixels)
-terminate             terminate at server reset
-to #                  connection time out
-tst                   disable testing extensions
ttyxx                  server started from init on /dev/ttyxx
v                      video blanking for screen-saver
-v                     screen-saver without video blanking
-wm                    WhenMapped default backing-store
-x string              loads named extension at init time 
-maxbigreqsize         set maximal bigrequest size 
+xinerama              Enable XINERAMA extension
-xinerama              Disable XINERAMA extension
-dumbSched             Disable smart scheduling, enable old behavior
-schedInterval int     Set scheduler interval in msec
+extension name        Enable extension
-extension name        Disable extension
-query host-name       contact named host for XDMCP
-broadcast             broadcast for XDMCP
-indirect host-name    contact named host for indirect XDMCP
-port port-num         UDP port number to send messages to
-from local-address    specify the local address to connect from
-once                  Terminate server after one session
-class display-class   specify display class to send in manage
-cookie xdm-auth-bits  specify the magic cookie for XDMCP
-displayID display-id  manufacturer display ID for request
The X Keyboard Extension adds the following arguments:
-kb                    disable the X Keyboard Extension
+kb                    enable the X Keyboard Extension
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
                       enable/disable accessx key sequences
-ar1                   set XKB autorepeat delay
-ar2                   set XKB autorepeat interval
-noloadxkb             don't load XKB keymap description
-xkbdb                 file that contains default XKB keymaps
-xkbmap                XKB keyboard description to load on startup


Device Dependent Usage
-config file           specify a configuration file, relative to the
                       xorg.conf search path, only root can use absolute
-probeonly             probe for devices, then exit
-scanpci               execute the scanpci module and exit
-verbose [n]           verbose startup messages
-logverbose [n]        verbose log messages
-quiet                 minimal startup messages
-pixmap24              use 24bpp pixmaps for depth 24
-pixmap32              use 32bpp pixmaps for depth 24
-fbbpp n               set bpp for the framebuffer. Default: 8
-depth n               set colour depth. Default: 8
-gamma f               set gamma value (0.1 < f < 10.0) Default: 1.0
-rgamma f              set gamma value for red phase
-ggamma f              set gamma value for green phase
-bgamma f              set gamma value for blue phase
-weight nnn            set RGB weighting at 16 bpp.  Default: 565
-layout name           specify the ServerLayout section name
-screen name           specify the Screen section name
-keyboard name         specify the core keyboard InputDevice name
-pointer name          specify the core pointer InputDevice name
-nosilk                disable Silken Mouse
-flipPixels            swap default black/white Pixel values
-disableVidMode        disable mode adjustments with xvidtune
-allowNonLocalXvidtune allow xvidtune to be run as a non-local client
-disableModInDev       disable dynamic modification of input device settings
-allowNonLocalModInDev allow changes to keyboard and mouse settings
                       from non-local clients
-allowMouseOpenFail    start server even if the mouse can't be initialized
-bestRefresh           choose modes with the best refresh rate
-ignoreABI             make module ABI mismatches non-fatal
-isolateDevice bus_id  restrict device resets to bus_id (PCI only)
-version               show the server version
vtXX                   use the specified VT number
-keeptty               don't detach controlling tty (for debugging only)
-novtswitch            don't immediately switch to new VT
-sharevts              share VTs with another X server
(or man Xserver)

Obviously I'm missing an (existing or not) X option.

I would like to know, if there is something I can do, a work around or whatever

Code: Select all

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        FontPath	"/usr/share/fonts/misc:unscaled"
        FontPath	"/usr/share/fonts/Type1"
        FontPath	"/usr/share/fonts/TTF"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/share/fonts/freefonts"
	FontPath	"/usr/share/fonts/sharefonts"
	FontPath	"/usr/share/fonts/local"
	FontPath	"/usr/share/fonts/cyrillic"
	FontPath	"/usr/share/fonts/terminus"
	FontPath	"/usr/share/fonts/ttf-bitstream-vera"
	FontPath	"/usr/share/fonts/unifont"
        FontPath	"/usr/share/fonts/75dpi:unscaled"
        FontPath	"/usr/share/fonts/100dpi:unscaled"
	FontPath	"/usr/share/fonts/artwiz"
EndSection

Section "Module"
        Load  "extmod"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
#        Load  "dri"
        Load  "glx"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules"  "xorg"
        Option      "XkbModel"  "pc105"
        Option      "XkbLayout" "fr"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
	#Option      "Dev Name"                      "Razer Razer Diamondback Optical Mouse"
	#Option      "Dev Phys"                      "usb-*/input0"
	Option      "Device"                        "/dev/input/razer"
	Option      "Buttons"                       "7"
	Option      "ZAxisMapping"                  "4 5"
	Option      "Emulate3buttons"               "no" 
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV28 [GeForce4 Ti 4200 AGP 8x]"
        BusID       "PCI:2:0:0"
        Option      "nologo"        "1"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


I have a LCD, and resolution is by default of 1280x1024

Code: Select all

(--) NVIDIA(0): ViewSonic VP930 Series (DFP-0): 165.0 MHz maximum pixel clock
(--) NVIDIA(0): ViewSonic VP930 Series (DFP-0): External Single Link TMDS
(II) NVIDIA(0): Assigned Display Device: DFP-0
(WW) NVIDIA(0): 
(WW) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(WW) NVIDIA(0):     will be used as the requested mode.
(WW) NVIDIA(0): 
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "nvidia-auto-select"
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
I supposed I could set it manually in xorg.conf but that's not the problem here.


Thanks for your help :)
Last edited by truc on Mon Jul 17, 2006 9:52 pm, edited 1 time in total.
Top
ld50
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Sun Feb 13, 2005 8:16 pm

  • Quote

Post by ld50 » Sun Jul 16, 2006 11:24 pm

You can always set it on the fly with xrandr:

Code: Select all

xrandr -s 1024x768
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Jul 17, 2006 6:06 pm

thanks ld50, then I have an other question :

Code: Select all

xrandr -q
 SZ:    Pixels          Physical       Refresh
*0   1280 x 1024   ( 382mm x 313mm )  *60  
Current rotation - normal
Current reflection - none
Rotations possible - normal 
Reflections possible - none
I have a LCD screen. Does this mean I can have anything else than 1280x1024 ? I though LCD were able to display an other resolution than its native one, I do think mine is able (viewsonic VP930 ) But I don't know how :?:
Top
ld50
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Sun Feb 13, 2005 8:16 pm

  • Quote

Post by ld50 » Mon Jul 17, 2006 9:08 pm

I guess you must add more modes to /etc/xorg.conf:

Code: Select all

In Section Display:
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1024x768 800x600 etc..."
        EndSubSection
Read the man page cause i dont know if that's the right syntax
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Jul 17, 2006 9:51 pm

thanks!

Code: Select all

Modes "1280x1024" "1280x960"
then restart X

Code: Select all

 xrandr -q
 SZ:    Pixels          Physical       Refresh
*0   1280 x 1024   ( 382mm x 313mm )  *75  
 1   1280 x 960    ( 382mm x 313mm )   60  
Current rotation - normal
Current reflection - none
Rotations possible - normal 
Reflections possible - none
:)

solved
Top
Post Reply

5 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic