Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg + *box strange problems!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Tue Jan 11, 2005 4:10 pm    Post subject: xorg + *box strange problems! Reply with quote

I reluctantly did the migration from xfree to xorg. Following bits-and-pieces from several how-tos...

http://gentoo-wiki.com/HOWTO_Switch_from_XFree_to_Xorg
https://forums.gentoo.org/viewtopic.php?t=158911
http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts

I am using development-sources-2.6.10, and the blackbox WM.

Here is what's supposed to happen according to my .xinitrc
Code:
#  X WINDOW SYSTEM STARTUP SCRIPT
# Load a default background image
xv -root -rmode 5 -max -quit /usr/share/commonbox/backgrounds/upper_kent_falls.jpg

# Start some programs
aterm &
#xterm    -geometry 80x24+1+345 -sb &
xclock -update 1 -geometry 100x100+822+1 &
#xman  -geometry 100x100+932+232 &
root-tail -f -g 1050x200+70+700 --color grey /var/log/apache2/access_log &
root-tail -f -g 1000x300+70+100 --color grey /var/spool/qmailscan/qmail-queue.log &

# Place these programs in the slit
bbpager -w &
#bbsload -w &
#wmclockmon &

# Finally, start the window manager
exec blackbox

#  The window system is terminated when this script is terminated.


What ACTUALLY happens is I get a screen with the background, aterm, xclock and bbpager but I have NO window borders or fonts.

I haven't found anything in the forums or by googling on what might be causing this. I'm assuming there's a disconnect in how .blackboxrc tells X what to display.

xorg.conf file is configured correctly I believe. Graphics work, mouse/keyboard works. If you'd like to see the file, I can post it.

By the way, I can grab the aterm top border (where I think it should be) and drag it successfully. If I try to type something into aterm, I can't see anything... no text.

Anybody else having this problem? Any ideas would be greatly appreciated.

Thanks,
Back to top
View user's profile Send private message
jakamaka
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 266
Location: My self-sustainable fusion of thought

PostPosted: Tue Jan 11, 2005 4:14 pm    Post subject: Reply with quote

what's output of your xorg startup ? if you do ctrl-alt-backspace you can maybe see what's wrong.
_________________
It would be more interesting to learn from children, than try to teach them how to behave, how to live and how to function. - U.G. Krishnamurti
Back to top
View user's profile Send private message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Wed Jan 12, 2005 2:13 am    Post subject: Reply with quote

Xorg.0.log reads (only put in segments that show a warning or failure)
Code:
X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.8.1 i686 [ELF]
Current Operating System: Linux linuxbox 2.6.10 #1 SMP Sun Jan 9 21:48:11 EST 2005 i686
Build Date: 09 January 2005
   Before reporting problems, check http://wiki.X.Org
   to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 11 20:57:59 2005
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) FontPath set to "/usr/share/fonts/75dpi/:unscaled,/usr/share/fonts/100dpi/:unscaled, _more fonts_"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib/modules"
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)

...blah blah blah

Could not init font path element /usr/share/fonts/util/, removing from list!
Could not init font path element /usr/share/fonts/local/, removing from list!
Could not init font path element /usr/share/fonts/encodings/, removing from list!

...blah blah blah


As of right now I tried taking .xinitrc out of the picture and letting blackbox get called from rc.conf. So the only thing that should start up is blackbox. Well... now I get a plain ol' blackbox desktop the way it should look and about 5 seconds later everything FREEZES.

ctrl-alt-backspace does nothing. I have to hard boot to get it back. At this point I'm going to emerge some-other-WM and see if it's just something messed up with blackbox + xorg.
Back to top
View user's profile Send private message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Thu Jan 13, 2005 3:35 pm    Post subject: Reply with quote

After many hours of troubleshooting I'm giving up on xorg-x11. I've tried several window managers and all at some point or another freeze my system and I have to hardboot.

For example, I ran, TWM. What better way to isolate the problem than to run a simple WM right? I get the _pretty_ xterm windows, everything seemed stable, no freezing. Then I ran midnight commander. The screen changed to some crap and froze.

This particular system is my server. It houses my apache server, qmail MTA, qnump3d server, teamspeak-server, and many other server specific programs. It's not a desktop. So do I need X? Well, it makes things alot easier, but it's not necessary. I can telnet over and exec commands, or nfs and ftp files back and forth with the term if needed.

I'm really disappointed in what's come out of the xfree86 ordeal. I'm not sure who to blame considering I don't know the whole story. But I do know that I'm not as big a fan of Gentoo because of it.

In fact, I have a spare PC that I previously intended to be a gentoo desktop. Instead I installed FreeBSD. Don't get me wrong, I dig the whole bleeding edge aspect of gentoo. And I still have 3 boxes running it. But DAMN, stability is a good thing too.
Back to top
View user's profile Send private message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Thu Jan 13, 2005 4:01 pm    Post subject: Reply with quote

For the record here's my xorg.conf.

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

Section "Files"
   RgbPath      "/usr/X11R6/lib/X11/rgb"
   ModulePath   "/usr/X11R6/lib/modules"
   FontPath     "/usr/share/fonts/75dpi/:unscaled"
   FontPath     "/usr/share/fonts/100dpi/:unscaled"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/util/"
        FontPath     "/usr/share/fonts/local/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/cyrillic/"
        FontPath     "/usr/share/fonts/ukr/"
        FontPath     "/usr/share/fonts/artwiz/"
   FontPath     "/usr/share/fonts/corefonts/"
   FontPath     "/usr/share/fonts/encodings/"
   FontPath     "/usr/share/fonts/freefont/"
   FontPath     "/usr/share/fonts/terminus/"
   FontPath     "/usr/share/fonts/ttf-bitstream-vera/"
   FontPath     "/usr/share/fonts/unifont/"
EndSection

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

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
   #DisplaySize     320   240   # mm
   Identifier   "Monitor0"
   VendorName   "DEL"
   ModelName    "DELL E172FP"
   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>
   Identifier  "Card0"
   Driver      "i810"
   VendorName  "Intel Corp."
   BoardName   "82810 DC-100 CGC [Chipset Graphics Controller]"
   BusID       "PCI:0:1:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth 24

   SubSection "Display"
      Depth     15
   EndSubSection
   SubSection "Display"
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport  0 0
      Depth     24
      Modes     "1280x1024"
   EndSubSection
EndSection
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Thu Jan 13, 2005 6:40 pm    Post subject: BlackBox + XOrg = *HEADACHE* Reply with quote

All I can say is: ME TOO! :cry:

I'm not having the same problems, but I'm having different---less serious---problems that are nonetheless frustrating! I run a stable Gentoo workstation that needs to be up. When I saw that an update was going to replace XFree with Xorg, the only thing I could think was "uh oh!". That update happened many days ago, and I've been afraid to restart X since then... Well, unfortunately, I braced myself, and restarted X.

First problem: Why aren't bbappconf and bbkeys working? All my apps open on the first desktop---indicating that bbappconf is not working. Also, I cannot use any of the keyboard shortcuts that I made for switching desktops and cycling through windows!

Isn't there anyone else out there that uses BalckBox with bbappconf and bbkeys? When I came to Gentoo from RH, I decided to switch to a WM from KDE, because I was not using 99% of the KDE functionality. I really only needed a multiple-desktop WM with good keyboard-shortcut capability, so that I can easily switch workspaces and windows without resorting to the mouse. After much research, BlackBox seemed to be a good choice, and I do most of my work in either an Aterm (with some nice eye-candy transparency) or GVIM. Once I figured-out how to use bbappconf to get my apps to load in different workspaces when I start X, and bbkeys to assign a few shortcuts, I was set. Now, I'm afraid my long string of comfortable stability---read productivity---has abruptly ended! I, too, know that Gentoo is not for people who need their hand held, but I also know that I really appreciated Daniel Robbins' statement that Gentoo was about "letting the user get their work done" and not hindering the user! This switch to Xorg may be the right thing to do, but it would have been nice to have had it done without bringing-down at least some of the users that appreciate their stable, productive Gentoo environments. Was there testing done on boxes with various WMs before cutting-in Xorg? Maybe I missed a big string of discussion, but since I spent so long getting my workstation environment comfortable under XFree, I'm disappointed to be thrown back into system-configuration mode when I need to get some work done!

Is Xorg really the only way to go?

Any help from the pros out there? Any pointers to appropriate documentation?

Thanks,
Bruce.
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Thu Jan 13, 2005 6:50 pm    Post subject: Partially solved... Reply with quote

OK... I exited X and restarted xfs. When I restarted X, it appears that bbkeys is working. bbappconf still appears to not be, because all my apps open on the first workspace.

Also, my nice transparent Aterm now has quite-ugly non-transparent scrollbars. I know that sounds pretty petty, but those big, gray scrollbars really look hideous on a nice, dark blue desktop (with a 50%-shaded Aterm connected).

Lastly, it looks like I have a bit of font work to do, since all the font sizes are different than before...

Any advice is appreciated!

Thanks,
Bruce.
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Thu Jan 13, 2005 7:03 pm    Post subject: Reply with quote

:oops:
OK... Generally feeling really foolish here...!

