LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-28-2010, 11:53 AM   #1
aldo85ita
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Xserver doesn't show correctly the windows


O.S.: STLinux
kernel: 2.6.27_stm23_004-SPEAr600
platform: SPEAr600

Hi all,
I've connected a display LCD to SPEAr and i launched Xserver with startx command...
My file /usr/lib/X11/xinit launch "xclock" with this command:
xclock -geometry 50x50-1+1 -name orologio

but the windows of xclock appear rectangular instead of a square (50x50) ...
Something doesn't work correctly, infact, I've tried to resize the windows setting it in full scrren size and I discovered that the maximum dimension that is achived is about 800x280... In addition to this, I've noticed that another windows of "xterm" is not complitly visible: I can't see it in its full length...
My display has a resolution of 800x600 and i'm sure the driver is good because I checked framebuffer size and I've tried to write an immage directly on framebuffer (/dev/fb0) and It's perfect...
Maybe is a problem of configuration of Xorg , so I tried to set the correct "mode" as described at this link:
http://www.linuxquestions.org/questi...en-area-38350/
But when I looked for file:
/usr/bin/X11/xorg.conf
I didn't find it!
How can I set the correct size that X server need to use?
 
Old 09-30-2010, 10:11 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
try 'whereis xorg.conf' and look under /etc/X11/xorg.conf instead of /usr/bin/xorg.conf
 
Old 10-01-2010, 04:19 AM   #3
aldo85ita
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

I looked in all filesystem but there is no file named "xorg.conf", maybe is another file to handle Xserver...
I read that startx command launches xinitrc, this file is located at:
/usr/lib/X11/xinit/xinitrc
and contains the following text:


userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib/X11/xinit/.Xresources
sysmodmap=/usr/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# start some nice programs
twm &
xclock -geometry 100x50-1+1 -name orologio &
xterm -geometry 80x20+494+51 -name pluto -bg lightblue -fg turquoise &
xclock -geometry 100x50+0+0 -name orologio2 -digital &
xsetroot -gray &
exec xterm -geometry 80x20+0+0 -name login

I found also Xresouces in /usr/lib/X11/xdm/Xresources, and it contain this code:



[root@fedora600 aldo]# cat /home/aldo/export/target/usr/lib/X11/xdm/Xresources
! $Xorg: Xresources,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
!
!
!
!
! $XFree86: xc/programs/xdm/config/Xres.cpp,v 1.6 2003/01/04 03:11:31 dawes Exp $
!


xlogin*login.translations: #override \
Ctrl<Key>R: abort-display()\n\
<Key>F1: set-session-argument(failsafe) finish-field()\n\
<Key>Delete: delete-character()\n\
<Key>Left: move-backward-character()\n\
<Key>Right: move-forward-character()\n\
<Key>Home: move-to-begining()\n\
<Key>End: move-to-end()\n\
Ctrl<Key>KP_Enter: set-session-argument(failsafe) finish-field()\n\
<Key>KP_Enter: set-session-argument() finish-field()\n\
Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\
<Key>Return: set-session-argument() finish-field()




xlogin*greeting: Welcome to CLIENTHOST
xlogin*namePrompt: \040\040\040\040\040\040\040Login:

xlogin*fail: Login incorrect

#if WIDTH > 800
xlogin*greetFont: -adobe-helvetica-bold-o-normal--24-240-75-75-p-138-iso8859-1
xlogin*font: -adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
xlogin*promptFont: -adobe-helvetica-bold-r-normal--18-180-75-75-p-103-iso8859-1
xlogin*failFont: -adobe-helvetica-bold-r-normal--18-180-75-75-p-103-iso8859-1
xlogin*greetFace: Serif-24:bold:italic
xlogin*face: Helvetica-18
xlogin*promptFace: Helvetica-18:bold
xlogin*failFace: Helvetica-18:bold
#else
xlogin*greetFont: -adobe-helvetica-bold-o-normal--17-120-100-100-p-92-iso8859-1
xlogin*font: -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
xlogin*promptFont: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
xlogin*failFont: -adobe-helvetica-bold-o-normal--14-140-75-75-p-82-iso8859-1
xlogin*greetFace: Serif-18:bold:italic
xlogin*face: Helvetica-12
xlogin*promptFace: Helvetica-12:bold
xlogin*failFace: Helvetica-14:bold
#endif

