<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="ZH-CN" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Tone,</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After </span><span lang="EN-US" style="font-size:11.0pt">xrandr --dpi 96, I still got:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">dimensions: 3000x2000 pixels (0x0 millimeters)</span></p>
<p class="MsoNormal"><span lang="EN-US">resolution: -2147483648x-2147483648 dots per inch</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Please look at the resolution, a very funny value.</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I start to suspect it is because I’m using the VMware rather than an physical monitor. Everytime I maximize, full screen the guest system CentOS 8, the monitor does changes. And I don’t even have a monitor.conf in /etc/X11/xorg.conf.d
. Very strange.</span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Anyway, thanks for your help.</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:11.0pt">---------------------<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:11.0pt">John<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>发件人<span lang="EN-US">: </span>
</b><span lang="EN-US"><a href="mailto:tone.kokalj@ijs.si">Tone Kokalj</a><br>
</span><b>发送时间<span lang="EN-US">: </span></b><span lang="EN-US">2020</span>年<span lang="EN-US">2</span>月<span lang="EN-US">10</span>日<span lang="EN-US"> 20:25<br>
</span><b>收件人<span lang="EN-US">: </span></b><span lang="EN-US"><a href="mailto:xcrysden@democritos.it">xcrysden@democritos.it</a><br>
</span><b>主题<span lang="EN-US">: </span></b><span lang="EN-US">Re: [xcrysden] xcrysden 1.6.2 can't startup</span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">On Sun, 2020-02-09 at 03:39 +0000, John Yang wrote:<br>
> Hi all,<br>
> <br>
> This is John. I downloaded the source code of xcrysden 1.6.2. I<br>
> planned to play it on my CentOS 8 installed in VMware. Since it is<br>
> the newest version, I naively assumed xcrysden 1.6.2 can work well on<br>
> my 3000x2000 resolution screen. Looking at older version of xcrysden<br>
> is too painful.<br>
> I started with the Make.sys-semishared, and did small adjustments.<br>
> During the process, I have many packages installed by yum. Finally<br>
> make went through without error.<br>
> But when I tried to run ./xcrysden, it gave me this:<br>
> <br>
> Error in startup script: bad pad value "0m": must be positive screen<br>
> distance<br>
> while executing<br>
> "pack .title.f.l .title.f.l2 -side top -fill both -padx 0m -pady 0m"<br>
<br>
<br>
This appears like a system problem: it seems your X cannot convert<br>
"millimeter" units to pixels. Check with xdpyinfo, i.e.:<br>
<br>
xdpyinfo | grep dimensions<br>
<br>
I get:<br>
dimensions: 1680x1050 pixels (444x277 millimeters)<br>
<br>
but I suppose you will get something like:<br>
dimensions: 3000x2000 pixels (0x0 millimeters)<br>
<br>
You can solve this with:<br>
<br>
xrandr --dpi 96<br>
<br>
<br>
The alternative is that you modify the xcrysden code and replace the<br>
millimeter specs with the pixel specs. For the particular error you<br>
got, edit the Tcl/xcInit.tcl file and change "0m" to "0" in the line:<br>
<br>
"pack .title.f.l .title.f.l2 -side top -fill both -padx 0m -pady 0m"<br>
<br>
<br>
Best regards, Tone<br>
-- <br>
Jožef Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia <br>
(tel: +386-<br>
1-477-3523 // fax: +386-1-251-9385)<br>
<br>
_______________________________________________<br>
XCrySDen mailing list<br>
XCrySDen@democritos.it<br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden">http://www.democritos.it/mailman/listinfo/xcrysden</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p> </o:p></span></p>
</div>
</body>
</html>