For some reason, my Aterm scrollbars were transparent before, even though I did not have the "-trsb" option on the command line in my ".xinitrc". Adding that option makes them look like they are supposed to... :oops:

At least right now, it seems that there is *one* remaining issue: bbappconf. This app is important to me, because I really want some apps to open maximized (like GVim), and it is much nicer to have all the apps automatically move to their instructed workspaces upon starting X. bbappconf was handling these for me, and working great under XFree.

Any suggestions? (And this time I hope not to be the first to answer my own dumb questions!) :oops:

Thanks,
Bruce.
Back to top
View user's profile Send private message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Thu Jan 13, 2005 7:30 pm    Post subject: Reply with quote

Wow! I'm glad you posted maguire, because you said something that makes me think the problem is in a totally different area. I first thought the problem was between *box and xorg.

Quote:
After much research, BlackBox seemed to be a good choice, and I do most of my work in either an Aterm (with some nice eye-candy transparency) or GVIM.


I too have aterm set with transparencies. And I have midnight commander (my file manager) set with transparencies (looks awesome).

I posted earlier...
Quote:
everything seemed stable, no freezing. Then I ran midnight commander. The screen changed to some crap and froze.

I think the issue is not window manager specific but graphics card specific, at least in my case. I found this post:

https://forums.gentoo.org/viewtopic.php?t=277557&highlight=xorg+conf

dealing with i810 / xorg-x11-6.8.x incompatibility.

I can't try the suggested fixes now, but when I get home I'm sure going to check to try irasnyd's solution:

Quote:
I needed to do two things:
1. Make sure your monitor has HorizSync and VertRefresh specified in xorg.conf
2. Enable the dri module for i810 in the kernel. (It's under Device Drivers -> Character Devices -> │[ ] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) )

This got it working and accelerated for me. I also got it working just fine without acceleration by adding the following in the "Device" section of xorg.conf.
Code:
Option     "NoAccel"      "true"


I really hope this makes a difference.
Back to top
View user's profile Send private message
t9k
n00b
n00b


Joined: 11 Sep 2004
Posts: 26
Location: South Carolina

PostPosted: Thu Jan 13, 2005 7:41 pm    Post subject: Reply with quote

Looks like you are on your way to solving your own problem, LOL. Usually the way it works...

<trying to offer some help>You said
Quote:
Lastly, it looks like I have a bit of font work to do, since all the font sizes are different than before...


If you haven't already, try HOWTO Xorg and Fonts. It looks like a good way to get all your fonts back.
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Fri Jan 14, 2005 4:30 pm    Post subject: Reply with quote

t9k:

Yes, I printed-out the "Xorg and fonts" HowTo, and was just looking at 'emerge'ing all the suggested font packages. Thanks for the tip! Good luck with your video card---I hope the fixes work for you! IMO, nothing is more depressing than having hardware-incompatibility issues; I guess because I'm totally helpless in the case of driver problems!

On a related subject, I'd like to say that the font situation in Linux is a nightmare! The more I read the more I find-out there is to know, and the more confused I get! Not the least of which is the subject of font servers! When I was setting-up my new Gentoo workstation environment, I thought "why do I need a font server? I don't need to serve fonts to any clients?" Then I read the Gentoo Desktop Guide, which "strongly suggests" installing XFS---but doesn't really say why (it may say something vague, like "it is better")! I love Gentoo, because---unlike the RH that I used as a Linux newbie---I know that there is no junk installed or memory-resident that I don't need. I install everything from scratch---and nothing I don't need. Therefore, the XFS thing has bothered me for a while because I'll see posts from people who say "I don't use XFS", and I wonder "if they can get away without XFS, do I really need it? Is it just taking-up space and hogging resources?" On the other hand, I don't really have the time to do the experimentation, and possibly hose my system; my box is "mission-critical" for me (I guess I need to set-up a second Gentoo system that I can use for experimentation!).

Anyway, back to the subject of the font mess; between:

:? font-server/no-font-server (or which one!)

:? BCI/no-BCI/auto-hinter (aka hinting/no-hinting/different-hinting)

:? AA/no-AA

:? sub-pixel-rendering/no-sub-pixel-rendering (I use an LCD monitor, and therefore this is evidently a consideration)

:? automatic/manual-DPI settings (mine is automatically set somehow at 85x86---for a 1280x1024 19" LCD---but I've read many times of people recommending that this be manually-set to 96)

:? balanced-unbalanced DPI settings (I've never had any problems, but now I read that "unbalanced DPI can cause havoc with fonts")

:? and the umpteen config-file locations for setting font paths for XFree/Xorg, fontservers, fontconfig (I still don't know what that is!)

It's enough to bring the average Linux user to their knees!

Bruce.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum