LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-15-2012, 01:00 PM   #1
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Rep: Reputation: Disabled
"X" Cursor after booting Gentoo linux


I have a bootable gentoo image 2.6.19. I modify the bzimage to gentoo latest version. After booting it shows a blank screen with "X" cursor. Nothing happens after that.
If I press Ctl Alt BkSpace, it reboots the system and the problem repeats. Where I am going wrong?
 
Old 06-15-2012, 01:05 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
X started, but a login prompter like XDM, etc, or your first X script (depending on how X is started) did not run or did not communication with the X server. Can you get to a text login or shell prompt by pressing Ctrl+Alt+F1 ? Or will Ctrl+Alt+Backspace cause X to quit?
 
Old 06-15-2012, 01:38 PM   #3
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
If I press CtlAltF1 I get a screen full of text ending with:

XWindows System Version 7.1.1
.
.Using config file: "/etc/X11/xorg.conf
.
(EE) FBDEV(0): FBIOBLANK: Invalid argument
mrxvt: can't open pseudo-tty.

--------------------------------------
After that nothing happens. If I pressed CtlAltBkSpace, system
would go for a reboot and the sequence repeated.

If I use the old linux kernel, everything works fine.
 
Old 06-15-2012, 02:30 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Try Ctrl+Alt+F2 (or 3 or 4 or 5 or 6) and see if any of this show a password prompt in text mode. If so, log in.

How old is this system? You might need to install a recent distro version on another disk and access any data for recovery, then do a fresh install to this original drive.
 
Old 06-15-2012, 09:08 PM   #5
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Let me clarify my problem again. I have an old livecd with gentoo linux 2.6.19 and some of my own program that is auto run. Now I am replacing the old bzImage by the new one which is gento linix 3.3.0. I get this situation now after making an iso file and trying to boot from it. CtlAltF1 shows the text that I posted before. CtlAltF2 F3 etc does not show anything. It seems the new Gentoo kernel has some issue with my old X. So my query is what to look for to solve the problem.
 
Old 06-16-2012, 01:26 AM   #6
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Also, I tried to boot the latest iso thru Virtual PC. It stopped showing starting local.. message. If I press CtlAltF1, I get to a #prompt but there is no graphics. If I goto X11 and type xinit ( I have no idea if this is the right thing to do), It shows a graphical screen with a square cursor and no control available to me. If I press CtlAltBackspace I see a screen which ends with Using system config directory "/user/share/X11/xorg.conf.d
 
Old 06-17-2012, 09:27 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
From that kernel version to 3.x a LOT of things changed. I am assuming you are not hitting some other problems because it seems your system mostly boots. So, the problem could be in the migration from old fb to kms, or something like that.

Te diagnose this, we will need your whole /var/log/Xorg.0.log. If you are using X on framebuffer you should consider using kms with the right driver for your video chip, if possible.
 
Old 06-17-2012, 09:30 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by basudebg View Post
Also, I tried to boot the latest iso thru Virtual PC. It stopped showing starting local.. message. If I press CtlAltF1, I get to a #prompt but there is no graphics. If I goto X11 and type xinit ( I have no idea if this is the right thing to do), It shows a graphical screen with a square cursor and no control available to me. If I press CtlAltBackspace I see a screen which ends with Using system config directory "/user/share/X11/xorg.conf.d
You should use "startx" instead, and you should as well properly configure your ~/.xinitrc, to launch a WM of some kind. I have no idea what your livecd exactly launches, so...

That description looks like X is starting with some kind of terminal emulator. When it can't get the focus (since there's no wm) terminals behave this way, though you are still able to write to them. Again, this is just a guess from what I quoted from you, but you gave us little info.
 
Old 06-17-2012, 11:44 AM   #9
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
My livecd for now launches an application compiled with wxwidgets, which just displays a window with Hello world. My xinitrc is written below. Any idea?

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/etc/X11
sysresources=$xinitdir/Xresources
sysmodmap=$xinitdir/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

# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
XINITRC="$HOME/.xinitrc"
if [ -x $XINITRC ]; then
# if the x bit is set on .xinitrc
# it means the xinitrc is not a
# shell script but something else
exec $XINITRC
else
exec /bin/sh "$HOME/.xinitrc"
fi
# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
exec "`/etc/X11/chooser.sh`"
# Failsafe
else
# start some nice programs
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
fi
 
Old 06-18-2012, 09:14 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by basudebg View Post
My livecd for now launches an application compiled with wxwidgets, which just displays a window with Hello world.
Nice, but how's is that program being launched?

Quote:
My xinitrc is written below. Any idea?
Because I don't see any custom app being launched in that code you posted... That looks like an standard xsession script, those which usually live under /etc/X11 or the like. Did you copy that to $HOME/.xinitrc? Else, please, post your $HOME/.xinitrc.

Also, if you are using this as your x launcher, are twm, xclock, xterm... installed? In Gentoo there's an high chance that this won't go into your standard installation unless you install them yourself.
 
Old 06-18-2012, 09:19 AM   #11
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
.xinitrc file :
exec /bin/mrxvt -g 100x100+800+0 -e /bin/startfluxbox

and fluxbox startinit contains:

/usr/bin/fluxbox &
cd /myfolder
./myprogram.

I am getting the error
mrxvt: can't open pseudo-tty
 
Old 06-18-2012, 11:32 AM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
It's hard what you're trying to do.

Quote:
Originally Posted by basudebg View Post
.xinitrc file :
exec /bin/mrxvt -g 100x100+800+0 -e /bin/startfluxbox
Are you running the window manager from inside a terminal window? This is highly irregular, unless you really know what you are doing. If by chance you close that window you'll instantly be outside X. If what you want is to capture its output for debug purposes there are better ways.

Quote:
and fluxbox startinit contains:

/usr/bin/fluxbox &
So, X is launching mrxtv, mrxvt is launching fluxbox, and fluxbox is launching itself from it's config file. Why?

Quote:
I am getting the error
mrxvt: can't open pseudo-tty
[/quote]

Does mrxvt work at all if you launch it manually? Trying to diagnose this mess in one shot is complicated. I suggest you to simplify.

First, edit ~/.xinitrc with your favourite editor, and modify it to contain a single line, like this:

Code:
exec startfluxbox
Now, check that X starts, and fluxbox loads. If all is ok, it's time to proceed to the next step.

Try to open mrxvt, if it doesn't work, then try with xterm. Maybe the problem is with mrxvt. But we need to isolate it. Shooting in the dark is not going to help us.

Let us know what do you find out of this. And don't hesitate to ask if you need further clarification.
 
Old 06-18-2012, 12:38 PM   #13
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
I am simply trying to run myprog. The scripts and the scheme that you see were left by my previous programmer who did it in 2007. As I have to update the myprog now, I tried first by replacing the program in the initrd, which showed that the library was not matching. Then I updated the libs, which showed me kernel too old. Then I replaced bzImage with the latest kernel, that showed me the mrxvt error.

Anyway I will definitely try out your suggestions and ask for further help.
 
Old 06-19-2012, 11:52 AM   #14
basudebg
LQ Newbie
 
Registered: May 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thank you. Changing to only 'exec startfluxbox' brought up my program. I do not see any problem with display at least. I have still no idea why 'exec /bin/mrxvt -g 100x100+800+0 -e /bin/startfluxbox' was used and what was the meaning.

Thanks again for literally guiding me to the discovery of the problem
 
  


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
problem with installing linux gentoo with a "root block device" AKAKAK Linux - Distributions 15 10-23-2007 05:15 PM
Gentoo Linux error: VFS can not open root device "302" Thaidog Linux - Distributions 0 12-10-2006 09:35 PM
Gentoo hangs on "LILO : Loading Gentoo......" after normal shutdown snichols Linux - Newbie 4 09-27-2006 03:32 PM
"GRUB _" when booting, nothing but "ctrl+alt+del" functions rabidpencil Linux - Newbie 15 08-08-2006 10:20 AM
dual booting winME with RedHat 7.2 "HOW TOOO""HELP" jdbarrow Linux - Software 1 03-11-2002 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:13 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