#ifdef COLOR



xlogin*borderWidth: 1
xlogin*frameWidth: 5
xlogin*innerFramesWidth: 2
xlogin*shdColor: grey30
xlogin*hiColor: grey90
xlogin*background: grey
!xlogin*foreground: darkgreen
xlogin*greetColor: Blue3

xlogin*failColor: red
*Foreground: black
*Background: #fffff0
#else

xlogin*borderWidth: 3
xlogin*frameWidth: 0
xlogin*innerFramesWidth: 1
xlogin*shdColor: black
xlogin*hiColor: black





#endif

#if PLANES >= 8
xlogin*logoFileName: /usr/lib/X11/xdm/pixmaps/xorg.xpm
#else
xlogin*logoFileName: /usr/lib/X11/xdm/pixmaps/xorg-bw.xpm
#endif
xlogin*useShape: true
xlogin*logoPadding: 10


XConsole.text.geometry: 480x130
XConsole.verbose: true
XConsole*iconic: true
XConsole*font: fixed

Chooser*geometry: 700x500+300+200
Chooser*allowShellResize: false
Chooser*viewport.forceBars: true
Chooser*label.font: *-new century schoolbook-bold-i-normal-*-240-*
Chooser*label.label: XDMCP Host Menu from CLIENTHOST
Chooser*list.font: -*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1
Chooser*Command.font: *-new century schoolbook-bold-r-normal-*-180-*

I didn't find Xmodmap, it doesn't exist!
I don't know what I need to change or modify, I'm pretty desperate...
 
Old 10-06-2010, 09:19 PM   #4
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
install the manufacturer drivers for your video card as opposed to the ones that came with the distro. They are almost always better and more complete and fix a myriad of strange otherwise unexplainable video issues
 
Old 10-07-2010, 07:30 AM   #5
aldo85ita
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I'm sorry, but I'm working on an embedded system and I haven't got a video card... My display is handled by PL110 LCD controller and I wrote the driver by myself..I'm pretty sure that It was written correctly, but I don't know how configure exactly X server... I've created a .xserverrc file in /root folder , I wrote within it this line:
X -screen 800x600x32 -dpi 83
Now, when I launch startx I can see all full screen! but... It doesn't appear good , I can't read the text in the window and I see two or three cursors of my mouse...
I've tried others option like these:
X :0 -screen 800x600x32/24 -dpi 83
X :0 -screen 800x600x24/32 -dpi 96
X :0 -screen 800x600x32 -dpi 96
X :0 -screen 800x600x32/32 -dpi 96
X :0 -screen 800x600x32 -dpi 96 -deferglyphs none -render color -rgba rgb
etc...
...but nothing changed!!!
Attached Thumbnails
Click image for larger version

Name:	07102010266.jpg
Views:	18
Size:	224.6 KB
ID:	4792   Click image for larger version

Name:	07102010268.jpg
Views:	14
Size:	261.1 KB
ID:	4793   Click image for larger version

Name:	07102010269.jpg
Views:	18
Size:	250.2 KB
ID:	4794  

Last edited by aldo85ita; 10-07-2010 at 08:28 AM.
 
Old 10-07-2010, 09:40 AM   #6
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
it looks like you have a problem with the driver or with the lcd screen. Try connecting it to a newer screen as that one looks rather beaten up.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
domains dont show name servers correctly when create a domain WHM pumkum Linux - Newbie 0 02-13-2009 04:45 AM
Xserver for Windows Vista dmerlo Linux - Newbie 1 12-23-2008 06:38 PM
openSUSE failes to show xserver on startup Zoiked SUSE / openSUSE 1 10-25-2007 05:08 PM
Command 'groups' doesn't show group membership correctly Akhran Debian 1 03-14-2006 06:16 AM
tty09 - tty12 do not show ansi colors correctly danell_fip Linux - General 1 01-12-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration