Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to set DPI as 90x90 for XVFB Display? Post 302908221 by bakunin on Friday 4th of July 2014 04:05:32 PM
Old 07-04-2014
Quote:
Originally Posted by prathap.g
case 1: if u connect to XServer then U will get 100x100 dpi when u type xdpyinfo command.

case 2:if u connect to XServer enabled with "XVFB" then U will get 90x90 dpi when u type xdpyinfo command.

I want 100x100 dpi in the above Case2. Please solve this issue.
First off: please kindly refrain from using leet-speak here. Most of us shun that practice and if you save on even the two keystrokes writing "u" instead of "you" why should we undergo the effort to write complete answers to your questions?

Second: I already told you to read the documentation which says:
Quote:
In addition to the normal server options described in the Xserver(1) manual page
Would you have done that, you would have found (at this page) the following:

Quote:
−dpi resolution
sets the resolution for all screens, in dots per inch. To be used when the server cannot determine the screen size(s) from the hardware.
Quoting further from the manual page:
XVFB (X Virtual Frame Buffer) is an X server that can run on machines with no display hardware [...] It emulates a dumb framebuffer [...].

It is clear that the software cannot determine the screen size and/or resolution of a virtual device. Therefore this value has to be set by the commandline. Exactly this is what the "-dpi" command line switch is for - to provide a value when the X server cannot determine it itself.

I suggest you put a little more effort not only in your writing but also in solving your problems. I promise your Unix experience will take on a complete new quality and eternal happiness anywhere near a command line will await you. :-))

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

set display

Hi All: An elementary Unix Question, How can i set the display number and run a program in that display. If i type the name of the executable the program opens in the console(display number 0), however, i want it to open in another display number. How can i do that. Appreciate the help... (2 Replies)
Discussion started by: preetham
2 Replies

2. UNIX for Dummies Questions & Answers

mandrake 6.0 , display not set despite

hi, i am on mandrake 6.0, shell of root user is bash. okay, i did the below #display=localhost.localdomain:0.0 #export display #xhost +localhost.localdomain system replies xhost added.. i did a set and there was an entry there.. now i want to install oracle, so did a ./runInstaller ... (2 Replies)
Discussion started by: yls177
2 Replies

3. Solaris

Can't make 'set DISPLAY' to work

Hi, I used exceed and putty in the past to HP server with no problem to make 'set DISPLAY' work on my desktop. However now I have Solaris 9 on Sun server 480 and I only have putty. I can't bring the X window (eg xclock, etc) to my desktop. I tried X11Fowarding, xhost, and so on, it doesn't... (5 Replies)
Discussion started by: jr_zhang
5 Replies

4. Programming

swing not getting initialized when the DISPLAY is not set

I have a batch programme which will load the Spreadsheet into database.. When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI. But if the display is not set, then there is an issue... Any ideas... (3 Replies)
Discussion started by: shafi2all
3 Replies

5. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

6. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

7. Solaris

Where/how is $DISPLAY set when connecting with XDMCP?

My "problem" is that it's set correctly and I want to break it, but can't figure out where it's getting set in the first place. I can see several places where $DISPLAY is referenced but at the point that the dollar sign is in front it's already an environment variable(I think). I thought... (1 Reply)
Discussion started by: gctaylor
1 Replies

8. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

9. Solaris

DISPLAY not set

Hi, When i invoke DBCA as oracle user , i get following usircd01:KAM:/opt/oracle10/product/10.2.0/bin>./dbca DISPLAY not set. Set DISPLAY environment variable, then re-run. usircd01:KAM:/opt/oracle10/product/10.2.0/bin>echo $ORACLE_SID CCE ... (6 Replies)
Discussion started by: Maddy123
6 Replies
XVFB(1) 						      General Commands Manual							   XVFB(1)

NAME
Xvfb - virtual framebuffer X server for X Version 11 SYNOPSIS
Xvfb [ option ] ... DESCRIPTION
Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. The primary use of this server was intended to be server testing. The fb code for any depth can be exercised with this server without the need for real hardware that supports the desired depths. The X community has found many other novel uses for Xvfb, including testing clients against unusual depths and screen configurations, doing batch processing with Xvfb as a background rendering engine, load testing, as an aid to porting the X server to a new platform, and providing an unobtrusive way to run applications that don't really need an X server but insist on having one anyway. OPTIONS
In addition to the normal server options described in the Xserver(1) manual page, Xvfb accepts the following command line switches: -screen screennum WxHxD This option creates screen screennum and sets its width, height, and depth to W, H, and D respectively. By default, only screen 0 exists and has the dimensions 1280x1024x8. -pixdepths list-of-depths This option specifies a list of pixmap depths that the server should support in addition to the depths implied by the supported screens. list-of-depths is a space-separated list of integers that can have values from 1 to 32. -fbdir framebuffer-directory This option specifies the directory in which the memory mapped files containing the framebuffer memory should be created. See FILES. This option only exists on machines that have the mmap and msync system calls. -shmem This option specifies that the framebuffer should be put in shared memory. The shared memory ID for each screen will be printed by the server. The shared memory is in xwd format. This option only exists on machines that support the System V shared memory interface. If neither -shmem nor -fbdir is specified, the framebuffer memory will be allocated with malloc(). -linebias n This option specifies how to adjust the pixelization of thin lines. The value n is a bitmask of octants in which to prefer an axial step when the Bresenham error term is exactly zero. See the file Xserver/mi/miline.h for more information. This option is probably only useful to server developers to experiment with the range of line pixelization possible with the fb code. -blackpixel pixel-value, -whitepixel pixel-value These options specify the black and white pixel values the server should use. FILES
The following files are created if the -fbdir option is given. framebuffer-directory/Xvfb_screen<n> Memory mapped file containing screen n's framebuffer memory, one file per screen. The file is in xwd format. Thus, taking a full- screen snapshot can be done with a file copy command, and the resulting snapshot will even contain the cursor image. EXAMPLES
Xvfb :1 -screen 0 1600x1200x32 The server will listen for connections as server number 1, and screen 0 will be depth 32 1600x1200. Xvfb :1 -screen 1 1600x1200x16 The server will listen for connections as server number 1, will have the default screen configuration (one screen, 1280x1024x8), and screen 1 will be depth 16 1600x1200. Xvfb -pixdepths 3 27 -fbdir /var/tmp The server will listen for connections as server number 0, will have the default screen configuration (one screen, 1280x1024x8), will also support pixmap depths of 3 and 27, and will use memory mapped files in /var/tmp for the framebuffer. xwud -in /var/tmp/Xvfb_screen0 Displays screen 0 of the server started by the preceding example. SEE ALSO
X(7), Xserver(1), xwd(1), xwud(1), XWDFile.h AUTHORS
David P. Wiggins, The Open Group, Inc. X Version 11 xorg-server 1.12.4 XVFB(1)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy